Annotation of rpl/configure.ac, revision 1.201
1.1 bertrand 1: dnl Process this file with autoconf to produce a configure script.
1.200 bertrand 2: AC_INIT([rpl],[4.1.28])
1.1 bertrand 3: AC_CANONICAL_TARGET
4: AC_CANONICAL_TARGET
1.8 bertrand 5: AM_INIT_AUTOMAKE(silent-rules)
1.9 bertrand 6: AM_SILENT_RULES([yes])
1.1 bertrand 7: AC_SUBST(target_cpu)
8: AC_CONFIG_HEADERS([rplconfig.h])
9:
10: dnl Libraries
1.127 bertrand 11: NCURSES=ncurses-6.0
1.172 bertrand 12: READLINE=readline-7.0
1.193 bertrand 13: UNITS=units-2.14
1.188 bertrand 14: GSL=gsl-2.4
1.1 bertrand 15: GPP=gpp-3.0
1.190 bertrand 16: GNUPLOT=gnuplot-5.0.6
1.192 bertrand 17: FILE=file-5.31
1.193 bertrand 18: ICONV=libiconv-1.15
1.189 bertrand 19: SQLITE=sqlite-3.19.3
1.186 bertrand 20: OPENSSL=openssl-1.1.0f
21: OPENMOTIF=openmotif-2.3.7
1.199 bertrand 22: LIBXPM=libXpm-3.5.12
1.31 bertrand 23: SIGSEGV=libsigsegv-2.11
1.113 bertrand 24: ZLIB=zlib-1.2.8
1.1 bertrand 25:
1.193 bertrand 26: GMP=gmp-6.1.2
1.168 bertrand 27: MPFR=mpfr-3.1.5
1.137 bertrand 28: MPFI=mpfi-1.5.1
1.165 bertrand 29: NTL=ntl-9.11.0
1.166 bertrand 30: COCOA=CoCoALib-0.99542
1.163 bertrand 31: PARI=pari-2.7.6
1.137 bertrand 32: GIAC=giac-1.2.2
1.1 bertrand 33:
1.33 bertrand 34: dnl 32 bits ABI
35: AC_ARG_WITH(gcc_version,
36: [ --with-gcc-version force gcc version],[
37: CC=gcc-$with_gcc_version
38: CXX=g++-$with_gcc_version
39: CF=gfortran-$with_gcc_version
40: F77=gfortran-$with_gcc_version
1.43 bertrand 41: AC_SUBST(CC)
42: AC_SUBST(CXX)
43: AC_SUBST(CF)
44: AC_SUBST(F77)
1.33 bertrand 45: ],[])
46:
1.37 bertrand 47: dnl Checks for Bash
1.100 bertrand 48: BASH_PATH=$(which bash)
1.37 bertrand 49: BASH=$(which bash | sed 's/\//\\\//g')
50:
51: if test x$BASH = x; then
52: AC_MSG_ERROR([Cannot find bash! You have to install it.])
53: fi
54:
55: AC_SUBST(BASH)
1.100 bertrand 56: AC_SUBST(BASH_PATH)
1.37 bertrand 57:
1.1 bertrand 58: dnl Checks for C compiler
59: AC_PROG_CC(gcc)
60:
61: EXT_SQL=
62:
63: AM_PROG_CC_C_O
64:
65: if test "$GCC" != yes; then
66: AC_MSG_ERROR([Cannot find gcc! You have to install it.])
67: fi
68:
69: dnl Checks for C++ compiler
70: AC_PROG_CXX(g++)
71:
1.2 bertrand 72: if test "$GXX" != yes; then
1.1 bertrand 73: AC_MSG_ERROR([Cannot find g++! You have to install it.])
74: fi
75:
76: dnl Checks for Fortran 77 compiler
77: AC_PROG_F77(gfortran)
78:
1.3 bertrand 79: dnl Check for Fortran 9* compiler
80: AC_PROG_FC(gfortran)
81:
1.92 bertrand 82: if test x"$F77" = x; then
1.1 bertrand 83: AC_MSG_ERROR([Cannot find gfortran! You have to install it.])
84: fi
85:
1.92 bertrand 86: if test x"$FC" = x; then
1.1 bertrand 87: AC_MSG_ERROR([Cannot find gfortran! You have to install it.])
88: fi
89:
1.33 bertrand 90: OPTIMISATION_C=-O3
91: OPTIMISATION_CXX=-O3
92: OPTIMISATION_F=-O3
1.1 bertrand 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 32 bits ABI
111: AC_ARG_WITH(32bits-abi,
112: [ --with-32bits-abi force 32bits ABI (multilib)],[
1.23 bertrand 113: if test "$with_32bits_abi" = "no"; then
1.1 bertrand 114: ABI=
115: else
116: ABI=-m32
117: fi],[
118: ABI=
119: ]
120: )
121:
122: if test x$ABI = x; then
123: AC_ARG_WITH(64bits-abi,
124: [ --with-64bits-abi force 64bits ABI (multilib)],[
1.23 bertrand 125: if test "$with_64bits_abi" = "no"; then
1.1 bertrand 126: ABI=
127: else
128: ABI=-m64
129: fi],[
130: ABI=
131: ]
132: )
133: fi
134:
135: LDFLAGS="$LDFLAGS $ABI"
136:
1.23 bertrand 137: AC_ARG_WITH(sysroot,
138: [ --with-sysroot sysroot for cross compilation],[
139: if test "$with_sysroot" = "no" -o "$with_rpltools" = "yes"; then
140: AC_MSG_ERROR([You have to specify sysroot path !])
141: else
1.24 bertrand 142: SYSROOT="-I$with_sysroot/usr/include"
1.25 bertrand 143: SYSROOT2=$with_sysroot
1.23 bertrand 144: fi],[
145: SYSROOT=
1.25 bertrand 146: SYSROOT2=
1.23 bertrand 147: ]
148: )
149:
1.6 bertrand 150: AC_ARG_ENABLE(recursive,
151: [ --enable-recursive recursive configuration (default=yes)],[
152: if test "$enableval" = "yes"; then
153: RECURSIVE=yes
154: else
155: RECURSIVE=no
156: fi],[
157: RECURSIVE=yes
158: ]
159: )
160:
1.141 bertrand 161: AC_ARG_ENABLE(native,
162: [ --enable-native enable gcc native compiler option (default=no)],[
163: if test "$enableval" = "yes"; then
164: CFLAGS="$CFLAGS -mtune=native -march=native"
165: FFLAGS="$FFLAGS -mtune=native -march=native"
166: CXXFLAGS="$CXXFLAGS -mtune=native -march=native"
167: FCFLAGS="$FCFLAGS -mtune=native -march=native"
168: else
169: NATIVE=
170: fi],[
171: NATIVE=
172: ]
173: )
174:
1.3 bertrand 175: AC_ARG_WITH(rpltools,
176: [ --with-rpltools specify rpltools path used for cross compilation],[
1.23 bertrand 177: if test "$with_rpltools" = "no" -o "$with_rpltools" = "yes"; then
1.3 bertrand 178: AC_MSG_ERROR([You have to specify rpltools path !])
179: else
180: RPLTOOLS=$with_rpltools
181: fi],[
182: RPLTOOLS=\$\(top_builddir\)
183: ]
184: )
185:
186: AC_SUBST(RPLTOOLS)
187:
1.1 bertrand 188: dnl RPL/CAS support
1.3 bertrand 189: AC_ARG_ENABLE(rplcas,
190: [ --enable-rplcas compile rplcas (default=no)],[
191: if test "$enableval" = "no"; then
1.1 bertrand 192: RPLCAS=-URPLCAS
193: LIBRPLCAS=
1.95 bertrand 194: INCRPLCAS=
1.1 bertrand 195: else
196: RPLCAS=-DRPLCAS
197: LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
1.95 bertrand 198: INCRPLCAS="-I\$(top_builddir)/rplcas/include/giac \
199: -I\$(top_builddir)/rplcas/include"
1.1 bertrand 200: fi],[
201: RPLCAS=-URPLCAS
202: LIBRPLCAS=
1.95 bertrand 203: INCRPLCAS=
1.1 bertrand 204: ]
205: )
206:
207: AC_SUBST(ABI)
208: AC_SUBST(RPLCAS)
209: AC_SUBST(LIBRPLCAS)
1.95 bertrand 210: AC_SUBST(INCRPLCAS)
1.1 bertrand 211:
212: dnl Options
213: AC_ARG_ENABLE(optimization,
1.187 bertrand 214: [ --enable-optimization set compiler flags [[default=environment variables -O2, enable=environment variables -O3]]], [
1.1 bertrand 215: if test "$enableval" = "no"; then
216: CFLAGS=$ABI
217: FFLAGS=$ABI
218: CXXFLAGS=$ABI
219: FCFLAGS=$ABI
220: else
1.141 bertrand 221: CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
222: FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
223: CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
224: FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
1.1 bertrand 225: fi],[
1.187 bertrand 226: CFLAGS="$CFLAGS $ABI -O2"
227: FFLAGS="$FFLAGS $ABI -O2"
228: CXXFLAGS="$CXXFLAGS $ABI -O2"
229: FCFLAGS="$FCFLAGS $ABI -O2"
1.1 bertrand 230: ]
231: )
232:
1.93 bertrand 233: CFLAGS="$CFLAGS -fno-strict-overflow"
234:
1.6 bertrand 235: AC_MSG_CHECKING([for usable shared memory])
236: AC_COMPILE_IFELSE(
237: [AC_LANG_PROGRAM([#include <sys/shm.h>
238: ],
239: [ return(0); ])],
240: [SHARED_MEMORY=-DSHARED_MEMORY; AC_MSG_RESULT(yes)],
241: [SHARED_MEMORY=-USHARED_MEMORY; AC_MSG_RESULT(no)]
242: )
243: AC_SUBST(SHARED_MEMORY)
244:
1.116 bertrand 245: AC_C_INLINE
246:
247: if test "$ac_cv_c_inline" != no ; then
248: AC_DEFINE(HAVE_INLINE,1,[inline keywork or macro available])
249: AC_SUBST(HAVE_INLINE)
250: fi
251:
1.2 bertrand 252: AC_ARG_ENABLE(sysv-ipcs,
1.1 bertrand 253: [ --enable-sysv-ipcs use SystemV IPC functions [[default=guessed]]], [
254: if test "$enableval" = "no"; then
1.3 bertrand 255: IPCS_SYSV=-UIPCS_SYSV
256: POSIX_IPCS=no
1.1 bertrand 257: else
1.3 bertrand 258: IPCS_SYSV=-DIPCS_SYSV
259: POSIX_IPCS=yes
1.1 bertrand 260: fi],
1.91 bertrand 261: REG=$LIBS
1.3 bertrand 262: POSIX_IPCS=guessed
1.91 bertrand 263: LIBS="-lrt -lpthread"
1.1 bertrand 264: [AC_MSG_CHECKING([for POSIX semaphores and shared objects])
1.23 bertrand 265: AC_LINK_IFELSE(
1.1 bertrand 266: [AC_LANG_PROGRAM([#include <sys/mman.h>
267: #include <sys/stat.h>
268: #include <fcntl.h>
269: ],
270: [ int fd; char *sem = "/test";
271: fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
272: close(fd);
273: shm_unlink(sem);
274: fd = sem_open(sem, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
275: close(fd);
276: sem_unlink(sem);
277: return(0);
278: ])],
279: [IPCS_SYSV=-UIPCS_SYSV; AC_MSG_RESULT(yes)],
280: [IPCS_SYSV=-DIPCS_SYSV; AC_MSG_RESULT(no)]
281: )]
1.91 bertrand 282: LIBS=$REG
1.1 bertrand 283: )
284:
1.3 bertrand 285: if test "$IPCS_SYSV" = "-UIPCS_SYSV" -a "$POSIX_IPCS" = "guessed"; then
1.91 bertrand 286: REG=$LIBS
287: LIBS=-pthread
1.1 bertrand 288: AC_MSG_CHECKING([for POSIX anonymous semaphores])
1.23 bertrand 289: AC_LINK_IFELSE(
1.1 bertrand 290: [AC_LANG_PROGRAM([#include <semaphore.h>
291: ],
292: [ sem_t sem;
293: if (sem_init(&sem, 1, 0) != 0) return(1);
294: sem_destroy(&sem);
295: return(0);
296: ])],
297: [SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; AC_MSG_RESULT(yes)],
298: [SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; AC_MSG_RESULT(no)]
299: )
1.91 bertrand 300: LDFLAGS=$LIBS
1.1 bertrand 301: REG=""
302: else
303: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
304: fi
305:
306: AC_ARG_ENABLE(full-static,
307: [ --enable-full-static build static RPL/2 engine [[default=shared]]], [
308: if test "$enableval" = "no"; then
309: STATIC=no
310: else
311: STATIC=yes
312: fi],
313: STATIC=no)
314:
315: AC_ARG_ENABLE(final-encoding,
316: [ --enable-final-encoding force final encoding [[default=guessed]]], [
317: if test "$enableval" = "no"; then
318: FINAL_ENCODING="\$(shell locale charmap | \
319: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
320: FORCED_FINAL_ENCODING=0
321: else
322: FINAL_ENCODING="$enable_final_encoding"
323: FORCED_FINAL_ENCODING=1
324: fi], [
325: FORCED_FINAL_ENCODING=0
326: FINAL_ENCODING="\$(shell locale charmap | \
327: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"])
328:
329: AC_ARG_ENABLE(tex,
330: [ --enable-tex provide the TeX support [[default=guessed]]], [
331: if test "$enableval" = "no"; then
332: TEX_SUPPORT=no
333: else
334: TEX_SUPPORT=yes
335: fi],
336: TEX_SUPPORT=guessed)
337:
338: AC_ARG_ENABLE(vim,
339: [ --enable-vim provide the vim support [[default=guessed]]], [
340: if test "$enableval" = "no"; then
341: VIM_SUPPORT=no
1.16 bertrand 342: DEBVIM=
1.1 bertrand 343: else
344: VIM_SUPPORT=yes
1.17 bertrand 345: DEBVIM=", vim"
1.1 bertrand 346: fi],
347: VIM_SUPPORT=guessed)
348:
349: AC_ARG_ENABLE(embedded-gnuplot,
350: [ --enable-embedded-gnuplot build gnuplot provided by this package [[default=yes]]], [
351: if test "$enableval" = "no"; then
352: MYGNUPLOT=no
353: else
354: MYGNUPLOT=yes
355: fi], [
356: MYGNUPLOT=yes])
357:
358: AC_ARG_ENABLE(gnuplot,
359: [ --enable-gnuplot provide the GnuPlot support [[default=guessed]]],
360: [
361: if test "$enableval" = "no"; then
362: GNUPLOT_SUPPORT=no
363: MYGNUPLOT=no
364: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
365: else
366: GNUPLOT_SUPPORT=yes
367: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
368: fi], [
369: if test "$MYGNUPLOT" = "yes"; then
370: GNUPLOT_SUPPORT=yes
371: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
372: else
373: GNUPLOT_SUPPORT=guessed
374: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
375: fi])
376:
377: libX=""
378: LIBMOTIF=""
379: INCMOTIF=""
380: BUILD_OPENMOTIF=""
1.197 bertrand 381: MODULE_MOTIF=""
1.1 bertrand 382:
383: AC_ARG_ENABLE(motif,
384: [ --enable-motif provide the Motif support [[default=guessed]]], [
385: if test "$enableval" = "no"; then
386: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
387: else
388: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
389: fi],
1.92 bertrand 390: if test "$have_x" = "yes"; then
1.1 bertrand 391: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
392: else
393: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
394: fi)
395:
396: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
1.201 ! bertrand 397: libX="$X_LIBS -lXt -lX11 -lXext -lXinerama"
1.198 bertrand 398: LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/install/lib/libXm.a \
1.1 bertrand 399: \$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a"
400: INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \
401: -I\$(top_builddir)/tools/$OPENMOTIF/lib \
1.8 bertrand 402: -I\$(top_srcdir)/tools/$LIBXPM/include"
1.1 bertrand 403: BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF"
1.6 bertrand 404:
405: if test $RECURSIVE = yes; then
406: AC_CONFIG_SUBDIRS(tools/$LIBXPM)
407: AC_CONFIG_SUBDIRS(tools/$OPENMOTIF)
408: fi;
1.197 bertrand 409:
410: MODULE_MOTIF="modules/motif"
1.1 bertrand 411: fi
412:
413: AC_ARG_ENABLE(experimental,
414: [ --enable-experimental enable experimental code [[default=no]]], [
415: if test "$enableval" = "no"; then
416: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
417: else
418: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
419: fi],
420: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE")
421:
422: AC_ARG_ENABLE(debug,
423: [ --enable-debug enable debug code [[default=no]]], [
424: if test "$enableval" = "no"; then
425: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
426: else
427: DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
428: fi], [DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"])
429:
430: AC_ARG_ENABLE(profile,
431: [ --enable-profile enable profile code [[default=no]]], [
432: if test "$enableval" = "no"; then
433: PROFILAGE=""
434: else
435: PROFILAGE="-pg"
436: fi], [PROFILAGE=""])
437:
438: AC_SUBST(PROFILAGE)
439:
1.48 bertrand 440: dnl Checks for uuencode
441: AC_CHECK_PROG(UUENCODE, uuencode, yes, no)
442: if test "$UUENCODE" = no; then
443: AC_MSG_ERROR([Can not find uuencode !])
444: fi
445:
1.1 bertrand 446: if test ! -d tools; then
447: mkdir tools
448: fi
449: if test ! -d "$srcdir"/tools/$NCURSES; then
450: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
451: (cd "$srcdir/tools" && tar -xf -)
452: (cd "$srcdir/tools/"$NCURSES && \
1.191 bertrand 453: for i in $(ls ../$NCURSES*.sh.gz);
454: do echo Uncompressing script $i; TMP=$i; gunzip -c $i > ${TMP%.*};
1.13 bertrand 455: done;
1.191 bertrand 456: for i in $(ls ../$NCURSES*.sh);
1.24 bertrand 457: do echo Applying script $i && chmod 775 $i && ./$i;
1.13 bertrand 458: done;
1.191 bertrand 459: for i in $(ls ../$NCURSES*.patch.gz);
1.98 bertrand 460: do echo Applying patch $i && \
461: gunzip -c $i | patch -p1;
1.1 bertrand 462: done);
463: fi
464: if test ! -d "$srcdir"/tools/$READLINE; then
465: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
466: (cd "$srcdir/tools" && tar -xf -)
467: fi
468: if test ! -d "$srcdir"/tools/$UNITS; then
469: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
470: (cd "$srcdir/tools" && tar -xf -)
471: fi
472: if test ! -d "$srcdir"/tools/$GSL; then
473: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
474: (cd "$srcdir/tools" && tar -xf -)
475: if test $(uname) = "OS/2"; then
476: (cd "$srcdir"/tools/$GSL; \
477: TMP=$(mktemp tmp.XXXXXXXXXX); \
478: sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
479: \mv -f $TMP ltmain.sh)
480: fi
481: fi
482: if test ! -d "$srcdir"/tools/$GPP; then
483: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
484: (cd "$srcdir/tools" && tar -xf -)
485: fi
486: if test ! -d "$srcdir"/tools/$FILE; then
487: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
488: (cd "$srcdir/tools" && tar -xf - )
1.23 bertrand 489: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1 && \
490: autoreconf)
1.1 bertrand 491: fi
492: if test ! -d "$srcdir"/tools/$SQLITE; then
493: gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
494: (cd "$srcdir/tools" && tar -xf -)
495: fi
496: if test ! -d "$srcdir"/tools/$SIGSEGV; then
497: gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \
498: (cd "$srcdir/tools" && tar -xf -)
1.32 bertrand 499: (cd "$srcdir/tools/$SIGSEGV" && ./autogen.sh --skip-gnulib)
1.1 bertrand 500: fi
1.36 bertrand 501: if test ! -d "$srcdir"/tools/$ICONV; then
502: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
503: (cd "$srcdir/tools" && tar -xf -)
1.38 bertrand 504: (cd "$srcdir"/tools/$ICONV && ln -sf ../$SIGSEGV/gnulib gnulib)
1.36 bertrand 505: fi
1.1 bertrand 506: if test ! -d "$srcdir"/tools/$OPENMOTIF; then
507: gunzip -c "$srcdir"/tools/$OPENMOTIF.tar.gz | \
508: (cd "$srcdir/tools" && tar -xf -)
509: fi
510: if test ! -d "$srcdir"/tools/$LIBXPM; then
511: gunzip -c "$srcdir"/tools/$LIBXPM.tar.gz | \
512: (cd "$srcdir/tools" && tar -xf -)
513: fi
514: if test ! -d tools/$OPENSSL; then
515: gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
516: (cd tools && tar -xf -)
517: fi
1.62 bertrand 518: if test ! -d tools/$ZLIB; then
519: gunzip -c "$srcdir"/tools/$ZLIB.tar.gz | \
520: (cd tools && tar -xf - && cd $ZLIB && ./configure --static)
521: fi
1.1 bertrand 522: if test ! -d rplcas; then
523: mkdir rplcas
524: fi
525: if test ! -d "$srcdir"/rplcas/$GMP; then
526: gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
527: (cd "$srcdir/rplcas" && tar -xf -)
528: fi
529: if test ! -d "$srcdir"/rplcas/$MPFR; then
530: gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
531: (cd "$srcdir/rplcas" && tar -xf -)
532: fi
1.137 bertrand 533: if test ! -d "$srcdir"/rplcas/$MPFI; then
534: gunzip -c "$srcdir"/rplcas/$MPFI.tar.gz | \
535: (cd "$srcdir/rplcas" && tar -xf -)
536: fi
1.1 bertrand 537: if test ! -d rplcas/$NTL; then
538: gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
539: (cd rplcas && tar -xf -)
540: fi
541: if test ! -d rplcas/$COCOA; then
542: gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
543: (cd rplcas && tar -xf -)
544: fi
545: if test ! -d rplcas/$PARI; then
546: gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
547: (cd rplcas && tar -xf -)
548: fi
549: if test ! -d "$srcdir"/rplcas/$GIAC; then
550: gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
551: (cd "$srcdir/rplcas" && tar -xf -)
552: fi
553:
554: touch tools/openmotif.lib
555:
556: dnl Default installation directory
557: AC_PREFIX_DEFAULT(/usr/local)
558:
559: dnl Set final install path
560: AC_ARG_ENABLE(final-run-path,
561: [ --enable-final-run-path=PATH enable another final run path than PREFIX], [
562: if test "x$enable_final_run_path" = "x"; then
563: AC_MSG_NOTICE("No path with --enable-final-run-path.")
564: AC_MSG_ERROR("You should specify final path !")
565: else
566: RUNPATH="$enable_final_run_path"
567: fi
568: ],
569: RUNPATH="\${prefix}"
570: )
571: AC_SUBST(RUNPATH)
572:
573: dnl Checks for programs
574: AC_PROG_INSTALL
575: AC_PROG_LN_S
576: AC_PROG_MAKE_SET
577: AC_PROG_RANLIB
578:
579: dnl Checks for nawk
580: AC_CHECK_PROG(AWK, nawk, yes, no)
581: if test "$AWK" = no; then
582: AC_CHECK_PROG(AWK, gawk, yes, no)
583: if test "$AWK" = no; then
584: AC_MSG_ERROR([Can not find nawk !])
585: fi
586: fi
587:
588: dnl Checks for sed
589: AC_CHECK_PROG(SED, sed, yes, no)
590: if test "$SED" = no; then
591: AC_MSG_ERROR([Can not find sed !])
592: fi
593:
1.48 bertrand 594: dnl Checks for yacc
595: AC_CHECK_PROG(YACC, yacc, yes, no)
596: if test "$YACC" = no; then
597: AC_MSG_ERROR([Can not find yacc !])
598: fi
599:
1.1 bertrand 600: dnl Checks for TeX, LaTeX, dvips, gs, gv, vim and gnuplot
601: if test "$TEX_SUPPORT" = guessed; then
602: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
603:
604: AC_CHECK_PROG(TEX, tex, yes, no)
605: if test "$TEX" = no; then
606: AC_MSG_WARN([Cannot find TeX! You may install it.
607: Download at http://tex.loria.fr/
608: ])
609: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
610: fi
611:
612: AC_CHECK_PROG(LATEX, latex, yes, no)
613: if test "$LATEX" = no; then
614: AC_MSG_WARN([Cannot find LaTeX! You may install it.
615: Download at http://tex.loria.fr/
616: ])
617: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
618: fi
619:
620: AC_CHECK_PROG(DVIPS, dvips, yes, no)
621: if test "$DVIPS" = no; then
622: AC_MSG_WARN([Cannot find dvips! You may install it.
623: Download at http://tex.loria.fr/
624: ])
625: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
626: fi
627:
628: AC_CHECK_PROG(GS, gs, yes, no)
629: if test "$GS" = no; then
630: AC_MSG_WARN([Cannot find gs! You may install it.
631: Download at http://ftp.lip6.fr/
632: ])
633: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
634: fi
635:
636: AC_CHECK_PROG(GV, gv, yes, no)
637: if test "$GV" = no; then
638: AC_MSG_WARN([Cannot find gv! You may install it.
639: Download at http://ftp.lip6.fr/
640: ])
641: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
642: fi
643: else
644: if test "$TEX_SUPPORT" = no; then
645: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
646: else
647: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
648: fi
649: fi
650:
651: if test "$GNUPLOT_SUPPORT" = guessed; then
652: AC_CHECK_PROG(GNUPLOT_P, gnuplot, yes, no)
653: if test "$GNUPLOT_P" = no; then
654: AC_MSG_WARN([Cannot find gnuplot! You may install it.
655: Download at http://www.gnuplot.vt.edu/
656: ])
657: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
658: else
659: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
660: fi
661: else
662: if test "$GNUPLOT_SUPPORT" = no; then
663: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
664: else
665: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
666: fi
667: fi
668:
669: if test "$VIM_SUPPORT" = guessed; then
670: AC_CHECK_PROG(VIM, vim, yes, no)
671: if test "$VIM" = no; then
672: AC_MSG_WARN([Cannot find vim! You may install it.
673: Download at http://www.vim.org/
674: ])
675: VIM_SUPPORT="-UVIM_SUPPORT"
1.16 bertrand 676: DEBVIM=
1.1 bertrand 677: else
678: VIM_SUPPORT="-DVIM_SUPPORT"
1.18 bertrand 679: DEBVIM=", vim"
1.1 bertrand 680: fi
681: else
682: if test "$VIM_SUPPORT" = no; then
683: VIM_SUPPORT="-UVIM_SUPPORT"
1.16 bertrand 684: DEBVIM=
1.1 bertrand 685: else
686: VIM_SUPPORT="-DVIM_SUPPORT"
1.18 bertrand 687: DEBVIM=", vim"
1.1 bertrand 688: fi
689: fi
690:
691: dnl Substitutions
692: AC_SUBST(GNUPLOT_SUPPORT)
693: AC_SUBST(FORCE_GNUPLOT_PATH)
694: AC_SUBST(POSTSCRIPT_SUPPORT)
695: AC_SUBST(VIM_SUPPORT)
696: AC_SUBST(EXPERIMENTAL_CODE)
697: AC_SUBST(DEBUG)
698: AC_SUBST(MOTIF_SUPPORT)
699: AC_SUBST(libX)
700: AC_SUBST(includeX)
701:
702: dnl Date
1.124 bertrand 703: DATE=$(env LC_ALL=C date +"%A, %e %B %Y %T %z")
704: DATE_FR=$(env LC_ALL=fr_FR date +"%A, %e %B %Y %T %z")
1.1 bertrand 705: AC_SUBST(DATE)
1.124 bertrand 706: AC_SUBST(DATE_FR)
1.1 bertrand 707:
708: dnl Checks for libraries
709: AC_CHECK_LIB(m, main,, AC_MSG_ERROR([Can not find libm !]))
1.2 bertrand 710: AC_CHECK_LIB(c, pthread_mutex_init,,
711: [AC_CHECK_LIB(pthread, main,,
712: AC_MSG_ERROR([Can not find libpthread !]))])
1.201 ! bertrand 713: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
! 714: AC_CHECK_LIB(Xinerama, XineramaIsActive,,
! 715: AC_MSG_ERROR([Can not find libXinerama !]))
! 716: fi
1.1 bertrand 717:
718: dnl Check for union semun
719: AC_CHECK_TYPE([union semun], SEMUN=-DUNION_SEMUN, SEMUN=-UUNION_SEMUN, [[
720: #include <sys/sem.h>
721: ]])
722:
723: dnl Check for IPv6 support
724: AC_CHECK_TYPE([struct sockaddr_in6], IPV6=-DIPV6, IPV6=-UIPV6, [[
725: #include <sys/types.h>
726: #include <netinet/in.h>
727: ]])
728:
729: dnl Do we need to use -ldl?
730: if test "$CYGWIN" != yes; then
731: AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl",
732: AC_MSG_WARN([libdl doesn't seem to be needed on this system.]))
733: fi
734:
735: dnl Do we need to use -lrt?
736: AC_CHECK_LIB(rt, nanosleep, LIBS="$LIBS -lrt",
737: AC_MSG_WARN([librt doesn't seem to be needed on this system.]))
738:
1.79 bertrand 739: AC_CHECK_LIB(rt, shm_open, LIBS="$LIBS -lrt",
740: AC_MSG_WARN([librt doesn't seem to be needed on this system.]))
741:
742: AC_CHECK_LIB(pthread, pthread_create, LIBS="$LIBS -lpthread",
743: AC_MSG_WARN([libpthread doesn't seem to be needed on this system.]))
744:
1.1 bertrand 745: dnl Do we need to use -lsocket?
746: AC_CHECK_LIB(socket, bind, LIBS="$LIBS -lsocket",
747: AC_MSG_WARN([libsocket doesn't seem to be needed on this system.]))
748:
749: dnl Check for SQL libraries
750: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
751: AC_ARG_WITH(mysql,
752: [ --with-mysql=PATH specify directory for installed mysql],
753: [], [with_mysql=check])
754:
1.162 bertrand 755: if test "x$with_mysql" = xcheck -o "x$with_mysql" = xyes; then
1.1 bertrand 756: libMySQLinc="-I/usr/include"
757: libMySQLlib="/usr/lib"
758:
759: AC_MSG_CHECKING(for libmysql includes in /usr/include)
760: saved_CFLAGS="$CFLAGS"
761: CFLAGS="$CFLAGS -L/$libMySQLinc"
762: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
763: libMySQLinc=$libMySQLinc/mysql],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
764: CFLAGS=$saved_CFLAGS
765:
766: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
767: AC_MSG_CHECKING(for libmysql includes in /usr/include/mysql)
768: saved_CFLAGS="$CFLAGS"
769: CFLAGS="$CFLAGS $libMySQLinc/mysql"
770: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
771: libMySQLinc=$libMySQLinc],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
772: CFLAGS=$saved_CFLAGS
773: libMySQLinc=$libMySQLinc/mysql
774: fi
775:
776: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
777: AC_MSG_CHECKING(for libmysql includes in /usr/local/include)
778: saved_CFLAGS="$CFLAGS"
779: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
780: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
781: libMySQLinc=$libMySQLinc/mysql],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
782: CFLAGS=$saved_CFLAGS
783: libMySQLinc=$libMySQLinc/../local/include
784: libMySQLlib=$libMySQLlib/../local/lib
785: fi
786:
787: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
788: AC_MSG_CHECKING(for libmysql includes in /usr/local/include/mysql)
789: saved_CFLAGS="$CFLAGS"
790: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
791: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
792: libMySQLinc=$libMySQLinc/mysql],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
793: CFLAGS=$saved_CFLAGS
794: libMySQLinc=$libMySQLinc/../local/include/mysql
795: libMySQLlib=$libMySQLlib/../local/lib
796: fi
797: else
798: if test "x$with_mysql" != xno; then
799: libMySQLinc="-I$with_mysql/include"
800: libMySQLlib="$with_mysql/lib"
801:
802: AC_MSG_CHECKING(for libmysql includes in $with_mysql)
803: saved_CFLAGS="$CFLAGS"
804: CFLAGS="$CFLAGS $libMySQLinc"
805: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
806: libMySQLinc=$libMySQLinc/mysql],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
807: CFLAGS=$saved_CFLAGS
808:
809: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
810: AC_MSG_CHECKING(for libmysql includes in $with_mysql/mysql)
811: saved_CFLAGS="$CFLAGS"
812: CFLAGS="$CFLAGS $libMySQLinc/mysql"
813: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "mysql.h"]], [[]])],[AC_MSG_RESULT([yes]); MYSQL_SUPPORT="-DMYSQL_SUPPORT";
814: libMySQLinc=$libMySQLinc],[AC_MSG_RESULT([no]); MYSQL_SUPPORT="-UMYSQL_SUPPORT"])
815: CFLAGS=$saved_CFLAGS
816: libMySQLinc=$libMySQLinc/mysql
817: fi
818: else
819: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
820: fi
821: fi
822:
823: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
824: MYSQL_LIB=no
825:
826: if test $MYSQL_LIB = no; then
827: AC_MSG_CHECKING(for libmysql libraries in $libMySQLlib)
828: saved_LIBS="$LIBS"
829: if test $STATIC = no; then
830: LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
831: else
1.86 bertrand 832: LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a $libMySQLinc"
1.1 bertrand 833: fi
834: 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"])
835: LIBS=$saved_LIBS;
836: if test $STATIC = no; then
837: libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
838: else
839: libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
840: EXT_SQL="$EXT_SQL $libMySQLlib"
841: fi
842: fi
843:
844: if test $MYSQL_LIB = no; then
845: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
846: fi
847: fi
848:
1.16 bertrand 849: DEBMYSQL=
850:
1.1 bertrand 851: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
852: libMySQLinc=
853: libMySQLlib=
1.16 bertrand 854: else
1.17 bertrand 855: DEBMYSQL=", libmysqlclient18"
1.1 bertrand 856: fi
857:
858: AC_SUBST(MYSQL_SUPPORT)
859: AC_SUBST(libMySQLinc)
860: AC_SUBST(libMySQLlib)
861:
862: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
863: AC_ARG_WITH(postgresql,
864: [ --with-postgresql=PATH specify directory for installed postgresql],
865: [], [with_postgresql=check])
866:
867: # with_postgresql : check [pas défini], yes [uniquement --with],
868: # no [--without], valeur [--with=valeur].
869:
870: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
871: libPgSQLinc="-I/usr/include"
872: libPgSQLlib="/usr/lib"
873:
874: AC_MSG_CHECKING(for libpq includes in /usr/include)
875: saved_CFLAGS="$CFLAGS"
876: CFLAGS="$CFLAGS $libPgSQLinc"
877: 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"])
878: CFLAGS=$saved_CFLAGS
879:
880: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
881: AC_MSG_CHECKING(for libpq includes in /usr/include/postgresql)
882: saved_CFLAGS="$CFLAGS"
883: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
884: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
885: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
886: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
887: CFLAGS=$saved_CFLAGS
888: libPgSQLinc=$libPgSQLinc/postgresql
889: fi
890:
891: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
892: AC_MSG_CHECKING(for libpq includes in /usr/include/pgsql)
893: saved_CFLAGS="$CFLAGS"
894: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
895: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
896: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
897: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
898: CFLAGS=$saved_CFLAGS
899: libPgSQLinc=$libPgSQLinc/pgsql
900: fi
901:
902: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
903: AC_MSG_CHECKING(for libpq includes in /usr/local/include)
904: saved_CFLAGS="$CFLAGS"
905: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
906: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
907: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
908: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
909: CFLAGS=$saved_CFLAGS
910: libPgSQLinc=$libPgSQLinc/../local/include
911: libPgSQLlib=$libPgSQLlib/../local/lib
912: fi
913:
914: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
915: AC_MSG_CHECKING(for libpq includes in /usr/local/include/postgresql)
916: saved_CFLAGS="$CFLAGS"
917: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
918: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
919: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
920: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
921: CFLAGS=$saved_CFLAGS
922: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
923: libPgSQLlib=$libPgSQLlib/../local/lib
924: fi
925:
926: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
927: AC_MSG_CHECKING(for libpq includes in /usr/local/include/pgsql)
928: saved_CFLAGS="$CFLAGS"
929: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
930: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
931: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
932: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
933: CFLAGS=$saved_CFLAGS
934: libPgSQLinc=$libPgSQLinc/local/include/pgsql
935: libPgSQLlib=$libPgSQLlib/../local/lib
936: fi
937: else
938: if test "x$with_postgresql" != xno; then
939: libPgSQLinc="-I$with_postgresql/include"
940: libPgSQLlib="$with_postgresql/lib"
941:
942: AC_MSG_CHECKING(for libpq includes in $libPgSQLinc)
943: saved_CFLAGS="$CFLAGS"
944: CFLAGS="$CFLAGS $libPgSQLinc"
945: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
946: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
947: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
948: CFLAGS=$saved_CFLAGS
949:
950: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
951: AC_MSG_CHECKING(for libpq includes in $libPgSQLinc/postgresql)
952: saved_CFLAGS="$CFLAGS"
953: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
954: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
955: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
956: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
957: CFLAGS=$saved_CFLAGS
958: libPgSQLinc=$libPgSQLinc/postgresql
959: fi
960:
961: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
962: AC_MSG_CHECKING(for libpq includes in $libPgSQLinc/pgsql)
963: saved_CFLAGS="$CFLAGS"
964: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
965: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[]])],[AC_MSG_RESULT([yes]);
966: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"],[AC_MSG_RESULT([no]);
967: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"])
968: CFLAGS=$saved_CFLAGS
969: libPgSQLinc=$libPgSQLinc/pgsql
970: fi
971: else
972: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
973: fi
974: fi
975:
976: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
977: POSTGRESQL_LIB=no
978:
979: if test $POSTGRESQL_LIB = no; then
980: AC_MSG_CHECKING(for libpq libraries in $libPgSQLlib)
981: saved_LIBS="$LIBS"
982: if test $STATIC = no; then
983: LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
984: else
985: LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
986: fi
987: AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include "libpq-fe.h"]], [[PGconn *conn; const char *conninfo="dbname=postgres"; conn =
988: PQconnectdb(conninfo);]])],[AC_MSG_RESULT([yes]); POSTGRESQL_LIB="yes"],[AC_MSG_RESULT([no]); POSTGRESQL_LIB="no"])
989: LIBS=$saved_LIBS;
990: if test $STATIC = no; then
991: libPgSQLlib="-L/$libPgSQLlib -lpq"
992: else
993: libPgSQLlib="$libPgSQLlib/libpq.a"
994: EXT_SQL="$EXT_SQL $libPgSQLlib"
995: fi
996: fi
997: fi
998:
1.16 bertrand 999: DEBPQ=
1000:
1.1 bertrand 1001: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
1002: libPgSQLinc=
1003: libPgSQLlib=
1.16 bertrand 1004: else
1.17 bertrand 1005: DEBPQ=", libpq5"
1.1 bertrand 1006: fi
1007:
1008: AC_SUBST(POSTGRESQL_SUPPORT)
1009: AC_SUBST(libPgSQLinc)
1010: AC_SUBST(libPgSQLlib)
1011:
1012: # with_postgresql : check [pas défini], yes [uniquement --with],
1013: # no [--without], valeur [--with=valeur].
1014: AC_ARG_WITH(bourne_shell,
1015: [ --with-bourne-shell=PATH specify path for OS/2 bourne shell],
1016: [], [with_bourne_shell=no])
1017:
1018: if test "x$with_bourne_shell" = xyes; then
1019: AC_MSG_ERROR([You have to specify a valide shell path !])
1020: fi
1021:
1022: if test "x$with_bourne_shell" = xno; then
1023: if test $(uname) = "OS/2"; then
1024: AC_MSG_ERROR([With OS/2 or eComstation, you have to specify a valide
1025: shell path with --with-bourne-shell=PATH !])
1026: fi
1027:
1028: BSH_PATH=
1029: else
1030: if test ! -x $with_bourne_shell; then
1031: AC_MSG_ERROR([$with_bourne_shell is not executable !])
1032: fi
1033:
1034: if test $(uname) = "OS/2"; then
1035: with_os2_bourne_shell=$(echo $with_bourne_shell | \
1036: sed -e '1,$s/\//\\\\\\\\/g')
1037: BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1038: else
1039: AC_MSG_WARN([--with-bourne-shell ignored])
1040: BSH_PATH=
1041: fi
1042: fi
1043:
1044: dnl Checks for sizes
1045: AC_CHECK_SIZEOF(void *, 4)
1046: AC_CHECK_SIZEOF(char, 1)
1047: AC_CHECK_SIZEOF(short int, 2)
1048: AC_CHECK_SIZEOF(int, 4)
1049: AC_CHECK_SIZEOF(long int, 4)
1050: AC_CHECK_SIZEOF(long long int, 8)
1051: AC_CHECK_SIZEOF(float, 4)
1052: AC_CHECK_SIZEOF(double, 8)
1053: AC_CHECK_SIZEOF(long double, 12)
1054:
1055: dnl Checks for header files.
1056: AC_HEADER_DIRENT
1057: AC_HEADER_STDC
1058: AC_HEADER_SYS_WAIT
1059: AC_CHECK_HEADERS(dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
1060: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
1061: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h)
1062:
1063: dnl Checks for typedefs, structures, and compiler characteristics.
1064: AC_C_CONST
1065: AC_TYPE_UID_T
1066: AC_TYPE_PID_T
1067: AC_TYPE_SIZE_T
1068: AC_HEADER_TIME
1069: AC_STRUCT_TM
1070:
1071: dnl Checks for library functions.
1072: AC_DIAGNOSE([obsolete],[your code may safely assume C89 semantics that RETSIGTYPE is void.
1073: Remove this warning and the `AC_CACHE_CHECK' when you adjust the code.])dnl
1074: AC_CACHE_CHECK([return type of signal handlers],[ac_cv_type_signal],[AC_COMPILE_IFELSE(
1075: [AC_LANG_PROGRAM([#include <sys/types.h>
1076: #include <signal.h>
1077: ],
1078: [return *(signal (0, 0)) (0) == 1;])],
1079: [ac_cv_type_signal=int],
1080: [ac_cv_type_signal=void])])
1081: AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers
1082: (`int' or `void').])
1083:
1084: AC_FUNC_STRCOLL
1085: AC_FUNC_STRFTIME
1086: AC_FUNC_VPRINTF
1087: AC_CHECK_FUNCS(ftime getcwd putenv select strcspn strdup \
1088: strerror strspn strstr strtod)
1089:
1090: dnl Check for OpenSSL os/comp
1091: AC_ARG_WITH(openssl_arch,
1092: [ --with-openssl-arch=ARCH specify os and compiler for openssl (ARCH or list)],
1093: [], [with_openssl_arch=none])
1094:
1095: if test $(uname) = "OS/2"; then
1096: bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1097: else
1.23 bertrand 1098: if test $build = $host; then
1099: OPENSSL_CROSS=
1100: else
1101: OPENSSL_CROSS="AR=$host-ar RANLIB=$host-ranlib CC=$host-gcc NM=$host-nm"
1102: fi
1103: echo $build $host
1104: echo $OPENSSL_CROSS
1.1 bertrand 1105: if test "x$with_openssl_arch" = xnone; then
1.23 bertrand 1106: (cd tools/$OPENSSL && sh -c "$OPENSSL_CROSS ./config no-asm")
1.1 bertrand 1107: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
1108: (cd tools/$OPENSSL && ./Configure)
1109: AC_MSG_ERROR([OS/COMP informations are required!])
1110: elif test "x$with_openssl_arch" = xlist; then
1111: (cd tools/$OPENSSL && ./Configure)
1112: AC_MSG_ERROR([Please specify OS and Architecture])
1113: else
1.23 bertrand 1114: (cd tools/$OPENSSL && sh -c "$OPENSSL_CROSS ./Configure no-asm \
1115: $with_openssl_arch")
1.1 bertrand 1116: fi
1117: fi
1118:
1119: if test "$MYGNUPLOT" = "yes"; then
1120: if test ! -d "$srcdir"/tools/$GNUPLOT; then
1121: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
1122: (cd "$srcdir/tools" && tar -xf -)
1123: fi
1.6 bertrand 1124:
1125: if test $RECURSIVE = yes; then
1126: AC_CONFIG_SUBDIRS(tools/$GNUPLOT)
1127: fi
1128:
1.1 bertrand 1129: GNUPLOT_COMPILATION=$GNUPLOT
1130: else
1131: GNUPLOT_COMPILATION=
1132: fi
1133:
1134: AC_SUBST(GNUPLOT_COMPILATION)
1135:
1.3 bertrand 1136: HOST=$target
1.1 bertrand 1137: AC_SUBST(HOST)
1.25 bertrand 1138: BUILD=$build
1139: AC_SUBST(BUILD)
1.1 bertrand 1140:
1.2 bertrand 1141: my_save_cflags="$CFLAGS"
1142: FPCFLAGS=""
1.1 bertrand 1143:
1.2 bertrand 1144: CFLAGS=-malign-double
1145: AC_MSG_CHECKING([whether CC supports -malign-double])
1146: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
1147: [AC_MSG_RESULT([yes]); FPCFLAGS="$FPCFLAGS -malign-double"],
1148: [AC_MSG_RESULT([no])])
1149: CFLAGS=-mieee-fp
1150: AC_MSG_CHECKING([whether CC supports -mieee-fp])
1151: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
1152: [AC_MSG_RESULT([yes]); FPCFLAGS="$FPCFLAGS -mieee-fp"],
1153: [AC_MSG_RESULT([no])])
1154: CFLAGS=-mieee
1155: AC_MSG_CHECKING([whether CC supports -mieee])
1156: AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
1157: [AC_MSG_RESULT([yes]); FPCFLAGS="$FPCFLAGS -mieee"],
1158: [AC_MSG_RESULT([no])])
1159: CFLAGS=$my_save_cflags
1160:
1161: CFLAGS="$CFLAGS $FPCFLAGS -Wall -funsigned-char -Wno-pointer-sign"
1162: FFLAGS="$FFLAGS $FPCFLAGS -Wall -fno-f2c"
1163: FCFLAGS="$FCFLAGS $FPCFLAGS -Wall -fno-f2c"
1164: CXXFLAGS="$CXXFLAGS $FPCFLAGS -Wall -funsigned-char"
1.1 bertrand 1165:
1.2 bertrand 1166: case $target_os in
1.1 bertrand 1167:
1168: cygwin*)
1169: OS=Cygwin
1170: break ;;
1171:
1172: interix*)
1173: OS=Interix
1174: break ;;
1175:
1176: *)
1177: OS=$(uname)
1178: break ;;
1179:
1180: esac
1181:
1182: AC_SUBST(OS)
1183:
1184: MALLOC=
1.170 bertrand 1185: NO_EXPORT_DYNAMIC=-Wl,--no-export-dynamic
1.1 bertrand 1186:
1187: case $OS in
1188: Darwin)
1189: EXPORT_DYNAMIC=-Wl,-flat_namespace
1190: NESTED_FUNCTIONS=-fnested-functions
1191: CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1192: ac_configure_args="$ac_configure_args --with-readline=builtin \
1193: --disable-shared --enable-static --enable-threads \
1194: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
1195: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
1196: LDFLAGS=\"$LDFLAGS\""
1197: C_STANDARD=-std=gnu99
1198: ELF=
1199: break ;;
1200:
1201: Cygwin)
1202: EXPORT_DYNAMIC=-Wl,--export-all-symbols
1203: NESTED_FUNCTIONS=
1204: ac_configure_args="$ac_configure_args --with-readline=builtin \
1205: --disable-shared --enable-static --enable-threads \
1206: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
1207: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
1208: LDFLAGS=\"$LDFLAGS\""
1209: C_STANDARD=-std=gnu99
1210: ELF=
1211: break ;;
1212:
1213: Interix)
1214: EXPORT_DYNAMIC=-Wl,--export-all-symbols
1215: NESTED_FUNCTIONS=
1216: ac_configure_args="$ac_configure_args --with-readline=builtin \
1217: --disable-shared --enable-static --enable-threads \
1218: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
1219: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
1220: LDFLAGS=\"$LDFLAGS\""
1221: C_STANDARD=-std=gnu99
1222: ELF=
1223: break;;
1224:
1225: AIX)
1226: EXPORT_DYNAMIC=-Wl,--export-dynamic
1227: NESTED_FUNCTIONS=
1228: ac_configure_args="$ac_configure_args --with-readline=builtin \
1229: --disable-shared --enable-static --enable-threads \
1230: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
1231: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
1232: LDFLAGS=\"$LDFLAGS\""
1233: C_STANDARD=-std=gnu99
1234: ELF=
1235: break ;;
1236:
1237: OS/2)
1238: if test $FORCED_FINAL_ENCODING -eq 0; then \
1239: FINAL_ENCODING=CP850; \
1.47 bertrand 1240: FORCED_FINAL_ENCODING=1;\
1.1 bertrand 1241: fi;
1242: OS=OS2
1243: NESTED_FUNCTIONS=
1244: EXPORT_DYNAMIC=-Zmap
1245: ac_configure_args="$ac_configure_args --without-readline \
1246: --without-cairo --disable-shared --enable-static \
1247: --enable-threads \
1248: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
1249: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
1250: LDFLAGS=\"$LDFLAGS\""
1251: C_STANDARD=
1252: ELF=
1253: break;;
1254:
1255: OpenBSD)
1256: if test $FORCED_FINAL_ENCODING -eq 0; then \
1257: FINAL_ENCODING=UTF-8; \
1.47 bertrand 1258: FORCED_FINAL_ENCODING=1;\
1.1 bertrand 1259: fi;
1260: EXPORT_DYNAMIC=-Wl,--export-dynamic
1261: NESTED_FUNCTIONS=
1262: ac_configure_args="$ac_configure_args --with-readline=builtin \
1263: --disable-shared --enable-static --enable-threads \
1264: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
1265: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
1266: LDFLAGS=\"$LDFLAGS\""
1267: C_STANDARD=-std=gnu99
1268: ELF=
1269: break;;
1270:
1271: SunOS)
1272: EXPORT_DYNAMIC=-Wl,--export-dynamic
1273: NESTED_FUNCTIONS=
1274:
1275: ac_configure_args="$ac_configure_args --with-readline=builtin \
1276: --disable-shared --enable-static --enable-threads \
1277: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
1278: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
1279: LDFLAGS=\"$LDFLAGS\""
1280: C_STANDARD=-std=gnu99
1281: MALLOC=-lumem
1282: ELF=
1283: break ;;
1284:
1285: NetBSD)
1286: EXPORT_DYNAMIC=-Wl,--export-dynamic
1287: NESTED_FUNCTIONS=
1288:
1289: ac_configure_args="$ac_configure_args --with-readline=builtin \
1290: --disable-shared --enable-static --enable-threads \
1291: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
1292: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
1293: LDFLAGS=\"$LDFLAGS\""
1294: C_STANDARD=-std=gnu99
1295: GCCBIN=`which gcc`
1296: GCCLIB=`dirname $GCCBIN`/../lib
1297: ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
1298: break ;;
1299:
1300: *)
1301: EXPORT_DYNAMIC=-Wl,--export-dynamic
1302: NESTED_FUNCTIONS=
1303:
1304: ac_configure_args="$ac_configure_args --with-readline=builtin \
1305: --disable-shared --enable-static --enable-threads \
1306: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
1307: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
1308: LDFLAGS=\"$LDFLAGS\""
1309: C_STANDARD=-std=gnu99
1310: ELF=
1311: break ;;
1.5 bertrand 1312: esac
1313:
1.109 bertrand 1314: dnl Correction d'un problème de compilation pour GNUplot 5.0.0
1315: ac_configure_args="$ac_configure_args --disable-wxwidgets"
1.130 bertrand 1316: dnl Correction d'un problème d'ABI avec readline
1317: ac_configure_args="$ac_configure_args \
1318: --with-abi-version=5.9 --with-rel-version=5.9"
1.109 bertrand 1319:
1.5 bertrand 1320: case $OS in
1321: OS2)
1322: WHOLE_LIB1=""
1323: WHOLE_LIB2=""
1.6 bertrand 1324: LIB_PREFIX=""
1.5 bertrand 1325: break ;;
1.1 bertrand 1326:
1.5 bertrand 1327: *)
1328: WHOLE_LIB1="-Wl,-whole-archive"
1329: WHOLE_LIB2="-Wl,-no-whole-archive"
1.6 bertrand 1330: LIB_PREFIX="lib"
1.5 bertrand 1331: break ;;
1.1 bertrand 1332: esac
1333:
1.173 bertrand 1334: BROKEN_SIGSEGV=-UBROKEN_SIGSEGV
1335: BUILD_SIGSEGV=$SIGSEGV
1.178 bertrand 1336: if test x"$LIB_PREFIX" = x"lib"; then
1337: LIBSIGSEGV=\$\(top_builddir\)/tools/$SIGSEGV/src/.libs/libsigsegv.a
1338: else
1339: LIBSIGSEGV=\$\(top_builddir\)/tools/$SIGSEGV/src/.libs/sigsegv.a
1340: fi
1.175 bertrand 1341: INCSIGSEGV="-I\$(top_builddir)/tools/$SIGSEGV/src"
1.176 bertrand 1342: CYGWIN_LDFLAGS=
1.173 bertrand 1343:
1.12 bertrand 1344: case $HOST in
1.33 bertrand 1345: x86_64-*-linux-gnu)
1.12 bertrand 1346: ARCH=amd64
1347: break ;;
1348:
1.33 bertrand 1349: i?86-*-linux-gnu)
1.12 bertrand 1350: ARCH=i386
1351: break ;;
1352:
1.24 bertrand 1353: arm-unknown-linux-gnueabi)
1354: ARCH=armel
1355: break;;
1356:
1.58 bertrand 1357: mips*el-unknown-linux-gnu)
1.53 bertrand 1358: ARCH=mipsel
1359: break;;
1360:
1.176 bertrand 1361: x86_64-*-cygwin)
1.173 bertrand 1362: BROKEN_SIGSEGV=-DBROKEN_SIGSEGV
1.174 bertrand 1363: BUILD_SIGSEGV=
1.173 bertrand 1364: INCSIGSEGV=
1365: LIBSIGSEGV=
1366: ARCH=$(echo $HOST | cut -f1 -d-)
1.177 bertrand 1367: CYGWIN_LDFLAGS=-Wl,--allow-multiple-definition \
1368: -Wl,--out-implib,rpl.exe.a
1.173 bertrand 1369: break;;
1370:
1.12 bertrand 1371: *)
1.72 bertrand 1372: ARCH=$(echo $HOST | cut -f1 -d-)
1.12 bertrand 1373: break ;;
1374: esac
1375:
1.173 bertrand 1376: AC_SUBST(INCSIGSEGV)
1377: AC_SUBST(LIBSIGSEGV)
1.5 bertrand 1378: AC_SUBST(WHOLE_LIB1)
1379: AC_SUBST(WHOLE_LIB2)
1.6 bertrand 1380: AC_SUBST(LIB_PREFIX)
1.176 bertrand 1381: AC_SUBST(CYGWIN_LDFLAGS)
1.5 bertrand 1382:
1.1 bertrand 1383: AC_SUBST(C_STANDARD)
1384: AC_SUBST(EXPORT_DYNAMIC)
1.170 bertrand 1385: AC_SUBST(NO_EXPORT_DYNAMIC)
1.1 bertrand 1386: AC_SUBST(NESTED_FUNCTIONS)
1387: AC_SUBST(SEMAPHORES_NOMMES)
1388: AC_SUBST(IPCS_SYSV)
1389: AC_SUBST(SEMUN)
1390: AC_SUBST(IPV6)
1391: AC_SUBST(BSH_PATH)
1392: AC_SUBST(ELF)
1.12 bertrand 1393: AC_SUBST(ARCH)
1.1 bertrand 1394:
1395: AC_SUBST(NCURSES)
1396: AC_SUBST(READLINE)
1397: AC_SUBST(UNITS)
1398: AC_SUBST(GSL)
1399: AC_SUBST(GPP)
1400: AC_SUBST(GNUPLOT)
1401: AC_SUBST(FILE)
1402: AC_SUBST(ICONV)
1403: AC_SUBST(SQLITE)
1404: AC_SUBST(OPENSSL)
1405: AC_SUBST(LIBXPM)
1406: AC_SUBST(OPENMOTIF)
1407: AC_SUBST(BUILD_OPENMOTIF)
1408: AC_SUBST(SIGSEGV)
1409: AC_SUBST(FINAL_ENCODING)
1.47 bertrand 1410: AC_SUBST(FORCED_FINAL_ENCODING)
1.1 bertrand 1411: AC_SUBST(DATE)
1412: AC_SUBST(EXT_SQL)
1413: AC_SUBST(MALLOC)
1414: AC_SUBST(GMP)
1415: AC_SUBST(MPFR)
1.137 bertrand 1416: AC_SUBST(MPFI)
1.1 bertrand 1417: AC_SUBST(NTL)
1418: AC_SUBST(COCOA)
1419: AC_SUBST(PARI)
1420: AC_SUBST(GIAC)
1421: AC_SUBST(INCMOTIF)
1422: AC_SUBST(LIBMOTIF)
1.197 bertrand 1423: AC_SUBST(MODULE_MOTIF)
1.62 bertrand 1424: AC_SUBST(ZLIB)
1.173 bertrand 1425: AC_SUBST(BUILD_SIGSEGV)
1426: AC_SUBST(BROKEN_SIGSEGV)
1.1 bertrand 1427:
1428: AC_SUBST(CFLAGS)
1429: AC_SUBST(CXXFLAGS)
1430: AC_SUBST(FFLAGS)
1431: AC_SUBST(FCFLAGS)
1432: AC_SUBST(LDFLAGS)
1.23 bertrand 1433: AC_SUBST(SYSROOT)
1.25 bertrand 1434: AC_SUBST(SYSROOT2)
1.1 bertrand 1435:
1.16 bertrand 1436: AC_SUBST(DEBPQ)
1437: AC_SUBST(DEBMYSQL)
1438: AC_SUBST(DEBVIM)
1439:
1.6 bertrand 1440: if test $RECURSIVE = yes; then
1441: AC_CONFIG_SUBDIRS(tools/$NCURSES)
1442: AC_CONFIG_SUBDIRS(tools/$READLINE)
1443: AC_CONFIG_SUBDIRS(tools/$GSL)
1444: AC_CONFIG_SUBDIRS(tools/$GPP)
1445: AC_CONFIG_SUBDIRS(tools/$FILE)
1446: AC_CONFIG_SUBDIRS(tools/$ICONV)
1447: AC_CONFIG_SUBDIRS(tools/$SQLITE)
1448: AC_CONFIG_SUBDIRS(tools/$UNITS)
1.174 bertrand 1449: if test x$BUILD_SIGSEGV = x$SIGSEGV; then
1450: AC_CONFIG_SUBDIRS(tools/$SIGSEGV)
1451: fi
1.6 bertrand 1452: fi
1.1 bertrand 1453:
1454: AC_CONFIG_FILES(Makefile)
1.59 bertrand 1455: AC_CONFIG_FILES(HEADER)
1.1 bertrand 1456: AC_CONFIG_FILES(tools/Makefile)
1457: AC_CONFIG_FILES(src/Makefile)
1458: AC_CONFIG_FILES(man/Makefile)
1459: AC_CONFIG_FILES(man/fr_FR/Makefile)
1460: AC_CONFIG_FILES(doc/Makefile)
1461: AC_CONFIG_FILES(scripts/Makefile)
1462: AC_CONFIG_FILES(scripts/mkrplso)
1463: AC_CONFIG_FILES(scripts/rplcc)
1464: AC_CONFIG_FILES(scripts/rpllink)
1465: AC_CONFIG_FILES(rpltags/Makefile)
1466: AC_CONFIG_FILES(rpliconv/Makefile)
1467: AC_CONFIG_FILES(rplsums/Makefile)
1468: AC_CONFIG_FILES(rplcas/Makefile)
1469: AC_CONFIG_FILES(rplawk/Makefile)
1470: AC_CONFIG_FILES(lapack/lapack/Makefile)
1471: AC_CONFIG_FILES(lapack/blas/Makefile)
1.196 bertrand 1472: AC_CONFIG_FILES(modules/motif/Makefile)
1.195 bertrand 1473: AC_CONFIG_FILES(modules/sets/Makefile)
1.1 bertrand 1474:
1475: AC_CONFIG_FILES(man/rpl.1)
1476: AC_CONFIG_FILES(man/rplcc.1)
1477: AC_CONFIG_FILES(man/rpllink.1)
1478: AC_CONFIG_FILES(man/rpltags.1)
1479: AC_CONFIG_FILES(man/mkrplso.1)
1480: AC_CONFIG_FILES(man/fr_FR/rpl.1)
1481: AC_CONFIG_FILES(man/fr_FR/rplcc.1)
1482: AC_CONFIG_FILES(man/fr_FR/rpllink.1)
1483: AC_CONFIG_FILES(man/fr_FR/rpltags.1)
1484: AC_CONFIG_FILES(man/fr_FR/mkrplso.1)
1485:
1.12 bertrand 1486: AC_CONFIG_FILES(DEBIAN/control)
1487:
1.1 bertrand 1488: AC_OUTPUT
CVSweb interface <joel.bertrand@systella.fr>