Re: How to enable configure.ac to generate configure to must take arguments ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 10, 2010 at 3:35 PM, TJ Yang <tjyang2001@xxxxxxxxx> wrote:
> MYARGS=2
> if test $#  ne $MYARGS
> then
>   echo "Need one argument at least.\n"
>   exit 0
> fi
>
> Anyone know there is a similar configure.ac I can learn from ?

Quick and dirty:
if (test....) ; then
  AS_MSG_ERROR([Invalid options, use --help to see good help stuff])
fi


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux