INN-2.2.2 configure bug
Motoyuki Kasahara
m-kasahr at sra.co.jp
Tue Dec 28 07:39:04 UTC 1999
Hello,
configure script in INN-2.2.2 sets `DO_TCL' to `DO' even when
I specify `--without-tcl' option. Also `--without-perl' and
`--without-largefiles' seem to have the same bug.
The following is a patch to fix the bug.
(When --without- option is specified, configure sets ${witharg}
to `no'.)
--- configure.in.orig Mon Dec 13 22:18:37 1999
+++ configure.in Tue Dec 28 16:24:02 1999
@@ -15,25 +15,41 @@
dnl Parse the arguments
AC_ARG_WITH(tcl,
- [ --with-tcl TCL script support],
- DO_TCL=DO
- TCL_LIB="-ltcl -lm"
- TCL_INC="-I/usr/local/include", DO_TCL=DONT
- TCL_LIB=""
- TCL_INC="")
+ [ --with-tcl TCL script support [default=no]],
+ [case "${withval}" in
+ yes) DO_TCL=DO ;;
+ no) DO_TCL=DONT ;;
+ *) AC_MSG_ERROR(invalid argument to --with-tcl or --without-tcl) ;;
+ esac],
+ DO_TCL=DONT)
+if test $DO_TCL = DO ; then
+ TCL_LIB="-ltcl -lm"
+ TCL_INC="-I/usr/local/include"
+else
+ TCL_LIB=""
+ TCL_INC=""
+fi
AC_SUBST(DO_TCL)
AC_SUBST(TCL_LIB)
AC_SUBST(TCL_INC)
AC_ARG_WITH(perl,
- [ --with-perl Perl script support],
- DO_PERL=DO,
+ [ --with-perl Perl script support [default=no]],
+ [case "${withval}" in
+ yes) DO_PERL=DO ;;
+ no) DO_PERL=DONT ;;
+ *) AC_MSG_ERROR(invalid argument to --with-perl or --without-perl) ;;
+ esac],
DO_PERL=DONT)
AC_SUBST(DO_PERL)
AC_ARG_WITH(largefiles,
- [ --with-largefiles Support for files greater than 2gb],
- DO_LFS=DO,
+ [ --with-largefiles Support for files greater than 2gb [default=no]],
+ [case "${withval}" in
+ yes) DO_LFS=DO ;;
+ no) DO_LFS=DONT ;;
+ *) AC_MSG_ERROR(invalid argument to --with-largefiles or --without-largefiles) ;;
+ esac],
DO_LFS=DONT)
AC_SUBST(DO_LFS)
______________________________________________________________________
Motoyuki Kasahara
More information about the inn-bugs
mailing list