X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=configure.ac;h=6d2a681392c498500b12e04a3671ca3a5b735c63;hb=ffdfebd7a79cd12a4fcab065a590ffb7f8ebde98;hp=6dfa7cef68d18d36e6b21b85f23afda63a8cd5ad;hpb=6cb4defa9075e5f1b3b672bb878e2dc34b5a3085;p=ctsim.git diff --git a/configure.ac b/configure.ac index 6dfa7ce..6d2a681 100644 --- a/configure.ac +++ b/configure.ac @@ -6,7 +6,7 @@ dnl CDPATH= AC_INIT AC_CONFIG_SRCDIR([src/ctsim.cpp]) AM_MAINTAINER_MODE -AM_INIT_AUTOMAKE(ctsim,4.2.3) +AM_INIT_AUTOMAKE(ctsim,4.2.8) AM_CONFIG_HEADER(config.h) dnl Checks for programs. @@ -82,8 +82,9 @@ if test "${getopt_long}" = "false" ; then AC_DEFINE(HAVE_GETOPT_LONG,1,[getopt_long library]) ctlibs_base="$ctlibs_base -lgetopt" LDFLAGS="$LDFLAGS -L../getopt" - AM_CONDITIONAL(INCLUDED_GETOPT_LONG, test 1==1) + GETOPTLONG=1 fi +AM_CONDITIONAL(INCLUDED_GETOPT_LONG, test "$GETOPTLONG"="1") if test "${readline}" = "true" ; then ctlibs_base="$ctlibs_base -lreadline" @@ -363,12 +364,13 @@ if test "$no_x" != "yes" ; then fi if test "$wxwin" = "true" ; then AC_DEFINE(HAVE_SGP,1,[use sgp library]) - AM_CONDITIONAL(HAVE_SGP, test 1==1) fi else AC_MSG_RESULT(no) fi +AM_CONDITIONAL(HAVE_SGP, test "$wxwin" = "true") + if test "$png" = "true" ; then ctlibs_tools="$ctlibs_tools -lpng" fi @@ -438,10 +440,10 @@ if test "$wxwin" = "true" ; then fi CFLAGS="$CFLAGS -I../include $wxcflags" ctlib_graphics="$ctlib_graphics $wxlibs" - AM_CONDITIONAL(HAVE_WXWINDOWS, test 1==1 ) fi AC_SUBST(wxcflags) AC_SUBST(wxlibs) +AM_CONDITIONAL(HAVE_WXWINDOWS, test "$wxwin"="true") dnl Setting projet libraries and includes LDFLAGS="$LDFLAGS -L../libctsupport -L../libctsim"