Re: Removing '--enable/disable-shared/static' options from configure script

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

 



Ralf Wildenhues wrote:
<snip>

check at configure time that it has not been used.

So should they run a script that patches their configure script after it is generated, or can some shell programming be placed in their configure.in script that will end up in the configure script in the right place?


Yes.  First, I'd advise you to use AC_ENABLE_SHARED and
AC_DISABLE_STATIC (before AC_PROG_LIBTOOL) to set the correct defaults.
They can still be overridden by the user, however.  I'd still regard
that as a good thing: the user should be in control, and the package
author often cannot foresee issues on every system.  If you however are
certain to take that choice away from the user, you could check the
environment variables $enable_shared and $enable_static (after
AC_PROG_LIBTOOL).  It would probably be the most useful to output a
warning instead of an error; for example with AC_MSG_WARN.

Feel free to ask if you need more help.

BTW, to get PACKAGE_NAME to be `OGRE' not `ogre', use the three-option
style of AC_INIT:
  AC_INIT([OGRE], [1.1.0], [bug-report@address])
  AM_INIT_AUTOMAKE([1.7.0 foreign no-installinfo no-installman subdir-objects])

Cheers,
Ralf



OK, thanks


_______________________________________________
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