Annotation of rpl/configure.in, revision 1.75

1.1       bertrand    1: dnl Process this file with autoconf to produce a configure script.
1.73      bertrand    2: AC_INIT([rpl],[4.1.2])
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.56      bertrand   10: NCURSES=ncurses-5.9
1.52      bertrand   11: READLINE=readline-6.2
1.31      bertrand   12: UNITS=units-1.88
1.59      bertrand   13: GSL=gsl-1.15
1.75    ! bertrand   14: GPP=gpp-3.0
1.54      bertrand   15: GNUPLOT=gnuplot-4.4.3
1.1       bertrand   16: FILE=file-5.03
                     17: ICONV=libiconv-1.13.1
1.72      bertrand   18: SQLITE=sqlite-3.7.7.1
1.52      bertrand   19: OPENSSL=openssl-1.0.0d
1.1       bertrand   20: 
1.57      bertrand   21: GMP=gmp-5.0.1
                     22: MPFR=mpfr-3.0.1
1.58      bertrand   23: NTL=ntl-5.5.2
                     24: COCOA=CoCoALib-0.9943
                     25: PARI=pari-2.3.5
1.70      bertrand   26: GIAC=giac-0.9.3
1.57      bertrand   27: 
1.1       bertrand   28: dnl Checks for C compiler
1.24      bertrand   29: AC_PROG_CC(gcc)
1.1       bertrand   30: 
1.31      bertrand   31: EXT_SQL=
                     32: 
1.1       bertrand   33: if test x"$CC" != x""; then
                     34:    GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                     35:            awk -F. '{ printf("%s", $1);}'`
                     36:    GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                     37:            awk -F. '{ printf("%s", $2);}'`
1.24      bertrand   38:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.1       bertrand   39:        OPTIMISATION_C=-O3
                     40:    else
1.24      bertrand   41:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
                     42:                then
1.1       bertrand   43:            OPTIMISATION_C=-O3
                     44:        else
1.24      bertrand   45:            if test $GCC_VERSION_MAJEURE -ge 2; then
                     46:                OPTIMISATION_C=-O2
                     47:            else
                     48:                AC_MSG_ERROR([Cannot find decent or recent gcc (gcc-4.2 or better)!])
                     49:            fi
1.1       bertrand   50:        fi
                     51:    fi
                     52: fi
                     53: 
                     54: AM_PROG_CC_C_O
                     55: 
                     56: if test "$GCC" != yes; then
                     57:    AC_MSG_ERROR([Cannot find gcc! You have to install it.])
                     58: fi
                     59: 
                     60: dnl Checks for C++ compiler
1.24      bertrand   61: AC_PROG_CXX(g++)
1.1       bertrand   62: 
1.72      bertrand   63: if test "$CXX" != "g++"; then
1.1       bertrand   64:    AC_MSG_ERROR([Cannot find g++! You have to install it.])
                     65: fi
                     66: 
1.72      bertrand   67: if test x"$CXX" != x""; then
                     68:    GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                     69:            awk -F. '{ printf("%s", $1);}'`
                     70:    GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                     71:            awk -F. '{ printf("%s", $2);}'`
                     72:    if test $GCC_VERSION_MAJEURE -ge 5; then
                     73:        OPTIMISATION_GXX=-O3
                     74:    else
                     75:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
                     76:            OPTIMISATION_GXX=-O3
                     77:        else
                     78:            if test $GCC_VERSION_MAJEURE -ge 3; then
                     79:                OPTIMISATION_GXX=-O2
                     80:            else
                     81:                AC_MSG_ERROR([Cannot find decent or recent g++ (g++-4.3 or better)!])
                     82:            fi
                     83:        fi
                     84:    fi
                     85: fi
                     86: 
1.1       bertrand   87: dnl Checks for Fortran 77 compiler
1.24      bertrand   88: AC_PROG_F77(gfortran)
1.1       bertrand   89: 
                     90: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
                     91:    AC_MSG_ERROR([Cannot find gfortran! You have to install it.])
                     92: fi
                     93: 
                     94: dnl Check for Fortran 9* compiler
1.24      bertrand   95: AC_PROG_FC(gfortran)
1.1       bertrand   96: 
                     97: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
                     98:    AC_MSG_ERROR([Cannot find gfortran! You have to install it.])
                     99: fi
                    100: 
                    101: if test x"$FC" != x""; then
                    102:    GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                    103:            awk -F. '{ printf("%s", $1);}'`
                    104:    GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
                    105:            awk -F. '{ printf("%s", $2);}'`
1.24      bertrand  106:    if test $GCC_VERSION_MAJEURE -ge 5; then
1.1       bertrand  107:        OPTIMISATION_F=-O3
                    108:    else
1.24      bertrand  109:        if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.1       bertrand  110:            OPTIMISATION_F=-O3
                    111:        else
1.24      bertrand  112:            if test $GCC_VERSION_MAJEURE -ge 3; then
                    113:                OPTIMISATION_F=-O2
                    114:            else
                    115:                AC_MSG_ERROR([Cannot find decent or recent gfortran (gfortran-4.3 or better)!])
                    116:            fi
1.1       bertrand  117:        fi
                    118:    fi
                    119: fi
                    120: 
                    121: dnl X paths
                    122: AC_PATH_X
                    123: AC_PATH_XTRA
                    124: 
                    125: if test "$ac_x_includes" != "no"; then
                    126:    if test x"$ac_x_includes" != x; then
                    127:        X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
                    128:        includeX="-I$ac_x_includes"
                    129:    fi
                    130: fi
                    131: if test "$ac_x_libraries" != "no"; then
                    132:    if test x"$ac_x_libraries" != x; then
                    133:        X_LIBS="$X_LIBS -L$ac_x_libraries"
                    134:    fi
                    135: fi
                    136: 
1.66      bertrand  137: dnl 32 bits ABI
1.72      bertrand  138: AC_ARG_WITH(32bits-abi,
1.66      bertrand  139: [  --with-32bits-abi       force 32bits ABI (multilib)],[
                    140: if test "$with-32bits-abi" = "no"; then
1.69      bertrand  141:    ABI=
1.66      bertrand  142: else
1.68      bertrand  143:    ABI=-m32
1.67      bertrand  144: fi],[
1.71      bertrand  145:    ABI=
1.66      bertrand  146:    ]
                    147: )
                    148: 
1.71      bertrand  149: if test x$ABI = x; then
1.72      bertrand  150: AC_ARG_WITH(64bits-abi,
1.70      bertrand  151: [  --with-64bits-abi       force 64bits ABI (multilib)],[
                    152: if test "$with-64bits-abi" = "no"; then
                    153:    ABI=
                    154: else
                    155:    ABI=-m64
                    156: fi],[
1.71      bertrand  157:    ABI=
1.70      bertrand  158:    ]
                    159: )
1.71      bertrand  160: fi
1.70      bertrand  161: 
1.72      bertrand  162: LDFLAGS="$LDFLAGS $ABI"
                    163: 
1.70      bertrand  164: dnl RPL/CAS support
                    165: AC_ARG_WITH(rplcas,
                    166: [  --with-rplcas           compile rplcas (default=no)],[
                    167: if test "$with-rplcas" = "no"; then
                    168:    RPLCAS=-URPLCAS
                    169:    LIBRPLCAS=
                    170: else
                    171:    RPLCAS=-DRPLCAS
                    172:    LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
                    173: fi],[
                    174:    RPLCAS=-URPLCAS
                    175:    LIBRPLCAS=
                    176:    ]
                    177: )
                    178: 
1.69      bertrand  179: AC_SUBST(ABI)
1.70      bertrand  180: AC_SUBST(RPLCAS)
                    181: AC_SUBST(LIBRPLCAS)
1.68      bertrand  182: 
1.1       bertrand  183: dnl Options
                    184: AC_ARG_ENABLE(optimization,
                    185: [  --enable-optimization   set compiler flags [[default=environment variables -O3]]], [
                    186: if test "$enableval" = "no"; then
1.72      bertrand  187:    CFLAGS=$ABI
                    188:    FFLAGS=$ABI
                    189:    CXXFLAGS=$ABI
                    190:    FCFLAGS=$ABI
                    191: else
                    192:    CFLAGS="$CFLAGS $ABI $enable_optimization"
                    193:    FFLAGS="$FFLAGS $ABI $enable_optimization"
                    194:    CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
                    195:    FCFLAGS="$FCFLAGS $ABI $enable_optimization"
1.1       bertrand  196: fi],[
1.72      bertrand  197:    CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
                    198:    FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
                    199:    CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
                    200:    FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
1.1       bertrand  201:    ]
                    202: )
                    203: 
1.38      bertrand  204: AC_ARG_ENABLE(sysv-semaphores,
                    205: [  --enable-sysv-ipcs      use SystemV IPC functions [[default=no]]], [
                    206: if test "$enableval" = "no"; then
                    207:    IPCS_SYSV=no
                    208: else
                    209:    IPCS_SYSV=yes
                    210: fi],
                    211: IPCS_SYSV=no)
                    212: 
1.31      bertrand  213: AC_ARG_ENABLE(full-static,
                    214: [  --enable-full-static    build static RPL/2 engine [[default=shared]]], [
                    215: if test "$enableval" = "no"; then
                    216:    STATIC=no
                    217: else
                    218:    STATIC=yes
                    219: fi],
                    220: STATIC=no)
                    221: 
1.1       bertrand  222: AC_ARG_ENABLE(final-encoding,
                    223: [  --enable-final-encoding force final encoding [[default=guessed]]], [
                    224: if test "$enableval" = "no"; then
1.8       bertrand  225:    FINAL_ENCODING="\$(shell locale charmap | \
1.14      bertrand  226:        \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.37      bertrand  227:    FORCED_FINAL_ENCODING=0
1.1       bertrand  228: else
                    229:    FINAL_ENCODING="$enable_final_encoding"
1.37      bertrand  230:    FORCED_FINAL_ENCODING=1
                    231: fi], [
                    232: FORCED_FINAL_ENCODING=0
1.8       bertrand  233: FINAL_ENCODING="\$(shell locale charmap | \
1.37      bertrand  234:    \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"])
1.1       bertrand  235: 
                    236: AC_ARG_ENABLE(tex,
                    237: [  --enable-tex            provide the TeX support [[default=guessed]]], [
                    238: if test "$enableval" = "no"; then
                    239:    TEX_SUPPORT=no
                    240: else
                    241:    TEX_SUPPORT=yes
                    242: fi],
                    243: TEX_SUPPORT=guessed)
                    244: 
                    245: AC_ARG_ENABLE(vim,
                    246: [  --enable-vim            provide the vim support [[default=guessed]]], [
                    247: if test "$enableval" = "no"; then
                    248:    VIM_SUPPORT=no
                    249: else
                    250:    VIM_SUPPORT=yes
                    251: fi],
                    252: VIM_SUPPORT=guessed)
                    253: 
                    254: AC_ARG_ENABLE(embedded-gnuplot,
                    255: [  --enable-embedded-gnuplot build gnuplot provided by this package [[default=yes]]], [
                    256: if test "$enableval" = "no"; then
                    257:    MYGNUPLOT=no
                    258: else
                    259:    MYGNUPLOT=yes
                    260: fi], [
                    261: MYGNUPLOT=yes])
                    262: 
                    263: AC_ARG_ENABLE(gnuplot,
                    264: [  --enable-gnuplot        provide the GnuPlot support [[default=guessed]]],
                    265: [
                    266: if test "$enableval" = "no"; then
                    267:    GNUPLOT_SUPPORT=no
                    268:    MYGNUPLOT=no
                    269:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                    270: else
                    271:    GNUPLOT_SUPPORT=yes
                    272:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                    273: fi], [
                    274: if test "$MYGNUPLOT" = "yes"; then
                    275:    GNUPLOT_SUPPORT=yes
                    276:    FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
                    277: else
                    278:    GNUPLOT_SUPPORT=guessed
                    279:    FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
                    280: fi])
                    281: 
                    282: AC_ARG_ENABLE(motif,
                    283: [  --enable-motif          provide the Motif support [[default=guessed]]], [
                    284: if test "$enableval" = "no"; then
                    285:    MOTIF_SUPPORT="-UMOTIF_SUPPORT"
                    286: else
                    287:    CFLAGS_ORIG=$CFLAGS
                    288:    LIBS_ORIG=$LIBS
                    289:    CFLAGS="$CFLAGS $X_CFLAGS"
                    290:    LIBS="$LIB $X_LIBS"
                    291:    AC_CHECK_LIB(Xm, main, MOTIF_SUPPORT="-DMOTIF_SUPPORT", MOTIF_SUPPORT="-UMOTIF_SUPPORT")
                    292:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                    293:        AC_MSG_WARN([Can not find Motif! You may install it.
                    294: Motif flag is disabled.
                    295: ])
                    296:    fi
                    297:    LIBS=$LIBS_ORIG
                    298:    CFLAGS=$CFLAGS_ORIG
                    299: fi],
                    300: MOTIF_SUPPORT=guessed)
                    301: 
                    302: AC_ARG_ENABLE(experimental,
                    303: [  --enable-experimental   enable experimental code [[default=no]]], [
                    304: if test "$enableval" = "no"; then
                    305:    EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
                    306: else
                    307:    EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
                    308: fi],
                    309: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE")
                    310: 
                    311: AC_ARG_ENABLE(debug,
                    312: [  --enable-debug          enable debug code [[default=no]]], [
                    313: if test "$enableval" = "no"; then
1.25      bertrand  314:    DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.1       bertrand  315: else
1.25      bertrand  316:    DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.45      bertrand  317: fi], [DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"])
1.1       bertrand  318: 
                    319: AC_ARG_ENABLE(profile,
                    320: [  --enable-profile        enable profile code [[default=no]]], [
                    321: if test "$enableval" = "no"; then
                    322:    PROFILAGE=""
                    323: else
                    324:    PROFILAGE="-pg"
                    325: fi], [PROFILAGE=""])
                    326: 
                    327: AC_SUBST(PROFILAGE)
                    328: 
                    329: if test ! -d tools; then
                    330:    mkdir tools
                    331: fi
                    332: if test ! -d "$srcdir"/tools/$NCURSES; then
                    333:    gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
                    334:            (cd "$srcdir/tools" && tar -xf -)
1.53      bertrand  335:    (cd "$srcdir/tools/"$NCURSES && \
                    336:            for i in ../$NCURSES*.patch.gz;
                    337:            do gunzip -c $i | patch -p1;
                    338:            done);
1.1       bertrand  339: fi
                    340: if test ! -d "$srcdir"/tools/$READLINE; then
                    341:    gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
                    342:            (cd "$srcdir/tools" && tar -xf -)
                    343: fi
                    344: if test ! -d "$srcdir"/tools/$UNITS; then
                    345:    gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
                    346:            (cd "$srcdir/tools" && tar -xf -)
                    347: fi
                    348: if test ! -d "$srcdir"/tools/$GSL; then
                    349:    gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
                    350:            (cd "$srcdir/tools" && tar -xf -)
1.34      bertrand  351:    if test $(uname) = "OS/2"; then
                    352:        (cd "$srcdir"/tools/$GSL; \
                    353:                TMP=$(mktemp tmp.XXXXXXXXXX); \
                    354:                sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
                    355:                \mv -f $TMP ltmain.sh)
                    356:    fi
1.1       bertrand  357: fi
                    358: if test ! -d "$srcdir"/tools/$GPP; then
                    359:    gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
                    360:            (cd "$srcdir/tools" && tar -xf -)
                    361: fi
                    362: if test ! -d "$srcdir"/tools/$FILE; then
                    363:    gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
1.3       bertrand  364:            (cd "$srcdir/tools" && tar -xf - )
1.4       bertrand  365:    (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
1.1       bertrand  366: fi
                    367: if test ! -d "$srcdir"/tools/$ICONV; then
                    368:    gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
                    369:            (cd "$srcdir/tools" && tar -xf -)
                    370: fi
1.10      bertrand  371: if test ! -d "$srcdir"/tools/$SQLITE; then
                    372:    gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
                    373:            (cd "$srcdir/tools" && tar -xf -)
                    374: fi
                    375: if test ! -d tools/$OPENSSL; then
                    376:    gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
1.15      bertrand  377:            (cd tools && tar -xf -)
1.10      bertrand  378: fi
1.57      bertrand  379: if test ! -d rplcas; then
                    380:    mkdir rplcas
                    381: fi
                    382: if test ! -d "$srcdir"/rplcas/$GMP; then
                    383:    gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
                    384:            (cd "$srcdir/rplcas" && tar -xf -)
                    385: fi
                    386: if test ! -d "$srcdir"/rplcas/$MPFR; then
                    387:    gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
                    388:            (cd "$srcdir/rplcas" && tar -xf -)
                    389: fi
1.58      bertrand  390: if test ! -d rplcas/$NTL; then
                    391:    gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
                    392:            (cd rplcas && tar -xf -)
                    393: fi
                    394: if test ! -d rplcas/$COCOA; then
                    395:    gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
                    396:            (cd rplcas && tar -xf -)
                    397: fi
                    398: if test ! -d rplcas/$PARI; then
                    399:    gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
                    400:            (cd rplcas && tar -xf -)
                    401: fi
                    402: if test ! -d "$srcdir"/rplcas/$GIAC; then
                    403:    gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
                    404:            (cd "$srcdir/rplcas" && tar -xf -)
                    405: fi
1.1       bertrand  406: 
                    407: dnl Default installation directory
                    408: AC_PREFIX_DEFAULT(/usr/local)
                    409: 
                    410: dnl Set final install path
                    411: AC_ARG_ENABLE(final-run-path,
                    412:              [  --enable-final-run-path=PATH enable another final run path than PREFIX], [
                    413:    if test "x$enable_final_run_path" = "x"; then
                    414:        AC_MSG_NOTICE("No path with --enable-final-run-path.")
                    415:        AC_MSG_ERROR("You should specify final path !")
                    416:    else
                    417:        RUNPATH="$enable_final_run_path"
                    418:    fi
                    419: ],
                    420: RUNPATH="\${prefix}"
                    421: )
                    422: AC_SUBST(RUNPATH)
                    423: 
                    424: dnl Checks for programs
                    425: AC_PROG_INSTALL
                    426: AC_PROG_LN_S
                    427: AC_PROG_MAKE_SET
                    428: AC_PROG_RANLIB
                    429: 
1.13      bertrand  430: dnl Checks for nawk
                    431: AC_CHECK_PROG(AWK, nawk, yes, no)
1.1       bertrand  432: if test "$AWK" = no; then
1.41      bertrand  433:    AC_CHECK_PROG(AWK, gawk, yes, no)
                    434:    if test "$AWK" = no; then
                    435:        AC_MSG_ERROR([Can not find nawk !])
                    436:    fi
1.1       bertrand  437: fi
                    438: 
                    439: dnl Checks for sed
                    440: AC_CHECK_PROG(SED, sed, yes, no)
                    441: if test "$SED" = no; then
                    442:    AC_MSG_ERROR([Can not find sed !])
                    443: fi
                    444: 
                    445: dnl Checks for TeX, LaTeX, dvips, gs, gv, vim and gnuplot
                    446: if test "$TEX_SUPPORT" = guessed; then
                    447:    POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                    448: 
                    449:    AC_CHECK_PROG(TEX, tex, yes, no)
                    450:    if test "$TEX" = no; then
                    451:        AC_MSG_WARN([Cannot find TeX! You may install it.
                    452: Download at http://tex.loria.fr/
                    453: ])
                    454:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                    455:    fi
                    456: 
                    457:    AC_CHECK_PROG(LATEX, latex, yes, no)
                    458:    if test "$LATEX" = no; then
                    459:        AC_MSG_WARN([Cannot find LaTeX! You may install it.
                    460: Download at http://tex.loria.fr/
                    461: ])
                    462:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                    463:    fi
                    464: 
                    465:    AC_CHECK_PROG(DVIPS, dvips, yes, no)
                    466:    if test "$DVIPS" = no; then
                    467:        AC_MSG_WARN([Cannot find dvips! You may install it.
                    468: Download at http://tex.loria.fr/
                    469: ])
                    470:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                    471:    fi
                    472: 
                    473:    AC_CHECK_PROG(GS, gs, yes, no)
                    474:    if test "$GS" = no; then
                    475:        AC_MSG_WARN([Cannot find gs! You may install it.
                    476: Download at http://ftp.lip6.fr/
                    477: ])
                    478:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                    479:    fi
                    480: 
                    481:    AC_CHECK_PROG(GV, gv, yes, no)
                    482:    if test "$GV" = no; then
                    483:        AC_MSG_WARN([Cannot find gv! You may install it.
                    484: Download at http://ftp.lip6.fr/
                    485: ])
                    486:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                    487:    fi
                    488: else
                    489:    if test "$TEX_SUPPORT" = no; then
                    490:        POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
                    491:    else
                    492:        POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
                    493:    fi
                    494: fi
                    495: 
                    496: if test "$GNUPLOT_SUPPORT" = guessed; then
                    497:    AC_CHECK_PROG(GNUPLOT_P, gnuplot, yes, no)
                    498:    if test "$GNUPLOT_P" = no; then
                    499:        AC_MSG_WARN([Cannot find gnuplot! You may install it.
                    500: Download at http://www.gnuplot.vt.edu/
                    501: ])
                    502:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                    503:    else
                    504:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                    505:    fi
                    506: else
                    507:    if test "$GNUPLOT_SUPPORT" = no; then
                    508:        GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
                    509:    else
                    510:        GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
                    511:    fi
                    512: fi
                    513: 
                    514: if test "$VIM_SUPPORT" = guessed; then
                    515:    AC_CHECK_PROG(VIM, vim, yes, no)
                    516:    if test "$VIM" = no; then
                    517:        AC_MSG_WARN([Cannot find vim! You may install it.
                    518: Download at http://www.vim.org/
                    519: ])
                    520:        VIM_SUPPORT="-UVIM_SUPPORT"
                    521:    else
                    522:        VIM_SUPPORT="-DVIM_SUPPORT"
                    523:    fi
                    524: else
                    525:    if test "$VIM_SUPPORT" = no; then
                    526:        VIM_SUPPORT="-UVIM_SUPPORT"
                    527:    else
                    528:        VIM_SUPPORT="-DVIM_SUPPORT"
                    529:    fi
                    530: fi
                    531: 
                    532: if test "$MOTIF_SUPPORT" = guessed; then
                    533:    CFLAGS_ORIG=$CFLAGS
                    534:    LIBS_ORIG=$LIBS
                    535:    CFLAGS="$CFLAGS $X_CFLAGS"
                    536:    LIBS="$LIB $X_LIBS"
                    537:    AC_CHECK_LIB(Xm, main, MOTIF_SUPPORT="-DMOTIF_SUPPORT", MOTIF_SUPPORT="-UMOTIF_SUPPORT")
                    538:    if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
                    539:        AC_MSG_WARN([Cannot find Motif! You may install it.
                    540: Motif flag is disabled.
                    541: ])
                    542:    fi
                    543:    LIBS=$LIBS_ORIG
                    544:    CFLAGS=$CFLAGS_ORIG
                    545: fi
                    546: 
                    547: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                    548:    CFLAGS_ORIG=$CFLAGS
                    549:    LIBS_ORIG=$LIBS
                    550:    CFLAGS="$CFLAGS $X_CFLAGS"
                    551:    LIBS="$LIB $X_LIBS"
                    552:    AC_CHECK_LIB(Xpm, main, MOTIF_SUPPORT="-DMOTIF_SUPPORT", MOTIF_SUPPORT="-UMOTIF_SUPPORT")
                    553:    if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
                    554:        libX="$X_LIBS -lXm -lXpm -lXt -lX11"
                    555:    else
                    556:        libX=""
                    557:        AC_MSG_WARN([Cannot find libXpm! You may install it.
                    558: Motif flag is disabled.
                    559: ])
                    560:    fi
                    561:    LIBS=$LIBS_ORIG
                    562:    CFLAGS=$CFLAGS_ORIG
                    563: else
                    564:    libX=""
                    565: fi
                    566: 
                    567: dnl Substitutions
                    568: AC_SUBST(GNUPLOT_SUPPORT)
                    569: AC_SUBST(FORCE_GNUPLOT_PATH)
                    570: AC_SUBST(POSTSCRIPT_SUPPORT)
                    571: AC_SUBST(VIM_SUPPORT)
                    572: AC_SUBST(EXPERIMENTAL_CODE)
                    573: AC_SUBST(DEBUG)
                    574: AC_SUBST(MOTIF_SUPPORT)
                    575: AC_SUBST(libX)
                    576: AC_SUBST(includeX)
                    577: 
                    578: dnl Date
                    579: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
                    580: AC_SUBST(DATE)
                    581: 
                    582: dnl Checks for libraries
                    583: AC_CHECK_LIB(m, main,, AC_MSG_ERROR([Can not find libm !]))
                    584: AC_CHECK_LIB(pthread, main,, AC_MSG_ERROR([Can not find libpthread !]))
                    585: 
1.34      bertrand  586: dnl Check for union semun
                    587: AC_CHECK_TYPE([union semun], SEMUN=-DUNION_SEMUN, SEMUN=-UUNION_SEMUN, [[
                    588: #include <sys/sem.h>
                    589: ]])
                    590: 
1.35      bertrand  591: dnl Check for IPv6 support
                    592: AC_CHECK_TYPE([struct sockaddr_in6], IPV6=-DIPV6, IPV6=-UIPV6, [[
1.37      bertrand  593: #include <sys/types.h>
1.35      bertrand  594: #include <netinet/in.h>
                    595: ]])
                    596: 
1.1       bertrand  597: dnl Do we need to use -ldl?
                    598: if test "$CYGWIN" != yes; then
                    599:    AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl",
                    600:            AC_MSG_WARN([libdl doesn't seem to be needed on this system.]))
                    601: fi
                    602: 
                    603: dnl Do we need to use -lrt?
                    604: AC_CHECK_LIB(rt, nanosleep, LIBS="$LIBS -lrt",
                    605:        AC_MSG_WARN([librt doesn't seem to be needed on this system.]))
                    606: 
                    607: dnl Do we need to use -lsocket?
                    608: AC_CHECK_LIB(socket, bind, LIBS="$LIBS -lsocket",
                    609:        AC_MSG_WARN([libsocket doesn't seem to be needed on this system.]))
                    610: 
                    611: dnl Check for SQL libraries
                    612: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                    613: AC_ARG_WITH(mysql,
                    614: [  --with-mysql=PATH         specify directory for installed mysql],
                    615: [], [with_mysql=check])
                    616: 
                    617: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
                    618:    libMySQLinc="-I/usr/include"
1.31      bertrand  619:    libMySQLlib="/usr/lib"
1.1       bertrand  620: 
                    621:    AC_MSG_CHECKING(for libmysql includes in /usr/include)
                    622:    saved_CFLAGS="$CFLAGS"
1.31      bertrand  623:    CFLAGS="$CFLAGS -L/$libMySQLinc"
1.1       bertrand  624:    AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                    625:                    libMySQLinc=$libMySQLinc/mysql],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
                    626:    CFLAGS=$saved_CFLAGS
                    627: 
                    628:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                    629:        AC_MSG_CHECKING(for libmysql includes in /usr/include/mysql)
                    630:        saved_CFLAGS="$CFLAGS"
                    631:        CFLAGS="$CFLAGS $libMySQLinc/mysql"
                    632:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                    633:                        libMySQLinc=$libMySQLinc],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
                    634:        CFLAGS=$saved_CFLAGS
                    635:        libMySQLinc=$libMySQLinc/mysql
                    636:    fi
                    637: 
                    638:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                    639:        AC_MSG_CHECKING(for libmysql includes in /usr/local/include)
                    640:        saved_CFLAGS="$CFLAGS"
                    641:        CFLAGS="$CFLAGS $libMySQLinc/../local/include"
                    642:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                    643:                        libMySQLinc=$libMySQLinc/mysql],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
                    644:        CFLAGS=$saved_CFLAGS
                    645:        libMySQLinc=$libMySQLinc/../local/include
                    646:        libMySQLlib=$libMySQLlib/../local/lib
                    647:    fi
                    648: 
                    649:    if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                    650:        AC_MSG_CHECKING(for libmysql includes in /usr/local/include/mysql)
                    651:        saved_CFLAGS="$CFLAGS"
                    652:        CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
                    653:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                    654:                        libMySQLinc=$libMySQLinc/mysql],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
                    655:        CFLAGS=$saved_CFLAGS
                    656:        libMySQLinc=$libMySQLinc/../local/include/mysql
                    657:        libMySQLlib=$libMySQLlib/../local/lib
                    658:    fi
                    659: else
                    660:    if test "x$with_mysql" != xno; then
                    661:        libMySQLinc="-I$with_mysql/include"
1.31      bertrand  662:        libMySQLlib="$with_mysql/lib"
1.1       bertrand  663: 
                    664:        AC_MSG_CHECKING(for libmysql includes in $with_mysql)
                    665:        saved_CFLAGS="$CFLAGS"
                    666:        CFLAGS="$CFLAGS $libMySQLinc"
                    667:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                    668:                        libMySQLinc=$libMySQLinc/mysql],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
                    669:        CFLAGS=$saved_CFLAGS
                    670: 
                    671:        if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
                    672:            AC_MSG_CHECKING(for libmysql includes in $with_mysql/mysql)
                    673:            saved_CFLAGS="$CFLAGS"
                    674:            CFLAGS="$CFLAGS $libMySQLinc/mysql"
                    675:            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
                    676:                            libMySQLinc=$libMySQLinc],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
                    677:            CFLAGS=$saved_CFLAGS
                    678:            libMySQLinc=$libMySQLinc/mysql
                    679:        fi
                    680:    else
                    681:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                    682:    fi
                    683: fi
                    684: 
                    685: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
                    686:    MYSQL_LIB=no
                    687: 
                    688:    if test $MYSQL_LIB = no; then
                    689:        AC_MSG_CHECKING(for libmysql libraries in $libMySQLlib)
                    690:        saved_LIBS="$LIBS"
1.31      bertrand  691:        if test $STATIC = no; then
                    692:            LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
                    693:        else
                    694:            LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
                    695:        fi
1.1       bertrand  696:        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"])
                    697:        LIBS=$saved_LIBS;
1.31      bertrand  698:        if test $STATIC = no; then
                    699:            libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
                    700:        else
                    701:            libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
                    702:            EXT_SQL="$EXT_SQL $libMySQLlib"
                    703:        fi
1.1       bertrand  704:    fi
                    705: 
                    706:    if test $MYSQL_LIB = no; then
                    707:        MYSQL_SUPPORT="-UMYSQL_SUPPORT"
                    708:    fi
                    709: fi
                    710: 
                    711: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
                    712:    libMySQLinc=
                    713:    libMySQLlib=
                    714: fi
                    715: 
                    716: AC_SUBST(MYSQL_SUPPORT)
                    717: AC_SUBST(libMySQLinc)
                    718: AC_SUBST(libMySQLlib)
                    719: 
                    720: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
                    721: AC_ARG_WITH(postgresql,
                    722: [  --with-postgresql=PATH    specify directory for installed postgresql],
                    723: [], [with_postgresql=check])
                    724: 
                    725: # with_postgresql : check [pas défini], yes [uniquement --with],
                    726: # no [--without], valeur [--with=valeur].
                    727: 
                    728: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
                    729:    libPgSQLinc="-I/usr/include"
1.31      bertrand  730:    libPgSQLlib="/usr/lib"
1.1       bertrand  731: 
                    732:    AC_MSG_CHECKING(for libpq includes in /usr/include)
                    733:    saved_CFLAGS="$CFLAGS"
                    734:    CFLAGS="$CFLAGS $libPgSQLinc"
                    735:    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"])
                    736:    CFLAGS=$saved_CFLAGS
                    737: 
                    738:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                    739:        AC_MSG_CHECKING(for libpq includes in /usr/include/postgresql)
                    740:        saved_CFLAGS="$CFLAGS"
                    741:        CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                    742:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    743:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    744:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    745:        CFLAGS=$saved_CFLAGS
                    746:        libPgSQLinc=$libPgSQLinc/postgresql
                    747:    fi
                    748: 
                    749:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                    750:        AC_MSG_CHECKING(for libpq includes in /usr/include/pgsql)
                    751:        saved_CFLAGS="$CFLAGS"
                    752:        CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                    753:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    754:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    755:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    756:        CFLAGS=$saved_CFLAGS
                    757:        libPgSQLinc=$libPgSQLinc/pgsql
                    758:    fi
                    759: 
                    760:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                    761:        AC_MSG_CHECKING(for libpq includes in /usr/local/include)
                    762:        saved_CFLAGS="$CFLAGS"
                    763:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
                    764:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    765:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    766:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    767:        CFLAGS=$saved_CFLAGS
                    768:        libPgSQLinc=$libPgSQLinc/../local/include
                    769:        libPgSQLlib=$libPgSQLlib/../local/lib
                    770:    fi
                    771: 
                    772:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                    773:        AC_MSG_CHECKING(for libpq includes in /usr/local/include/postgresql)
                    774:        saved_CFLAGS="$CFLAGS"
                    775:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
                    776:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    777:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    778:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    779:        CFLAGS=$saved_CFLAGS
                    780:        libPgSQLinc=$libPgSQLinc/../local/include/postgresql
                    781:        libPgSQLlib=$libPgSQLlib/../local/lib
                    782:    fi
                    783: 
                    784:    if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                    785:        AC_MSG_CHECKING(for libpq includes in /usr/local/include/pgsql)
                    786:        saved_CFLAGS="$CFLAGS"
                    787:        CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
                    788:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    789:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    790:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    791:        CFLAGS=$saved_CFLAGS
                    792:        libPgSQLinc=$libPgSQLinc/local/include/pgsql
                    793:        libPgSQLlib=$libPgSQLlib/../local/lib
                    794:    fi
                    795: else
                    796:    if test "x$with_postgresql" != xno; then
                    797:        libPgSQLinc="-I$with_postgresql/include"
1.31      bertrand  798:        libPgSQLlib="$with_postgresql/lib"
1.1       bertrand  799: 
                    800:        AC_MSG_CHECKING(for libpq includes in $libPgSQLinc)
                    801:        saved_CFLAGS="$CFLAGS"
                    802:        CFLAGS="$CFLAGS $libPgSQLinc"
                    803:        AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    804:                POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    805:                POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    806:        CFLAGS=$saved_CFLAGS
                    807: 
                    808:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                    809:            AC_MSG_CHECKING(for libpq includes in $libPgSQLinc/postgresql)
                    810:            saved_CFLAGS="$CFLAGS"
                    811:            CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
                    812:            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    813:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    814:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    815:            CFLAGS=$saved_CFLAGS
                    816:            libPgSQLinc=$libPgSQLinc/postgresql
                    817:        fi
                    818: 
                    819:        if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
                    820:            AC_MSG_CHECKING(for libpq includes in $libPgSQLinc/pgsql)
                    821:            saved_CFLAGS="$CFLAGS"
                    822:            CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
                    823:            AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
                    824:                    POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
                    825:                    POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
                    826:            CFLAGS=$saved_CFLAGS
                    827:            libPgSQLinc=$libPgSQLinc/pgsql
                    828:        fi
                    829:    else
                    830:        POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
                    831:    fi
                    832: fi
                    833: 
                    834: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
                    835:    POSTGRESQL_LIB=no
                    836: 
                    837:    if test $POSTGRESQL_LIB = no; then
                    838:        AC_MSG_CHECKING(for libpq libraries in $libPgSQLlib)
                    839:        saved_LIBS="$LIBS"
1.31      bertrand  840:        if test $STATIC = no; then
                    841:            LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
                    842:        else
                    843:            LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
                    844:        fi
1.1       bertrand  845:        AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[PGconn *conn; const char *conninfo="dbname=postgres"; conn =
                    846:             PQconnectdb(conninfo);]])],[AC_MSG_RESULT([yes]); POSTGRESQL_LIB="yes"],[AC_MSG_RESULT([no]); POSTGRESQL_LIB="no"])
                    847:        LIBS=$saved_LIBS;
1.31      bertrand  848:        if test $STATIC = no; then
                    849:            libPgSQLlib="-L/$libPgSQLlib -lpq"
                    850:        else
                    851:            libPgSQLlib="$libPgSQLlib/libpq.a"
                    852:            EXT_SQL="$EXT_SQL $libPgSQLlib"
                    853:        fi
1.1       bertrand  854:    fi
                    855: fi
                    856: 
                    857: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
                    858:    libPgSQLinc=
                    859:    libPgSQLlib=
                    860: fi
                    861: 
                    862: AC_SUBST(POSTGRESQL_SUPPORT)
                    863: AC_SUBST(libPgSQLinc)
                    864: AC_SUBST(libPgSQLlib)
                    865: 
1.42      bertrand  866: # with_postgresql : check [pas défini], yes [uniquement --with],
                    867: # no [--without], valeur [--with=valeur].
                    868: AC_ARG_WITH(bourne_shell,
                    869: [  --with-bourne-shell=PATH  specify path for OS/2 bourne shell],
                    870: [], [with_bourne_shell=no])
                    871: 
                    872: if test "x$with_bourne_shell" = xyes; then
                    873:    AC_MSG_ERROR([You have to specify a valide shell path !])
                    874: fi
                    875: 
                    876: if test "x$with_bourne_shell" = xno; then
                    877:    if test $(uname) = "OS/2"; then
                    878:        AC_MSG_ERROR([With OS/2 or eComstation, you have to specify a valide shell path !])
                    879:    fi
                    880: 
                    881:    BSH_PATH=
                    882: else
                    883:    if test ! -x $with_bourne_shell; then
                    884:        AC_MSG_ERROR([$with_bourne_shell is not executable !])
                    885:    fi
                    886: 
                    887:    if test $(uname) = "OS/2"; then
1.43      bertrand  888:        with_os2_bourne_shell=$(echo $with_bourne_shell | \
                    889:                sed -e '1,$s/\//\\\\\\\\/g')
                    890:        BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.42      bertrand  891:    else
                    892:        AC_MSG_WARN([--with-bourne-shell ignored])
                    893:        BSH_PATH=
                    894:    fi
                    895: fi
                    896: 
1.1       bertrand  897: dnl Checks for sizes
                    898: AC_CHECK_SIZEOF(void *, 4)
                    899: AC_CHECK_SIZEOF(char, 1)
                    900: AC_CHECK_SIZEOF(short int, 2)
                    901: AC_CHECK_SIZEOF(int, 4)
                    902: AC_CHECK_SIZEOF(long int, 4)
                    903: AC_CHECK_SIZEOF(long long int, 8)
                    904: AC_CHECK_SIZEOF(float, 4)
                    905: AC_CHECK_SIZEOF(double, 8)
                    906: AC_CHECK_SIZEOF(long double, 12)
                    907: 
                    908: dnl Checks for header files.
                    909: AC_HEADER_DIRENT
                    910: AC_HEADER_STDC
                    911: AC_HEADER_SYS_WAIT
                    912: AC_CHECK_HEADERS(dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
                    913:        time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
                    914:        sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h)
                    915: 
                    916: dnl Checks for typedefs, structures, and compiler characteristics.
                    917: AC_C_CONST
                    918: AC_TYPE_UID_T
                    919: AC_TYPE_PID_T
                    920: AC_TYPE_SIZE_T
                    921: AC_HEADER_TIME
                    922: AC_STRUCT_TM
                    923: 
                    924: dnl Checks for library functions.
                    925: AC_DIAGNOSE([obsolete],[your code may safely assume C89 semantics that RETSIGTYPE is void.
                    926: Remove this warning and the `AC_CACHE_CHECK' when you adjust the code.])dnl
                    927: AC_CACHE_CHECK([return type of signal handlers],[ac_cv_type_signal],[AC_COMPILE_IFELSE(
                    928: [AC_LANG_PROGRAM([#include <sys/types.h>
                    929: #include <signal.h>
                    930: ],
                    931:         [return *(signal (0, 0)) (0) == 1;])],
                    932:           [ac_cv_type_signal=int],
                    933:           [ac_cv_type_signal=void])])
                    934: AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers
                    935:            (`int' or `void').])
                    936: 
1.37      bertrand  937: dnl Checks for broken siginfo structure
                    938: AC_MSG_CHECKING([for broken siginfo->si_pid])
                    939: AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <unistd.h>
                    940: #include <signal.h>
                    941: int flag;
                    942: void handler(int signal, siginfo_t *siginfo, void *context)
1.41      bertrand  943: { flag = ((*siginfo).si_pid == getpid()) ? 0 : 1; }],
1.37      bertrand  944: [struct sigaction    action;
                    945: action.sa_sigaction = handler;
                    946: action.sa_flags = SA_SIGINFO;
                    947: sigaction(SIGUSR1, &action, NULL);
                    948: raise(SIGUSR1);
                    949: return(flag);])],
                    950: [BROKEN_SIGINFO=-U_BROKEN_SIGINFO; AC_MSG_RESULT(no)],
                    951: [BROKEN_SIGINFO=-D_BROKEN_SIGINFO; AC_MSG_RESULT(yes)])
                    952: 
1.1       bertrand  953: AC_FUNC_STRCOLL
                    954: AC_FUNC_STRFTIME
                    955: AC_FUNC_VPRINTF
                    956: AC_CHECK_FUNCS(ftime getcwd putenv select strcspn strdup \
                    957:        strerror strspn strstr strtod)
                    958: 
1.16      bertrand  959: dnl Check for OpenSSL os/comp
                    960: AC_ARG_WITH(openssl_arch,
                    961: [  --with-openssl-arch=ARCH  specify os and compiler for openssl (ARCH or list)],
                    962: [], [with_openssl_arch=none])
                    963: 
1.32      bertrand  964: if test $(uname) = "OS/2"; then
1.36      bertrand  965:    bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.16      bertrand  966: else
1.32      bertrand  967:    if test "x$with_openssl_arch" = xnone; then
1.70      bertrand  968:        (cd tools/$OPENSSL && ./config no-asm)
1.32      bertrand  969:    elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
                    970:        (cd tools/$OPENSSL && ./Configure)
                    971:        AC_MSG_ERROR([OS/COMP informations are required!])
                    972:    elif test "x$with_openssl_arch" = xlist; then
                    973:        (cd tools/$OPENSSL && ./Configure)
                    974:        AC_MSG_ERROR([Please specify OS and Architecture])
                    975:    else
1.70      bertrand  976:        (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
1.32      bertrand  977:    fi
1.16      bertrand  978: fi
1.1       bertrand  979: 
                    980: if test "$MYGNUPLOT" = "yes"; then
                    981:    if test ! -d "$srcdir"/tools/$GNUPLOT; then
                    982:        gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
                    983:                (cd "$srcdir/tools" && tar -xf -)
                    984:    fi
                    985:    AC_CONFIG_SUBDIRS(tools/$GNUPLOT)
                    986:    GNUPLOT_COMPILATION=$GNUPLOT
                    987: else
                    988:    GNUPLOT_COMPILATION=
                    989: fi
                    990: 
                    991: AC_SUBST(GNUPLOT_COMPILATION)
                    992: 
1.72      bertrand  993: HOST=$host
                    994: AC_SUBST(HOST)
                    995: 
1.1       bertrand  996: case $host_cpu in
                    997: 
                    998:     i?86)
                    999:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   1000:            -Wno-pointer-sign"
                   1001:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   1002:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   1003:    break ;;
                   1004: 
                   1005:    x86_64*)
                   1006:    CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
                   1007:            -Wno-pointer-sign"
                   1008:    FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   1009:    FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
                   1010:    break ;;
                   1011: 
                   1012:     alpha*)
                   1013:    CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
                   1014:            -Wno-pointer-sign"
                   1015:    FFLAGS="$FFLAGS -mieee -Wall"
                   1016:    FCFLAGS="$FCFLAGS -mieee -Wall"
                   1017:    break ;;
                   1018: 
                   1019:     sparc*)
                   1020:    CFLAGS="$CFLAGS -Wall -funsigned-char \
                   1021:            -Wno-pointer-sign"
                   1022:    FFLAGS="$FFLAGS -Wall"
                   1023:    FCFLAGS="$FCFLAGS -Wall"
                   1024:    break ;;
                   1025: 
                   1026: esac
                   1027: 
1.9       bertrand 1028: case $host_os in
                   1029: 
                   1030:    cygwin*)
                   1031:        OS=Cygwin
                   1032:    break ;;
                   1033: 
                   1034:    interix*)
                   1035:        OS=Interix
                   1036:    break ;;
                   1037: 
                   1038:    *)
                   1039:        OS=$(uname)
                   1040:    break ;;
                   1041: 
                   1042: esac
                   1043: 
                   1044: AC_SUBST(OS)
                   1045: 
1.1       bertrand 1046: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
                   1047: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.51      bertrand 1048: MALLOC=
1.1       bertrand 1049: 
1.23      bertrand 1050: case $OS in
1.18      bertrand 1051: 
                   1052:     Darwin)
1.32      bertrand 1053:        EXPORT_DYNAMIC=-Wl,-flat_namespace
1.18      bertrand 1054:        NESTED_FUNCTIONS=-fnested-functions
                   1055:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.38      bertrand 1056:        IPCS_SYSV=-UIPCS_SYSV
1.24      bertrand 1057:        CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.32      bertrand 1058:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.72      bertrand 1059:                --disable-shared --enable-static --enable-threads \
                   1060:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   1061:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   1062:                LDFLAGS=\"$LDFLAGS\""
1.34      bertrand 1063:        C_STANDARD=-std=gnu99
1.18      bertrand 1064:    break ;;
                   1065: 
1.32      bertrand 1066:     Cygwin)
                   1067:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.18      bertrand 1068:        NESTED_FUNCTIONS=
                   1069:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.38      bertrand 1070:        IPCS_SYSV=-UIPCS_SYSV
1.32      bertrand 1071:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.72      bertrand 1072:                --disable-shared --enable-static --enable-threads \
                   1073:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   1074:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   1075:                LDFLAGS=\"$LDFLAGS\""
1.34      bertrand 1076:        C_STANDARD=-std=gnu99
1.18      bertrand 1077:    break ;;
                   1078: 
1.35      bertrand 1079:    Interix)
                   1080:        EXPORT_DYNAMIC=-Wl,--export-all-symbols
                   1081:        NESTED_FUNCTIONS=
                   1082:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.38      bertrand 1083:        IPCS_SYSV=-UIPCS_SYSV
1.35      bertrand 1084:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.72      bertrand 1085:                --disable-shared --enable-static --enable-threads \
                   1086:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   1087:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   1088:                LDFLAGS=\"$LDFLAGS\""
1.35      bertrand 1089:        C_STANDARD=-std=gnu99
                   1090:    break;;
                   1091: 
1.32      bertrand 1092:     AIX)
                   1093:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.19      bertrand 1094:        NESTED_FUNCTIONS=
                   1095:        SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.38      bertrand 1096:        IPCS_SYSV=-UIPCS_SYSV
1.32      bertrand 1097:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.72      bertrand 1098:                --disable-shared --enable-static --enable-threads \
                   1099:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   1100:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   1101:                LDFLAGS=\"$LDFLAGS\""
1.34      bertrand 1102:        C_STANDARD=-std=gnu99
1.19      bertrand 1103:    break ;;
                   1104: 
1.32      bertrand 1105:     OS/2)
1.39      bertrand 1106:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.37      bertrand 1107:            FINAL_ENCODING=CP850; \
                   1108:        fi;
1.32      bertrand 1109:        OS=OS2
                   1110:        NESTED_FUNCTIONS=
                   1111:        EXPORT_DYNAMIC=-Zmap
                   1112:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.38      bertrand 1113:        IPCS_SYSV=-DIPCS_SYSV
1.32      bertrand 1114:        ac_configure_args="$ac_configure_args --without-readline \
1.51      bertrand 1115:                --without-cairo --disable-shared --enable-static \
1.72      bertrand 1116:                --enable-threads \
                   1117:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   1118:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   1119:                LDFLAGS=\"$LDFLAGS\""
1.34      bertrand 1120:        C_STANDARD=
1.32      bertrand 1121:    break;;
                   1122: 
1.37      bertrand 1123:    OpenBSD)
1.39      bertrand 1124:        if test $FORCED_FINAL_ENCODING -eq 0; then \
1.37      bertrand 1125:            FINAL_ENCODING=UTF-8; \
                   1126:        fi;
                   1127:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   1128:        NESTED_FUNCTIONS=
                   1129:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.38      bertrand 1130:        IPCS_SYSV=-DIPCS_SYSV
1.37      bertrand 1131:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.72      bertrand 1132:                --disable-shared --enable-static --enable-threads \
                   1133:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   1134:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   1135:                LDFLAGS=\"$LDFLAGS\""
1.37      bertrand 1136:        C_STANDARD=-std=gnu99
                   1137:    break;;
                   1138: 
1.51      bertrand 1139:     SunOS)
                   1140:        EXPORT_DYNAMIC=-Wl,--export-dynamic
                   1141:        NESTED_FUNCTIONS=
                   1142:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
                   1143: 
                   1144:        if test $IPCS_SYSV = no; then
                   1145:            IPCS_SYSV=-UIPCS_SYSV
                   1146:        else
                   1147:            IPCS_SYSV=-DIPCS_SYSV
                   1148:        fi
                   1149: 
                   1150:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.72      bertrand 1151:                --disable-shared --enable-static --enable-threads \
                   1152:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   1153:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   1154:                LDFLAGS=\"$LDFLAGS\""
1.51      bertrand 1155:        C_STANDARD=-std=gnu99
                   1156:        MALLOC=-lumem
                   1157:    break ;;
                   1158: 
1.18      bertrand 1159:     *)
1.32      bertrand 1160:        EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18      bertrand 1161:        NESTED_FUNCTIONS=
                   1162:        SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.38      bertrand 1163: 
                   1164:        if test $IPCS_SYSV = no; then
                   1165:            IPCS_SYSV=-UIPCS_SYSV
                   1166:        else
                   1167:            IPCS_SYSV=-DIPCS_SYSV
                   1168:        fi
                   1169: 
1.32      bertrand 1170:        ac_configure_args="$ac_configure_args --with-readline=builtin \
1.72      bertrand 1171:                --disable-shared --enable-static --enable-threads \
                   1172:                CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
                   1173:                FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
                   1174:                LDFLAGS=\"$LDFLAGS\""
1.34      bertrand 1175:        C_STANDARD=-std=gnu99
1.18      bertrand 1176:    break ;;
                   1177: 
                   1178: esac
                   1179: 
1.34      bertrand 1180: AC_SUBST(C_STANDARD)
1.18      bertrand 1181: AC_SUBST(EXPORT_DYNAMIC)
                   1182: AC_SUBST(NESTED_FUNCTIONS)
                   1183: AC_SUBST(SEMAPHORES_NOMMES)
1.38      bertrand 1184: AC_SUBST(IPCS_SYSV)
1.34      bertrand 1185: AC_SUBST(SEMUN)
1.35      bertrand 1186: AC_SUBST(IPV6)
1.37      bertrand 1187: AC_SUBST(BROKEN_SIGINFO)
1.42      bertrand 1188: AC_SUBST(BSH_PATH)
1.1       bertrand 1189: 
                   1190: AC_SUBST(NCURSES)
                   1191: AC_SUBST(READLINE)
                   1192: AC_SUBST(UNITS)
                   1193: AC_SUBST(GSL)
                   1194: AC_SUBST(GPP)
                   1195: AC_SUBST(GNUPLOT)
                   1196: AC_SUBST(FILE)
                   1197: AC_SUBST(ICONV)
1.10      bertrand 1198: AC_SUBST(SQLITE)
                   1199: AC_SUBST(OPENSSL)
1.1       bertrand 1200: AC_SUBST(FINAL_ENCODING)
                   1201: AC_SUBST(DATE)
                   1202: AC_SUBST(DATE_FR)
1.31      bertrand 1203: AC_SUBST(EXT_SQL)
1.51      bertrand 1204: AC_SUBST(MALLOC)
1.57      bertrand 1205: AC_SUBST(GMP)
                   1206: AC_SUBST(MPFR)
1.58      bertrand 1207: AC_SUBST(NTL)
                   1208: AC_SUBST(COCOA)
                   1209: AC_SUBST(PARI)
                   1210: AC_SUBST(GIAC)
1.1       bertrand 1211: 
                   1212: AC_SUBST(CFLAGS)
                   1213: AC_SUBST(CXXFLAGS)
                   1214: AC_SUBST(FFLAGS)
                   1215: AC_SUBST(FCFLAGS)
1.72      bertrand 1216: AC_SUBST(LDFLAGS)
                   1217: 
                   1218: AC_CONFIG_SUBDIRS(tools/$NCURSES)
                   1219: AC_CONFIG_SUBDIRS(tools/$READLINE)
                   1220: AC_CONFIG_SUBDIRS(tools/$GSL)
                   1221: AC_CONFIG_SUBDIRS(tools/$GPP)
                   1222: AC_CONFIG_SUBDIRS(tools/$FILE)
                   1223: AC_CONFIG_SUBDIRS(tools/$ICONV)
                   1224: AC_CONFIG_SUBDIRS(tools/$SQLITE)
                   1225: AC_CONFIG_SUBDIRS(tools/$UNITS)
1.1       bertrand 1226: 
                   1227: AC_CONFIG_FILES(Makefile)
                   1228: AC_CONFIG_FILES(COPYING)
                   1229: AC_CONFIG_FILES(tools/Makefile)
                   1230: AC_CONFIG_FILES(src/Makefile)
                   1231: AC_CONFIG_FILES(man/Makefile)
                   1232: AC_CONFIG_FILES(man/fr_FR/Makefile)
                   1233: AC_CONFIG_FILES(doc/Makefile)
                   1234: AC_CONFIG_FILES(scripts/Makefile)
                   1235: AC_CONFIG_FILES(scripts/mkrplso)
                   1236: AC_CONFIG_FILES(scripts/rplcc)
                   1237: AC_CONFIG_FILES(scripts/rpllink)
                   1238: AC_CONFIG_FILES(rpltags/Makefile)
                   1239: AC_CONFIG_FILES(rpliconv/Makefile)
1.10      bertrand 1240: AC_CONFIG_FILES(rplsums/Makefile)
1.57      bertrand 1241: AC_CONFIG_FILES(rplcas/Makefile)
1.41      bertrand 1242: AC_CONFIG_FILES(rplawk/Makefile)
1.1       bertrand 1243: AC_CONFIG_FILES(lapack/lapack/Makefile)
                   1244: AC_CONFIG_FILES(lapack/blas/Makefile)
                   1245: 
                   1246: AC_CONFIG_FILES(man/rpl.1)
                   1247: AC_CONFIG_FILES(man/rplcc.1)
                   1248: AC_CONFIG_FILES(man/rpllink.1)
                   1249: AC_CONFIG_FILES(man/rpltags.1)
                   1250: AC_CONFIG_FILES(man/mkrplso.1)
                   1251: AC_CONFIG_FILES(man/fr_FR/rpl.1)
                   1252: AC_CONFIG_FILES(man/fr_FR/rplcc.1)
                   1253: AC_CONFIG_FILES(man/fr_FR/rpllink.1)
                   1254: AC_CONFIG_FILES(man/fr_FR/rpltags.1)
                   1255: AC_CONFIG_FILES(man/fr_FR/mkrplso.1)
                   1256: 
                   1257: AC_OUTPUT

CVSweb interface <joel.bertrand@systella.fr>