X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=configure.in;h=3586b1179d9866237827b313371c4678392bb1be;hb=e559ff1655d5c6103447912e345a1229fdaa4a35;hp=d99301354cac1e8729ac4cdb4d8babdb53841edc;hpb=352012a3e032ffe20957eb90215e8365c3d2bc16;p=ctsim.git diff --git a/configure.in b/configure.in index d993013..3586b11 100644 --- a/configure.in +++ b/configure.in @@ -4,7 +4,7 @@ dnl Must reset CDPATH so that bash's cd does not print to stdout dnl CDPATH= AC_INIT(src/ctrec.c) -AM_INIT_AUTOMAKE(ctsim,0.5.2-b4) +AM_INIT_AUTOMAKE(ctsim,0.5.2) AM_CONFIG_HEADER(config.h) dnl Checks for programs. @@ -13,6 +13,7 @@ AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_RANLIB AC_PROG_CC +AC_PROG_CXX dnl Checks for libraries. AC_CHECK_LIB(z, main, @@ -39,7 +40,7 @@ AC_STRUCT_TM dnl Checks for library functions. AC_FUNC_VPRINTF -AC_CHECK_FUNCS(strtod strtol) +AC_CHECK_FUNCS(strtod strtol snprintf) AC_CHECK_FUNC(basename) AC_CHECK_FUNC(setjmp) AC_CHECK_FUNC(getopt_long, @@ -82,9 +83,14 @@ dnl Check for debug mode AC_ARG_ENABLE(debug, [ --enable-debug Turn on debugging], [case "${enableval}" in - yes) debug=true ;; - no) debug=false ;; - *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; + yes) debug=true + CFLAGS="$CFLAGS -g" + ;; + no) debug=false + CFLAGS="$CFLAGS -O2" + ;; + *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) + ;; esac],[debug=false]) AM_CONDITIONAL(DEBUG, test "$debug" = "true")