X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=configure.ac;h=36dca45044f820248a82001a1c6e669d20d9e30b;hb=61e63c3a4b1e3627ab185a40ee6eb62a95cea498;hp=68784fcedbaf31a242e692fb4fb32fceb37cff52;hpb=9d7dfa426f44402f8e74e89b00100882b16383aa;p=ctsim.git diff --git a/configure.ac b/configure.ac index 68784fc..36dca45 100644 --- a/configure.ac +++ b/configure.ac @@ -68,6 +68,7 @@ AC_CHECK_FUNC(setjmp) AC_CHECK_FUNC(setpriority) AC_CHECK_FUNC(time) AC_CHECK_FUNC(gettimeofday) +AC_CHECK_FUNC(getopt, [ getopt=true ], [ getopt=false ]) if test "${OSTYPE}" = "cygwin" ; then getopt_long=false @@ -132,10 +133,11 @@ AC_MSG_CHECKING(sstream) if [ test -f /usr/include/sstream || test -f /usr/include/g++/sstream || test -f /usr/include/g++-2/sstream || test -f /usr/include/g++-3/sstream || test -f /usr/include/gcc/darwin/3.1/g++-v3/sstream ]; then - AC_DEFINE(HAVE_SSTREAM,1,[sstream header]) - AC_MSG_RESULT(yes) -fi -AC_MSG_RESULT(no) + AC_DEFINE(HAVE_SSTREAM,1,[sstream header]) + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi CFLAGS="$CFLAGS -Wall"