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