Annotation of rpl/configure.in, revision 1.32

1.1       bertrand    1: dnl Process this file with autoconf to produce a configure script.
1.30      bertrand    2: AC_INIT([rpl],[4.0.18])
1.1       bertrand    3: AC_CANONICAL_TARGET
                      4: AC_CANONICAL_TARGET
                      5: AM_INIT_AUTOMAKE
                      6: AC_SUBST(target_cpu)
                      7: AC_CONFIG_HEADERS([rplconfig.h])
                      8: 
                      9: dnl Libraries
1.28      bertrand   10: NCURSES=ncurses-5.7-20100619
1.1       bertrand   11: READLINE=readline-6.1
1.31      bertrand   12: UNITS=units-1.88
1.16      bertrand   13: GSL=gsl-1.14
1.1       bertrand   14: GPP=gpp-2.24
1.16      bertrand   15: GNUPLOT=gnuplot-4.4.0
1.1       bertrand   16: FILE=file-5.03
                     17: ICONV=libiconv-1.13.1
1.32    ! bertrand   18: SQLITE=sqlite-3.7.0.1
1.27      bertrand   19: OPENSSL=openssl-1.0.0a
1.1       bertrand   20: 
                     21: dnl Checks for C compiler
1.24      bertrand   22: AC_PROG_CC(gcc)
1.1       bertrand   23: 
1.31      bertrand   24: EXT_SQL=
                     25: 
1.1       bertrand   26: if test x"$CC" != x""; then
                     27:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                     28:            awk -F. '{ printf("%s", $1);}'`
                     29:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                     30:            awk -F. '{ printf("%s", $2);}'`
1.24      bertrand   31:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.1       bertrand   32:        OPTIMISATION_C=-O3
                     33:    else
1.24      bertrand   34:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                     35:                then
1.1       bertrand   36:            OPTIMISATION_C=-O3
                     37:        else
1.24      bertrand   38:            if test $GCC_VERSION_MAJEURE -ge 2; then
                     39:                OPTIMISATION_C=-O2
                     40:            else
                     41:                AC_MSG_ERROR([Cannot find decent or recent gcc (gcc-4.2 or better)!])
                     42:            fi
1.1       bertrand   43:        fi
                     44:    fi
                     45: fi
                     46: 
                     47: AM_PROG_CC_C_O
                     48: 
                     49: if test "$GCC" != yes; then
                     50:    AC_MSG_ERROR([Cannot find gcc! You have to install it.])
                     51: fi
                     52: 
                     53: dnl Checks for C++ compiler
1.24      bertrand   54: AC_PROG_CXX(g++)
1.1       bertrand   55: 
                     56: if test "$GXX" != yes; then
                     57:    AC_MSG_ERROR([Cannot find g++! You have to install it.])
                     58: fi
                     59: 
                     60: dnl Checks for Fortran 77 compiler
1.24      bertrand   61: AC_PROG_F77(gfortran)
1.1       bertrand   62: 
                     63: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
                     64:    AC_MSG_ERROR([Cannot find gfortran! You have to install it.])
                     65: fi
                     66: 
                     67: dnl Check for Fortran 9* compiler
1.24      bertrand   68: AC_PROG_FC(gfortran)
1.1       bertrand   69: 
                     70: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
                     71:    AC_MSG_ERROR([Cannot find gfortran! You have to install it.])
                     72: fi
                     73: 
                     74: if test x"$FC" != x""; then
                     75:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                     76:            awk -F. '{ printf("%s", $1);}'`
                     77:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                     78:            awk -F. '{ printf("%s", $2);}'`
1.24      bertrand   79:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.1       bertrand   80:        OPTIMISATION_F=-O3
                     81:    else
1.24      bertrand   82:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.1       bertrand   83:            OPTIMISATION_F=-O3
                     84:        else
1.24      bertrand   85:            if test $GCC_VERSION_MAJEURE -ge 3; then
                     86:                OPTIMISATION_F=-O2
                     87:            else
                     88:                AC_MSG_ERROR([Cannot find decent or recent gfortran (gfortran-4.3 or better)!])
                     89:            fi
1.1       bertrand   90:        fi
                     91:    fi
                     92: fi
                     93: 
                     94: dnl X paths
                     95: AC_PATH_X
                     96: AC_PATH_XTRA
                     97: 
                     98: if test "$ac_x_includes" != "no"; then
                     99:    if test x"$ac_x_includes" != x; then
                    100:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                    101:        includeX="-I$ac_x_includes"
                    102:    fi
                    103: fi
                    104: if test "$ac_x_libraries" != "no"; then
                    105:    if test x"$ac_x_libraries" != x; then
                    106:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                    107:    fi
                    108: fi
                    109: 
                    110: dnl Options
                    111: AC_ARG_ENABLE(optimization,
                    112: [  --enable-optimization   set compiler flags [[default=environment variables -O3]]], [
                    113: if test "$enableval" = "no"; then
                    114:    CFLAGS=
                    115:    FFLAGS=
                    116:    CXXFLAGS=
                    117:    FCFLAGS=
                    118: else
                    119:    CFLAGS="$CFLAGS $enable_optimization"
                    120:    FFLAGS="$FFLAGS $enable_optimization"
                    121:    FCFLAGS="$FCFLAGS $enable_optimization"
                    122: fi],[
                    123:    CFLAGS="$CFLAGS $OPTIMISATION_C"
                    124:    FFLAGS="$FFLAGS $OPTIMISATION_F"
                    125:    FCFLAGS="$FCFLAGS $OPTIMISATION_F"
                    126:    ]
                    127: )
                    128: 
1.31      bertrand  129: AC_ARG_ENABLE(full-static,
                    130: [  --enable-full-static    build static RPL/2 engine [[default=shared]]], [
                    131: if test "$enableval" = "no"; then
                    132:    STATIC=no
                    133: else
                    134:    STATIC=yes
                    135: fi],
                    136: STATIC=no)
                    137: 
1.1       bertrand  138: AC_ARG_ENABLE(final-encoding,
                    139: [  --enable-final-encoding force final encoding [[default=guessed]]], [
                    140: if test "$enableval" = "no"; then
1.8       bertrand  141:    FINAL_ENCODING="\$(shell locale charmap | \
1.14      bertrand  142:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.1       bertrand  143: else
                    144:    FINAL_ENCODING="$enable_final_encoding"
                    145: fi],
1.8       bertrand  146: FINAL_ENCODING="\$(shell locale charmap | \
1.14      bertrand  147:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')")
1.1       bertrand  148: 
                    149: AC_ARG_ENABLE(tex,
                    150: [  --enable-tex            provide the TeX support [[default=guessed]]], [
                    151: if test "$enableval" = "no"; then
                    152:    TEX_SUPPORT=no
                    153: else
                    154:    TEX_SUPPORT=yes
                    155: fi],
                    156: TEX_SUPPORT=guessed)
                    157: 
                    158: AC_ARG_ENABLE(vim,
                    159: [  --enable-vim            provide the vim support [[default=guessed]]], [
                    160: if test "$enableval" = "no"; then
                    161:    VIM_SUPPORT=no
                    162: else
                    163:    VIM_SUPPORT=yes
                    164: fi],
                    165: VIM_SUPPORT=guessed)
                    166: 
                    167: AC_ARG_ENABLE(embedded-gnuplot,
                    168: [  --enable-embedded-gnuplot build gnuplot provided by this package [[default=yes]]], [
                    169: if test "$enableval" = "no"; then
                    170:    MYGNUPLOT=no
                    171: else
                    172:    MYGNUPLOT=yes
                    173: fi], [
                    174: MYGNUPLOT=yes])
                    175: 
                    176: AC_ARG_ENABLE(gnuplot,
                    177: [  --enable-gnuplot        provide the GnuPlot support [[default=guessed]]],
                    178: [
                    179: if test "$enableval" = "no"; then
                    180:    GNUPLOT_SUPPORT=no
                    181:    MYGNUPLOT=no
                    182:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                    183: else
                    184:    GNUPLOT_SUPPORT=yes
                    185:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                    186: fi], [
                    187: if test "$MYGNUPLOT" = "yes"; then
                    188:    GNUPLOT_SUPPORT=yes
                    189:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                    190: else
                    191:    GNUPLOT_SUPPORT=guessed
                    192:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                    193: fi])
                    194: 
                    195: AC_ARG_ENABLE(motif,
                    196: [  --enable-motif          provide the Motif support [[default=guessed]]], [
                    197: if test "$enableval" = "no"; then
                    198:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                    199: else
                    200:    CFLAGS_ORIG=$CFLAGS
                    201:    LIBS_ORIG=$LIBS
                    202:    CFLAGS="$CFLAGS $X_CFLAGS"
                    203:    LIBS="$LIB $X_LIBS"
                    204:    AC_CHECK_LIB(Xm, main, MOTIF_SUPPORT="-DMOTIF_SUPPORT", MOTIF_SUPPORT="-UMOTIF_SUPPORT")
                    205:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                    206:        AC_MSG_WARN([Can not find Motif! You may install it.
                    207: Motif flag is disabled.
                    208: ])
                    209:    fi
                    210:    LIBS=$LIBS_ORIG
                    211:    CFLAGS=$CFLAGS_ORIG
                    212: fi],
                    213: MOTIF_SUPPORT=guessed)
                    214: 
                    215: AC_ARG_ENABLE(experimental,
                    216: [  --enable-experimental   enable experimental code [[default=no]]], [
                    217: if test "$enableval" = "no"; then
                    218:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                    219: else
                    220:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                    221: fi],
                    222: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE")
                    223: 
                    224: AC_ARG_ENABLE(debug,
                    225: [  --enable-debug          enable debug code [[default=no]]], [
                    226: if test "$enableval" = "no"; then
1.25      bertrand  227:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
                    228:    MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"
1.1       bertrand  229: else
1.25      bertrand  230:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
                    231:    MALLOC=""
                    232: fi], [DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
                    233:    MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"])
1.1       bertrand  234: 
                    235: AC_ARG_ENABLE(profile,
                    236: [  --enable-profile        enable profile code [[default=no]]], [
                    237: if test "$enableval" = "no"; then
                    238:    PROFILAGE=""
                    239: else
                    240:    PROFILAGE="-pg"
                    241: fi], [PROFILAGE=""])
                    242: 
                    243: AC_SUBST(PROFILAGE)
                    244: 
                    245: if test ! -d tools; then
                    246:    mkdir tools
                    247: fi
                    248: if test ! -d "$srcdir"/tools/$NCURSES; then
                    249:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                    250:            (cd "$srcdir/tools" && tar -xf -)
                    251: fi
                    252: if test ! -d "$srcdir"/tools/$READLINE; then
                    253:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                    254:            (cd "$srcdir/tools" && tar -xf -)
                    255: fi
                    256: if test ! -d "$srcdir"/tools/$UNITS; then
                    257:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                    258:            (cd "$srcdir/tools" && tar -xf -)
                    259: fi
                    260: if test ! -d "$srcdir"/tools/$GSL; then
                    261:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                    262:            (cd "$srcdir/tools" && tar -xf -)
                    263: fi
                    264: if test ! -d "$srcdir"/tools/$GPP; then
                    265:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                    266:            (cd "$srcdir/tools" && tar -xf -)
                    267: fi
                    268: if test ! -d "$srcdir"/tools/$FILE; then
                    269:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
1.3       bertrand  270:            (cd "$srcdir/tools" && tar -xf - )
1.4       bertrand  271:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
1.1       bertrand  272: fi
                    273: if test ! -d "$srcdir"/tools/$ICONV; then
                    274:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                    275:            (cd "$srcdir/tools" && tar -xf -)
                    276: fi
1.10      bertrand  277: if test ! -d "$srcdir"/tools/$SQLITE; then
                    278:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                    279:            (cd "$srcdir/tools" && tar -xf -)
1.32    ! bertrand  280:    (cd "$srcdir/tools"/$SQLITE && gunzip -c ../$SQLITE.diff.gz | patch -p1)
1.10      bertrand  281: fi
                    282: if test ! -d tools/$OPENSSL; then
                    283:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
1.15      bertrand  284:            (cd tools && tar -xf -)
1.10      bertrand  285: fi
1.1       bertrand  286: 
                    287: dnl Default installation directory
                    288: AC_PREFIX_DEFAULT(/usr/local)
                    289: 
                    290: dnl Set final install path
                    291: AC_ARG_ENABLE(final-run-path,
                    292:              [  --enable-final-run-path=PATH enable another final run path than PREFIX], [
                    293:    if test "x$enable_final_run_path" = "x"; then
                    294:        AC_MSG_NOTICE("No path with --enable-final-run-path.")
                    295:        AC_MSG_ERROR("You should specify final path !")
                    296:    else
                    297:        RUNPATH="$enable_final_run_path"
                    298:    fi
                    299: ],
                    300: RUNPATH="\${prefix}"
                    301: )
                    302: AC_SUBST(RUNPATH)
                    303: 
                    304: dnl Checks for programs
                    305: AC_PROG_INSTALL
                    306: AC_PROG_LN_S
                    307: AC_PROG_MAKE_SET
                    308: AC_PROG_RANLIB
                    309: 
1.13      bertrand  310: dnl Checks for nawk
                    311: AC_CHECK_PROG(AWK, nawk, yes, no)
1.1       bertrand  312: if test "$AWK" = no; then
1.13      bertrand  313:    AC_MSG_ERROR([Can not find nawk !])
1.1       bertrand  314: fi
                    315: 
                    316: dnl Checks for sed
                    317: AC_CHECK_PROG(SED, sed, yes, no)
                    318: if test "$SED" = no; then
                    319:    AC_MSG_ERROR([Can not find sed !])
                    320: fi
                    321: 
                    322: dnl Checks for TeX, LaTeX, dvips, gs, gv, vim and gnuplot
                    323: if test "$TEX_SUPPORT" = guessed; then
                    324:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                    325: 
                    326:    AC_CHECK_PROG(TEX, tex, yes, no)
                    327:    if test "$TEX" = no; then
                    328:        AC_MSG_WARN([Cannot find TeX! You may install it.
                    329: Download at http://tex.loria.fr/
                    330: ])
                    331:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                    332:    fi
                    333: 
                    334:    AC_CHECK_PROG(LATEX, latex, yes, no)
                    335:    if test "$LATEX" = no; then
                    336:        AC_MSG_WARN([Cannot find LaTeX! You may install it.
                    337: Download at http://tex.loria.fr/
                    338: ])
                    339:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                    340:    fi
                    341: 
                    342:    AC_CHECK_PROG(DVIPS, dvips, yes, no)
                    343:    if test "$DVIPS" = no; then
                    344:        AC_MSG_WARN([Cannot find dvips! You may install it.
                    345: Download at http://tex.loria.fr/
                    346: ])
                    347:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                    348:    fi
                    349: 
                    350:    AC_CHECK_PROG(GS, gs, yes, no)
                    351:    if test "$GS" = no; then
                    352:        AC_MSG_WARN([Cannot find gs! You may install it.
                    353: Download at http://ftp.lip6.fr/
                    354: ])
                    355:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                    356:    fi
                    357: 
                    358:    AC_CHECK_PROG(GV, gv, yes, no)
                    359:    if test "$GV" = no; then
                    360:        AC_MSG_WARN([Cannot find gv! You may install it.
                    361: Download at http://ftp.lip6.fr/
                    362: ])
                    363:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                    364:    fi
                    365: else
                    366:    if test "$TEX_SUPPORT" = no; then
                    367:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                    368:    else
                    369:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                    370:    fi
                    371: fi
                    372: 
                    373: if test "$GNUPLOT_SUPPORT" = guessed; then
                    374:    AC_CHECK_PROG(GNUPLOT_P, gnuplot, yes, no)
                    375:    if test "$GNUPLOT_P" = no; then
                    376:        AC_MSG_WARN([Cannot find gnuplot! You may install it.
                    377: Download at http://www.gnuplot.vt.edu/
                    378: ])
                    379:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                    380:    else
                    381:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                    382:    fi
                    383: else
                    384:    if test "$GNUPLOT_SUPPORT" = no; then
                    385:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                    386:    else
                    387:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                    388:    fi
                    389: fi
                    390: 
                    391: if test "$VIM_SUPPORT" = guessed; then
                    392:    AC_CHECK_PROG(VIM, vim, yes, no)
                    393:    if test "$VIM" = no; then
                    394:        AC_MSG_WARN([Cannot find vim! You may install it.
                    395: Download at http://www.vim.org/
                    396: ])
                    397:        VIM_SUPPORT="-UVIM_SUPPORT"
                    398:    else
                    399:        VIM_SUPPORT="-DVIM_SUPPORT"
                    400:    fi
                    401: else
                    402:    if test "$VIM_SUPPORT" = no; then
                    403:        VIM_SUPPORT="-UVIM_SUPPORT"
                    404:    else
                    405:        VIM_SUPPORT="-DVIM_SUPPORT"
                    406:    fi
                    407: fi
                    408: 
                    409: if test "$MOTIF_SUPPORT" = guessed; then
                    410:    CFLAGS_ORIG=$CFLAGS
                    411:    LIBS_ORIG=$LIBS
                    412:    CFLAGS="$CFLAGS $X_CFLAGS"
                    413:    LIBS="$LIB $X_LIBS"
                    414:    AC_CHECK_LIB(Xm, main, MOTIF_SUPPORT="-DMOTIF_SUPPORT", MOTIF_SUPPORT="-UMOTIF_SUPPORT")
                    415:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                    416:        AC_MSG_WARN([Cannot find Motif! You may install it.
                    417: Motif flag is disabled.
                    418: ])
                    419:    fi
                    420:    LIBS=$LIBS_ORIG
                    421:    CFLAGS=$CFLAGS_ORIG
                    422: fi
                    423: 
                    424: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                    425:    CFLAGS_ORIG=$CFLAGS
                    426:    LIBS_ORIG=$LIBS
                    427:    CFLAGS="$CFLAGS $X_CFLAGS"
                    428:    LIBS="$LIB $X_LIBS"
                    429:    AC_CHECK_LIB(Xpm, main, MOTIF_SUPPORT="-DMOTIF_SUPPORT", MOTIF_SUPPORT="-UMOTIF_SUPPORT")
                    430:    if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                    431:        libX="$X_LIBS -lXm -lXpm -lXt -lX11"
                    432:    else
                    433:        libX=""
                    434:        AC_MSG_WARN([Cannot find libXpm! You may install it.
                    435: Motif flag is disabled.
                    436: ])
                    437:    fi
                    438:    LIBS=$LIBS_ORIG
                    439:    CFLAGS=$CFLAGS_ORIG
                    440: else
                    441:    libX=""
                    442: fi
                    443: 
                    444: dnl Substitutions
                    445: AC_SUBST(GNUPLOT_SUPPORT)
                    446: AC_SUBST(FORCE_GNUPLOT_PATH)
                    447: AC_SUBST(POSTSCRIPT_SUPPORT)
                    448: AC_SUBST(VIM_SUPPORT)
                    449: AC_SUBST(EXPERIMENTAL_CODE)
                    450: AC_SUBST(DEBUG)
                    451: AC_SUBST(MOTIF_SUPPORT)
                    452: AC_SUBST(libX)
                    453: AC_SUBST(includeX)
                    454: 
                    455: dnl Date
                    456: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                    457: AC_SUBST(DATE)
                    458: 
                    459: dnl Checks for libraries
                    460: AC_CHECK_LIB(m, main,, AC_MSG_ERROR([Can not find libm !]))
                    461: AC_CHECK_LIB(pthread, main,, AC_MSG_ERROR([Can not find libpthread !]))
                    462: 
                    463: dnl Do we need to use -ldl?
                    464: if test "$CYGWIN" != yes; then
                    465:    AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl",
                    466:            AC_MSG_WARN([libdl doesn't seem to be needed on this system.]))
                    467: fi
                    468: 
                    469: dnl Do we need to use -lrt?
                    470: AC_CHECK_LIB(rt, nanosleep, LIBS="$LIBS -lrt",
                    471:        AC_MSG_WARN([librt doesn't seem to be needed on this system.]))
                    472: 
                    473: dnl Do we need to use -lsocket?
                    474: AC_CHECK_LIB(socket, bind, LIBS="$LIBS -lsocket",
                    475:        AC_MSG_WARN([libsocket doesn't seem to be needed on this system.]))
                    476: 
                    477: dnl Check for SQL libraries
                    478: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                    479: AC_ARG_WITH(mysql,
                    480: [  --with-mysql=PATH         specify directory for installed mysql],
                    481: [], [with_mysql=check])
                    482: 
                    483: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                    484:    libMySQLinc="-I/usr/include"
1.31      bertrand  485:    libMySQLlib="/usr/lib"
1.1       bertrand  486: 
                    487:    AC_MSG_CHECKING(for libmysql includes in /usr/include)
                    488:    saved_CFLAGS="$CFLAGS"
1.31      bertrand  489:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.1       bertrand  490:    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                    491:                    libMySQLinc=$libMySQLinc/mysql],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
                    492:    CFLAGS=$saved_CFLAGS
                    493: 
                    494:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                    495:        AC_MSG_CHECKING(for libmysql includes in /usr/include/mysql)
                    496:        saved_CFLAGS="$CFLAGS"
                    497:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                    498:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                    499:                        libMySQLinc=$libMySQLinc],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
                    500:        CFLAGS=$saved_CFLAGS
                    501:        libMySQLinc=$libMySQLinc/mysql
                    502:    fi
                    503: 
                    504:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                    505:        AC_MSG_CHECKING(for libmysql includes in /usr/local/include)
                    506:        saved_CFLAGS="$CFLAGS"
                    507:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                    508:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                    509:                        libMySQLinc=$libMySQLinc/mysql],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
                    510:        CFLAGS=$saved_CFLAGS
                    511:        libMySQLinc=$libMySQLinc/../local/include
                    512:        libMySQLlib=$libMySQLlib/../local/lib
                    513:    fi
                    514: 
                    515:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                    516:        AC_MSG_CHECKING(for libmysql includes in /usr/local/include/mysql)
                    517:        saved_CFLAGS="$CFLAGS"
                    518:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                    519:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                    520:                        libMySQLinc=$libMySQLinc/mysql],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
                    521:        CFLAGS=$saved_CFLAGS
                    522:        libMySQLinc=$libMySQLinc/../local/include/mysql
                    523:        libMySQLlib=$libMySQLlib/../local/lib
                    524:    fi
                    525: else
                    526:    if test "x$with_mysql" != xno; then
                    527:        libMySQLinc="-I$with_mysql/include"
1.31      bertrand  528:        libMySQLlib="$with_mysql/lib"
1.1       bertrand  529: 
                    530:        AC_MSG_CHECKING(for libmysql includes in $with_mysql)
                    531:        saved_CFLAGS="$CFLAGS"
                    532:        CFLAGS="$CFLAGS $libMySQLinc"
                    533:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                    534:                        libMySQLinc=$libMySQLinc/mysql],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
                    535:        CFLAGS=$saved_CFLAGS
                    536: 
                    537:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                    538:            AC_MSG_CHECKING(for libmysql includes in $with_mysql/mysql)
                    539:            saved_CFLAGS="$CFLAGS"
                    540:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                    541:            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                    542:                            libMySQLinc=$libMySQLinc],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
                    543:            CFLAGS=$saved_CFLAGS
                    544:            libMySQLinc=$libMySQLinc/mysql
                    545:        fi
                    546:    else
                    547:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                    548:    fi
                    549: fi
                    550: 
                    551: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                    552:    MYSQL_LIB=no
                    553: 
                    554:    if test $MYSQL_LIB = no; then
                    555:        AC_MSG_CHECKING(for libmysql libraries in $libMySQLlib)
                    556:        saved_LIBS="$LIBS"
1.31      bertrand  557:        if test $STATIC = no; then
                    558:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
                    559:        else
                    560:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
                    561:        fi
1.1       bertrand  562:        AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[MYSQL mysql; mysql_init(&mysql);]])],[AC_MSG_RESULT([yes]); MYSQL_LIB="yes"],[AC_MSG_RESULT([no]); MYSQL_LIB="no"])
                    563:        LIBS=$saved_LIBS;
1.31      bertrand  564:        if test $STATIC = no; then
                    565:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
                    566:        else
                    567:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
                    568:            EXT_SQL="$EXT_SQL $libMySQLlib"
                    569:        fi
1.1       bertrand  570:    fi
                    571: 
                    572:    if test $MYSQL_LIB = no; then
                    573:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                    574:    fi
                    575: fi
                    576: 
                    577: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                    578:    libMySQLinc=
                    579:    libMySQLlib=
                    580: fi
                    581: 
                    582: AC_SUBST(MYSQL_SUPPORT)
                    583: AC_SUBST(libMySQLinc)
                    584: AC_SUBST(libMySQLlib)
                    585: 
                    586: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                    587: AC_ARG_WITH(postgresql,
                    588: [  --with-postgresql=PATH    specify directory for installed postgresql],
                    589: [], [with_postgresql=check])
                    590: 
                    591: # with_postgresql : check [pas défini], yes [uniquement --with],
                    592: # no [--without], valeur [--with=valeur].
                    593: 
                    594: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                    595:    libPgSQLinc="-I/usr/include"
1.31      bertrand  596:    libPgSQLlib="/usr/lib"
1.1       bertrand  597: 
                    598:    AC_MSG_CHECKING(for libpq includes in /usr/include)
                    599:    saved_CFLAGS="$CFLAGS"
                    600:    CFLAGS="$CFLAGS $libPgSQLinc"
                    601:    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]); POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]); POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    602:    CFLAGS=$saved_CFLAGS
                    603: 
                    604:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                    605:        AC_MSG_CHECKING(for libpq includes in /usr/include/postgresql)
                    606:        saved_CFLAGS="$CFLAGS"
                    607:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                    608:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    609:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    610:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    611:        CFLAGS=$saved_CFLAGS
                    612:        libPgSQLinc=$libPgSQLinc/postgresql
                    613:    fi
                    614: 
                    615:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                    616:        AC_MSG_CHECKING(for libpq includes in /usr/include/pgsql)
                    617:        saved_CFLAGS="$CFLAGS"
                    618:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                    619:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    620:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    621:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    622:        CFLAGS=$saved_CFLAGS
                    623:        libPgSQLinc=$libPgSQLinc/pgsql
                    624:    fi
                    625: 
                    626:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                    627:        AC_MSG_CHECKING(for libpq includes in /usr/local/include)
                    628:        saved_CFLAGS="$CFLAGS"
                    629:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                    630:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    631:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    632:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    633:        CFLAGS=$saved_CFLAGS
                    634:        libPgSQLinc=$libPgSQLinc/../local/include
                    635:        libPgSQLlib=$libPgSQLlib/../local/lib
                    636:    fi
                    637: 
                    638:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                    639:        AC_MSG_CHECKING(for libpq includes in /usr/local/include/postgresql)
                    640:        saved_CFLAGS="$CFLAGS"
                    641:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                    642:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    643:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    644:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    645:        CFLAGS=$saved_CFLAGS
                    646:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                    647:        libPgSQLlib=$libPgSQLlib/../local/lib
                    648:    fi
                    649: 
                    650:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                    651:        AC_MSG_CHECKING(for libpq includes in /usr/local/include/pgsql)
                    652:        saved_CFLAGS="$CFLAGS"
                    653:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                    654:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    655:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    656:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    657:        CFLAGS=$saved_CFLAGS
                    658:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                    659:        libPgSQLlib=$libPgSQLlib/../local/lib
                    660:    fi
                    661: else
                    662:    if test "x$with_postgresql" != xno; then
                    663:        libPgSQLinc="-I$with_postgresql/include"
1.31      bertrand  664:        libPgSQLlib="$with_postgresql/lib"
1.1       bertrand  665: 
                    666:        AC_MSG_CHECKING(for libpq includes in $libPgSQLinc)
                    667:        saved_CFLAGS="$CFLAGS"
                    668:        CFLAGS="$CFLAGS $libPgSQLinc"
                    669:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    670:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    671:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    672:        CFLAGS=$saved_CFLAGS
                    673: 
                    674:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                    675:            AC_MSG_CHECKING(for libpq includes in $libPgSQLinc/postgresql)
                    676:            saved_CFLAGS="$CFLAGS"
                    677:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                    678:            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    679:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    680:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    681:            CFLAGS=$saved_CFLAGS
                    682:            libPgSQLinc=$libPgSQLinc/postgresql
                    683:        fi
                    684: 
                    685:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                    686:            AC_MSG_CHECKING(for libpq includes in $libPgSQLinc/pgsql)
                    687:            saved_CFLAGS="$CFLAGS"
                    688:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                    689:            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    690:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    691:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    692:            CFLAGS=$saved_CFLAGS
                    693:            libPgSQLinc=$libPgSQLinc/pgsql
                    694:        fi
                    695:    else
                    696:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                    697:    fi
                    698: fi
                    699: 
                    700: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                    701:    POSTGRESQL_LIB=no
                    702: 
                    703:    if test $POSTGRESQL_LIB = no; then
                    704:        AC_MSG_CHECKING(for libpq libraries in $libPgSQLlib)
                    705:        saved_LIBS="$LIBS"
1.31      bertrand  706:        if test $STATIC = no; then
                    707:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
                    708:        else
                    709:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
                    710:        fi
1.1       bertrand  711:        AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                    712:             PQconnectdb(conninfo);]])],[AC_MSG_RESULT([yes]); POSTGRESQL_LIB="yes"],[AC_MSG_RESULT([no]); POSTGRESQL_LIB="no"])
                    713:        LIBS=$saved_LIBS;
1.31      bertrand  714:        if test $STATIC = no; then
                    715:            libPgSQLlib="-L/$libPgSQLlib -lpq"
                    716:        else
                    717:            libPgSQLlib="$libPgSQLlib/libpq.a"
                    718:            EXT_SQL="$EXT_SQL $libPgSQLlib"
                    719:        fi
1.1       bertrand  720:    fi
                    721: fi
                    722: 
                    723: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                    724:    libPgSQLinc=
                    725:    libPgSQLlib=
                    726: fi
                    727: 
                    728: AC_SUBST(POSTGRESQL_SUPPORT)
                    729: AC_SUBST(libPgSQLinc)
                    730: AC_SUBST(libPgSQLlib)
                    731: 
                    732: dnl Checks for sizes
                    733: AC_CHECK_SIZEOF(void *, 4)
                    734: AC_CHECK_SIZEOF(char, 1)
                    735: AC_CHECK_SIZEOF(short int, 2)
                    736: AC_CHECK_SIZEOF(int, 4)
                    737: AC_CHECK_SIZEOF(long int, 4)
                    738: AC_CHECK_SIZEOF(long long int, 8)
                    739: AC_CHECK_SIZEOF(float, 4)
                    740: AC_CHECK_SIZEOF(double, 8)
                    741: AC_CHECK_SIZEOF(long double, 12)
                    742: 
                    743: dnl Checks for header files.
                    744: AC_HEADER_DIRENT
                    745: AC_HEADER_STDC
                    746: AC_HEADER_SYS_WAIT
                    747: AC_CHECK_HEADERS(dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                    748:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                    749:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h)
                    750: 
                    751: dnl Checks for typedefs, structures, and compiler characteristics.
                    752: AC_C_CONST
                    753: AC_TYPE_UID_T
                    754: AC_TYPE_PID_T
                    755: AC_TYPE_SIZE_T
                    756: AC_HEADER_TIME
                    757: AC_STRUCT_TM
                    758: 
                    759: dnl Checks for library functions.
                    760: AC_DIAGNOSE([obsolete],[your code may safely assume C89 semantics that RETSIGTYPE is void.
                    761: Remove this warning and the `AC_CACHE_CHECK' when you adjust the code.])dnl
                    762: AC_CACHE_CHECK([return type of signal handlers],[ac_cv_type_signal],[AC_COMPILE_IFELSE(
                    763: [AC_LANG_PROGRAM([#include <sys/types.h>
                    764: #include <signal.h>
                    765: ],
                    766:         [return *(signal (0, 0)) (0) == 1;])],
                    767:           [ac_cv_type_signal=int],
                    768:           [ac_cv_type_signal=void])])
                    769: AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers
                    770:            (`int' or `void').])
                    771: 
                    772: AC_FUNC_STRCOLL
                    773: AC_FUNC_STRFTIME
                    774: AC_FUNC_VPRINTF
                    775: AC_CHECK_FUNCS(ftime getcwd putenv select strcspn strdup \
                    776:        strerror strspn strstr strtod)
                    777: 
                    778: AC_CONFIG_SUBDIRS(tools/$NCURSES)
                    779: AC_CONFIG_SUBDIRS(tools/$READLINE)
                    780: AC_CONFIG_SUBDIRS(tools/$GSL)
                    781: AC_CONFIG_SUBDIRS(tools/$GPP)
                    782: AC_CONFIG_SUBDIRS(tools/$FILE)
                    783: AC_CONFIG_SUBDIRS(tools/$ICONV)
1.10      bertrand  784: AC_CONFIG_SUBDIRS(tools/$SQLITE)
1.18      bertrand  785: AC_CONFIG_SUBDIRS(tools/$UNITS)
1.16      bertrand  786: 
                    787: dnl Check for OpenSSL os/comp
                    788: AC_ARG_WITH(openssl_arch,
                    789: [  --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)],
                    790: [], [with_openssl_arch=none])
                    791: 
1.32    ! bertrand  792: if test $(uname) = "OS/2"; then
        !           793:    (cd tools/$OPENSSL && os2/OS2-EMX.cmd)
1.16      bertrand  794: else
1.32    ! bertrand  795:    if test "x$with_openssl_arch" = xnone; then
        !           796:        (cd tools/$OPENSSL && ./config)
        !           797:    elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
        !           798:        (cd tools/$OPENSSL && ./Configure)
        !           799:        AC_MSG_ERROR([OS/COMP informations are required!])
        !           800:    elif test "x$with_openssl_arch" = xlist; then
        !           801:        (cd tools/$OPENSSL && ./Configure)
        !           802:        AC_MSG_ERROR([Please specify OS and Architecture])
        !           803:    else
        !           804:        (cd tools/$OPENSSL && ./Configure $with_openssl_arch)
        !           805:    fi
1.16      bertrand  806: fi
1.1       bertrand  807: 
                    808: if test "$MYGNUPLOT" = "yes"; then
                    809:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                    810:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                    811:                (cd "$srcdir/tools" && tar -xf -)
                    812:    fi
                    813:    AC_CONFIG_SUBDIRS(tools/$GNUPLOT)
                    814:    GNUPLOT_COMPILATION=$GNUPLOT
                    815: else
                    816:    GNUPLOT_COMPILATION=
                    817: fi
                    818: 
                    819: AC_SUBST(GNUPLOT_COMPILATION)
                    820: 
                    821: case $host_cpu in
                    822: 
                    823:     i?86)
                    824:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                    825:            -Wno-pointer-sign"
                    826:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                    827:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                    828:    break ;;
                    829: 
                    830:    x86_64*)
                    831:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                    832:            -Wno-pointer-sign"
                    833:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                    834:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                    835:    break ;;
                    836: 
                    837:     alpha*)
                    838:    CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
                    839:            -Wno-pointer-sign"
                    840:    FFLAGS="$FFLAGS -mieee -Wall"
                    841:    FCFLAGS="$FCFLAGS -mieee -Wall"
                    842:    break ;;
                    843: 
                    844:     sparc*)
                    845:    CFLAGS="$CFLAGS -Wall -funsigned-char \
                    846:            -Wno-pointer-sign"
                    847:    FFLAGS="$FFLAGS -Wall"
                    848:    FCFLAGS="$FCFLAGS -Wall"
                    849:    break ;;
                    850: 
                    851: esac
                    852: 
1.9       bertrand  853: case $host_os in
                    854: 
                    855:    cygwin*)
                    856:        OS=Cygwin
                    857:    break ;;
                    858: 
                    859:    interix*)
                    860:        OS=Interix
                    861:    break ;;
                    862: 
                    863:    *)
                    864:        OS=$(uname)
                    865:    break ;;
                    866: 
                    867: esac
                    868: 
                    869: AC_SUBST(OS)
                    870: 
1.1       bertrand  871: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                    872: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
                    873: 
1.23      bertrand  874: case $OS in
1.18      bertrand  875: 
                    876:     Darwin)
1.32    ! bertrand  877:        EXPORT_DYNAMIC=-Wl,-flat_namespace
1.18      bertrand  878:        NESTED_FUNCTIONS=-fnested-functions
                    879:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.24      bertrand  880:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.32    ! bertrand  881:        ac_configure_args="$ac_configure_args --with-readline=builtin \
        !           882:                --disable-shared --enable-static"
1.18      bertrand  883:    break ;;
                    884: 
1.32    ! bertrand  885:     Cygwin)
        !           886:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.18      bertrand  887:        NESTED_FUNCTIONS=
                    888:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.32    ! bertrand  889:        ac_configure_args="$ac_configure_args --with-readline=builtin \
        !           890:                --disable-shared --enable-static"
1.18      bertrand  891:    break ;;
                    892: 
1.32    ! bertrand  893:     AIX)
        !           894:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.19      bertrand  895:        NESTED_FUNCTIONS=
                    896:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.32    ! bertrand  897:        ac_configure_args="$ac_configure_args --with-readline=builtin \
        !           898:                --disable-shared --enable-static"
1.19      bertrand  899:    break ;;
                    900: 
1.32    ! bertrand  901:     OS/2)
        !           902:        MALLOC=
        !           903:        OS=OS2
        !           904:        FINAL_ENCODING=UTF-8
        !           905:        NESTED_FUNCTIONS=
        !           906:        EXPORT_DYNAMIC=-Zmap
        !           907:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
        !           908:        ac_configure_args="$ac_configure_args --without-readline \
        !           909:                --without-cairo --disable-shared --enable-static"
        !           910:    break;;
        !           911: 
1.18      bertrand  912:     *)
1.32    ! bertrand  913:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18      bertrand  914:        NESTED_FUNCTIONS=
                    915:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.32    ! bertrand  916:        ac_configure_args="$ac_configure_args --with-readline=builtin \
        !           917:                --disable-shared --enable-static"
1.18      bertrand  918:    break ;;
                    919: 
                    920: esac
                    921: 
                    922: AC_SUBST(EXPORT_DYNAMIC)
                    923: AC_SUBST(NESTED_FUNCTIONS)
                    924: AC_SUBST(SEMAPHORES_NOMMES)
1.1       bertrand  925: 
                    926: AC_SUBST(NCURSES)
                    927: AC_SUBST(READLINE)
                    928: AC_SUBST(UNITS)
                    929: AC_SUBST(GSL)
                    930: AC_SUBST(GPP)
                    931: AC_SUBST(GNUPLOT)
                    932: AC_SUBST(FILE)
                    933: AC_SUBST(ICONV)
1.10      bertrand  934: AC_SUBST(SQLITE)
                    935: AC_SUBST(OPENSSL)
1.1       bertrand  936: AC_SUBST(FINAL_ENCODING)
                    937: AC_SUBST(DATE)
                    938: AC_SUBST(DATE_FR)
1.25      bertrand  939: AC_SUBST(MALLOC)
1.31      bertrand  940: AC_SUBST(EXT_SQL)
1.1       bertrand  941: 
                    942: AC_SUBST(CFLAGS)
                    943: AC_SUBST(CXXFLAGS)
                    944: AC_SUBST(FFLAGS)
                    945: AC_SUBST(FCFLAGS)
                    946: 
                    947: AC_CONFIG_FILES(Makefile)
                    948: AC_CONFIG_FILES(COPYING)
                    949: AC_CONFIG_FILES(tools/Makefile)
                    950: AC_CONFIG_FILES(src/Makefile)
                    951: AC_CONFIG_FILES(man/Makefile)
                    952: AC_CONFIG_FILES(man/fr_FR/Makefile)
                    953: AC_CONFIG_FILES(doc/Makefile)
                    954: AC_CONFIG_FILES(scripts/Makefile)
                    955: AC_CONFIG_FILES(scripts/mkrplso)
                    956: AC_CONFIG_FILES(scripts/rplcc)
                    957: AC_CONFIG_FILES(scripts/rpllink)
                    958: AC_CONFIG_FILES(rpltags/Makefile)
                    959: AC_CONFIG_FILES(rpliconv/Makefile)
1.10      bertrand  960: AC_CONFIG_FILES(rplsums/Makefile)
1.1       bertrand  961: AC_CONFIG_FILES(lapack/lapack/Makefile)
                    962: AC_CONFIG_FILES(lapack/blas/Makefile)
1.21      bertrand  963: AC_CONFIG_FILES(ptmalloc3/Makefile)
1.1       bertrand  964: 
                    965: AC_CONFIG_FILES(man/rpl.1)
                    966: AC_CONFIG_FILES(man/rplcc.1)
                    967: AC_CONFIG_FILES(man/rpllink.1)
                    968: AC_CONFIG_FILES(man/rpltags.1)
                    969: AC_CONFIG_FILES(man/mkrplso.1)
                    970: AC_CONFIG_FILES(man/fr_FR/rpl.1)
                    971: AC_CONFIG_FILES(man/fr_FR/rplcc.1)
                    972: AC_CONFIG_FILES(man/fr_FR/rpllink.1)
                    973: AC_CONFIG_FILES(man/fr_FR/rpltags.1)
                    974: AC_CONFIG_FILES(man/fr_FR/mkrplso.1)
                    975: 
                    976: AC_OUTPUT

CVSweb interface <joel.bertrand@systella.fr>