autoconf
[Top][All Lists]
Advanced

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

Re: How to enable configure.ac to generate configure to must take argum


From: NightStrike
Subject: Re: How to enable configure.ac to generate configure to must take arguments ?
Date: Wed, 10 Mar 2010 15:40:08 -0500

On Wed, Mar 10, 2010 at 3:35 PM, TJ Yang <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]