dnl CDPATH=
AC_INIT(src/ctrec.c)
-AM_INIT_AUTOMAKE(ctsim,0.5.2)
+AM_INIT_AUTOMAKE(ctsim,0.5.2-b4)
AM_CONFIG_HEADER(config.h)
dnl Checks for programs.
dnl Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h)
+AC_CHECK_HEADERS(fcntl.h unistd.h getopt.h sys/fcntl.h setjmp.h stdarg.h stddef.h sys/types.h sys/stat.h string.h ctype.h math.h stdio.h netinet/in.h inttypes.h sys/param.h stdint.h stdlib.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
CFLAGS="$CFLAGS -I$testlamdir/include"
lamdir="$testlamdir"
AC_SUBST(lamdir)
+ mpienable="true"
+ AC_SUBST(mpienable)
break
fi
done
[ htmldir=$withval ; AC_SUBST(htmldir) ] )
if test -n "$cgibindir" -o -n "$cgibinurl" ; then
- cgiprograms=ctsim.cgi
+ cgiprograms="ctsim.cgi ctsim.conf"
AC_SUBST(cgiprograms)
fi
if test -n "$htmldir" ; then
- htmldata=ctsim.html
+ htmldata=simulate.html
AC_SUBST(htmldata)
fi
AM_CONDITIONAL(USE_HTML, test -n "$htmldir")
AC_MSG_RESULT([no])
fi
-dnl Setting projet libraries and includes
-LDFLAGS="$LDFLAGS -L../libezplot -L../libgraph -L../libkmath -L../libk -L../libcio -L../libir"
-ctlibs_base="$ctlibs_base -lezplot -lgraph -lkmath -lk -lcio"
-if test -n "$pngdir" ; then
- ctlibs_base="$ctlibs_base -lpng"
-fi
-if test "$zlib" = "true" ; then
- ctlibs_base="$ctlibs_base -lz"
-fi
-ctlibs="-lir $ctlibs_base"
-
-AC_SUBST(ctlibs)
-
-if test -n "$lamdir" ; then
- ctlamlibs="-lir_lam $ctlibs_base"
- lamprograms="ctrec-lam phm2sdf-lam phm2rs-lam"
- AC_SUBST(lamprograms)
- AC_SUBST(ctlamlibs)
-fi
-
AM_CONDITIONAL(USE_LAM, test -n "$lamdir")
dnl Prepare to support X. If the user gave the command-line option
my_includes="$my_includes -I../include -I.."
AC_SUBST(my_includes)
-AM_CONDITIONAL(HAVE_INTERACTIVE_GRAPHICS, test 1==0)
+if test "x$no_x" != "xyes" ; then
+ AC_DEFINE(HAVE_INTERACTIVE_GRAPHICS)
+ AM_CONDITIONAL(HAVE_INTERACTIVE_GRAPHICS, test 1==1)
+ LDFLAGS="$LDFLAGS -L../libezplot -L../libgraph"
+ ctlibs_base="$ctlibs_base -lezplot -lgraph"
+fi
+
+dnl Setting projet libraries and includes
+LDFLAGS="$LDFLAGS -L../libkmath -L../libk -L../libcio -L../libir"
+ctlibs_base="$ctlibs_base -lkmath -lk -lcio"
+if test -n "$pngdir" ; then
+ ctlibs_base="$ctlibs_base -lpng"
+fi
+if test "$zlib" = "true" ; then
+ ctlibs_base="$ctlibs_base -lz"
+fi
+ctlibs="-lir $ctlibs_base"
+
+AC_SUBST(ctlibs)
+
+if test -n "$lamdir" ; then
+ ctlamlibs="-lir_lam $ctlibs_base"
+ lamprograms="ctrec-lam phm2sdf-lam phm2rs-lam"
+ AC_SUBST(lamprograms)
+ AC_SUBST(ctlamlibs)
+fi
-AC_OUTPUT(Makefile libezplot/Makefile src/Makefile libgraph/Makefile libkmath/Makefile Makefile libk/Makefile libir/Makefile libcio/Makefile man/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/ctsim.html html/Makefile include/Makefile getopt/Makefile src/sample-ctrec.sh)
+AC_OUTPUT(Makefile libezplot/Makefile src/Makefile libgraph/Makefile libkmath/Makefile Makefile libk/Makefile libir/Makefile libcio/Makefile man/Makefile cgi-bin/ctsim.cgi cgi-bin/Makefile html/simulate.html html/Makefile include/Makefile getopt/Makefile src/sample-ctrec.sh cgi-bin/ctsim.conf)