Restore --with-suffix option. AC_EXEEXT doesn't aways do what the user wants

and an option is more friendly then manually setting a variable.
This commit is contained in:
Neil Schemenauer 2001-01-27 06:54:42 +00:00
parent 547397c45b
commit 3ae1d0aa84

View file

@ -171,6 +171,14 @@ fi
AC_PROG_CC
AC_EXEEXT
AC_MSG_CHECKING(for --with-suffix)
AC_ARG_WITH(suffix, [ --with-suffix=.exe set executable suffix],[
case $withval in
no) EXEEXT=;;
yes) EXEEXT=.exe;;
*) EXEEXT=$withval;;
esac])
AC_MSG_RESULT($EXEEXT)
case $MACHDEP in
bsdos*)