1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.68 for rpl 4.1.3.
4: #
5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8: # Foundation, Inc.
9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: as_myself=
93: case $0 in #((
94: *[\\/]* ) as_myself=$0 ;;
95: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96: for as_dir in $PATH
97: do
98: IFS=$as_save_IFS
99: test -z "$as_dir" && as_dir=.
100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
102: IFS=$as_save_IFS
103:
104: ;;
105: esac
106: # We did not find ourselves, most probably we were run as `sh COMMAND'
107: # in which case we are not to be found in the path.
108: if test "x$as_myself" = x; then
109: as_myself=$0
110: fi
111: if test ! -f "$as_myself"; then
112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
114: fi
115:
116: # Unset variables that we do not need and which cause bugs (e.g. in
117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118: # suppresses any "Segmentation fault" message there. '((' could
119: # trigger a bug in pdksh 5.2.14.
120: for as_var in BASH_ENV ENV MAIL MAILPATH
121: do eval test x\${$as_var+set} = xset \
122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
133:
134: # CDPATH.
135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136:
137: if test "x$CONFIG_SHELL" = x; then
138: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139: emulate sh
140: NULLCMD=:
141: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142: # is contrary to our usage. Disable this feature.
143: alias -g '\${1+\"\$@\"}'='\"\$@\"'
144: setopt NO_GLOB_SUBST
145: else
146: case \`(set -o) 2>/dev/null\` in #(
147: *posix*) :
148: set -o posix ;; #(
149: *) :
150: ;;
151: esac
152: fi
153: "
154: as_required="as_fn_return () { (exit \$1); }
155: as_fn_success () { as_fn_return 0; }
156: as_fn_failure () { as_fn_return 1; }
157: as_fn_ret_success () { return 0; }
158: as_fn_ret_failure () { return 1; }
159:
160: exitcode=0
161: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166:
167: else
168: exitcode=1; echo positional parameters were not saved.
169: fi
170: test x\$exitcode = x0 || exit 1"
171: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175: test \$(( 1 + 1 )) = 2 || exit 1"
176: if (eval "$as_required") 2>/dev/null; then :
177: as_have_required=yes
178: else
179: as_have_required=no
180: fi
181: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182:
183: else
184: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185: as_found=false
186: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187: do
188: IFS=$as_save_IFS
189: test -z "$as_dir" && as_dir=.
190: as_found=:
191: case $as_dir in #(
192: /*)
193: for as_base in sh bash ksh sh5; do
194: # Try only shells that exist, to save several forks.
195: as_shell=$as_dir/$as_base
196: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198: CONFIG_SHELL=$as_shell as_have_required=yes
199: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200: break 2
201: fi
202: fi
203: done;;
204: esac
205: as_found=false
206: done
207: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209: CONFIG_SHELL=$SHELL as_have_required=yes
210: fi; }
211: IFS=$as_save_IFS
212:
213:
214: if test "x$CONFIG_SHELL" != x; then :
215: # We cannot yet assume a decent shell, so we have to provide a
216: # neutralization value for shells without unset; and this also
217: # works around shells that cannot unset nonexistent variables.
218: # Preserve -v and -x to the replacement shell.
219: BASH_ENV=/dev/null
220: ENV=/dev/null
221: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222: export CONFIG_SHELL
223: case $- in # ((((
224: *v*x* | *x*v* ) as_opts=-vx ;;
225: *v* ) as_opts=-v ;;
226: *x* ) as_opts=-x ;;
227: * ) as_opts= ;;
228: esac
229: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230: fi
231:
232: if test x$as_have_required = xno; then :
233: $as_echo "$0: This script requires a shell more modern than all"
234: $as_echo "$0: the shells that I found on your system."
235: if test x${ZSH_VERSION+set} = xset ; then
236: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238: else
239: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240: $0: including any error possibly output before this
241: $0: message. Then install a modern shell, or manually run
242: $0: the script under such a shell if you do have one."
243: fi
244: exit 1
245: fi
246: fi
247: fi
248: SHELL=${CONFIG_SHELL-/bin/sh}
249: export SHELL
250: # Unset more variables known to interfere with behavior of common tools.
251: CLICOLOR_FORCE= GREP_OPTIONS=
252: unset CLICOLOR_FORCE GREP_OPTIONS
253:
254: ## --------------------- ##
255: ## M4sh Shell Functions. ##
256: ## --------------------- ##
257: # as_fn_unset VAR
258: # ---------------
259: # Portably unset VAR.
260: as_fn_unset ()
261: {
262: { eval $1=; unset $1;}
263: }
264: as_unset=as_fn_unset
265:
266: # as_fn_set_status STATUS
267: # -----------------------
268: # Set $? to STATUS, without forking.
269: as_fn_set_status ()
270: {
271: return $1
272: } # as_fn_set_status
273:
274: # as_fn_exit STATUS
275: # -----------------
276: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277: as_fn_exit ()
278: {
279: set +e
280: as_fn_set_status $1
281: exit $1
282: } # as_fn_exit
283:
284: # as_fn_mkdir_p
285: # -------------
286: # Create "$as_dir" as a directory, including parents if necessary.
287: as_fn_mkdir_p ()
288: {
289:
290: case $as_dir in #(
291: -*) as_dir=./$as_dir;;
292: esac
293: test -d "$as_dir" || eval $as_mkdir_p || {
294: as_dirs=
295: while :; do
296: case $as_dir in #(
297: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298: *) as_qdir=$as_dir;;
299: esac
300: as_dirs="'$as_qdir' $as_dirs"
301: as_dir=`$as_dirname -- "$as_dir" ||
302: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303: X"$as_dir" : 'X\(//\)[^/]' \| \
304: X"$as_dir" : 'X\(//\)$' \| \
305: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306: $as_echo X"$as_dir" |
307: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308: s//\1/
309: q
310: }
311: /^X\(\/\/\)[^/].*/{
312: s//\1/
313: q
314: }
315: /^X\(\/\/\)$/{
316: s//\1/
317: q
318: }
319: /^X\(\/\).*/{
320: s//\1/
321: q
322: }
323: s/.*/./; q'`
324: test -d "$as_dir" && break
325: done
326: test -z "$as_dirs" || eval "mkdir $as_dirs"
327: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328:
329:
330: } # as_fn_mkdir_p
331: # as_fn_append VAR VALUE
332: # ----------------------
333: # Append the text in VALUE to the end of the definition contained in VAR. Take
334: # advantage of any shell optimizations that allow amortized linear growth over
335: # repeated appends, instead of the typical quadratic growth present in naive
336: # implementations.
337: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338: eval 'as_fn_append ()
339: {
340: eval $1+=\$2
341: }'
342: else
343: as_fn_append ()
344: {
345: eval $1=\$$1\$2
346: }
347: fi # as_fn_append
348:
349: # as_fn_arith ARG...
350: # ------------------
351: # Perform arithmetic evaluation on the ARGs, and store the result in the
352: # global $as_val. Take advantage of shells that can avoid forks. The arguments
353: # must be portable across $(()) and expr.
354: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355: eval 'as_fn_arith ()
356: {
357: as_val=$(( $* ))
358: }'
359: else
360: as_fn_arith ()
361: {
362: as_val=`expr "$@" || test $? -eq 1`
363: }
364: fi # as_fn_arith
365:
366:
367: # as_fn_error STATUS ERROR [LINENO LOG_FD]
368: # ----------------------------------------
369: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371: # script with STATUS, using 1 if that was 0.
372: as_fn_error ()
373: {
374: as_status=$1; test $as_status -eq 0 && as_status=1
375: if test "$4"; then
376: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378: fi
379: $as_echo "$as_me: error: $2" >&2
380: as_fn_exit $as_status
381: } # as_fn_error
382:
383: if expr a : '\(a\)' >/dev/null 2>&1 &&
384: test "X`expr 00001 : '.*\(...\)'`" = X001; then
385: as_expr=expr
386: else
387: as_expr=false
388: fi
389:
390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391: as_basename=basename
392: else
393: as_basename=false
394: fi
395:
396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397: as_dirname=dirname
398: else
399: as_dirname=false
400: fi
401:
402: as_me=`$as_basename -- "$0" ||
403: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404: X"$0" : 'X\(//\)$' \| \
405: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406: $as_echo X/"$0" |
407: sed '/^.*\/\([^/][^/]*\)\/*$/{
408: s//\1/
409: q
410: }
411: /^X\/\(\/\/\)$/{
412: s//\1/
413: q
414: }
415: /^X\/\(\/\).*/{
416: s//\1/
417: q
418: }
419: s/.*/./; q'`
420:
421: # Avoid depending upon Character Ranges.
422: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425: as_cr_digits='0123456789'
426: as_cr_alnum=$as_cr_Letters$as_cr_digits
427:
428:
429: as_lineno_1=$LINENO as_lineno_1a=$LINENO
430: as_lineno_2=$LINENO as_lineno_2a=$LINENO
431: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434: sed -n '
435: p
436: /[$]LINENO/=
437: ' <$as_myself |
438: sed '
439: s/[$]LINENO.*/&-/
440: t lineno
441: b
442: :lineno
443: N
444: :loop
445: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446: t loop
447: s/-\n.*//
448: ' >$as_me.lineno &&
449: chmod +x "$as_me.lineno" ||
450: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451:
452: # Don't try to exec as it changes $[0], causing all sort of problems
453: # (the dirname of $[0] is not the place where we might find the
454: # original and so on. Autoconf is especially sensitive to this).
455: . "./$as_me.lineno"
456: # Exit status is that of the last command.
457: exit
458: }
459:
460: ECHO_C= ECHO_N= ECHO_T=
461: case `echo -n x` in #(((((
462: -n*)
463: case `echo 'xy\c'` in
464: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465: xy) ECHO_C='\c';;
466: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467: ECHO_T=' ';;
468: esac;;
469: *)
470: ECHO_N='-n';;
471: esac
472:
473: rm -f conf$$ conf$$.exe conf$$.file
474: if test -d conf$$.dir; then
475: rm -f conf$$.dir/conf$$.file
476: else
477: rm -f conf$$.dir
478: mkdir conf$$.dir 2>/dev/null
479: fi
480: if (echo >conf$$.file) 2>/dev/null; then
481: if ln -s conf$$.file conf$$ 2>/dev/null; then
482: as_ln_s='ln -s'
483: # ... but there are two gotchas:
484: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486: # In both cases, we have to default to `cp -p'.
487: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488: as_ln_s='cp -p'
489: elif ln conf$$.file conf$$ 2>/dev/null; then
490: as_ln_s=ln
491: else
492: as_ln_s='cp -p'
493: fi
494: else
495: as_ln_s='cp -p'
496: fi
497: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498: rmdir conf$$.dir 2>/dev/null
499:
500: if mkdir -p . 2>/dev/null; then
501: as_mkdir_p='mkdir -p "$as_dir"'
502: else
503: test -d ./-p && rmdir ./-p
504: as_mkdir_p=false
505: fi
506:
507: if test -x / >/dev/null 2>&1; then
508: as_test_x='test -x'
509: else
510: if ls -dL / >/dev/null 2>&1; then
511: as_ls_L_option=L
512: else
513: as_ls_L_option=
514: fi
515: as_test_x='
516: eval sh -c '\''
517: if test -d "$1"; then
518: test -d "$1/.";
519: else
520: case $1 in #(
521: -*)set "./$1";;
522: esac;
523: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524: ???[sx]*):;;*)false;;esac;fi
525: '\'' sh
526: '
527: fi
528: as_executable_p=$as_test_x
529:
530: # Sed expression to map a string onto a valid CPP name.
531: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532:
533: # Sed expression to map a string onto a valid variable name.
534: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535:
536:
537: test -n "$DJDIR" || exec 7<&0 </dev/null
538: exec 6>&1
539:
540: # Name of the host.
541: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542: # so uname gets run too.
543: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544:
545: #
546: # Initializations.
547: #
548: ac_default_prefix=/usr/local
549: ac_clean_files=
550: ac_config_libobj_dir=.
551: LIBOBJS=
552: cross_compiling=no
553: subdirs=
554: MFLAGS=
555: MAKEFLAGS=
556:
557: # Identity of this package.
558: PACKAGE_NAME='rpl'
559: PACKAGE_TARNAME='rpl'
560: PACKAGE_VERSION='4.1.3'
561: PACKAGE_STRING='rpl 4.1.3'
562: PACKAGE_BUGREPORT=''
563: PACKAGE_URL=''
564:
565: enable_option_checking=no
566: ac_default_prefix=/usr/local
567: # Factoring default headers for most tests.
568: ac_includes_default="\
569: #include <stdio.h>
570: #ifdef HAVE_SYS_TYPES_H
571: # include <sys/types.h>
572: #endif
573: #ifdef HAVE_SYS_STAT_H
574: # include <sys/stat.h>
575: #endif
576: #ifdef STDC_HEADERS
577: # include <stdlib.h>
578: # include <stddef.h>
579: #else
580: # ifdef HAVE_STDLIB_H
581: # include <stdlib.h>
582: # endif
583: #endif
584: #ifdef HAVE_STRING_H
585: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586: # include <memory.h>
587: # endif
588: # include <string.h>
589: #endif
590: #ifdef HAVE_STRINGS_H
591: # include <strings.h>
592: #endif
593: #ifdef HAVE_INTTYPES_H
594: # include <inttypes.h>
595: #endif
596: #ifdef HAVE_STDINT_H
597: # include <stdint.h>
598: #endif
599: #ifdef HAVE_UNISTD_H
600: # include <unistd.h>
601: #endif"
602:
603: ac_subst_vars='am__EXEEXT_FALSE
604: am__EXEEXT_TRUE
605: LTLIBOBJS
606: LIBOBJS
607: LIBMOTIF
608: INCMOTIF
609: GIAC
610: PARI
611: COCOA
612: NTL
613: MPFR
614: GMP
615: MALLOC
616: EXT_SQL
617: DATE_FR
618: FINAL_ENCODING
619: SIGSEGV
620: BUILD_OPENMOTIF
621: OPENMOTIF
622: LIBXPM
623: OPENSSL
624: SQLITE
625: ICONV
626: FILE
627: GNUPLOT
628: GPP
629: GSL
630: UNITS
631: READLINE
632: NCURSES
633: ELF
634: BSH_PATH
635: IPV6
636: SEMUN
637: IPCS_SYSV
638: SEMAPHORES_NOMMES
639: NESTED_FUNCTIONS
640: EXPORT_DYNAMIC
641: C_STANDARD
642: OS
643: HOST
644: GNUPLOT_COMPILATION
645: EGREP
646: GREP
647: libPgSQLlib
648: libPgSQLinc
649: POSTGRESQL_SUPPORT
650: libMySQLlib
651: libMySQLinc
652: MYSQL_SUPPORT
653: DATE
654: includeX
655: libX
656: MOTIF_SUPPORT
657: DEBUG
658: EXPERIMENTAL_CODE
659: VIM_SUPPORT
660: POSTSCRIPT_SUPPORT
661: FORCE_GNUPLOT_PATH
662: GNUPLOT_SUPPORT
663: VIM
664: GNUPLOT_P
665: GV
666: GS
667: DVIPS
668: LATEX
669: TEX
670: SED
671: RANLIB
672: LN_S
673: RUNPATH
674: PROFILAGE
675: subdirs
676: LIBRPLCAS
677: RPLCAS
678: ABI
679: X_EXTRA_LIBS
680: X_LIBS
681: X_PRE_LIBS
682: X_CFLAGS
683: CPP
684: XMKMF
685: ac_ct_FC
686: FCFLAGS
687: FC
688: ac_ct_F77
689: FFLAGS
690: F77
691: am__fastdepCXX_FALSE
692: am__fastdepCXX_TRUE
693: CXXDEPMODE
694: ac_ct_CXX
695: CXXFLAGS
696: CXX
697: am__fastdepCC_FALSE
698: am__fastdepCC_TRUE
699: CCDEPMODE
700: AMDEPBACKSLASH
701: AMDEP_FALSE
702: AMDEP_TRUE
703: am__quote
704: am__include
705: DEPDIR
706: OBJEXT
707: EXEEXT
708: ac_ct_CC
709: CPPFLAGS
710: LDFLAGS
711: CFLAGS
712: CC
713: am__untar
714: am__tar
715: AMTAR
716: am__leading_dot
717: SET_MAKE
718: AWK
719: mkdir_p
720: MKDIR_P
721: INSTALL_STRIP_PROGRAM
722: STRIP
723: install_sh
724: MAKEINFO
725: AUTOHEADER
726: AUTOMAKE
727: AUTOCONF
728: ACLOCAL
729: VERSION
730: PACKAGE
731: CYGPATH_W
732: am__isrc
733: INSTALL_DATA
734: INSTALL_SCRIPT
735: INSTALL_PROGRAM
736: target_os
737: target_vendor
738: target_cpu
739: target
740: host_os
741: host_vendor
742: host_cpu
743: host
744: build_os
745: build_vendor
746: build_cpu
747: build
748: target_alias
749: host_alias
750: build_alias
751: LIBS
752: ECHO_T
753: ECHO_N
754: ECHO_C
755: DEFS
756: mandir
757: localedir
758: libdir
759: psdir
760: pdfdir
761: dvidir
762: htmldir
763: infodir
764: docdir
765: oldincludedir
766: includedir
767: localstatedir
768: sharedstatedir
769: sysconfdir
770: datadir
771: datarootdir
772: libexecdir
773: sbindir
774: bindir
775: program_transform_name
776: prefix
777: exec_prefix
778: PACKAGE_URL
779: PACKAGE_BUGREPORT
780: PACKAGE_STRING
781: PACKAGE_VERSION
782: PACKAGE_TARNAME
783: PACKAGE_NAME
784: PATH_SEPARATOR
785: SHELL'
786: ac_subst_files=''
787: ac_user_opts='
788: enable_option_checking
789: enable_dependency_tracking
790: with_x
791: with_32bits_abi
792: with_64bits_abi
793: with_rplcas
794: enable_optimization
795: enable_sysv_semaphores
796: enable_full_static
797: enable_final_encoding
798: enable_tex
799: enable_vim
800: enable_embedded_gnuplot
801: enable_gnuplot
802: enable_motif
803: enable_experimental
804: enable_debug
805: enable_profile
806: enable_final_run_path
807: with_mysql
808: with_postgresql
809: with_bourne_shell
810: with_openssl_arch
811: '
812: ac_precious_vars='build_alias
813: host_alias
814: target_alias
815: CC
816: CFLAGS
817: LDFLAGS
818: LIBS
819: CPPFLAGS
820: CXX
821: CXXFLAGS
822: CCC
823: F77
824: FFLAGS
825: FC
826: FCFLAGS
827: XMKMF
828: CPP'
829: ac_subdirs_all='tools/$LIBXPM
830: tools/$OPENMOTIF
831: tools/$GNUPLOT
832: tools/$NCURSES
833: tools/$READLINE
834: tools/$GSL
835: tools/$GPP
836: tools/$FILE
837: tools/$ICONV
838: tools/$SQLITE
839: tools/$UNITS
840: tools/$SIGSEGV'
841:
842: # Initialize some variables set by options.
843: ac_init_help=
844: ac_init_version=false
845: ac_unrecognized_opts=
846: ac_unrecognized_sep=
847: # The variables have the same names as the options, with
848: # dashes changed to underlines.
849: cache_file=/dev/null
850: exec_prefix=NONE
851: no_create=
852: no_recursion=
853: prefix=NONE
854: program_prefix=NONE
855: program_suffix=NONE
856: program_transform_name=s,x,x,
857: silent=
858: site=
859: srcdir=
860: verbose=
861: x_includes=NONE
862: x_libraries=NONE
863:
864: # Installation directory options.
865: # These are left unexpanded so users can "make install exec_prefix=/foo"
866: # and all the variables that are supposed to be based on exec_prefix
867: # by default will actually change.
868: # Use braces instead of parens because sh, perl, etc. also accept them.
869: # (The list follows the same order as the GNU Coding Standards.)
870: bindir='${exec_prefix}/bin'
871: sbindir='${exec_prefix}/sbin'
872: libexecdir='${exec_prefix}/libexec'
873: datarootdir='${prefix}/share'
874: datadir='${datarootdir}'
875: sysconfdir='${prefix}/etc'
876: sharedstatedir='${prefix}/com'
877: localstatedir='${prefix}/var'
878: includedir='${prefix}/include'
879: oldincludedir='/usr/include'
880: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881: infodir='${datarootdir}/info'
882: htmldir='${docdir}'
883: dvidir='${docdir}'
884: pdfdir='${docdir}'
885: psdir='${docdir}'
886: libdir='${exec_prefix}/lib'
887: localedir='${datarootdir}/locale'
888: mandir='${datarootdir}/man'
889:
890: ac_prev=
891: ac_dashdash=
892: for ac_option
893: do
894: # If the previous option needs an argument, assign it.
895: if test -n "$ac_prev"; then
896: eval $ac_prev=\$ac_option
897: ac_prev=
898: continue
899: fi
900:
901: case $ac_option in
902: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903: *=) ac_optarg= ;;
904: *) ac_optarg=yes ;;
905: esac
906:
907: # Accept the important Cygnus configure options, so we can diagnose typos.
908:
909: case $ac_dashdash$ac_option in
910: --)
911: ac_dashdash=yes ;;
912:
913: -bindir | --bindir | --bindi | --bind | --bin | --bi)
914: ac_prev=bindir ;;
915: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916: bindir=$ac_optarg ;;
917:
918: -build | --build | --buil | --bui | --bu)
919: ac_prev=build_alias ;;
920: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921: build_alias=$ac_optarg ;;
922:
923: -cache-file | --cache-file | --cache-fil | --cache-fi \
924: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925: ac_prev=cache_file ;;
926: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928: cache_file=$ac_optarg ;;
929:
930: --config-cache | -C)
931: cache_file=config.cache ;;
932:
933: -datadir | --datadir | --datadi | --datad)
934: ac_prev=datadir ;;
935: -datadir=* | --datadir=* | --datadi=* | --datad=*)
936: datadir=$ac_optarg ;;
937:
938: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939: | --dataroo | --dataro | --datar)
940: ac_prev=datarootdir ;;
941: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943: datarootdir=$ac_optarg ;;
944:
945: -disable-* | --disable-*)
946: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
947: # Reject names that are not valid shell variable names.
948: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949: as_fn_error $? "invalid feature name: $ac_useropt"
950: ac_useropt_orig=$ac_useropt
951: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952: case $ac_user_opts in
953: *"
954: "enable_$ac_useropt"
955: "*) ;;
956: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957: ac_unrecognized_sep=', ';;
958: esac
959: eval enable_$ac_useropt=no ;;
960:
961: -docdir | --docdir | --docdi | --doc | --do)
962: ac_prev=docdir ;;
963: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964: docdir=$ac_optarg ;;
965:
966: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967: ac_prev=dvidir ;;
968: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969: dvidir=$ac_optarg ;;
970:
971: -enable-* | --enable-*)
972: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
973: # Reject names that are not valid shell variable names.
974: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975: as_fn_error $? "invalid feature name: $ac_useropt"
976: ac_useropt_orig=$ac_useropt
977: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978: case $ac_user_opts in
979: *"
980: "enable_$ac_useropt"
981: "*) ;;
982: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983: ac_unrecognized_sep=', ';;
984: esac
985: eval enable_$ac_useropt=\$ac_optarg ;;
986:
987: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989: | --exec | --exe | --ex)
990: ac_prev=exec_prefix ;;
991: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993: | --exec=* | --exe=* | --ex=*)
994: exec_prefix=$ac_optarg ;;
995:
996: -gas | --gas | --ga | --g)
997: # Obsolete; use --with-gas.
998: with_gas=yes ;;
999:
1000: -help | --help | --hel | --he | -h)
1001: ac_init_help=long ;;
1002: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003: ac_init_help=recursive ;;
1004: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005: ac_init_help=short ;;
1006:
1007: -host | --host | --hos | --ho)
1008: ac_prev=host_alias ;;
1009: -host=* | --host=* | --hos=* | --ho=*)
1010: host_alias=$ac_optarg ;;
1011:
1012: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013: ac_prev=htmldir ;;
1014: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015: | --ht=*)
1016: htmldir=$ac_optarg ;;
1017:
1018: -includedir | --includedir | --includedi | --included | --include \
1019: | --includ | --inclu | --incl | --inc)
1020: ac_prev=includedir ;;
1021: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022: | --includ=* | --inclu=* | --incl=* | --inc=*)
1023: includedir=$ac_optarg ;;
1024:
1025: -infodir | --infodir | --infodi | --infod | --info | --inf)
1026: ac_prev=infodir ;;
1027: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028: infodir=$ac_optarg ;;
1029:
1030: -libdir | --libdir | --libdi | --libd)
1031: ac_prev=libdir ;;
1032: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033: libdir=$ac_optarg ;;
1034:
1035: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036: | --libexe | --libex | --libe)
1037: ac_prev=libexecdir ;;
1038: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039: | --libexe=* | --libex=* | --libe=*)
1040: libexecdir=$ac_optarg ;;
1041:
1042: -localedir | --localedir | --localedi | --localed | --locale)
1043: ac_prev=localedir ;;
1044: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045: localedir=$ac_optarg ;;
1046:
1047: -localstatedir | --localstatedir | --localstatedi | --localstated \
1048: | --localstate | --localstat | --localsta | --localst | --locals)
1049: ac_prev=localstatedir ;;
1050: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052: localstatedir=$ac_optarg ;;
1053:
1054: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055: ac_prev=mandir ;;
1056: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057: mandir=$ac_optarg ;;
1058:
1059: -nfp | --nfp | --nf)
1060: # Obsolete; use --without-fp.
1061: with_fp=no ;;
1062:
1063: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064: | --no-cr | --no-c | -n)
1065: no_create=yes ;;
1066:
1067: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069: no_recursion=yes ;;
1070:
1071: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073: | --oldin | --oldi | --old | --ol | --o)
1074: ac_prev=oldincludedir ;;
1075: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078: oldincludedir=$ac_optarg ;;
1079:
1080: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081: ac_prev=prefix ;;
1082: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083: prefix=$ac_optarg ;;
1084:
1085: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086: | --program-pre | --program-pr | --program-p)
1087: ac_prev=program_prefix ;;
1088: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090: program_prefix=$ac_optarg ;;
1091:
1092: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093: | --program-suf | --program-su | --program-s)
1094: ac_prev=program_suffix ;;
1095: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097: program_suffix=$ac_optarg ;;
1098:
1099: -program-transform-name | --program-transform-name \
1100: | --program-transform-nam | --program-transform-na \
1101: | --program-transform-n | --program-transform- \
1102: | --program-transform | --program-transfor \
1103: | --program-transfo | --program-transf \
1104: | --program-trans | --program-tran \
1105: | --progr-tra | --program-tr | --program-t)
1106: ac_prev=program_transform_name ;;
1107: -program-transform-name=* | --program-transform-name=* \
1108: | --program-transform-nam=* | --program-transform-na=* \
1109: | --program-transform-n=* | --program-transform-=* \
1110: | --program-transform=* | --program-transfor=* \
1111: | --program-transfo=* | --program-transf=* \
1112: | --program-trans=* | --program-tran=* \
1113: | --progr-tra=* | --program-tr=* | --program-t=*)
1114: program_transform_name=$ac_optarg ;;
1115:
1116: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117: ac_prev=pdfdir ;;
1118: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119: pdfdir=$ac_optarg ;;
1120:
1121: -psdir | --psdir | --psdi | --psd | --ps)
1122: ac_prev=psdir ;;
1123: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124: psdir=$ac_optarg ;;
1125:
1126: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127: | -silent | --silent | --silen | --sile | --sil)
1128: silent=yes ;;
1129:
1130: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131: ac_prev=sbindir ;;
1132: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133: | --sbi=* | --sb=*)
1134: sbindir=$ac_optarg ;;
1135:
1136: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138: | --sharedst | --shareds | --shared | --share | --shar \
1139: | --sha | --sh)
1140: ac_prev=sharedstatedir ;;
1141: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144: | --sha=* | --sh=*)
1145: sharedstatedir=$ac_optarg ;;
1146:
1147: -site | --site | --sit)
1148: ac_prev=site ;;
1149: -site=* | --site=* | --sit=*)
1150: site=$ac_optarg ;;
1151:
1152: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153: ac_prev=srcdir ;;
1154: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155: srcdir=$ac_optarg ;;
1156:
1157: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158: | --syscon | --sysco | --sysc | --sys | --sy)
1159: ac_prev=sysconfdir ;;
1160: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162: sysconfdir=$ac_optarg ;;
1163:
1164: -target | --target | --targe | --targ | --tar | --ta | --t)
1165: ac_prev=target_alias ;;
1166: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167: target_alias=$ac_optarg ;;
1168:
1169: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170: verbose=yes ;;
1171:
1172: -version | --version | --versio | --versi | --vers | -V)
1173: ac_init_version=: ;;
1174:
1175: -with-* | --with-*)
1176: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177: # Reject names that are not valid shell variable names.
1178: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179: as_fn_error $? "invalid package name: $ac_useropt"
1180: ac_useropt_orig=$ac_useropt
1181: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182: case $ac_user_opts in
1183: *"
1184: "with_$ac_useropt"
1185: "*) ;;
1186: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187: ac_unrecognized_sep=', ';;
1188: esac
1189: eval with_$ac_useropt=\$ac_optarg ;;
1190:
1191: -without-* | --without-*)
1192: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193: # Reject names that are not valid shell variable names.
1194: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1195: as_fn_error $? "invalid package name: $ac_useropt"
1196: ac_useropt_orig=$ac_useropt
1197: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198: case $ac_user_opts in
1199: *"
1200: "with_$ac_useropt"
1201: "*) ;;
1202: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203: ac_unrecognized_sep=', ';;
1204: esac
1205: eval with_$ac_useropt=no ;;
1206:
1207: --x)
1208: # Obsolete; use --with-x.
1209: with_x=yes ;;
1210:
1211: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212: | --x-incl | --x-inc | --x-in | --x-i)
1213: ac_prev=x_includes ;;
1214: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216: x_includes=$ac_optarg ;;
1217:
1218: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220: ac_prev=x_libraries ;;
1221: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223: x_libraries=$ac_optarg ;;
1224:
1225: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226: Try \`$0 --help' for more information"
1227: ;;
1228:
1229: *=*)
1230: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231: # Reject names that are not valid shell variable names.
1232: case $ac_envvar in #(
1233: '' | [0-9]* | *[!_$as_cr_alnum]* )
1234: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1235: esac
1236: eval $ac_envvar=\$ac_optarg
1237: export $ac_envvar ;;
1238:
1239: *)
1240: # FIXME: should be removed in autoconf 3.0.
1241: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1242: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1243: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1244: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1245: ;;
1246:
1247: esac
1248: done
1249:
1250: if test -n "$ac_prev"; then
1251: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1252: as_fn_error $? "missing argument to $ac_option"
1253: fi
1254:
1255: if test -n "$ac_unrecognized_opts"; then
1256: case $enable_option_checking in
1257: no) ;;
1258: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1259: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260: esac
1261: fi
1262:
1263: # Check all directory arguments for consistency.
1264: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265: datadir sysconfdir sharedstatedir localstatedir includedir \
1266: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267: libdir localedir mandir
1268: do
1269: eval ac_val=\$$ac_var
1270: # Remove trailing slashes.
1271: case $ac_val in
1272: */ )
1273: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274: eval $ac_var=\$ac_val;;
1275: esac
1276: # Be sure to have absolute directory names.
1277: case $ac_val in
1278: [\\/$]* | ?:[\\/]* ) continue;;
1279: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280: esac
1281: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1282: done
1283:
1284: # There might be people who depend on the old broken behavior: `$host'
1285: # used to hold the argument of --host etc.
1286: # FIXME: To remove some day.
1287: build=$build_alias
1288: host=$host_alias
1289: target=$target_alias
1290:
1291: # FIXME: To remove some day.
1292: if test "x$host_alias" != x; then
1293: if test "x$build_alias" = x; then
1294: cross_compiling=maybe
1295: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1296: If a cross compiler is detected then cross compile mode will be used" >&2
1297: elif test "x$build_alias" != "x$host_alias"; then
1298: cross_compiling=yes
1299: fi
1300: fi
1301:
1302: ac_tool_prefix=
1303: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304:
1305: test "$silent" = yes && exec 6>/dev/null
1306:
1307:
1308: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309: ac_ls_di=`ls -di .` &&
1310: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1311: as_fn_error $? "working directory cannot be determined"
1312: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1313: as_fn_error $? "pwd does not report name of working directory"
1314:
1315:
1316: # Find the source files, if location was not specified.
1317: if test -z "$srcdir"; then
1318: ac_srcdir_defaulted=yes
1319: # Try the directory containing this script, then the parent directory.
1320: ac_confdir=`$as_dirname -- "$as_myself" ||
1321: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322: X"$as_myself" : 'X\(//\)[^/]' \| \
1323: X"$as_myself" : 'X\(//\)$' \| \
1324: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325: $as_echo X"$as_myself" |
1326: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327: s//\1/
1328: q
1329: }
1330: /^X\(\/\/\)[^/].*/{
1331: s//\1/
1332: q
1333: }
1334: /^X\(\/\/\)$/{
1335: s//\1/
1336: q
1337: }
1338: /^X\(\/\).*/{
1339: s//\1/
1340: q
1341: }
1342: s/.*/./; q'`
1343: srcdir=$ac_confdir
1344: if test ! -r "$srcdir/$ac_unique_file"; then
1345: srcdir=..
1346: fi
1347: else
1348: ac_srcdir_defaulted=no
1349: fi
1350: if test ! -r "$srcdir/$ac_unique_file"; then
1351: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1352: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353: fi
1354: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355: ac_abs_confdir=`(
1356: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1357: pwd)`
1358: # When building in place, set srcdir=.
1359: if test "$ac_abs_confdir" = "$ac_pwd"; then
1360: srcdir=.
1361: fi
1362: # Remove unnecessary trailing slashes from srcdir.
1363: # Double slashes in file names in object file debugging info
1364: # mess up M-x gdb in Emacs.
1365: case $srcdir in
1366: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367: esac
1368: for ac_var in $ac_precious_vars; do
1369: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370: eval ac_env_${ac_var}_value=\$${ac_var}
1371: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373: done
1374:
1375: #
1376: # Report the --help message.
1377: #
1378: if test "$ac_init_help" = "long"; then
1379: # Omit some internal or obsolete options to make the list less imposing.
1380: # This message is too long to be a string in the A/UX 3.1 sh.
1381: cat <<_ACEOF
1382: \`configure' configures rpl 4.1.3 to adapt to many kinds of systems.
1383:
1384: Usage: $0 [OPTION]... [VAR=VALUE]...
1385:
1386: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387: VAR=VALUE. See below for descriptions of some of the useful variables.
1388:
1389: Defaults for the options are specified in brackets.
1390:
1391: Configuration:
1392: -h, --help display this help and exit
1393: --help=short display options specific to this package
1394: --help=recursive display the short help of all the included packages
1395: -V, --version display version information and exit
1396: -q, --quiet, --silent do not print \`checking ...' messages
1397: --cache-file=FILE cache test results in FILE [disabled]
1398: -C, --config-cache alias for \`--cache-file=config.cache'
1399: -n, --no-create do not create output files
1400: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401:
1402: Installation directories:
1403: --prefix=PREFIX install architecture-independent files in PREFIX
1404: [$ac_default_prefix]
1405: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1406: [PREFIX]
1407:
1408: By default, \`make install' will install all the files in
1409: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411: for instance \`--prefix=\$HOME'.
1412:
1413: For better control, use the options below.
1414:
1415: Fine tuning of the installation directories:
1416: --bindir=DIR user executables [EPREFIX/bin]
1417: --sbindir=DIR system admin executables [EPREFIX/sbin]
1418: --libexecdir=DIR program executables [EPREFIX/libexec]
1419: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422: --libdir=DIR object code libraries [EPREFIX/lib]
1423: --includedir=DIR C header files [PREFIX/include]
1424: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427: --infodir=DIR info documentation [DATAROOTDIR/info]
1428: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429: --mandir=DIR man documentation [DATAROOTDIR/man]
1430: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1431: --htmldir=DIR html documentation [DOCDIR]
1432: --dvidir=DIR dvi documentation [DOCDIR]
1433: --pdfdir=DIR pdf documentation [DOCDIR]
1434: --psdir=DIR ps documentation [DOCDIR]
1435: _ACEOF
1436:
1437: cat <<\_ACEOF
1438:
1439: Program names:
1440: --program-prefix=PREFIX prepend PREFIX to installed program names
1441: --program-suffix=SUFFIX append SUFFIX to installed program names
1442: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1443:
1444: X features:
1445: --x-includes=DIR X include files are in DIR
1446: --x-libraries=DIR X library files are in DIR
1447:
1448: System types:
1449: --build=BUILD configure for building on BUILD [guessed]
1450: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451: --target=TARGET configure for building compilers for TARGET [HOST]
1452: _ACEOF
1453: fi
1454:
1455: if test -n "$ac_init_help"; then
1456: case $ac_init_help in
1457: short | recursive ) echo "Configuration of rpl 4.1.3:";;
1458: esac
1459: cat <<\_ACEOF
1460:
1461: Optional Features:
1462: --disable-option-checking ignore unrecognized --enable/--with options
1463: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465: --disable-dependency-tracking speeds up one-time build
1466: --enable-dependency-tracking do not reject slow dependency extractors
1467: --enable-optimization set compiler flags [default=environment variables -O3]
1468: --enable-sysv-ipcs use SystemV IPC functions [default=guessed]
1469: --enable-full-static build static RPL/2 engine [default=shared]
1470: --enable-final-encoding force final encoding [default=guessed]
1471: --enable-tex provide the TeX support [default=guessed]
1472: --enable-vim provide the vim support [default=guessed]
1473: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1474: --enable-gnuplot provide the GnuPlot support [default=guessed]
1475: --enable-motif provide the Motif support [default=guessed]
1476: --enable-experimental enable experimental code [default=no]
1477: --enable-debug enable debug code [default=no]
1478: --enable-profile enable profile code [default=no]
1479: --enable-final-run-path=PATH enable another final run path than PREFIX
1480:
1481: Optional Packages:
1482: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484: --with-x use the X Window System
1485: --with-32bits-abi force 32bits ABI (multilib)
1486: --with-64bits-abi force 64bits ABI (multilib)
1487: --with-rplcas compile rplcas (default=no)
1488: --with-mysql=PATH specify directory for installed mysql
1489: --with-postgresql=PATH specify directory for installed postgresql
1490: --with-bourne-shell=PATH specify path for OS/2 bourne shell
1491: --with-openssl-arch=ARCH specify os and compiler for openssl (ARCH or list)
1492:
1493: Some influential environment variables:
1494: CC C compiler command
1495: CFLAGS C compiler flags
1496: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497: nonstandard directory <lib dir>
1498: LIBS libraries to pass to the linker, e.g. -l<library>
1499: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1500: you have headers in a nonstandard directory <include dir>
1501: CXX C++ compiler command
1502: CXXFLAGS C++ compiler flags
1503: F77 Fortran 77 compiler command
1504: FFLAGS Fortran 77 compiler flags
1505: FC Fortran compiler command
1506: FCFLAGS Fortran compiler flags
1507: XMKMF Path to xmkmf, Makefile generator for X Window System
1508: CPP C preprocessor
1509:
1510: Use these variables to override the choices made by `configure' or to help
1511: it to find libraries and programs with nonstandard names/locations.
1512:
1513: Report bugs to the package provider.
1514: _ACEOF
1515: ac_status=$?
1516: fi
1517:
1518: if test "$ac_init_help" = "recursive"; then
1519: # If there are subdirs, report their specific --help.
1520: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521: test -d "$ac_dir" ||
1522: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523: continue
1524: ac_builddir=.
1525:
1526: case "$ac_dir" in
1527: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528: *)
1529: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530: # A ".." for each directory in $ac_dir_suffix.
1531: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532: case $ac_top_builddir_sub in
1533: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535: esac ;;
1536: esac
1537: ac_abs_top_builddir=$ac_pwd
1538: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539: # for backward compatibility:
1540: ac_top_builddir=$ac_top_build_prefix
1541:
1542: case $srcdir in
1543: .) # We are building in place.
1544: ac_srcdir=.
1545: ac_top_srcdir=$ac_top_builddir_sub
1546: ac_abs_top_srcdir=$ac_pwd ;;
1547: [\\/]* | ?:[\\/]* ) # Absolute name.
1548: ac_srcdir=$srcdir$ac_dir_suffix;
1549: ac_top_srcdir=$srcdir
1550: ac_abs_top_srcdir=$srcdir ;;
1551: *) # Relative name.
1552: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553: ac_top_srcdir=$ac_top_build_prefix$srcdir
1554: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555: esac
1556: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557:
1558: cd "$ac_dir" || { ac_status=$?; continue; }
1559: # Check for guested configure.
1560: if test -f "$ac_srcdir/configure.gnu"; then
1561: echo &&
1562: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563: elif test -f "$ac_srcdir/configure"; then
1564: echo &&
1565: $SHELL "$ac_srcdir/configure" --help=recursive
1566: else
1567: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568: fi || ac_status=$?
1569: cd "$ac_pwd" || { ac_status=$?; break; }
1570: done
1571: fi
1572:
1573: test -n "$ac_init_help" && exit $ac_status
1574: if $ac_init_version; then
1575: cat <<\_ACEOF
1576: rpl configure 4.1.3
1577: generated by GNU Autoconf 2.68
1578:
1579: Copyright (C) 2010 Free Software Foundation, Inc.
1580: This configure script is free software; the Free Software Foundation
1581: gives unlimited permission to copy, distribute and modify it.
1582: _ACEOF
1583: exit
1584: fi
1585:
1586: ## ------------------------ ##
1587: ## Autoconf initialization. ##
1588: ## ------------------------ ##
1589:
1590: # ac_fn_c_try_compile LINENO
1591: # --------------------------
1592: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593: ac_fn_c_try_compile ()
1594: {
1595: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596: rm -f conftest.$ac_objext
1597: if { { ac_try="$ac_compile"
1598: case "(($ac_try" in
1599: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600: *) ac_try_echo=$ac_try;;
1601: esac
1602: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603: $as_echo "$ac_try_echo"; } >&5
1604: (eval "$ac_compile") 2>conftest.err
1605: ac_status=$?
1606: if test -s conftest.err; then
1607: grep -v '^ *+' conftest.err >conftest.er1
1608: cat conftest.er1 >&5
1609: mv -f conftest.er1 conftest.err
1610: fi
1611: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612: test $ac_status = 0; } && {
1613: test -z "$ac_c_werror_flag" ||
1614: test ! -s conftest.err
1615: } && test -s conftest.$ac_objext; then :
1616: ac_retval=0
1617: else
1618: $as_echo "$as_me: failed program was:" >&5
1619: sed 's/^/| /' conftest.$ac_ext >&5
1620:
1621: ac_retval=1
1622: fi
1623: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624: as_fn_set_status $ac_retval
1625:
1626: } # ac_fn_c_try_compile
1627:
1628: # ac_fn_cxx_try_compile LINENO
1629: # ----------------------------
1630: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1631: ac_fn_cxx_try_compile ()
1632: {
1633: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634: rm -f conftest.$ac_objext
1635: if { { ac_try="$ac_compile"
1636: case "(($ac_try" in
1637: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638: *) ac_try_echo=$ac_try;;
1639: esac
1640: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641: $as_echo "$ac_try_echo"; } >&5
1642: (eval "$ac_compile") 2>conftest.err
1643: ac_status=$?
1644: if test -s conftest.err; then
1645: grep -v '^ *+' conftest.err >conftest.er1
1646: cat conftest.er1 >&5
1647: mv -f conftest.er1 conftest.err
1648: fi
1649: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650: test $ac_status = 0; } && {
1651: test -z "$ac_cxx_werror_flag" ||
1652: test ! -s conftest.err
1653: } && test -s conftest.$ac_objext; then :
1654: ac_retval=0
1655: else
1656: $as_echo "$as_me: failed program was:" >&5
1657: sed 's/^/| /' conftest.$ac_ext >&5
1658:
1659: ac_retval=1
1660: fi
1661: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1662: as_fn_set_status $ac_retval
1663:
1664: } # ac_fn_cxx_try_compile
1665:
1666: # ac_fn_f77_try_compile LINENO
1667: # ----------------------------
1668: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1669: ac_fn_f77_try_compile ()
1670: {
1671: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672: rm -f conftest.$ac_objext
1673: if { { ac_try="$ac_compile"
1674: case "(($ac_try" in
1675: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676: *) ac_try_echo=$ac_try;;
1677: esac
1678: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679: $as_echo "$ac_try_echo"; } >&5
1680: (eval "$ac_compile") 2>conftest.err
1681: ac_status=$?
1682: if test -s conftest.err; then
1683: grep -v '^ *+' conftest.err >conftest.er1
1684: cat conftest.er1 >&5
1685: mv -f conftest.er1 conftest.err
1686: fi
1687: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688: test $ac_status = 0; } && {
1689: test -z "$ac_f77_werror_flag" ||
1690: test ! -s conftest.err
1691: } && test -s conftest.$ac_objext; then :
1692: ac_retval=0
1693: else
1694: $as_echo "$as_me: failed program was:" >&5
1695: sed 's/^/| /' conftest.$ac_ext >&5
1696:
1697: ac_retval=1
1698: fi
1699: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700: as_fn_set_status $ac_retval
1701:
1702: } # ac_fn_f77_try_compile
1703:
1704: # ac_fn_fc_try_compile LINENO
1705: # ---------------------------
1706: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1707: ac_fn_fc_try_compile ()
1708: {
1709: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710: rm -f conftest.$ac_objext
1711: if { { ac_try="$ac_compile"
1712: case "(($ac_try" in
1713: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714: *) ac_try_echo=$ac_try;;
1715: esac
1716: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717: $as_echo "$ac_try_echo"; } >&5
1718: (eval "$ac_compile") 2>conftest.err
1719: ac_status=$?
1720: if test -s conftest.err; then
1721: grep -v '^ *+' conftest.err >conftest.er1
1722: cat conftest.er1 >&5
1723: mv -f conftest.er1 conftest.err
1724: fi
1725: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726: test $ac_status = 0; } && {
1727: test -z "$ac_fc_werror_flag" ||
1728: test ! -s conftest.err
1729: } && test -s conftest.$ac_objext; then :
1730: ac_retval=0
1731: else
1732: $as_echo "$as_me: failed program was:" >&5
1733: sed 's/^/| /' conftest.$ac_ext >&5
1734:
1735: ac_retval=1
1736: fi
1737: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738: as_fn_set_status $ac_retval
1739:
1740: } # ac_fn_fc_try_compile
1741:
1742: # ac_fn_c_try_cpp LINENO
1743: # ----------------------
1744: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1745: ac_fn_c_try_cpp ()
1746: {
1747: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748: if { { ac_try="$ac_cpp conftest.$ac_ext"
1749: case "(($ac_try" in
1750: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751: *) ac_try_echo=$ac_try;;
1752: esac
1753: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754: $as_echo "$ac_try_echo"; } >&5
1755: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1756: ac_status=$?
1757: if test -s conftest.err; then
1758: grep -v '^ *+' conftest.err >conftest.er1
1759: cat conftest.er1 >&5
1760: mv -f conftest.er1 conftest.err
1761: fi
1762: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763: test $ac_status = 0; } > conftest.i && {
1764: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1765: test ! -s conftest.err
1766: }; then :
1767: ac_retval=0
1768: else
1769: $as_echo "$as_me: failed program was:" >&5
1770: sed 's/^/| /' conftest.$ac_ext >&5
1771:
1772: ac_retval=1
1773: fi
1774: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775: as_fn_set_status $ac_retval
1776:
1777: } # ac_fn_c_try_cpp
1778:
1779: # ac_fn_c_try_link LINENO
1780: # -----------------------
1781: # Try to link conftest.$ac_ext, and return whether this succeeded.
1782: ac_fn_c_try_link ()
1783: {
1784: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785: rm -f conftest.$ac_objext conftest$ac_exeext
1786: if { { ac_try="$ac_link"
1787: case "(($ac_try" in
1788: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789: *) ac_try_echo=$ac_try;;
1790: esac
1791: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792: $as_echo "$ac_try_echo"; } >&5
1793: (eval "$ac_link") 2>conftest.err
1794: ac_status=$?
1795: if test -s conftest.err; then
1796: grep -v '^ *+' conftest.err >conftest.er1
1797: cat conftest.er1 >&5
1798: mv -f conftest.er1 conftest.err
1799: fi
1800: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801: test $ac_status = 0; } && {
1802: test -z "$ac_c_werror_flag" ||
1803: test ! -s conftest.err
1804: } && test -s conftest$ac_exeext && {
1805: test "$cross_compiling" = yes ||
1806: $as_test_x conftest$ac_exeext
1807: }; then :
1808: ac_retval=0
1809: else
1810: $as_echo "$as_me: failed program was:" >&5
1811: sed 's/^/| /' conftest.$ac_ext >&5
1812:
1813: ac_retval=1
1814: fi
1815: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817: # interfere with the next link command; also delete a directory that is
1818: # left behind by Apple's compiler. We do this before executing the actions.
1819: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821: as_fn_set_status $ac_retval
1822:
1823: } # ac_fn_c_try_link
1824:
1825: # ac_fn_c_check_func LINENO FUNC VAR
1826: # ----------------------------------
1827: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1828: ac_fn_c_check_func ()
1829: {
1830: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832: $as_echo_n "checking for $2... " >&6; }
1833: if eval \${$3+:} false; then :
1834: $as_echo_n "(cached) " >&6
1835: else
1836: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837: /* end confdefs.h. */
1838: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840: #define $2 innocuous_$2
1841:
1842: /* System header to define __stub macros and hopefully few prototypes,
1843: which can conflict with char $2 (); below.
1844: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845: <limits.h> exists even on freestanding compilers. */
1846:
1847: #ifdef __STDC__
1848: # include <limits.h>
1849: #else
1850: # include <assert.h>
1851: #endif
1852:
1853: #undef $2
1854:
1855: /* Override any GCC internal prototype to avoid an error.
1856: Use char because int might match the return type of a GCC
1857: builtin and then its argument prototype would still apply. */
1858: #ifdef __cplusplus
1859: extern "C"
1860: #endif
1861: char $2 ();
1862: /* The GNU C library defines this for functions which it implements
1863: to always fail with ENOSYS. Some functions are actually named
1864: something starting with __ and the normal name is an alias. */
1865: #if defined __stub_$2 || defined __stub___$2
1866: choke me
1867: #endif
1868:
1869: int
1870: main ()
1871: {
1872: return $2 ();
1873: ;
1874: return 0;
1875: }
1876: _ACEOF
1877: if ac_fn_c_try_link "$LINENO"; then :
1878: eval "$3=yes"
1879: else
1880: eval "$3=no"
1881: fi
1882: rm -f core conftest.err conftest.$ac_objext \
1883: conftest$ac_exeext conftest.$ac_ext
1884: fi
1885: eval ac_res=\$$3
1886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887: $as_echo "$ac_res" >&6; }
1888: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889:
1890: } # ac_fn_c_check_func
1891:
1892: # ac_fn_c_try_run LINENO
1893: # ----------------------
1894: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1895: # that executables *can* be run.
1896: ac_fn_c_try_run ()
1897: {
1898: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899: if { { ac_try="$ac_link"
1900: case "(($ac_try" in
1901: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902: *) ac_try_echo=$ac_try;;
1903: esac
1904: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905: $as_echo "$ac_try_echo"; } >&5
1906: (eval "$ac_link") 2>&5
1907: ac_status=$?
1908: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1910: { { case "(($ac_try" in
1911: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912: *) ac_try_echo=$ac_try;;
1913: esac
1914: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915: $as_echo "$ac_try_echo"; } >&5
1916: (eval "$ac_try") 2>&5
1917: ac_status=$?
1918: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919: test $ac_status = 0; }; }; then :
1920: ac_retval=0
1921: else
1922: $as_echo "$as_me: program exited with status $ac_status" >&5
1923: $as_echo "$as_me: failed program was:" >&5
1924: sed 's/^/| /' conftest.$ac_ext >&5
1925:
1926: ac_retval=$ac_status
1927: fi
1928: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1929: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930: as_fn_set_status $ac_retval
1931:
1932: } # ac_fn_c_try_run
1933:
1934: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1935: # -------------------------------------------
1936: # Tests whether TYPE exists after having included INCLUDES, setting cache
1937: # variable VAR accordingly.
1938: ac_fn_c_check_type ()
1939: {
1940: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942: $as_echo_n "checking for $2... " >&6; }
1943: if eval \${$3+:} false; then :
1944: $as_echo_n "(cached) " >&6
1945: else
1946: eval "$3=no"
1947: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948: /* end confdefs.h. */
1949: $4
1950: int
1951: main ()
1952: {
1953: if (sizeof ($2))
1954: return 0;
1955: ;
1956: return 0;
1957: }
1958: _ACEOF
1959: if ac_fn_c_try_compile "$LINENO"; then :
1960: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961: /* end confdefs.h. */
1962: $4
1963: int
1964: main ()
1965: {
1966: if (sizeof (($2)))
1967: return 0;
1968: ;
1969: return 0;
1970: }
1971: _ACEOF
1972: if ac_fn_c_try_compile "$LINENO"; then :
1973:
1974: else
1975: eval "$3=yes"
1976: fi
1977: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978: fi
1979: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980: fi
1981: eval ac_res=\$$3
1982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983: $as_echo "$ac_res" >&6; }
1984: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985:
1986: } # ac_fn_c_check_type
1987:
1988: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1989: # --------------------------------------------
1990: # Tries to find the compile-time value of EXPR in a program that includes
1991: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1992: # computed
1993: ac_fn_c_compute_int ()
1994: {
1995: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996: if test "$cross_compiling" = yes; then
1997: # Depending upon the size, compute the lo and hi bounds.
1998: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999: /* end confdefs.h. */
2000: $4
2001: int
2002: main ()
2003: {
2004: static int test_array [1 - 2 * !(($2) >= 0)];
2005: test_array [0] = 0
2006:
2007: ;
2008: return 0;
2009: }
2010: _ACEOF
2011: if ac_fn_c_try_compile "$LINENO"; then :
2012: ac_lo=0 ac_mid=0
2013: while :; do
2014: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015: /* end confdefs.h. */
2016: $4
2017: int
2018: main ()
2019: {
2020: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2021: test_array [0] = 0
2022:
2023: ;
2024: return 0;
2025: }
2026: _ACEOF
2027: if ac_fn_c_try_compile "$LINENO"; then :
2028: ac_hi=$ac_mid; break
2029: else
2030: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2031: if test $ac_lo -le $ac_mid; then
2032: ac_lo= ac_hi=
2033: break
2034: fi
2035: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2036: fi
2037: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038: done
2039: else
2040: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041: /* end confdefs.h. */
2042: $4
2043: int
2044: main ()
2045: {
2046: static int test_array [1 - 2 * !(($2) < 0)];
2047: test_array [0] = 0
2048:
2049: ;
2050: return 0;
2051: }
2052: _ACEOF
2053: if ac_fn_c_try_compile "$LINENO"; then :
2054: ac_hi=-1 ac_mid=-1
2055: while :; do
2056: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057: /* end confdefs.h. */
2058: $4
2059: int
2060: main ()
2061: {
2062: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2063: test_array [0] = 0
2064:
2065: ;
2066: return 0;
2067: }
2068: _ACEOF
2069: if ac_fn_c_try_compile "$LINENO"; then :
2070: ac_lo=$ac_mid; break
2071: else
2072: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2073: if test $ac_mid -le $ac_hi; then
2074: ac_lo= ac_hi=
2075: break
2076: fi
2077: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2078: fi
2079: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080: done
2081: else
2082: ac_lo= ac_hi=
2083: fi
2084: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085: fi
2086: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087: # Binary search between lo and hi bounds.
2088: while test "x$ac_lo" != "x$ac_hi"; do
2089: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2090: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091: /* end confdefs.h. */
2092: $4
2093: int
2094: main ()
2095: {
2096: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2097: test_array [0] = 0
2098:
2099: ;
2100: return 0;
2101: }
2102: _ACEOF
2103: if ac_fn_c_try_compile "$LINENO"; then :
2104: ac_hi=$ac_mid
2105: else
2106: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2107: fi
2108: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109: done
2110: case $ac_lo in #((
2111: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2112: '') ac_retval=1 ;;
2113: esac
2114: else
2115: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116: /* end confdefs.h. */
2117: $4
2118: static long int longval () { return $2; }
2119: static unsigned long int ulongval () { return $2; }
2120: #include <stdio.h>
2121: #include <stdlib.h>
2122: int
2123: main ()
2124: {
2125:
2126: FILE *f = fopen ("conftest.val", "w");
2127: if (! f)
2128: return 1;
2129: if (($2) < 0)
2130: {
2131: long int i = longval ();
2132: if (i != ($2))
2133: return 1;
2134: fprintf (f, "%ld", i);
2135: }
2136: else
2137: {
2138: unsigned long int i = ulongval ();
2139: if (i != ($2))
2140: return 1;
2141: fprintf (f, "%lu", i);
2142: }
2143: /* Do not output a trailing newline, as this causes \r\n confusion
2144: on some platforms. */
2145: return ferror (f) || fclose (f) != 0;
2146:
2147: ;
2148: return 0;
2149: }
2150: _ACEOF
2151: if ac_fn_c_try_run "$LINENO"; then :
2152: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2153: else
2154: ac_retval=1
2155: fi
2156: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2157: conftest.$ac_objext conftest.beam conftest.$ac_ext
2158: rm -f conftest.val
2159:
2160: fi
2161: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162: as_fn_set_status $ac_retval
2163:
2164: } # ac_fn_c_compute_int
2165:
2166: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2167: # -------------------------------------------------------
2168: # Tests whether HEADER exists and can be compiled using the include files in
2169: # INCLUDES, setting the cache variable VAR accordingly.
2170: ac_fn_c_check_header_compile ()
2171: {
2172: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174: $as_echo_n "checking for $2... " >&6; }
2175: if eval \${$3+:} false; then :
2176: $as_echo_n "(cached) " >&6
2177: else
2178: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179: /* end confdefs.h. */
2180: $4
2181: #include <$2>
2182: _ACEOF
2183: if ac_fn_c_try_compile "$LINENO"; then :
2184: eval "$3=yes"
2185: else
2186: eval "$3=no"
2187: fi
2188: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189: fi
2190: eval ac_res=\$$3
2191: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192: $as_echo "$ac_res" >&6; }
2193: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194:
2195: } # ac_fn_c_check_header_compile
2196:
2197: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2198: # -------------------------------------------------------
2199: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2200: # the include files in INCLUDES and setting the cache variable VAR
2201: # accordingly.
2202: ac_fn_c_check_header_mongrel ()
2203: {
2204: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205: if eval \${$3+:} false; then :
2206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207: $as_echo_n "checking for $2... " >&6; }
2208: if eval \${$3+:} false; then :
2209: $as_echo_n "(cached) " >&6
2210: fi
2211: eval ac_res=\$$3
2212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213: $as_echo "$ac_res" >&6; }
2214: else
2215: # Is the header compilable?
2216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2217: $as_echo_n "checking $2 usability... " >&6; }
2218: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219: /* end confdefs.h. */
2220: $4
2221: #include <$2>
2222: _ACEOF
2223: if ac_fn_c_try_compile "$LINENO"; then :
2224: ac_header_compiler=yes
2225: else
2226: ac_header_compiler=no
2227: fi
2228: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2230: $as_echo "$ac_header_compiler" >&6; }
2231:
2232: # Is the header present?
2233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2234: $as_echo_n "checking $2 presence... " >&6; }
2235: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236: /* end confdefs.h. */
2237: #include <$2>
2238: _ACEOF
2239: if ac_fn_c_try_cpp "$LINENO"; then :
2240: ac_header_preproc=yes
2241: else
2242: ac_header_preproc=no
2243: fi
2244: rm -f conftest.err conftest.i conftest.$ac_ext
2245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2246: $as_echo "$ac_header_preproc" >&6; }
2247:
2248: # So? What about this header?
2249: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2250: yes:no: )
2251: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2252: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2253: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2254: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2255: ;;
2256: no:yes:* )
2257: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2258: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2259: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2260: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2261: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2262: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2263: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2264: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2265: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2266: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2267: ;;
2268: esac
2269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270: $as_echo_n "checking for $2... " >&6; }
2271: if eval \${$3+:} false; then :
2272: $as_echo_n "(cached) " >&6
2273: else
2274: eval "$3=\$ac_header_compiler"
2275: fi
2276: eval ac_res=\$$3
2277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278: $as_echo "$ac_res" >&6; }
2279: fi
2280: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2281:
2282: } # ac_fn_c_check_header_mongrel
2283: cat >config.log <<_ACEOF
2284: This file contains any messages produced by compilers while
2285: running configure, to aid debugging if configure makes a mistake.
2286:
2287: It was created by rpl $as_me 4.1.3, which was
2288: generated by GNU Autoconf 2.68. Invocation command line was
2289:
2290: $ $0 $@
2291:
2292: _ACEOF
2293: exec 5>>config.log
2294: {
2295: cat <<_ASUNAME
2296: ## --------- ##
2297: ## Platform. ##
2298: ## --------- ##
2299:
2300: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2301: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2302: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2303: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2304: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2305:
2306: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2307: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2308:
2309: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2310: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2311: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2312: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2313: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2314: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2315: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2316:
2317: _ASUNAME
2318:
2319: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320: for as_dir in $PATH
2321: do
2322: IFS=$as_save_IFS
2323: test -z "$as_dir" && as_dir=.
2324: $as_echo "PATH: $as_dir"
2325: done
2326: IFS=$as_save_IFS
2327:
2328: } >&5
2329:
2330: cat >&5 <<_ACEOF
2331:
2332:
2333: ## ----------- ##
2334: ## Core tests. ##
2335: ## ----------- ##
2336:
2337: _ACEOF
2338:
2339:
2340: # Keep a trace of the command line.
2341: # Strip out --no-create and --no-recursion so they do not pile up.
2342: # Strip out --silent because we don't want to record it for future runs.
2343: # Also quote any args containing shell meta-characters.
2344: # Make two passes to allow for proper duplicate-argument suppression.
2345: ac_configure_args=
2346: ac_configure_args0=
2347: ac_configure_args1=
2348: ac_must_keep_next=false
2349: for ac_pass in 1 2
2350: do
2351: for ac_arg
2352: do
2353: case $ac_arg in
2354: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2355: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2356: | -silent | --silent | --silen | --sile | --sil)
2357: continue ;;
2358: *\'*)
2359: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2360: esac
2361: case $ac_pass in
2362: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2363: 2)
2364: as_fn_append ac_configure_args1 " '$ac_arg'"
2365: if test $ac_must_keep_next = true; then
2366: ac_must_keep_next=false # Got value, back to normal.
2367: else
2368: case $ac_arg in
2369: *=* | --config-cache | -C | -disable-* | --disable-* \
2370: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2371: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2372: | -with-* | --with-* | -without-* | --without-* | --x)
2373: case "$ac_configure_args0 " in
2374: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2375: esac
2376: ;;
2377: -* ) ac_must_keep_next=true ;;
2378: esac
2379: fi
2380: as_fn_append ac_configure_args " '$ac_arg'"
2381: ;;
2382: esac
2383: done
2384: done
2385: { ac_configure_args0=; unset ac_configure_args0;}
2386: { ac_configure_args1=; unset ac_configure_args1;}
2387:
2388: # When interrupted or exit'd, cleanup temporary files, and complete
2389: # config.log. We remove comments because anyway the quotes in there
2390: # would cause problems or look ugly.
2391: # WARNING: Use '\'' to represent an apostrophe within the trap.
2392: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2393: trap 'exit_status=$?
2394: # Save into config.log some information that might help in debugging.
2395: {
2396: echo
2397:
2398: $as_echo "## ---------------- ##
2399: ## Cache variables. ##
2400: ## ---------------- ##"
2401: echo
2402: # The following way of writing the cache mishandles newlines in values,
2403: (
2404: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2405: eval ac_val=\$$ac_var
2406: case $ac_val in #(
2407: *${as_nl}*)
2408: case $ac_var in #(
2409: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2410: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2411: esac
2412: case $ac_var in #(
2413: _ | IFS | as_nl) ;; #(
2414: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2415: *) { eval $ac_var=; unset $ac_var;} ;;
2416: esac ;;
2417: esac
2418: done
2419: (set) 2>&1 |
2420: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2421: *${as_nl}ac_space=\ *)
2422: sed -n \
2423: "s/'\''/'\''\\\\'\'''\''/g;
2424: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2425: ;; #(
2426: *)
2427: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2428: ;;
2429: esac |
2430: sort
2431: )
2432: echo
2433:
2434: $as_echo "## ----------------- ##
2435: ## Output variables. ##
2436: ## ----------------- ##"
2437: echo
2438: for ac_var in $ac_subst_vars
2439: do
2440: eval ac_val=\$$ac_var
2441: case $ac_val in
2442: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2443: esac
2444: $as_echo "$ac_var='\''$ac_val'\''"
2445: done | sort
2446: echo
2447:
2448: if test -n "$ac_subst_files"; then
2449: $as_echo "## ------------------- ##
2450: ## File substitutions. ##
2451: ## ------------------- ##"
2452: echo
2453: for ac_var in $ac_subst_files
2454: do
2455: eval ac_val=\$$ac_var
2456: case $ac_val in
2457: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2458: esac
2459: $as_echo "$ac_var='\''$ac_val'\''"
2460: done | sort
2461: echo
2462: fi
2463:
2464: if test -s confdefs.h; then
2465: $as_echo "## ----------- ##
2466: ## confdefs.h. ##
2467: ## ----------- ##"
2468: echo
2469: cat confdefs.h
2470: echo
2471: fi
2472: test "$ac_signal" != 0 &&
2473: $as_echo "$as_me: caught signal $ac_signal"
2474: $as_echo "$as_me: exit $exit_status"
2475: } >&5
2476: rm -f core *.core core.conftest.* &&
2477: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2478: exit $exit_status
2479: ' 0
2480: for ac_signal in 1 2 13 15; do
2481: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2482: done
2483: ac_signal=0
2484:
2485: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2486: rm -f -r conftest* confdefs.h
2487:
2488: $as_echo "/* confdefs.h */" > confdefs.h
2489:
2490: # Predefined preprocessor variables.
2491:
2492: cat >>confdefs.h <<_ACEOF
2493: #define PACKAGE_NAME "$PACKAGE_NAME"
2494: _ACEOF
2495:
2496: cat >>confdefs.h <<_ACEOF
2497: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2498: _ACEOF
2499:
2500: cat >>confdefs.h <<_ACEOF
2501: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2502: _ACEOF
2503:
2504: cat >>confdefs.h <<_ACEOF
2505: #define PACKAGE_STRING "$PACKAGE_STRING"
2506: _ACEOF
2507:
2508: cat >>confdefs.h <<_ACEOF
2509: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2510: _ACEOF
2511:
2512: cat >>confdefs.h <<_ACEOF
2513: #define PACKAGE_URL "$PACKAGE_URL"
2514: _ACEOF
2515:
2516:
2517: # Let the site file select an alternate cache file if it wants to.
2518: # Prefer an explicitly selected file to automatically selected ones.
2519: ac_site_file1=NONE
2520: ac_site_file2=NONE
2521: if test -n "$CONFIG_SITE"; then
2522: # We do not want a PATH search for config.site.
2523: case $CONFIG_SITE in #((
2524: -*) ac_site_file1=./$CONFIG_SITE;;
2525: */*) ac_site_file1=$CONFIG_SITE;;
2526: *) ac_site_file1=./$CONFIG_SITE;;
2527: esac
2528: elif test "x$prefix" != xNONE; then
2529: ac_site_file1=$prefix/share/config.site
2530: ac_site_file2=$prefix/etc/config.site
2531: else
2532: ac_site_file1=$ac_default_prefix/share/config.site
2533: ac_site_file2=$ac_default_prefix/etc/config.site
2534: fi
2535: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2536: do
2537: test "x$ac_site_file" = xNONE && continue
2538: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2539: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2540: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2541: sed 's/^/| /' "$ac_site_file" >&5
2542: . "$ac_site_file" \
2543: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545: as_fn_error $? "failed to load site script $ac_site_file
2546: See \`config.log' for more details" "$LINENO" 5; }
2547: fi
2548: done
2549:
2550: if test -r "$cache_file"; then
2551: # Some versions of bash will fail to source /dev/null (special files
2552: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2553: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2554: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2555: $as_echo "$as_me: loading cache $cache_file" >&6;}
2556: case $cache_file in
2557: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2558: *) . "./$cache_file";;
2559: esac
2560: fi
2561: else
2562: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2563: $as_echo "$as_me: creating cache $cache_file" >&6;}
2564: >$cache_file
2565: fi
2566:
2567: # Check that the precious variables saved in the cache have kept the same
2568: # value.
2569: ac_cache_corrupted=false
2570: for ac_var in $ac_precious_vars; do
2571: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2572: eval ac_new_set=\$ac_env_${ac_var}_set
2573: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2574: eval ac_new_val=\$ac_env_${ac_var}_value
2575: case $ac_old_set,$ac_new_set in
2576: set,)
2577: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2578: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2579: ac_cache_corrupted=: ;;
2580: ,set)
2581: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2582: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2583: ac_cache_corrupted=: ;;
2584: ,);;
2585: *)
2586: if test "x$ac_old_val" != "x$ac_new_val"; then
2587: # differences in whitespace do not lead to failure.
2588: ac_old_val_w=`echo x $ac_old_val`
2589: ac_new_val_w=`echo x $ac_new_val`
2590: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2591: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2592: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2593: ac_cache_corrupted=:
2594: else
2595: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2596: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2597: eval $ac_var=\$ac_old_val
2598: fi
2599: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2600: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2601: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2602: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2603: fi;;
2604: esac
2605: # Pass precious variables to config.status.
2606: if test "$ac_new_set" = set; then
2607: case $ac_new_val in
2608: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2609: *) ac_arg=$ac_var=$ac_new_val ;;
2610: esac
2611: case " $ac_configure_args " in
2612: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2613: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2614: esac
2615: fi
2616: done
2617: if $ac_cache_corrupted; then
2618: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2619: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2621: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2622: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2623: fi
2624: ## -------------------- ##
2625: ## Main body of script. ##
2626: ## -------------------- ##
2627:
2628: ac_ext=c
2629: ac_cpp='$CPP $CPPFLAGS'
2630: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2633:
2634:
2635: ac_aux_dir=
2636: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2637: if test -f "$ac_dir/install-sh"; then
2638: ac_aux_dir=$ac_dir
2639: ac_install_sh="$ac_aux_dir/install-sh -c"
2640: break
2641: elif test -f "$ac_dir/install.sh"; then
2642: ac_aux_dir=$ac_dir
2643: ac_install_sh="$ac_aux_dir/install.sh -c"
2644: break
2645: elif test -f "$ac_dir/shtool"; then
2646: ac_aux_dir=$ac_dir
2647: ac_install_sh="$ac_aux_dir/shtool install -c"
2648: break
2649: fi
2650: done
2651: if test -z "$ac_aux_dir"; then
2652: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2653: fi
2654:
2655: # These three variables are undocumented and unsupported,
2656: # and are intended to be withdrawn in a future Autoconf release.
2657: # They can cause serious problems if a builder's source tree is in a directory
2658: # whose full name contains unusual characters.
2659: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2660: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2661: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2662:
2663:
2664: # Make sure we can run config.sub.
2665: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2666: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2667:
2668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2669: $as_echo_n "checking build system type... " >&6; }
2670: if ${ac_cv_build+:} false; then :
2671: $as_echo_n "(cached) " >&6
2672: else
2673: ac_build_alias=$build_alias
2674: test "x$ac_build_alias" = x &&
2675: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2676: test "x$ac_build_alias" = x &&
2677: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2678: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2679: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2680:
2681: fi
2682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2683: $as_echo "$ac_cv_build" >&6; }
2684: case $ac_cv_build in
2685: *-*-*) ;;
2686: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2687: esac
2688: build=$ac_cv_build
2689: ac_save_IFS=$IFS; IFS='-'
2690: set x $ac_cv_build
2691: shift
2692: build_cpu=$1
2693: build_vendor=$2
2694: shift; shift
2695: # Remember, the first character of IFS is used to create $*,
2696: # except with old shells:
2697: build_os=$*
2698: IFS=$ac_save_IFS
2699: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2700:
2701:
2702: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2703: $as_echo_n "checking host system type... " >&6; }
2704: if ${ac_cv_host+:} false; then :
2705: $as_echo_n "(cached) " >&6
2706: else
2707: if test "x$host_alias" = x; then
2708: ac_cv_host=$ac_cv_build
2709: else
2710: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2711: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2712: fi
2713:
2714: fi
2715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2716: $as_echo "$ac_cv_host" >&6; }
2717: case $ac_cv_host in
2718: *-*-*) ;;
2719: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2720: esac
2721: host=$ac_cv_host
2722: ac_save_IFS=$IFS; IFS='-'
2723: set x $ac_cv_host
2724: shift
2725: host_cpu=$1
2726: host_vendor=$2
2727: shift; shift
2728: # Remember, the first character of IFS is used to create $*,
2729: # except with old shells:
2730: host_os=$*
2731: IFS=$ac_save_IFS
2732: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2733:
2734:
2735: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2736: $as_echo_n "checking target system type... " >&6; }
2737: if ${ac_cv_target+:} false; then :
2738: $as_echo_n "(cached) " >&6
2739: else
2740: if test "x$target_alias" = x; then
2741: ac_cv_target=$ac_cv_host
2742: else
2743: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2744: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2745: fi
2746:
2747: fi
2748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2749: $as_echo "$ac_cv_target" >&6; }
2750: case $ac_cv_target in
2751: *-*-*) ;;
2752: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2753: esac
2754: target=$ac_cv_target
2755: ac_save_IFS=$IFS; IFS='-'
2756: set x $ac_cv_target
2757: shift
2758: target_cpu=$1
2759: target_vendor=$2
2760: shift; shift
2761: # Remember, the first character of IFS is used to create $*,
2762: # except with old shells:
2763: target_os=$*
2764: IFS=$ac_save_IFS
2765: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2766:
2767:
2768: # The aliases save the names the user supplied, while $host etc.
2769: # will get canonicalized.
2770: test -n "$target_alias" &&
2771: test "$program_prefix$program_suffix$program_transform_name" = \
2772: NONENONEs,x,x, &&
2773: program_prefix=${target_alias}-
2774:
2775: am__api_version='1.11'
2776:
2777: # Find a good install program. We prefer a C program (faster),
2778: # so one script is as good as another. But avoid the broken or
2779: # incompatible versions:
2780: # SysV /etc/install, /usr/sbin/install
2781: # SunOS /usr/etc/install
2782: # IRIX /sbin/install
2783: # AIX /bin/install
2784: # AmigaOS /C/install, which installs bootblocks on floppy discs
2785: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2786: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2787: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2788: # OS/2's system install, which has a completely different semantic
2789: # ./install, which can be erroneously created by make from ./install.sh.
2790: # Reject install programs that cannot install multiple files.
2791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2792: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2793: if test -z "$INSTALL"; then
2794: if ${ac_cv_path_install+:} false; then :
2795: $as_echo_n "(cached) " >&6
2796: else
2797: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798: for as_dir in $PATH
2799: do
2800: IFS=$as_save_IFS
2801: test -z "$as_dir" && as_dir=.
2802: # Account for people who put trailing slashes in PATH elements.
2803: case $as_dir/ in #((
2804: ./ | .// | /[cC]/* | \
2805: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2806: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2807: /usr/ucb/* ) ;;
2808: *)
2809: # OSF1 and SCO ODT 3.0 have their own names for install.
2810: # Don't use installbsd from OSF since it installs stuff as root
2811: # by default.
2812: for ac_prog in ginstall scoinst install; do
2813: for ac_exec_ext in '' $ac_executable_extensions; do
2814: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2815: if test $ac_prog = install &&
2816: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2817: # AIX install. It has an incompatible calling convention.
2818: :
2819: elif test $ac_prog = install &&
2820: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2821: # program-specific install script used by HP pwplus--don't use.
2822: :
2823: else
2824: rm -rf conftest.one conftest.two conftest.dir
2825: echo one > conftest.one
2826: echo two > conftest.two
2827: mkdir conftest.dir
2828: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2829: test -s conftest.one && test -s conftest.two &&
2830: test -s conftest.dir/conftest.one &&
2831: test -s conftest.dir/conftest.two
2832: then
2833: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2834: break 3
2835: fi
2836: fi
2837: fi
2838: done
2839: done
2840: ;;
2841: esac
2842:
2843: done
2844: IFS=$as_save_IFS
2845:
2846: rm -rf conftest.one conftest.two conftest.dir
2847:
2848: fi
2849: if test "${ac_cv_path_install+set}" = set; then
2850: INSTALL=$ac_cv_path_install
2851: else
2852: # As a last resort, use the slow shell script. Don't cache a
2853: # value for INSTALL within a source directory, because that will
2854: # break other packages using the cache if that directory is
2855: # removed, or if the value is a relative name.
2856: INSTALL=$ac_install_sh
2857: fi
2858: fi
2859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2860: $as_echo "$INSTALL" >&6; }
2861:
2862: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2863: # It thinks the first close brace ends the variable substitution.
2864: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2865:
2866: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2867:
2868: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2869:
2870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2871: $as_echo_n "checking whether build environment is sane... " >&6; }
2872: # Just in case
2873: sleep 1
2874: echo timestamp > conftest.file
2875: # Reject unsafe characters in $srcdir or the absolute working directory
2876: # name. Accept space and tab only in the latter.
2877: am_lf='
2878: '
2879: case `pwd` in
2880: *[\\\"\#\$\&\'\`$am_lf]*)
2881: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2882: esac
2883: case $srcdir in
2884: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2885: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2886: esac
2887:
2888: # Do `set' in a subshell so we don't clobber the current shell's
2889: # arguments. Must try -L first in case configure is actually a
2890: # symlink; some systems play weird games with the mod time of symlinks
2891: # (eg FreeBSD returns the mod time of the symlink's containing
2892: # directory).
2893: if (
2894: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2895: if test "$*" = "X"; then
2896: # -L didn't work.
2897: set X `ls -t "$srcdir/configure" conftest.file`
2898: fi
2899: rm -f conftest.file
2900: if test "$*" != "X $srcdir/configure conftest.file" \
2901: && test "$*" != "X conftest.file $srcdir/configure"; then
2902:
2903: # If neither matched, then we have a broken ls. This can happen
2904: # if, for instance, CONFIG_SHELL is bash and it inherits a
2905: # broken ls alias from the environment. This has actually
2906: # happened. Such a system could not be considered "sane".
2907: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2908: alias in your environment" "$LINENO" 5
2909: fi
2910:
2911: test "$2" = conftest.file
2912: )
2913: then
2914: # Ok.
2915: :
2916: else
2917: as_fn_error $? "newly created file is older than distributed files!
2918: Check your system clock" "$LINENO" 5
2919: fi
2920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2921: $as_echo "yes" >&6; }
2922: test "$program_prefix" != NONE &&
2923: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2924: # Use a double $ so make ignores it.
2925: test "$program_suffix" != NONE &&
2926: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2927: # Double any \ or $.
2928: # By default was `s,x,x', remove it if useless.
2929: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2930: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2931:
2932: # expand $ac_aux_dir to an absolute path
2933: am_aux_dir=`cd $ac_aux_dir && pwd`
2934:
2935: if test x"${MISSING+set}" != xset; then
2936: case $am_aux_dir in
2937: *\ * | *\ *)
2938: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2939: *)
2940: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2941: esac
2942: fi
2943: # Use eval to expand $SHELL
2944: if eval "$MISSING --run true"; then
2945: am_missing_run="$MISSING --run "
2946: else
2947: am_missing_run=
2948: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2949: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2950: fi
2951:
2952: if test x"${install_sh}" != xset; then
2953: case $am_aux_dir in
2954: *\ * | *\ *)
2955: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2956: *)
2957: install_sh="\${SHELL} $am_aux_dir/install-sh"
2958: esac
2959: fi
2960:
2961: # Installed binaries are usually stripped using `strip' when the user
2962: # run `make install-strip'. However `strip' might not be the right
2963: # tool to use in cross-compilation environments, therefore Automake
2964: # will honor the `STRIP' environment variable to overrule this program.
2965: if test "$cross_compiling" != no; then
2966: if test -n "$ac_tool_prefix"; then
2967: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2968: set dummy ${ac_tool_prefix}strip; ac_word=$2
2969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970: $as_echo_n "checking for $ac_word... " >&6; }
2971: if ${ac_cv_prog_STRIP+:} false; then :
2972: $as_echo_n "(cached) " >&6
2973: else
2974: if test -n "$STRIP"; then
2975: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2976: else
2977: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978: for as_dir in $PATH
2979: do
2980: IFS=$as_save_IFS
2981: test -z "$as_dir" && as_dir=.
2982: for ac_exec_ext in '' $ac_executable_extensions; do
2983: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2985: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986: break 2
2987: fi
2988: done
2989: done
2990: IFS=$as_save_IFS
2991:
2992: fi
2993: fi
2994: STRIP=$ac_cv_prog_STRIP
2995: if test -n "$STRIP"; then
2996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2997: $as_echo "$STRIP" >&6; }
2998: else
2999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000: $as_echo "no" >&6; }
3001: fi
3002:
3003:
3004: fi
3005: if test -z "$ac_cv_prog_STRIP"; then
3006: ac_ct_STRIP=$STRIP
3007: # Extract the first word of "strip", so it can be a program name with args.
3008: set dummy strip; ac_word=$2
3009: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010: $as_echo_n "checking for $ac_word... " >&6; }
3011: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3012: $as_echo_n "(cached) " >&6
3013: else
3014: if test -n "$ac_ct_STRIP"; then
3015: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3016: else
3017: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018: for as_dir in $PATH
3019: do
3020: IFS=$as_save_IFS
3021: test -z "$as_dir" && as_dir=.
3022: for ac_exec_ext in '' $ac_executable_extensions; do
3023: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3024: ac_cv_prog_ac_ct_STRIP="strip"
3025: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026: break 2
3027: fi
3028: done
3029: done
3030: IFS=$as_save_IFS
3031:
3032: fi
3033: fi
3034: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3035: if test -n "$ac_ct_STRIP"; then
3036: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3037: $as_echo "$ac_ct_STRIP" >&6; }
3038: else
3039: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040: $as_echo "no" >&6; }
3041: fi
3042:
3043: if test "x$ac_ct_STRIP" = x; then
3044: STRIP=":"
3045: else
3046: case $cross_compiling:$ac_tool_warned in
3047: yes:)
3048: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3049: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3050: ac_tool_warned=yes ;;
3051: esac
3052: STRIP=$ac_ct_STRIP
3053: fi
3054: else
3055: STRIP="$ac_cv_prog_STRIP"
3056: fi
3057:
3058: fi
3059: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3060:
3061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3062: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3063: if test -z "$MKDIR_P"; then
3064: if ${ac_cv_path_mkdir+:} false; then :
3065: $as_echo_n "(cached) " >&6
3066: else
3067: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3069: do
3070: IFS=$as_save_IFS
3071: test -z "$as_dir" && as_dir=.
3072: for ac_prog in mkdir gmkdir; do
3073: for ac_exec_ext in '' $ac_executable_extensions; do
3074: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3075: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3076: 'mkdir (GNU coreutils) '* | \
3077: 'mkdir (coreutils) '* | \
3078: 'mkdir (fileutils) '4.1*)
3079: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3080: break 3;;
3081: esac
3082: done
3083: done
3084: done
3085: IFS=$as_save_IFS
3086:
3087: fi
3088:
3089: test -d ./--version && rmdir ./--version
3090: if test "${ac_cv_path_mkdir+set}" = set; then
3091: MKDIR_P="$ac_cv_path_mkdir -p"
3092: else
3093: # As a last resort, use the slow shell script. Don't cache a
3094: # value for MKDIR_P within a source directory, because that will
3095: # break other packages using the cache if that directory is
3096: # removed, or if the value is a relative name.
3097: MKDIR_P="$ac_install_sh -d"
3098: fi
3099: fi
3100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3101: $as_echo "$MKDIR_P" >&6; }
3102:
3103: mkdir_p="$MKDIR_P"
3104: case $mkdir_p in
3105: [\\/$]* | ?:[\\/]*) ;;
3106: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3107: esac
3108:
3109: for ac_prog in gawk mawk nawk awk
3110: do
3111: # Extract the first word of "$ac_prog", so it can be a program name with args.
3112: set dummy $ac_prog; ac_word=$2
3113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114: $as_echo_n "checking for $ac_word... " >&6; }
3115: if ${ac_cv_prog_AWK+:} false; then :
3116: $as_echo_n "(cached) " >&6
3117: else
3118: if test -n "$AWK"; then
3119: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3120: else
3121: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122: for as_dir in $PATH
3123: do
3124: IFS=$as_save_IFS
3125: test -z "$as_dir" && as_dir=.
3126: for ac_exec_ext in '' $ac_executable_extensions; do
3127: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128: ac_cv_prog_AWK="$ac_prog"
3129: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130: break 2
3131: fi
3132: done
3133: done
3134: IFS=$as_save_IFS
3135:
3136: fi
3137: fi
3138: AWK=$ac_cv_prog_AWK
3139: if test -n "$AWK"; then
3140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3141: $as_echo "$AWK" >&6; }
3142: else
3143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144: $as_echo "no" >&6; }
3145: fi
3146:
3147:
3148: test -n "$AWK" && break
3149: done
3150:
3151: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3152: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3153: set x ${MAKE-make}
3154: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3155: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3156: $as_echo_n "(cached) " >&6
3157: else
3158: cat >conftest.make <<\_ACEOF
3159: SHELL = /bin/sh
3160: all:
3161: @echo '@@@%%%=$(MAKE)=@@@%%%'
3162: _ACEOF
3163: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3164: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3165: *@@@%%%=?*=@@@%%%*)
3166: eval ac_cv_prog_make_${ac_make}_set=yes;;
3167: *)
3168: eval ac_cv_prog_make_${ac_make}_set=no;;
3169: esac
3170: rm -f conftest.make
3171: fi
3172: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174: $as_echo "yes" >&6; }
3175: SET_MAKE=
3176: else
3177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178: $as_echo "no" >&6; }
3179: SET_MAKE="MAKE=${MAKE-make}"
3180: fi
3181:
3182: rm -rf .tst 2>/dev/null
3183: mkdir .tst 2>/dev/null
3184: if test -d .tst; then
3185: am__leading_dot=.
3186: else
3187: am__leading_dot=_
3188: fi
3189: rmdir .tst 2>/dev/null
3190:
3191: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3192: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3193: # is not polluted with repeated "-I."
3194: am__isrc=' -I$(srcdir)'
3195: # test to see if srcdir already configured
3196: if test -f $srcdir/config.status; then
3197: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3198: fi
3199: fi
3200:
3201: # test whether we have cygpath
3202: if test -z "$CYGPATH_W"; then
3203: if (cygpath --version) >/dev/null 2>/dev/null; then
3204: CYGPATH_W='cygpath -w'
3205: else
3206: CYGPATH_W=echo
3207: fi
3208: fi
3209:
3210:
3211: # Define the identity of the package.
3212: PACKAGE='rpl'
3213: VERSION='4.1.3'
3214:
3215:
3216: cat >>confdefs.h <<_ACEOF
3217: #define PACKAGE "$PACKAGE"
3218: _ACEOF
3219:
3220:
3221: cat >>confdefs.h <<_ACEOF
3222: #define VERSION "$VERSION"
3223: _ACEOF
3224:
3225: # Some tools Automake needs.
3226:
3227: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3228:
3229:
3230: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3231:
3232:
3233: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3234:
3235:
3236: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3237:
3238:
3239: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3240:
3241: # We need awk for the "check" target. The system "awk" is bad on
3242: # some platforms.
3243: # Always define AMTAR for backward compatibility.
3244:
3245: AMTAR=${AMTAR-"${am_missing_run}tar"}
3246:
3247: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3248:
3249:
3250:
3251:
3252:
3253:
3254: ac_config_headers="$ac_config_headers rplconfig.h"
3255:
3256:
3257: NCURSES=ncurses-5.9
3258: READLINE=readline-6.2
3259: UNITS=units-1.88
3260: GSL=gsl-1.15
3261: GPP=gpp-3.0
3262: GNUPLOT=gnuplot-4.4.3
3263: FILE=file-5.03
3264: ICONV=libiconv-1.13.1
3265: SQLITE=sqlite-3.7.7.1
3266: OPENSSL=openssl-1.0.0e
3267: OPENMOTIF=openmotif-2.3.3
3268: LIBXPM=libXpm-3.5.9
3269: SIGSEGV=libsigsegv-2.6
3270:
3271: GMP=gmp-5.0.2
3272: MPFR=mpfr-3.0.1
3273: NTL=ntl-5.5.2
3274: COCOA=CoCoALib-0.9943
3275: PARI=pari-2.5.0
3276: GIAC=giac-0.9.3
3277:
3278: ac_ext=c
3279: ac_cpp='$CPP $CPPFLAGS'
3280: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283: if test -n "$ac_tool_prefix"; then
3284: for ac_prog in gcc
3285: do
3286: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3287: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3288: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289: $as_echo_n "checking for $ac_word... " >&6; }
3290: if ${ac_cv_prog_CC+:} false; then :
3291: $as_echo_n "(cached) " >&6
3292: else
3293: if test -n "$CC"; then
3294: ac_cv_prog_CC="$CC" # Let the user override the test.
3295: else
3296: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297: for as_dir in $PATH
3298: do
3299: IFS=$as_save_IFS
3300: test -z "$as_dir" && as_dir=.
3301: for ac_exec_ext in '' $ac_executable_extensions; do
3302: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3303: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3304: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3305: break 2
3306: fi
3307: done
3308: done
3309: IFS=$as_save_IFS
3310:
3311: fi
3312: fi
3313: CC=$ac_cv_prog_CC
3314: if test -n "$CC"; then
3315: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3316: $as_echo "$CC" >&6; }
3317: else
3318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319: $as_echo "no" >&6; }
3320: fi
3321:
3322:
3323: test -n "$CC" && break
3324: done
3325: fi
3326: if test -z "$CC"; then
3327: ac_ct_CC=$CC
3328: for ac_prog in gcc
3329: do
3330: # Extract the first word of "$ac_prog", so it can be a program name with args.
3331: set dummy $ac_prog; ac_word=$2
3332: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333: $as_echo_n "checking for $ac_word... " >&6; }
3334: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3335: $as_echo_n "(cached) " >&6
3336: else
3337: if test -n "$ac_ct_CC"; then
3338: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3339: else
3340: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341: for as_dir in $PATH
3342: do
3343: IFS=$as_save_IFS
3344: test -z "$as_dir" && as_dir=.
3345: for ac_exec_ext in '' $ac_executable_extensions; do
3346: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3347: ac_cv_prog_ac_ct_CC="$ac_prog"
3348: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349: break 2
3350: fi
3351: done
3352: done
3353: IFS=$as_save_IFS
3354:
3355: fi
3356: fi
3357: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3358: if test -n "$ac_ct_CC"; then
3359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3360: $as_echo "$ac_ct_CC" >&6; }
3361: else
3362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363: $as_echo "no" >&6; }
3364: fi
3365:
3366:
3367: test -n "$ac_ct_CC" && break
3368: done
3369:
3370: if test "x$ac_ct_CC" = x; then
3371: CC=""
3372: else
3373: case $cross_compiling:$ac_tool_warned in
3374: yes:)
3375: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3376: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3377: ac_tool_warned=yes ;;
3378: esac
3379: CC=$ac_ct_CC
3380: fi
3381: fi
3382:
3383:
3384: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3386: as_fn_error $? "no acceptable C compiler found in \$PATH
3387: See \`config.log' for more details" "$LINENO" 5; }
3388:
3389: # Provide some information about the compiler.
3390: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3391: set X $ac_compile
3392: ac_compiler=$2
3393: for ac_option in --version -v -V -qversion; do
3394: { { ac_try="$ac_compiler $ac_option >&5"
3395: case "(($ac_try" in
3396: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397: *) ac_try_echo=$ac_try;;
3398: esac
3399: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400: $as_echo "$ac_try_echo"; } >&5
3401: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3402: ac_status=$?
3403: if test -s conftest.err; then
3404: sed '10a\
3405: ... rest of stderr output deleted ...
3406: 10q' conftest.err >conftest.er1
3407: cat conftest.er1 >&5
3408: fi
3409: rm -f conftest.er1 conftest.err
3410: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411: test $ac_status = 0; }
3412: done
3413:
3414: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415: /* end confdefs.h. */
3416:
3417: int
3418: main ()
3419: {
3420:
3421: ;
3422: return 0;
3423: }
3424: _ACEOF
3425: ac_clean_files_save=$ac_clean_files
3426: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3427: # Try to create an executable without -o first, disregard a.out.
3428: # It will help us diagnose broken compilers, and finding out an intuition
3429: # of exeext.
3430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3431: $as_echo_n "checking whether the C compiler works... " >&6; }
3432: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3433:
3434: # The possible output files:
3435: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3436:
3437: ac_rmfiles=
3438: for ac_file in $ac_files
3439: do
3440: case $ac_file in
3441: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3442: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3443: esac
3444: done
3445: rm -f $ac_rmfiles
3446:
3447: if { { ac_try="$ac_link_default"
3448: case "(($ac_try" in
3449: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450: *) ac_try_echo=$ac_try;;
3451: esac
3452: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453: $as_echo "$ac_try_echo"; } >&5
3454: (eval "$ac_link_default") 2>&5
3455: ac_status=$?
3456: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457: test $ac_status = 0; }; then :
3458: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3459: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3460: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3461: # so that the user can short-circuit this test for compilers unknown to
3462: # Autoconf.
3463: for ac_file in $ac_files ''
3464: do
3465: test -f "$ac_file" || continue
3466: case $ac_file in
3467: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3468: ;;
3469: [ab].out )
3470: # We found the default executable, but exeext='' is most
3471: # certainly right.
3472: break;;
3473: *.* )
3474: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3475: then :; else
3476: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3477: fi
3478: # We set ac_cv_exeext here because the later test for it is not
3479: # safe: cross compilers may not add the suffix if given an `-o'
3480: # argument, so we may need to know it at that point already.
3481: # Even if this section looks crufty: it has the advantage of
3482: # actually working.
3483: break;;
3484: * )
3485: break;;
3486: esac
3487: done
3488: test "$ac_cv_exeext" = no && ac_cv_exeext=
3489:
3490: else
3491: ac_file=''
3492: fi
3493: if test -z "$ac_file"; then :
3494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495: $as_echo "no" >&6; }
3496: $as_echo "$as_me: failed program was:" >&5
3497: sed 's/^/| /' conftest.$ac_ext >&5
3498:
3499: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3501: as_fn_error 77 "C compiler cannot create executables
3502: See \`config.log' for more details" "$LINENO" 5; }
3503: else
3504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3505: $as_echo "yes" >&6; }
3506: fi
3507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3508: $as_echo_n "checking for C compiler default output file name... " >&6; }
3509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3510: $as_echo "$ac_file" >&6; }
3511: ac_exeext=$ac_cv_exeext
3512:
3513: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3514: ac_clean_files=$ac_clean_files_save
3515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3516: $as_echo_n "checking for suffix of executables... " >&6; }
3517: if { { ac_try="$ac_link"
3518: case "(($ac_try" in
3519: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520: *) ac_try_echo=$ac_try;;
3521: esac
3522: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523: $as_echo "$ac_try_echo"; } >&5
3524: (eval "$ac_link") 2>&5
3525: ac_status=$?
3526: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527: test $ac_status = 0; }; then :
3528: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3529: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3530: # work properly (i.e., refer to `conftest.exe'), while it won't with
3531: # `rm'.
3532: for ac_file in conftest.exe conftest conftest.*; do
3533: test -f "$ac_file" || continue
3534: case $ac_file in
3535: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3536: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3537: break;;
3538: * ) break;;
3539: esac
3540: done
3541: else
3542: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3543: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3544: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3545: See \`config.log' for more details" "$LINENO" 5; }
3546: fi
3547: rm -f conftest conftest$ac_cv_exeext
3548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3549: $as_echo "$ac_cv_exeext" >&6; }
3550:
3551: rm -f conftest.$ac_ext
3552: EXEEXT=$ac_cv_exeext
3553: ac_exeext=$EXEEXT
3554: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555: /* end confdefs.h. */
3556: #include <stdio.h>
3557: int
3558: main ()
3559: {
3560: FILE *f = fopen ("conftest.out", "w");
3561: return ferror (f) || fclose (f) != 0;
3562:
3563: ;
3564: return 0;
3565: }
3566: _ACEOF
3567: ac_clean_files="$ac_clean_files conftest.out"
3568: # Check that the compiler produces executables we can run. If not, either
3569: # the compiler is broken, or we cross compile.
3570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3571: $as_echo_n "checking whether we are cross compiling... " >&6; }
3572: if test "$cross_compiling" != yes; then
3573: { { ac_try="$ac_link"
3574: case "(($ac_try" in
3575: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576: *) ac_try_echo=$ac_try;;
3577: esac
3578: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579: $as_echo "$ac_try_echo"; } >&5
3580: (eval "$ac_link") 2>&5
3581: ac_status=$?
3582: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583: test $ac_status = 0; }
3584: if { ac_try='./conftest$ac_cv_exeext'
3585: { { case "(($ac_try" in
3586: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587: *) ac_try_echo=$ac_try;;
3588: esac
3589: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590: $as_echo "$ac_try_echo"; } >&5
3591: (eval "$ac_try") 2>&5
3592: ac_status=$?
3593: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594: test $ac_status = 0; }; }; then
3595: cross_compiling=no
3596: else
3597: if test "$cross_compiling" = maybe; then
3598: cross_compiling=yes
3599: else
3600: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3601: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3602: as_fn_error $? "cannot run C compiled programs.
3603: If you meant to cross compile, use \`--host'.
3604: See \`config.log' for more details" "$LINENO" 5; }
3605: fi
3606: fi
3607: fi
3608: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3609: $as_echo "$cross_compiling" >&6; }
3610:
3611: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3612: ac_clean_files=$ac_clean_files_save
3613: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3614: $as_echo_n "checking for suffix of object files... " >&6; }
3615: if ${ac_cv_objext+:} false; then :
3616: $as_echo_n "(cached) " >&6
3617: else
3618: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3619: /* end confdefs.h. */
3620:
3621: int
3622: main ()
3623: {
3624:
3625: ;
3626: return 0;
3627: }
3628: _ACEOF
3629: rm -f conftest.o conftest.obj
3630: if { { ac_try="$ac_compile"
3631: case "(($ac_try" in
3632: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633: *) ac_try_echo=$ac_try;;
3634: esac
3635: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636: $as_echo "$ac_try_echo"; } >&5
3637: (eval "$ac_compile") 2>&5
3638: ac_status=$?
3639: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640: test $ac_status = 0; }; then :
3641: for ac_file in conftest.o conftest.obj conftest.*; do
3642: test -f "$ac_file" || continue;
3643: case $ac_file in
3644: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3645: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3646: break;;
3647: esac
3648: done
3649: else
3650: $as_echo "$as_me: failed program was:" >&5
3651: sed 's/^/| /' conftest.$ac_ext >&5
3652:
3653: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3654: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3655: as_fn_error $? "cannot compute suffix of object files: cannot compile
3656: See \`config.log' for more details" "$LINENO" 5; }
3657: fi
3658: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3659: fi
3660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3661: $as_echo "$ac_cv_objext" >&6; }
3662: OBJEXT=$ac_cv_objext
3663: ac_objext=$OBJEXT
3664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3665: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3666: if ${ac_cv_c_compiler_gnu+:} false; then :
3667: $as_echo_n "(cached) " >&6
3668: else
3669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670: /* end confdefs.h. */
3671:
3672: int
3673: main ()
3674: {
3675: #ifndef __GNUC__
3676: choke me
3677: #endif
3678:
3679: ;
3680: return 0;
3681: }
3682: _ACEOF
3683: if ac_fn_c_try_compile "$LINENO"; then :
3684: ac_compiler_gnu=yes
3685: else
3686: ac_compiler_gnu=no
3687: fi
3688: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3690:
3691: fi
3692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3693: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3694: if test $ac_compiler_gnu = yes; then
3695: GCC=yes
3696: else
3697: GCC=
3698: fi
3699: ac_test_CFLAGS=${CFLAGS+set}
3700: ac_save_CFLAGS=$CFLAGS
3701: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3702: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3703: if ${ac_cv_prog_cc_g+:} false; then :
3704: $as_echo_n "(cached) " >&6
3705: else
3706: ac_save_c_werror_flag=$ac_c_werror_flag
3707: ac_c_werror_flag=yes
3708: ac_cv_prog_cc_g=no
3709: CFLAGS="-g"
3710: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711: /* end confdefs.h. */
3712:
3713: int
3714: main ()
3715: {
3716:
3717: ;
3718: return 0;
3719: }
3720: _ACEOF
3721: if ac_fn_c_try_compile "$LINENO"; then :
3722: ac_cv_prog_cc_g=yes
3723: else
3724: CFLAGS=""
3725: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726: /* end confdefs.h. */
3727:
3728: int
3729: main ()
3730: {
3731:
3732: ;
3733: return 0;
3734: }
3735: _ACEOF
3736: if ac_fn_c_try_compile "$LINENO"; then :
3737:
3738: else
3739: ac_c_werror_flag=$ac_save_c_werror_flag
3740: CFLAGS="-g"
3741: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742: /* end confdefs.h. */
3743:
3744: int
3745: main ()
3746: {
3747:
3748: ;
3749: return 0;
3750: }
3751: _ACEOF
3752: if ac_fn_c_try_compile "$LINENO"; then :
3753: ac_cv_prog_cc_g=yes
3754: fi
3755: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756: fi
3757: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758: fi
3759: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760: ac_c_werror_flag=$ac_save_c_werror_flag
3761: fi
3762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3763: $as_echo "$ac_cv_prog_cc_g" >&6; }
3764: if test "$ac_test_CFLAGS" = set; then
3765: CFLAGS=$ac_save_CFLAGS
3766: elif test $ac_cv_prog_cc_g = yes; then
3767: if test "$GCC" = yes; then
3768: CFLAGS="-g -O2"
3769: else
3770: CFLAGS="-g"
3771: fi
3772: else
3773: if test "$GCC" = yes; then
3774: CFLAGS="-O2"
3775: else
3776: CFLAGS=
3777: fi
3778: fi
3779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3780: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3781: if ${ac_cv_prog_cc_c89+:} false; then :
3782: $as_echo_n "(cached) " >&6
3783: else
3784: ac_cv_prog_cc_c89=no
3785: ac_save_CC=$CC
3786: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787: /* end confdefs.h. */
3788: #include <stdarg.h>
3789: #include <stdio.h>
3790: #include <sys/types.h>
3791: #include <sys/stat.h>
3792: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3793: struct buf { int x; };
3794: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3795: static char *e (p, i)
3796: char **p;
3797: int i;
3798: {
3799: return p[i];
3800: }
3801: static char *f (char * (*g) (char **, int), char **p, ...)
3802: {
3803: char *s;
3804: va_list v;
3805: va_start (v,p);
3806: s = g (p, va_arg (v,int));
3807: va_end (v);
3808: return s;
3809: }
3810:
3811: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3812: function prototypes and stuff, but not '\xHH' hex character constants.
3813: These don't provoke an error unfortunately, instead are silently treated
3814: as 'x'. The following induces an error, until -std is added to get
3815: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3816: array size at least. It's necessary to write '\x00'==0 to get something
3817: that's true only with -std. */
3818: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3819:
3820: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3821: inside strings and character constants. */
3822: #define FOO(x) 'x'
3823: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3824:
3825: int test (int i, double x);
3826: struct s1 {int (*f) (int a);};
3827: struct s2 {int (*f) (double a);};
3828: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3829: int argc;
3830: char **argv;
3831: int
3832: main ()
3833: {
3834: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3835: ;
3836: return 0;
3837: }
3838: _ACEOF
3839: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3840: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3841: do
3842: CC="$ac_save_CC $ac_arg"
3843: if ac_fn_c_try_compile "$LINENO"; then :
3844: ac_cv_prog_cc_c89=$ac_arg
3845: fi
3846: rm -f core conftest.err conftest.$ac_objext
3847: test "x$ac_cv_prog_cc_c89" != "xno" && break
3848: done
3849: rm -f conftest.$ac_ext
3850: CC=$ac_save_CC
3851:
3852: fi
3853: # AC_CACHE_VAL
3854: case "x$ac_cv_prog_cc_c89" in
3855: x)
3856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857: $as_echo "none needed" >&6; } ;;
3858: xno)
3859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3860: $as_echo "unsupported" >&6; } ;;
3861: *)
3862: CC="$CC $ac_cv_prog_cc_c89"
3863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3864: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3865: esac
3866: if test "x$ac_cv_prog_cc_c89" != xno; then :
3867:
3868: fi
3869:
3870: ac_ext=c
3871: ac_cpp='$CPP $CPPFLAGS'
3872: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875: DEPDIR="${am__leading_dot}deps"
3876:
3877: ac_config_commands="$ac_config_commands depfiles"
3878:
3879:
3880: am_make=${MAKE-make}
3881: cat > confinc << 'END'
3882: am__doit:
3883: @echo this is the am__doit target
3884: .PHONY: am__doit
3885: END
3886: # If we don't find an include directive, just comment out the code.
3887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3888: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3889: am__include="#"
3890: am__quote=
3891: _am_result=none
3892: # First try GNU make style include.
3893: echo "include confinc" > confmf
3894: # Ignore all kinds of additional output from `make'.
3895: case `$am_make -s -f confmf 2> /dev/null` in #(
3896: *the\ am__doit\ target*)
3897: am__include=include
3898: am__quote=
3899: _am_result=GNU
3900: ;;
3901: esac
3902: # Now try BSD make style include.
3903: if test "$am__include" = "#"; then
3904: echo '.include "confinc"' > confmf
3905: case `$am_make -s -f confmf 2> /dev/null` in #(
3906: *the\ am__doit\ target*)
3907: am__include=.include
3908: am__quote="\""
3909: _am_result=BSD
3910: ;;
3911: esac
3912: fi
3913:
3914:
3915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3916: $as_echo "$_am_result" >&6; }
3917: rm -f confinc confmf
3918:
3919: # Check whether --enable-dependency-tracking was given.
3920: if test "${enable_dependency_tracking+set}" = set; then :
3921: enableval=$enable_dependency_tracking;
3922: fi
3923:
3924: if test "x$enable_dependency_tracking" != xno; then
3925: am_depcomp="$ac_aux_dir/depcomp"
3926: AMDEPBACKSLASH='\'
3927: fi
3928: if test "x$enable_dependency_tracking" != xno; then
3929: AMDEP_TRUE=
3930: AMDEP_FALSE='#'
3931: else
3932: AMDEP_TRUE='#'
3933: AMDEP_FALSE=
3934: fi
3935:
3936:
3937:
3938: depcc="$CC" am_compiler_list=
3939:
3940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3941: $as_echo_n "checking dependency style of $depcc... " >&6; }
3942: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3943: $as_echo_n "(cached) " >&6
3944: else
3945: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3946: # We make a subdir and do the tests there. Otherwise we can end up
3947: # making bogus files that we don't know about and never remove. For
3948: # instance it was reported that on HP-UX the gcc test will end up
3949: # making a dummy file named `D' -- because `-MD' means `put the output
3950: # in D'.
3951: mkdir conftest.dir
3952: # Copy depcomp to subdir because otherwise we won't find it if we're
3953: # using a relative directory.
3954: cp "$am_depcomp" conftest.dir
3955: cd conftest.dir
3956: # We will build objects and dependencies in a subdirectory because
3957: # it helps to detect inapplicable dependency modes. For instance
3958: # both Tru64's cc and ICC support -MD to output dependencies as a
3959: # side effect of compilation, but ICC will put the dependencies in
3960: # the current directory while Tru64 will put them in the object
3961: # directory.
3962: mkdir sub
3963:
3964: am_cv_CC_dependencies_compiler_type=none
3965: if test "$am_compiler_list" = ""; then
3966: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3967: fi
3968: am__universal=false
3969: case " $depcc " in #(
3970: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3971: esac
3972:
3973: for depmode in $am_compiler_list; do
3974: # Setup a source with many dependencies, because some compilers
3975: # like to wrap large dependency lists on column 80 (with \), and
3976: # we should not choose a depcomp mode which is confused by this.
3977: #
3978: # We need to recreate these files for each test, as the compiler may
3979: # overwrite some of them when testing with obscure command lines.
3980: # This happens at least with the AIX C compiler.
3981: : > sub/conftest.c
3982: for i in 1 2 3 4 5 6; do
3983: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3984: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3985: # Solaris 8's {/usr,}/bin/sh.
3986: touch sub/conftst$i.h
3987: done
3988: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3989:
3990: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3991: # mode. It turns out that the SunPro C++ compiler does not properly
3992: # handle `-M -o', and we need to detect this. Also, some Intel
3993: # versions had trouble with output in subdirs
3994: am__obj=sub/conftest.${OBJEXT-o}
3995: am__minus_obj="-o $am__obj"
3996: case $depmode in
3997: gcc)
3998: # This depmode causes a compiler race in universal mode.
3999: test "$am__universal" = false || continue
4000: ;;
4001: nosideeffect)
4002: # after this tag, mechanisms are not by side-effect, so they'll
4003: # only be used when explicitly requested
4004: if test "x$enable_dependency_tracking" = xyes; then
4005: continue
4006: else
4007: break
4008: fi
4009: ;;
4010: msvisualcpp | msvcmsys)
4011: # This compiler won't grok `-c -o', but also, the minuso test has
4012: # not run yet. These depmodes are late enough in the game, and
4013: # so weak that their functioning should not be impacted.
4014: am__obj=conftest.${OBJEXT-o}
4015: am__minus_obj=
4016: ;;
4017: none) break ;;
4018: esac
4019: if depmode=$depmode \
4020: source=sub/conftest.c object=$am__obj \
4021: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4022: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4023: >/dev/null 2>conftest.err &&
4024: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4025: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4026: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4027: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4028: # icc doesn't choke on unknown options, it will just issue warnings
4029: # or remarks (even with -Werror). So we grep stderr for any message
4030: # that says an option was ignored or not supported.
4031: # When given -MP, icc 7.0 and 7.1 complain thusly:
4032: # icc: Command line warning: ignoring option '-M'; no argument required
4033: # The diagnosis changed in icc 8.0:
4034: # icc: Command line remark: option '-MP' not supported
4035: if (grep 'ignoring option' conftest.err ||
4036: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4037: am_cv_CC_dependencies_compiler_type=$depmode
4038: break
4039: fi
4040: fi
4041: done
4042:
4043: cd ..
4044: rm -rf conftest.dir
4045: else
4046: am_cv_CC_dependencies_compiler_type=none
4047: fi
4048:
4049: fi
4050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4051: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4052: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4053:
4054: if
4055: test "x$enable_dependency_tracking" != xno \
4056: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4057: am__fastdepCC_TRUE=
4058: am__fastdepCC_FALSE='#'
4059: else
4060: am__fastdepCC_TRUE='#'
4061: am__fastdepCC_FALSE=
4062: fi
4063:
4064:
4065:
4066: EXT_SQL=
4067:
4068: if test x"$CC" != x""; then
4069: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4070: awk -F. '{ printf("%s", $1);}'`
4071: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4072: awk -F. '{ printf("%s", $2);}'`
4073: if test $GCC_VERSION_MAJEURE -ge 5; then
4074: OPTIMISATION_C=-O3
4075: else
4076: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
4077: then
4078: OPTIMISATION_C=-O3
4079: else
4080: if test $GCC_VERSION_MAJEURE -ge 2; then
4081: OPTIMISATION_C=-O2
4082: else
4083: as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
4084: fi
4085: fi
4086: fi
4087: fi
4088:
4089: if test "x$CC" != xcc; then
4090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4091: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4092: else
4093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4094: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4095: fi
4096: set dummy $CC; ac_cc=`$as_echo "$2" |
4097: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4098: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4099: $as_echo_n "(cached) " >&6
4100: else
4101: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102: /* end confdefs.h. */
4103:
4104: int
4105: main ()
4106: {
4107:
4108: ;
4109: return 0;
4110: }
4111: _ACEOF
4112: # Make sure it works both with $CC and with simple cc.
4113: # We do the test twice because some compilers refuse to overwrite an
4114: # existing .o file with -o, though they will create one.
4115: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4116: rm -f conftest2.*
4117: if { { case "(($ac_try" in
4118: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119: *) ac_try_echo=$ac_try;;
4120: esac
4121: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4122: $as_echo "$ac_try_echo"; } >&5
4123: (eval "$ac_try") 2>&5
4124: ac_status=$?
4125: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4126: test $ac_status = 0; } &&
4127: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4128: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129: *) ac_try_echo=$ac_try;;
4130: esac
4131: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4132: $as_echo "$ac_try_echo"; } >&5
4133: (eval "$ac_try") 2>&5
4134: ac_status=$?
4135: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136: test $ac_status = 0; };
4137: then
4138: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4139: if test "x$CC" != xcc; then
4140: # Test first that cc exists at all.
4141: if { ac_try='cc -c conftest.$ac_ext >&5'
4142: { { case "(($ac_try" in
4143: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144: *) ac_try_echo=$ac_try;;
4145: esac
4146: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147: $as_echo "$ac_try_echo"; } >&5
4148: (eval "$ac_try") 2>&5
4149: ac_status=$?
4150: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151: test $ac_status = 0; }; }; then
4152: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4153: rm -f conftest2.*
4154: if { { case "(($ac_try" in
4155: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156: *) ac_try_echo=$ac_try;;
4157: esac
4158: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4159: $as_echo "$ac_try_echo"; } >&5
4160: (eval "$ac_try") 2>&5
4161: ac_status=$?
4162: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4163: test $ac_status = 0; } &&
4164: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4165: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166: *) ac_try_echo=$ac_try;;
4167: esac
4168: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4169: $as_echo "$ac_try_echo"; } >&5
4170: (eval "$ac_try") 2>&5
4171: ac_status=$?
4172: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173: test $ac_status = 0; };
4174: then
4175: # cc works too.
4176: :
4177: else
4178: # cc exists but doesn't like -o.
4179: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4180: fi
4181: fi
4182: fi
4183: else
4184: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4185: fi
4186: rm -f core conftest*
4187:
4188: fi
4189: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4191: $as_echo "yes" >&6; }
4192: else
4193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194: $as_echo "no" >&6; }
4195:
4196: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4197:
4198: fi
4199:
4200: # FIXME: we rely on the cache variable name because
4201: # there is no other way.
4202: set dummy $CC
4203: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4204: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4205: if test "$am_t" != yes; then
4206: # Losing compiler, so override with the script.
4207: # FIXME: It is wrong to rewrite CC.
4208: # But if we don't then we get into trouble of one sort or another.
4209: # A longer-term fix would be to have automake use am__CC in this case,
4210: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4211: CC="$am_aux_dir/compile $CC"
4212: fi
4213:
4214:
4215:
4216: if test "$GCC" != yes; then
4217: as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
4218: fi
4219:
4220: ac_ext=cpp
4221: ac_cpp='$CXXCPP $CPPFLAGS'
4222: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4225: if test -z "$CXX"; then
4226: if test -n "$CCC"; then
4227: CXX=$CCC
4228: else
4229: if test -n "$ac_tool_prefix"; then
4230: for ac_prog in g++
4231: do
4232: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4233: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235: $as_echo_n "checking for $ac_word... " >&6; }
4236: if ${ac_cv_prog_CXX+:} false; then :
4237: $as_echo_n "(cached) " >&6
4238: else
4239: if test -n "$CXX"; then
4240: ac_cv_prog_CXX="$CXX" # Let the user override the test.
4241: else
4242: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243: for as_dir in $PATH
4244: do
4245: IFS=$as_save_IFS
4246: test -z "$as_dir" && as_dir=.
4247: for ac_exec_ext in '' $ac_executable_extensions; do
4248: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4250: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251: break 2
4252: fi
4253: done
4254: done
4255: IFS=$as_save_IFS
4256:
4257: fi
4258: fi
4259: CXX=$ac_cv_prog_CXX
4260: if test -n "$CXX"; then
4261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4262: $as_echo "$CXX" >&6; }
4263: else
4264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265: $as_echo "no" >&6; }
4266: fi
4267:
4268:
4269: test -n "$CXX" && break
4270: done
4271: fi
4272: if test -z "$CXX"; then
4273: ac_ct_CXX=$CXX
4274: for ac_prog in g++
4275: do
4276: # Extract the first word of "$ac_prog", so it can be a program name with args.
4277: set dummy $ac_prog; ac_word=$2
4278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279: $as_echo_n "checking for $ac_word... " >&6; }
4280: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4281: $as_echo_n "(cached) " >&6
4282: else
4283: if test -n "$ac_ct_CXX"; then
4284: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4285: else
4286: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287: for as_dir in $PATH
4288: do
4289: IFS=$as_save_IFS
4290: test -z "$as_dir" && as_dir=.
4291: for ac_exec_ext in '' $ac_executable_extensions; do
4292: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293: ac_cv_prog_ac_ct_CXX="$ac_prog"
4294: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295: break 2
4296: fi
4297: done
4298: done
4299: IFS=$as_save_IFS
4300:
4301: fi
4302: fi
4303: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4304: if test -n "$ac_ct_CXX"; then
4305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4306: $as_echo "$ac_ct_CXX" >&6; }
4307: else
4308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309: $as_echo "no" >&6; }
4310: fi
4311:
4312:
4313: test -n "$ac_ct_CXX" && break
4314: done
4315:
4316: if test "x$ac_ct_CXX" = x; then
4317: CXX="g++"
4318: else
4319: case $cross_compiling:$ac_tool_warned in
4320: yes:)
4321: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4322: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4323: ac_tool_warned=yes ;;
4324: esac
4325: CXX=$ac_ct_CXX
4326: fi
4327: fi
4328:
4329: fi
4330: fi
4331: # Provide some information about the compiler.
4332: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4333: set X $ac_compile
4334: ac_compiler=$2
4335: for ac_option in --version -v -V -qversion; do
4336: { { ac_try="$ac_compiler $ac_option >&5"
4337: case "(($ac_try" in
4338: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339: *) ac_try_echo=$ac_try;;
4340: esac
4341: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342: $as_echo "$ac_try_echo"; } >&5
4343: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4344: ac_status=$?
4345: if test -s conftest.err; then
4346: sed '10a\
4347: ... rest of stderr output deleted ...
4348: 10q' conftest.err >conftest.er1
4349: cat conftest.er1 >&5
4350: fi
4351: rm -f conftest.er1 conftest.err
4352: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353: test $ac_status = 0; }
4354: done
4355:
4356: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4357: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4358: if ${ac_cv_cxx_compiler_gnu+:} false; then :
4359: $as_echo_n "(cached) " >&6
4360: else
4361: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362: /* end confdefs.h. */
4363:
4364: int
4365: main ()
4366: {
4367: #ifndef __GNUC__
4368: choke me
4369: #endif
4370:
4371: ;
4372: return 0;
4373: }
4374: _ACEOF
4375: if ac_fn_cxx_try_compile "$LINENO"; then :
4376: ac_compiler_gnu=yes
4377: else
4378: ac_compiler_gnu=no
4379: fi
4380: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4382:
4383: fi
4384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4385: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4386: if test $ac_compiler_gnu = yes; then
4387: GXX=yes
4388: else
4389: GXX=
4390: fi
4391: ac_test_CXXFLAGS=${CXXFLAGS+set}
4392: ac_save_CXXFLAGS=$CXXFLAGS
4393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4394: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4395: if ${ac_cv_prog_cxx_g+:} false; then :
4396: $as_echo_n "(cached) " >&6
4397: else
4398: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4399: ac_cxx_werror_flag=yes
4400: ac_cv_prog_cxx_g=no
4401: CXXFLAGS="-g"
4402: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403: /* end confdefs.h. */
4404:
4405: int
4406: main ()
4407: {
4408:
4409: ;
4410: return 0;
4411: }
4412: _ACEOF
4413: if ac_fn_cxx_try_compile "$LINENO"; then :
4414: ac_cv_prog_cxx_g=yes
4415: else
4416: CXXFLAGS=""
4417: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418: /* end confdefs.h. */
4419:
4420: int
4421: main ()
4422: {
4423:
4424: ;
4425: return 0;
4426: }
4427: _ACEOF
4428: if ac_fn_cxx_try_compile "$LINENO"; then :
4429:
4430: else
4431: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4432: CXXFLAGS="-g"
4433: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434: /* end confdefs.h. */
4435:
4436: int
4437: main ()
4438: {
4439:
4440: ;
4441: return 0;
4442: }
4443: _ACEOF
4444: if ac_fn_cxx_try_compile "$LINENO"; then :
4445: ac_cv_prog_cxx_g=yes
4446: fi
4447: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448: fi
4449: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450: fi
4451: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4453: fi
4454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4455: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4456: if test "$ac_test_CXXFLAGS" = set; then
4457: CXXFLAGS=$ac_save_CXXFLAGS
4458: elif test $ac_cv_prog_cxx_g = yes; then
4459: if test "$GXX" = yes; then
4460: CXXFLAGS="-g -O2"
4461: else
4462: CXXFLAGS="-g"
4463: fi
4464: else
4465: if test "$GXX" = yes; then
4466: CXXFLAGS="-O2"
4467: else
4468: CXXFLAGS=
4469: fi
4470: fi
4471: ac_ext=c
4472: ac_cpp='$CPP $CPPFLAGS'
4473: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4474: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4475: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4476:
4477: depcc="$CXX" am_compiler_list=
4478:
4479: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4480: $as_echo_n "checking dependency style of $depcc... " >&6; }
4481: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4482: $as_echo_n "(cached) " >&6
4483: else
4484: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4485: # We make a subdir and do the tests there. Otherwise we can end up
4486: # making bogus files that we don't know about and never remove. For
4487: # instance it was reported that on HP-UX the gcc test will end up
4488: # making a dummy file named `D' -- because `-MD' means `put the output
4489: # in D'.
4490: mkdir conftest.dir
4491: # Copy depcomp to subdir because otherwise we won't find it if we're
4492: # using a relative directory.
4493: cp "$am_depcomp" conftest.dir
4494: cd conftest.dir
4495: # We will build objects and dependencies in a subdirectory because
4496: # it helps to detect inapplicable dependency modes. For instance
4497: # both Tru64's cc and ICC support -MD to output dependencies as a
4498: # side effect of compilation, but ICC will put the dependencies in
4499: # the current directory while Tru64 will put them in the object
4500: # directory.
4501: mkdir sub
4502:
4503: am_cv_CXX_dependencies_compiler_type=none
4504: if test "$am_compiler_list" = ""; then
4505: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4506: fi
4507: am__universal=false
4508: case " $depcc " in #(
4509: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4510: esac
4511:
4512: for depmode in $am_compiler_list; do
4513: # Setup a source with many dependencies, because some compilers
4514: # like to wrap large dependency lists on column 80 (with \), and
4515: # we should not choose a depcomp mode which is confused by this.
4516: #
4517: # We need to recreate these files for each test, as the compiler may
4518: # overwrite some of them when testing with obscure command lines.
4519: # This happens at least with the AIX C compiler.
4520: : > sub/conftest.c
4521: for i in 1 2 3 4 5 6; do
4522: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4523: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4524: # Solaris 8's {/usr,}/bin/sh.
4525: touch sub/conftst$i.h
4526: done
4527: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4528:
4529: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4530: # mode. It turns out that the SunPro C++ compiler does not properly
4531: # handle `-M -o', and we need to detect this. Also, some Intel
4532: # versions had trouble with output in subdirs
4533: am__obj=sub/conftest.${OBJEXT-o}
4534: am__minus_obj="-o $am__obj"
4535: case $depmode in
4536: gcc)
4537: # This depmode causes a compiler race in universal mode.
4538: test "$am__universal" = false || continue
4539: ;;
4540: nosideeffect)
4541: # after this tag, mechanisms are not by side-effect, so they'll
4542: # only be used when explicitly requested
4543: if test "x$enable_dependency_tracking" = xyes; then
4544: continue
4545: else
4546: break
4547: fi
4548: ;;
4549: msvisualcpp | msvcmsys)
4550: # This compiler won't grok `-c -o', but also, the minuso test has
4551: # not run yet. These depmodes are late enough in the game, and
4552: # so weak that their functioning should not be impacted.
4553: am__obj=conftest.${OBJEXT-o}
4554: am__minus_obj=
4555: ;;
4556: none) break ;;
4557: esac
4558: if depmode=$depmode \
4559: source=sub/conftest.c object=$am__obj \
4560: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4561: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4562: >/dev/null 2>conftest.err &&
4563: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4564: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4565: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4566: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4567: # icc doesn't choke on unknown options, it will just issue warnings
4568: # or remarks (even with -Werror). So we grep stderr for any message
4569: # that says an option was ignored or not supported.
4570: # When given -MP, icc 7.0 and 7.1 complain thusly:
4571: # icc: Command line warning: ignoring option '-M'; no argument required
4572: # The diagnosis changed in icc 8.0:
4573: # icc: Command line remark: option '-MP' not supported
4574: if (grep 'ignoring option' conftest.err ||
4575: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4576: am_cv_CXX_dependencies_compiler_type=$depmode
4577: break
4578: fi
4579: fi
4580: done
4581:
4582: cd ..
4583: rm -rf conftest.dir
4584: else
4585: am_cv_CXX_dependencies_compiler_type=none
4586: fi
4587:
4588: fi
4589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4590: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4591: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4592:
4593: if
4594: test "x$enable_dependency_tracking" != xno \
4595: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4596: am__fastdepCXX_TRUE=
4597: am__fastdepCXX_FALSE='#'
4598: else
4599: am__fastdepCXX_TRUE='#'
4600: am__fastdepCXX_FALSE=
4601: fi
4602:
4603:
4604:
4605: if test "$CXX" != "g++"; then
4606: as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
4607: fi
4608:
4609: if test x"$CXX" != x""; then
4610: GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4611: awk -F. '{ printf("%s", $1);}'`
4612: GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4613: awk -F. '{ printf("%s", $2);}'`
4614: if test $GCC_VERSION_MAJEURE -ge 5; then
4615: OPTIMISATION_GXX=-O3
4616: else
4617: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4618: OPTIMISATION_GXX=-O3
4619: else
4620: if test $GCC_VERSION_MAJEURE -ge 3; then
4621: OPTIMISATION_GXX=-O2
4622: else
4623: as_fn_error $? "Cannot find decent or recent g++ (g++-4.3 or better)!" "$LINENO" 5
4624: fi
4625: fi
4626: fi
4627: fi
4628:
4629: ac_ext=f
4630: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4631: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4633: if test -n "$ac_tool_prefix"; then
4634: for ac_prog in gfortran
4635: do
4636: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4637: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4638: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639: $as_echo_n "checking for $ac_word... " >&6; }
4640: if ${ac_cv_prog_F77+:} false; then :
4641: $as_echo_n "(cached) " >&6
4642: else
4643: if test -n "$F77"; then
4644: ac_cv_prog_F77="$F77" # Let the user override the test.
4645: else
4646: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647: for as_dir in $PATH
4648: do
4649: IFS=$as_save_IFS
4650: test -z "$as_dir" && as_dir=.
4651: for ac_exec_ext in '' $ac_executable_extensions; do
4652: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4654: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655: break 2
4656: fi
4657: done
4658: done
4659: IFS=$as_save_IFS
4660:
4661: fi
4662: fi
4663: F77=$ac_cv_prog_F77
4664: if test -n "$F77"; then
4665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4666: $as_echo "$F77" >&6; }
4667: else
4668: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669: $as_echo "no" >&6; }
4670: fi
4671:
4672:
4673: test -n "$F77" && break
4674: done
4675: fi
4676: if test -z "$F77"; then
4677: ac_ct_F77=$F77
4678: for ac_prog in gfortran
4679: do
4680: # Extract the first word of "$ac_prog", so it can be a program name with args.
4681: set dummy $ac_prog; ac_word=$2
4682: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683: $as_echo_n "checking for $ac_word... " >&6; }
4684: if ${ac_cv_prog_ac_ct_F77+:} false; then :
4685: $as_echo_n "(cached) " >&6
4686: else
4687: if test -n "$ac_ct_F77"; then
4688: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4689: else
4690: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691: for as_dir in $PATH
4692: do
4693: IFS=$as_save_IFS
4694: test -z "$as_dir" && as_dir=.
4695: for ac_exec_ext in '' $ac_executable_extensions; do
4696: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697: ac_cv_prog_ac_ct_F77="$ac_prog"
4698: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699: break 2
4700: fi
4701: done
4702: done
4703: IFS=$as_save_IFS
4704:
4705: fi
4706: fi
4707: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4708: if test -n "$ac_ct_F77"; then
4709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4710: $as_echo "$ac_ct_F77" >&6; }
4711: else
4712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713: $as_echo "no" >&6; }
4714: fi
4715:
4716:
4717: test -n "$ac_ct_F77" && break
4718: done
4719:
4720: if test "x$ac_ct_F77" = x; then
4721: F77=""
4722: else
4723: case $cross_compiling:$ac_tool_warned in
4724: yes:)
4725: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727: ac_tool_warned=yes ;;
4728: esac
4729: F77=$ac_ct_F77
4730: fi
4731: fi
4732:
4733:
4734: # Provide some information about the compiler.
4735: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4736: set X $ac_compile
4737: ac_compiler=$2
4738: for ac_option in --version -v -V -qversion; do
4739: { { ac_try="$ac_compiler $ac_option >&5"
4740: case "(($ac_try" in
4741: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742: *) ac_try_echo=$ac_try;;
4743: esac
4744: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745: $as_echo "$ac_try_echo"; } >&5
4746: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4747: ac_status=$?
4748: if test -s conftest.err; then
4749: sed '10a\
4750: ... rest of stderr output deleted ...
4751: 10q' conftest.err >conftest.er1
4752: cat conftest.er1 >&5
4753: fi
4754: rm -f conftest.er1 conftest.err
4755: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756: test $ac_status = 0; }
4757: done
4758: rm -f a.out
4759:
4760: # If we don't use `.F' as extension, the preprocessor is not run on the
4761: # input file. (Note that this only needs to work for GNU compilers.)
4762: ac_save_ext=$ac_ext
4763: ac_ext=F
4764: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4765: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4766: if ${ac_cv_f77_compiler_gnu+:} false; then :
4767: $as_echo_n "(cached) " >&6
4768: else
4769: cat > conftest.$ac_ext <<_ACEOF
4770: program main
4771: #ifndef __GNUC__
4772: choke me
4773: #endif
4774:
4775: end
4776: _ACEOF
4777: if ac_fn_f77_try_compile "$LINENO"; then :
4778: ac_compiler_gnu=yes
4779: else
4780: ac_compiler_gnu=no
4781: fi
4782: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4784:
4785: fi
4786: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4787: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4788: ac_ext=$ac_save_ext
4789: ac_test_FFLAGS=${FFLAGS+set}
4790: ac_save_FFLAGS=$FFLAGS
4791: FFLAGS=
4792: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4793: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
4794: if ${ac_cv_prog_f77_g+:} false; then :
4795: $as_echo_n "(cached) " >&6
4796: else
4797: FFLAGS=-g
4798: cat > conftest.$ac_ext <<_ACEOF
4799: program main
4800:
4801: end
4802: _ACEOF
4803: if ac_fn_f77_try_compile "$LINENO"; then :
4804: ac_cv_prog_f77_g=yes
4805: else
4806: ac_cv_prog_f77_g=no
4807: fi
4808: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809:
4810: fi
4811: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4812: $as_echo "$ac_cv_prog_f77_g" >&6; }
4813: if test "$ac_test_FFLAGS" = set; then
4814: FFLAGS=$ac_save_FFLAGS
4815: elif test $ac_cv_prog_f77_g = yes; then
4816: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4817: FFLAGS="-g -O2"
4818: else
4819: FFLAGS="-g"
4820: fi
4821: else
4822: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4823: FFLAGS="-O2"
4824: else
4825: FFLAGS=
4826: fi
4827: fi
4828:
4829: if test $ac_compiler_gnu = yes; then
4830: G77=yes
4831: else
4832: G77=
4833: fi
4834: ac_ext=c
4835: ac_cpp='$CPP $CPPFLAGS'
4836: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4837: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4838: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4839:
4840:
4841: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
4842: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
4843: fi
4844:
4845: ac_ext=${ac_fc_srcext-f}
4846: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4847: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4848: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4849: if test -n "$ac_tool_prefix"; then
4850: for ac_prog in gfortran
4851: do
4852: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4853: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855: $as_echo_n "checking for $ac_word... " >&6; }
4856: if ${ac_cv_prog_FC+:} false; then :
4857: $as_echo_n "(cached) " >&6
4858: else
4859: if test -n "$FC"; then
4860: ac_cv_prog_FC="$FC" # Let the user override the test.
4861: else
4862: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863: for as_dir in $PATH
4864: do
4865: IFS=$as_save_IFS
4866: test -z "$as_dir" && as_dir=.
4867: for ac_exec_ext in '' $ac_executable_extensions; do
4868: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4870: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871: break 2
4872: fi
4873: done
4874: done
4875: IFS=$as_save_IFS
4876:
4877: fi
4878: fi
4879: FC=$ac_cv_prog_FC
4880: if test -n "$FC"; then
4881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4882: $as_echo "$FC" >&6; }
4883: else
4884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885: $as_echo "no" >&6; }
4886: fi
4887:
4888:
4889: test -n "$FC" && break
4890: done
4891: fi
4892: if test -z "$FC"; then
4893: ac_ct_FC=$FC
4894: for ac_prog in gfortran
4895: do
4896: # Extract the first word of "$ac_prog", so it can be a program name with args.
4897: set dummy $ac_prog; ac_word=$2
4898: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899: $as_echo_n "checking for $ac_word... " >&6; }
4900: if ${ac_cv_prog_ac_ct_FC+:} false; then :
4901: $as_echo_n "(cached) " >&6
4902: else
4903: if test -n "$ac_ct_FC"; then
4904: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4905: else
4906: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907: for as_dir in $PATH
4908: do
4909: IFS=$as_save_IFS
4910: test -z "$as_dir" && as_dir=.
4911: for ac_exec_ext in '' $ac_executable_extensions; do
4912: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913: ac_cv_prog_ac_ct_FC="$ac_prog"
4914: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915: break 2
4916: fi
4917: done
4918: done
4919: IFS=$as_save_IFS
4920:
4921: fi
4922: fi
4923: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4924: if test -n "$ac_ct_FC"; then
4925: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4926: $as_echo "$ac_ct_FC" >&6; }
4927: else
4928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929: $as_echo "no" >&6; }
4930: fi
4931:
4932:
4933: test -n "$ac_ct_FC" && break
4934: done
4935:
4936: if test "x$ac_ct_FC" = x; then
4937: FC=""
4938: else
4939: case $cross_compiling:$ac_tool_warned in
4940: yes:)
4941: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943: ac_tool_warned=yes ;;
4944: esac
4945: FC=$ac_ct_FC
4946: fi
4947: fi
4948:
4949:
4950: # Provide some information about the compiler.
4951: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4952: set X $ac_compile
4953: ac_compiler=$2
4954: for ac_option in --version -v -V -qversion; do
4955: { { ac_try="$ac_compiler $ac_option >&5"
4956: case "(($ac_try" in
4957: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958: *) ac_try_echo=$ac_try;;
4959: esac
4960: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4961: $as_echo "$ac_try_echo"; } >&5
4962: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4963: ac_status=$?
4964: if test -s conftest.err; then
4965: sed '10a\
4966: ... rest of stderr output deleted ...
4967: 10q' conftest.err >conftest.er1
4968: cat conftest.er1 >&5
4969: fi
4970: rm -f conftest.er1 conftest.err
4971: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4972: test $ac_status = 0; }
4973: done
4974: rm -f a.out
4975:
4976: # If we don't use `.F' as extension, the preprocessor is not run on the
4977: # input file. (Note that this only needs to work for GNU compilers.)
4978: ac_save_ext=$ac_ext
4979: ac_ext=F
4980: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4981: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4982: if ${ac_cv_fc_compiler_gnu+:} false; then :
4983: $as_echo_n "(cached) " >&6
4984: else
4985: cat > conftest.$ac_ext <<_ACEOF
4986: program main
4987: #ifndef __GNUC__
4988: choke me
4989: #endif
4990:
4991: end
4992: _ACEOF
4993: if ac_fn_fc_try_compile "$LINENO"; then :
4994: ac_compiler_gnu=yes
4995: else
4996: ac_compiler_gnu=no
4997: fi
4998: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4999: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
5000:
5001: fi
5002: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
5003: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
5004: ac_ext=$ac_save_ext
5005: ac_test_FCFLAGS=${FCFLAGS+set}
5006: ac_save_FCFLAGS=$FCFLAGS
5007: FCFLAGS=
5008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
5009: $as_echo_n "checking whether $FC accepts -g... " >&6; }
5010: if ${ac_cv_prog_fc_g+:} false; then :
5011: $as_echo_n "(cached) " >&6
5012: else
5013: FCFLAGS=-g
5014: cat > conftest.$ac_ext <<_ACEOF
5015: program main
5016:
5017: end
5018: _ACEOF
5019: if ac_fn_fc_try_compile "$LINENO"; then :
5020: ac_cv_prog_fc_g=yes
5021: else
5022: ac_cv_prog_fc_g=no
5023: fi
5024: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025:
5026: fi
5027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
5028: $as_echo "$ac_cv_prog_fc_g" >&6; }
5029: if test "$ac_test_FCFLAGS" = set; then
5030: FCFLAGS=$ac_save_FCFLAGS
5031: elif test $ac_cv_prog_fc_g = yes; then
5032: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5033: FCFLAGS="-g -O2"
5034: else
5035: FCFLAGS="-g"
5036: fi
5037: else
5038: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5039: FCFLAGS="-O2"
5040: else
5041: FCFLAGS=
5042: fi
5043: fi
5044:
5045: ac_ext=c
5046: ac_cpp='$CPP $CPPFLAGS'
5047: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050:
5051:
5052: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
5053: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
5054: fi
5055:
5056: if test x"$FC" != x""; then
5057: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
5058: awk -F. '{ printf("%s", $1);}'`
5059: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
5060: awk -F. '{ printf("%s", $2);}'`
5061: if test $GCC_VERSION_MAJEURE -ge 5; then
5062: OPTIMISATION_F=-O3
5063: else
5064: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
5065: OPTIMISATION_F=-O3
5066: else
5067: if test $GCC_VERSION_MAJEURE -ge 3; then
5068: OPTIMISATION_F=-O2
5069: else
5070: as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
5071: fi
5072: fi
5073: fi
5074: fi
5075:
5076:
5077: ac_ext=c
5078: ac_cpp='$CPP $CPPFLAGS'
5079: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5083: $as_echo_n "checking how to run the C preprocessor... " >&6; }
5084: # On Suns, sometimes $CPP names a directory.
5085: if test -n "$CPP" && test -d "$CPP"; then
5086: CPP=
5087: fi
5088: if test -z "$CPP"; then
5089: if ${ac_cv_prog_CPP+:} false; then :
5090: $as_echo_n "(cached) " >&6
5091: else
5092: # Double quotes because CPP needs to be expanded
5093: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5094: do
5095: ac_preproc_ok=false
5096: for ac_c_preproc_warn_flag in '' yes
5097: do
5098: # Use a header file that comes with gcc, so configuring glibc
5099: # with a fresh cross-compiler works.
5100: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5101: # <limits.h> exists even on freestanding compilers.
5102: # On the NeXT, cc -E runs the code through the compiler's parser,
5103: # not just through cpp. "Syntax error" is here to catch this case.
5104: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105: /* end confdefs.h. */
5106: #ifdef __STDC__
5107: # include <limits.h>
5108: #else
5109: # include <assert.h>
5110: #endif
5111: Syntax error
5112: _ACEOF
5113: if ac_fn_c_try_cpp "$LINENO"; then :
5114:
5115: else
5116: # Broken: fails on valid input.
5117: continue
5118: fi
5119: rm -f conftest.err conftest.i conftest.$ac_ext
5120:
5121: # OK, works on sane cases. Now check whether nonexistent headers
5122: # can be detected and how.
5123: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124: /* end confdefs.h. */
5125: #include <ac_nonexistent.h>
5126: _ACEOF
5127: if ac_fn_c_try_cpp "$LINENO"; then :
5128: # Broken: success on invalid input.
5129: continue
5130: else
5131: # Passes both tests.
5132: ac_preproc_ok=:
5133: break
5134: fi
5135: rm -f conftest.err conftest.i conftest.$ac_ext
5136:
5137: done
5138: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5139: rm -f conftest.i conftest.err conftest.$ac_ext
5140: if $ac_preproc_ok; then :
5141: break
5142: fi
5143:
5144: done
5145: ac_cv_prog_CPP=$CPP
5146:
5147: fi
5148: CPP=$ac_cv_prog_CPP
5149: else
5150: ac_cv_prog_CPP=$CPP
5151: fi
5152: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5153: $as_echo "$CPP" >&6; }
5154: ac_preproc_ok=false
5155: for ac_c_preproc_warn_flag in '' yes
5156: do
5157: # Use a header file that comes with gcc, so configuring glibc
5158: # with a fresh cross-compiler works.
5159: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5160: # <limits.h> exists even on freestanding compilers.
5161: # On the NeXT, cc -E runs the code through the compiler's parser,
5162: # not just through cpp. "Syntax error" is here to catch this case.
5163: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164: /* end confdefs.h. */
5165: #ifdef __STDC__
5166: # include <limits.h>
5167: #else
5168: # include <assert.h>
5169: #endif
5170: Syntax error
5171: _ACEOF
5172: if ac_fn_c_try_cpp "$LINENO"; then :
5173:
5174: else
5175: # Broken: fails on valid input.
5176: continue
5177: fi
5178: rm -f conftest.err conftest.i conftest.$ac_ext
5179:
5180: # OK, works on sane cases. Now check whether nonexistent headers
5181: # can be detected and how.
5182: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183: /* end confdefs.h. */
5184: #include <ac_nonexistent.h>
5185: _ACEOF
5186: if ac_fn_c_try_cpp "$LINENO"; then :
5187: # Broken: success on invalid input.
5188: continue
5189: else
5190: # Passes both tests.
5191: ac_preproc_ok=:
5192: break
5193: fi
5194: rm -f conftest.err conftest.i conftest.$ac_ext
5195:
5196: done
5197: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5198: rm -f conftest.i conftest.err conftest.$ac_ext
5199: if $ac_preproc_ok; then :
5200:
5201: else
5202: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5203: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5204: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5205: See \`config.log' for more details" "$LINENO" 5; }
5206: fi
5207:
5208: ac_ext=c
5209: ac_cpp='$CPP $CPPFLAGS'
5210: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5211: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5212: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5213:
5214:
5215: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5216: $as_echo_n "checking for X... " >&6; }
5217:
5218:
5219: # Check whether --with-x was given.
5220: if test "${with_x+set}" = set; then :
5221: withval=$with_x;
5222: fi
5223:
5224: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5225: if test "x$with_x" = xno; then
5226: # The user explicitly disabled X.
5227: have_x=disabled
5228: else
5229: case $x_includes,$x_libraries in #(
5230: *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5231: *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5232: $as_echo_n "(cached) " >&6
5233: else
5234: # One or both of the vars are not set, and there is no cached value.
5235: ac_x_includes=no ac_x_libraries=no
5236: rm -f -r conftest.dir
5237: if mkdir conftest.dir; then
5238: cd conftest.dir
5239: cat >Imakefile <<'_ACEOF'
5240: incroot:
5241: @echo incroot='${INCROOT}'
5242: usrlibdir:
5243: @echo usrlibdir='${USRLIBDIR}'
5244: libdir:
5245: @echo libdir='${LIBDIR}'
5246: _ACEOF
5247: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5248: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5249: for ac_var in incroot usrlibdir libdir; do
5250: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5251: done
5252: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5253: for ac_extension in a so sl dylib la dll; do
5254: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5255: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5256: ac_im_usrlibdir=$ac_im_libdir; break
5257: fi
5258: done
5259: # Screen out bogus values from the imake configuration. They are
5260: # bogus both because they are the default anyway, and because
5261: # using them would break gcc on systems where it needs fixed includes.
5262: case $ac_im_incroot in
5263: /usr/include) ac_x_includes= ;;
5264: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5265: esac
5266: case $ac_im_usrlibdir in
5267: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5268: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5269: esac
5270: fi
5271: cd ..
5272: rm -f -r conftest.dir
5273: fi
5274:
5275: # Standard set of common directories for X headers.
5276: # Check X11 before X11Rn because it is often a symlink to the current release.
5277: ac_x_header_dirs='
5278: /usr/X11/include
5279: /usr/X11R7/include
5280: /usr/X11R6/include
5281: /usr/X11R5/include
5282: /usr/X11R4/include
5283:
5284: /usr/include/X11
5285: /usr/include/X11R7
5286: /usr/include/X11R6
5287: /usr/include/X11R5
5288: /usr/include/X11R4
5289:
5290: /usr/local/X11/include
5291: /usr/local/X11R7/include
5292: /usr/local/X11R6/include
5293: /usr/local/X11R5/include
5294: /usr/local/X11R4/include
5295:
5296: /usr/local/include/X11
5297: /usr/local/include/X11R7
5298: /usr/local/include/X11R6
5299: /usr/local/include/X11R5
5300: /usr/local/include/X11R4
5301:
5302: /usr/X386/include
5303: /usr/x386/include
5304: /usr/XFree86/include/X11
5305:
5306: /usr/include
5307: /usr/local/include
5308: /usr/unsupported/include
5309: /usr/athena/include
5310: /usr/local/x11r5/include
5311: /usr/lpp/Xamples/include
5312:
5313: /usr/openwin/include
5314: /usr/openwin/share/include'
5315:
5316: if test "$ac_x_includes" = no; then
5317: # Guess where to find include files, by looking for Xlib.h.
5318: # First, try using that file with no special directory specified.
5319: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320: /* end confdefs.h. */
5321: #include <X11/Xlib.h>
5322: _ACEOF
5323: if ac_fn_c_try_cpp "$LINENO"; then :
5324: # We can compile using X headers with no special include directory.
5325: ac_x_includes=
5326: else
5327: for ac_dir in $ac_x_header_dirs; do
5328: if test -r "$ac_dir/X11/Xlib.h"; then
5329: ac_x_includes=$ac_dir
5330: break
5331: fi
5332: done
5333: fi
5334: rm -f conftest.err conftest.i conftest.$ac_ext
5335: fi # $ac_x_includes = no
5336:
5337: if test "$ac_x_libraries" = no; then
5338: # Check for the libraries.
5339: # See if we find them without any special options.
5340: # Don't add to $LIBS permanently.
5341: ac_save_LIBS=$LIBS
5342: LIBS="-lX11 $LIBS"
5343: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344: /* end confdefs.h. */
5345: #include <X11/Xlib.h>
5346: int
5347: main ()
5348: {
5349: XrmInitialize ()
5350: ;
5351: return 0;
5352: }
5353: _ACEOF
5354: if ac_fn_c_try_link "$LINENO"; then :
5355: LIBS=$ac_save_LIBS
5356: # We can link X programs with no special library path.
5357: ac_x_libraries=
5358: else
5359: LIBS=$ac_save_LIBS
5360: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5361: do
5362: # Don't even attempt the hair of trying to link an X program!
5363: for ac_extension in a so sl dylib la dll; do
5364: if test -r "$ac_dir/libX11.$ac_extension"; then
5365: ac_x_libraries=$ac_dir
5366: break 2
5367: fi
5368: done
5369: done
5370: fi
5371: rm -f core conftest.err conftest.$ac_objext \
5372: conftest$ac_exeext conftest.$ac_ext
5373: fi # $ac_x_libraries = no
5374:
5375: case $ac_x_includes,$ac_x_libraries in #(
5376: no,* | *,no | *\'*)
5377: # Didn't find X, or a directory has "'" in its name.
5378: ac_cv_have_x="have_x=no";; #(
5379: *)
5380: # Record where we found X for the cache.
5381: ac_cv_have_x="have_x=yes\
5382: ac_x_includes='$ac_x_includes'\
5383: ac_x_libraries='$ac_x_libraries'"
5384: esac
5385: fi
5386: ;; #(
5387: *) have_x=yes;;
5388: esac
5389: eval "$ac_cv_have_x"
5390: fi # $with_x != no
5391:
5392: if test "$have_x" != yes; then
5393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5394: $as_echo "$have_x" >&6; }
5395: no_x=yes
5396: else
5397: # If each of the values was on the command line, it overrides each guess.
5398: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5399: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5400: # Update the cache value to reflect the command line values.
5401: ac_cv_have_x="have_x=yes\
5402: ac_x_includes='$x_includes'\
5403: ac_x_libraries='$x_libraries'"
5404: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5405: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5406: fi
5407:
5408: if test "$no_x" = yes; then
5409: # Not all programs may use this symbol, but it does not hurt to define it.
5410:
5411: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5412:
5413: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5414: else
5415: if test -n "$x_includes"; then
5416: X_CFLAGS="$X_CFLAGS -I$x_includes"
5417: fi
5418:
5419: # It would also be nice to do this for all -L options, not just this one.
5420: if test -n "$x_libraries"; then
5421: X_LIBS="$X_LIBS -L$x_libraries"
5422: # For Solaris; some versions of Sun CC require a space after -R and
5423: # others require no space. Words are not sufficient . . . .
5424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5425: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5426: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5427: ac_xsave_c_werror_flag=$ac_c_werror_flag
5428: ac_c_werror_flag=yes
5429: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430: /* end confdefs.h. */
5431:
5432: int
5433: main ()
5434: {
5435:
5436: ;
5437: return 0;
5438: }
5439: _ACEOF
5440: if ac_fn_c_try_link "$LINENO"; then :
5441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442: $as_echo "no" >&6; }
5443: X_LIBS="$X_LIBS -R$x_libraries"
5444: else
5445: LIBS="$ac_xsave_LIBS -R $x_libraries"
5446: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447: /* end confdefs.h. */
5448:
5449: int
5450: main ()
5451: {
5452:
5453: ;
5454: return 0;
5455: }
5456: _ACEOF
5457: if ac_fn_c_try_link "$LINENO"; then :
5458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5459: $as_echo "yes" >&6; }
5460: X_LIBS="$X_LIBS -R $x_libraries"
5461: else
5462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5463: $as_echo "neither works" >&6; }
5464: fi
5465: rm -f core conftest.err conftest.$ac_objext \
5466: conftest$ac_exeext conftest.$ac_ext
5467: fi
5468: rm -f core conftest.err conftest.$ac_objext \
5469: conftest$ac_exeext conftest.$ac_ext
5470: ac_c_werror_flag=$ac_xsave_c_werror_flag
5471: LIBS=$ac_xsave_LIBS
5472: fi
5473:
5474: # Check for system-dependent libraries X programs must link with.
5475: # Do this before checking for the system-independent R6 libraries
5476: # (-lICE), since we may need -lsocket or whatever for X linking.
5477:
5478: if test "$ISC" = yes; then
5479: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5480: else
5481: # Martyn Johnson says this is needed for Ultrix, if the X
5482: # libraries were built with DECnet support. And Karl Berry says
5483: # the Alpha needs dnet_stub (dnet does not exist).
5484: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5485: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486: /* end confdefs.h. */
5487:
5488: /* Override any GCC internal prototype to avoid an error.
5489: Use char because int might match the return type of a GCC
5490: builtin and then its argument prototype would still apply. */
5491: #ifdef __cplusplus
5492: extern "C"
5493: #endif
5494: char XOpenDisplay ();
5495: int
5496: main ()
5497: {
5498: return XOpenDisplay ();
5499: ;
5500: return 0;
5501: }
5502: _ACEOF
5503: if ac_fn_c_try_link "$LINENO"; then :
5504:
5505: else
5506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5507: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5508: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5509: $as_echo_n "(cached) " >&6
5510: else
5511: ac_check_lib_save_LIBS=$LIBS
5512: LIBS="-ldnet $LIBS"
5513: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514: /* end confdefs.h. */
5515:
5516: /* Override any GCC internal prototype to avoid an error.
5517: Use char because int might match the return type of a GCC
5518: builtin and then its argument prototype would still apply. */
5519: #ifdef __cplusplus
5520: extern "C"
5521: #endif
5522: char dnet_ntoa ();
5523: int
5524: main ()
5525: {
5526: return dnet_ntoa ();
5527: ;
5528: return 0;
5529: }
5530: _ACEOF
5531: if ac_fn_c_try_link "$LINENO"; then :
5532: ac_cv_lib_dnet_dnet_ntoa=yes
5533: else
5534: ac_cv_lib_dnet_dnet_ntoa=no
5535: fi
5536: rm -f core conftest.err conftest.$ac_objext \
5537: conftest$ac_exeext conftest.$ac_ext
5538: LIBS=$ac_check_lib_save_LIBS
5539: fi
5540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5541: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5542: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5543: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5544: fi
5545:
5546: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5547: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5548: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5549: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5550: $as_echo_n "(cached) " >&6
5551: else
5552: ac_check_lib_save_LIBS=$LIBS
5553: LIBS="-ldnet_stub $LIBS"
5554: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555: /* end confdefs.h. */
5556:
5557: /* Override any GCC internal prototype to avoid an error.
5558: Use char because int might match the return type of a GCC
5559: builtin and then its argument prototype would still apply. */
5560: #ifdef __cplusplus
5561: extern "C"
5562: #endif
5563: char dnet_ntoa ();
5564: int
5565: main ()
5566: {
5567: return dnet_ntoa ();
5568: ;
5569: return 0;
5570: }
5571: _ACEOF
5572: if ac_fn_c_try_link "$LINENO"; then :
5573: ac_cv_lib_dnet_stub_dnet_ntoa=yes
5574: else
5575: ac_cv_lib_dnet_stub_dnet_ntoa=no
5576: fi
5577: rm -f core conftest.err conftest.$ac_objext \
5578: conftest$ac_exeext conftest.$ac_ext
5579: LIBS=$ac_check_lib_save_LIBS
5580: fi
5581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5582: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5583: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5584: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5585: fi
5586:
5587: fi
5588: fi
5589: rm -f core conftest.err conftest.$ac_objext \
5590: conftest$ac_exeext conftest.$ac_ext
5591: LIBS="$ac_xsave_LIBS"
5592:
5593: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5594: # to get the SysV transport functions.
5595: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5596: # needs -lnsl.
5597: # The nsl library prevents programs from opening the X display
5598: # on Irix 5.2, according to T.E. Dickey.
5599: # The functions gethostbyname, getservbyname, and inet_addr are
5600: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5601: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5602: if test "x$ac_cv_func_gethostbyname" = xyes; then :
5603:
5604: fi
5605:
5606: if test $ac_cv_func_gethostbyname = no; then
5607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5608: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5609: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5610: $as_echo_n "(cached) " >&6
5611: else
5612: ac_check_lib_save_LIBS=$LIBS
5613: LIBS="-lnsl $LIBS"
5614: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615: /* end confdefs.h. */
5616:
5617: /* Override any GCC internal prototype to avoid an error.
5618: Use char because int might match the return type of a GCC
5619: builtin and then its argument prototype would still apply. */
5620: #ifdef __cplusplus
5621: extern "C"
5622: #endif
5623: char gethostbyname ();
5624: int
5625: main ()
5626: {
5627: return gethostbyname ();
5628: ;
5629: return 0;
5630: }
5631: _ACEOF
5632: if ac_fn_c_try_link "$LINENO"; then :
5633: ac_cv_lib_nsl_gethostbyname=yes
5634: else
5635: ac_cv_lib_nsl_gethostbyname=no
5636: fi
5637: rm -f core conftest.err conftest.$ac_objext \
5638: conftest$ac_exeext conftest.$ac_ext
5639: LIBS=$ac_check_lib_save_LIBS
5640: fi
5641: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5642: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5643: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5644: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5645: fi
5646:
5647: if test $ac_cv_lib_nsl_gethostbyname = no; then
5648: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5649: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5650: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5651: $as_echo_n "(cached) " >&6
5652: else
5653: ac_check_lib_save_LIBS=$LIBS
5654: LIBS="-lbsd $LIBS"
5655: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5656: /* end confdefs.h. */
5657:
5658: /* Override any GCC internal prototype to avoid an error.
5659: Use char because int might match the return type of a GCC
5660: builtin and then its argument prototype would still apply. */
5661: #ifdef __cplusplus
5662: extern "C"
5663: #endif
5664: char gethostbyname ();
5665: int
5666: main ()
5667: {
5668: return gethostbyname ();
5669: ;
5670: return 0;
5671: }
5672: _ACEOF
5673: if ac_fn_c_try_link "$LINENO"; then :
5674: ac_cv_lib_bsd_gethostbyname=yes
5675: else
5676: ac_cv_lib_bsd_gethostbyname=no
5677: fi
5678: rm -f core conftest.err conftest.$ac_objext \
5679: conftest$ac_exeext conftest.$ac_ext
5680: LIBS=$ac_check_lib_save_LIBS
5681: fi
5682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5683: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5684: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5685: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5686: fi
5687:
5688: fi
5689: fi
5690:
5691: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5692: # socket/setsockopt and other routines are undefined under SCO ODT
5693: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5694: # on later versions), says Simon Leinen: it contains gethostby*
5695: # variants that don't use the name server (or something). -lsocket
5696: # must be given before -lnsl if both are needed. We assume that
5697: # if connect needs -lnsl, so does gethostbyname.
5698: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5699: if test "x$ac_cv_func_connect" = xyes; then :
5700:
5701: fi
5702:
5703: if test $ac_cv_func_connect = no; then
5704: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5705: $as_echo_n "checking for connect in -lsocket... " >&6; }
5706: if ${ac_cv_lib_socket_connect+:} false; then :
5707: $as_echo_n "(cached) " >&6
5708: else
5709: ac_check_lib_save_LIBS=$LIBS
5710: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5711: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712: /* end confdefs.h. */
5713:
5714: /* Override any GCC internal prototype to avoid an error.
5715: Use char because int might match the return type of a GCC
5716: builtin and then its argument prototype would still apply. */
5717: #ifdef __cplusplus
5718: extern "C"
5719: #endif
5720: char connect ();
5721: int
5722: main ()
5723: {
5724: return connect ();
5725: ;
5726: return 0;
5727: }
5728: _ACEOF
5729: if ac_fn_c_try_link "$LINENO"; then :
5730: ac_cv_lib_socket_connect=yes
5731: else
5732: ac_cv_lib_socket_connect=no
5733: fi
5734: rm -f core conftest.err conftest.$ac_objext \
5735: conftest$ac_exeext conftest.$ac_ext
5736: LIBS=$ac_check_lib_save_LIBS
5737: fi
5738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5739: $as_echo "$ac_cv_lib_socket_connect" >&6; }
5740: if test "x$ac_cv_lib_socket_connect" = xyes; then :
5741: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5742: fi
5743:
5744: fi
5745:
5746: # Guillermo Gomez says -lposix is necessary on A/UX.
5747: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5748: if test "x$ac_cv_func_remove" = xyes; then :
5749:
5750: fi
5751:
5752: if test $ac_cv_func_remove = no; then
5753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5754: $as_echo_n "checking for remove in -lposix... " >&6; }
5755: if ${ac_cv_lib_posix_remove+:} false; then :
5756: $as_echo_n "(cached) " >&6
5757: else
5758: ac_check_lib_save_LIBS=$LIBS
5759: LIBS="-lposix $LIBS"
5760: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761: /* end confdefs.h. */
5762:
5763: /* Override any GCC internal prototype to avoid an error.
5764: Use char because int might match the return type of a GCC
5765: builtin and then its argument prototype would still apply. */
5766: #ifdef __cplusplus
5767: extern "C"
5768: #endif
5769: char remove ();
5770: int
5771: main ()
5772: {
5773: return remove ();
5774: ;
5775: return 0;
5776: }
5777: _ACEOF
5778: if ac_fn_c_try_link "$LINENO"; then :
5779: ac_cv_lib_posix_remove=yes
5780: else
5781: ac_cv_lib_posix_remove=no
5782: fi
5783: rm -f core conftest.err conftest.$ac_objext \
5784: conftest$ac_exeext conftest.$ac_ext
5785: LIBS=$ac_check_lib_save_LIBS
5786: fi
5787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5788: $as_echo "$ac_cv_lib_posix_remove" >&6; }
5789: if test "x$ac_cv_lib_posix_remove" = xyes; then :
5790: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5791: fi
5792:
5793: fi
5794:
5795: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5796: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5797: if test "x$ac_cv_func_shmat" = xyes; then :
5798:
5799: fi
5800:
5801: if test $ac_cv_func_shmat = no; then
5802: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5803: $as_echo_n "checking for shmat in -lipc... " >&6; }
5804: if ${ac_cv_lib_ipc_shmat+:} false; then :
5805: $as_echo_n "(cached) " >&6
5806: else
5807: ac_check_lib_save_LIBS=$LIBS
5808: LIBS="-lipc $LIBS"
5809: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810: /* end confdefs.h. */
5811:
5812: /* Override any GCC internal prototype to avoid an error.
5813: Use char because int might match the return type of a GCC
5814: builtin and then its argument prototype would still apply. */
5815: #ifdef __cplusplus
5816: extern "C"
5817: #endif
5818: char shmat ();
5819: int
5820: main ()
5821: {
5822: return shmat ();
5823: ;
5824: return 0;
5825: }
5826: _ACEOF
5827: if ac_fn_c_try_link "$LINENO"; then :
5828: ac_cv_lib_ipc_shmat=yes
5829: else
5830: ac_cv_lib_ipc_shmat=no
5831: fi
5832: rm -f core conftest.err conftest.$ac_objext \
5833: conftest$ac_exeext conftest.$ac_ext
5834: LIBS=$ac_check_lib_save_LIBS
5835: fi
5836: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5837: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5838: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
5839: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5840: fi
5841:
5842: fi
5843: fi
5844:
5845: # Check for libraries that X11R6 Xt/Xaw programs need.
5846: ac_save_LDFLAGS=$LDFLAGS
5847: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5848: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5849: # check for ICE first), but we must link in the order -lSM -lICE or
5850: # we get undefined symbols. So assume we have SM if we have ICE.
5851: # These have to be linked with before -lX11, unlike the other
5852: # libraries we check for below, so use a different variable.
5853: # John Interrante, Karl Berry
5854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5855: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5856: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
5857: $as_echo_n "(cached) " >&6
5858: else
5859: ac_check_lib_save_LIBS=$LIBS
5860: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5861: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5862: /* end confdefs.h. */
5863:
5864: /* Override any GCC internal prototype to avoid an error.
5865: Use char because int might match the return type of a GCC
5866: builtin and then its argument prototype would still apply. */
5867: #ifdef __cplusplus
5868: extern "C"
5869: #endif
5870: char IceConnectionNumber ();
5871: int
5872: main ()
5873: {
5874: return IceConnectionNumber ();
5875: ;
5876: return 0;
5877: }
5878: _ACEOF
5879: if ac_fn_c_try_link "$LINENO"; then :
5880: ac_cv_lib_ICE_IceConnectionNumber=yes
5881: else
5882: ac_cv_lib_ICE_IceConnectionNumber=no
5883: fi
5884: rm -f core conftest.err conftest.$ac_objext \
5885: conftest$ac_exeext conftest.$ac_ext
5886: LIBS=$ac_check_lib_save_LIBS
5887: fi
5888: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5889: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5890: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
5891: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5892: fi
5893:
5894: LDFLAGS=$ac_save_LDFLAGS
5895:
5896: fi
5897:
5898:
5899: if test "$ac_x_includes" != "no"; then
5900: if test x"$ac_x_includes" != x; then
5901: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5902: includeX="-I$ac_x_includes"
5903: fi
5904: fi
5905: if test "$ac_x_libraries" != "no"; then
5906: if test x"$ac_x_libraries" != x; then
5907: X_LIBS="$X_LIBS -L$ac_x_libraries"
5908: fi
5909: fi
5910:
5911:
5912: # Check whether --with-32bits-abi was given.
5913: if test "${with_32bits_abi+set}" = set; then :
5914: withval=$with_32bits_abi;
5915: if test "$with-32bits-abi" = "no"; then
5916: ABI=
5917: else
5918: ABI=-m32
5919: fi
5920: else
5921:
5922: ABI=
5923:
5924:
5925: fi
5926:
5927:
5928: if test x$ABI = x; then
5929:
5930: # Check whether --with-64bits-abi was given.
5931: if test "${with_64bits_abi+set}" = set; then :
5932: withval=$with_64bits_abi;
5933: if test "$with-64bits-abi" = "no"; then
5934: ABI=
5935: else
5936: ABI=-m64
5937: fi
5938: else
5939:
5940: ABI=
5941:
5942:
5943: fi
5944:
5945: fi
5946:
5947: LDFLAGS="$LDFLAGS $ABI"
5948:
5949:
5950: # Check whether --with-rplcas was given.
5951: if test "${with_rplcas+set}" = set; then :
5952: withval=$with_rplcas;
5953: if test "$with-rplcas" = "no"; then
5954: RPLCAS=-URPLCAS
5955: LIBRPLCAS=
5956: else
5957: RPLCAS=-DRPLCAS
5958: LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
5959: fi
5960: else
5961:
5962: RPLCAS=-URPLCAS
5963: LIBRPLCAS=
5964:
5965:
5966: fi
5967:
5968:
5969:
5970:
5971:
5972:
5973: # Check whether --enable-optimization was given.
5974: if test "${enable_optimization+set}" = set; then :
5975: enableval=$enable_optimization;
5976: if test "$enableval" = "no"; then
5977: CFLAGS=$ABI
5978: FFLAGS=$ABI
5979: CXXFLAGS=$ABI
5980: FCFLAGS=$ABI
5981: else
5982: CFLAGS="$CFLAGS $ABI $enable_optimization"
5983: FFLAGS="$FFLAGS $ABI $enable_optimization"
5984: CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
5985: FCFLAGS="$FCFLAGS $ABI $enable_optimization"
5986: fi
5987: else
5988:
5989: CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
5990: FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
5991: CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
5992: FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
5993:
5994:
5995: fi
5996:
5997:
5998: # Check whether --enable-sysv-semaphores was given.
5999: if test "${enable_sysv_semaphores+set}" = set; then :
6000: enableval=$enable_sysv_semaphores;
6001: if test "$enableval" = "no"; then
6002: IPCS_SYSV=no
6003: else
6004: IPCS_SYSV=yes
6005: fi
6006: else
6007: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX semaphores" >&5
6008: $as_echo_n "checking for POSIX semaphores... " >&6; }
6009: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010: /* end confdefs.h. */
6011: #include <sys/mman.h>
6012: #include <sys/stat.h>
6013: #include <fcntl.h>
6014:
6015: int
6016: main ()
6017: {
6018: int fd; char *sem = "/sem.test";
6019: fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
6020: close(fd);
6021: shm_unlink(sem);
6022: return(0);
6023:
6024: ;
6025: return 0;
6026: }
6027: _ACEOF
6028: if ac_fn_c_try_compile "$LINENO"; then :
6029: IPCS_SYSV=-UIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6030: $as_echo "yes" >&6; }
6031: else
6032: IPCS_SYSV=-DIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033: $as_echo "no" >&6; }
6034:
6035: fi
6036: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037:
6038: fi
6039:
6040:
6041: if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then
6042: REG=$LDFLAGS
6043: LDFLAGS=-pthread
6044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX anonymous semaphores" >&5
6045: $as_echo_n "checking for POSIX anonymous semaphores... " >&6; }
6046: if test "$cross_compiling" = yes; then :
6047: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6048: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6049: as_fn_error $? "cannot run test program while cross compiling
6050: See \`config.log' for more details" "$LINENO" 5; }
6051: else
6052: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053: /* end confdefs.h. */
6054: #include <semaphore.h>
6055:
6056: int
6057: main ()
6058: {
6059: sem_t sem;
6060: if (sem_init(&sem, 1, 0) != 0) return(1);
6061: sem_destroy(&sem);
6062: return(0);
6063:
6064: ;
6065: return 0;
6066: }
6067: _ACEOF
6068: if ac_fn_c_try_run "$LINENO"; then :
6069: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6070: $as_echo "yes" >&6; }
6071: else
6072: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6073: $as_echo "no" >&6; }
6074:
6075: fi
6076: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6077: conftest.$ac_objext conftest.beam conftest.$ac_ext
6078: fi
6079:
6080: LDFLAGS=$REG
6081: REG=""
6082: else
6083: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
6084: fi
6085:
6086: # Check whether --enable-full-static was given.
6087: if test "${enable_full_static+set}" = set; then :
6088: enableval=$enable_full_static;
6089: if test "$enableval" = "no"; then
6090: STATIC=no
6091: else
6092: STATIC=yes
6093: fi
6094: else
6095: STATIC=no
6096: fi
6097:
6098:
6099: # Check whether --enable-final-encoding was given.
6100: if test "${enable_final_encoding+set}" = set; then :
6101: enableval=$enable_final_encoding;
6102: if test "$enableval" = "no"; then
6103: FINAL_ENCODING="\$(shell locale charmap | \
6104: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
6105: FORCED_FINAL_ENCODING=0
6106: else
6107: FINAL_ENCODING="$enable_final_encoding"
6108: FORCED_FINAL_ENCODING=1
6109: fi
6110: else
6111:
6112: FORCED_FINAL_ENCODING=0
6113: FINAL_ENCODING="\$(shell locale charmap | \
6114: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
6115: fi
6116:
6117:
6118: # Check whether --enable-tex was given.
6119: if test "${enable_tex+set}" = set; then :
6120: enableval=$enable_tex;
6121: if test "$enableval" = "no"; then
6122: TEX_SUPPORT=no
6123: else
6124: TEX_SUPPORT=yes
6125: fi
6126: else
6127: TEX_SUPPORT=guessed
6128: fi
6129:
6130:
6131: # Check whether --enable-vim was given.
6132: if test "${enable_vim+set}" = set; then :
6133: enableval=$enable_vim;
6134: if test "$enableval" = "no"; then
6135: VIM_SUPPORT=no
6136: else
6137: VIM_SUPPORT=yes
6138: fi
6139: else
6140: VIM_SUPPORT=guessed
6141: fi
6142:
6143:
6144: # Check whether --enable-embedded-gnuplot was given.
6145: if test "${enable_embedded_gnuplot+set}" = set; then :
6146: enableval=$enable_embedded_gnuplot;
6147: if test "$enableval" = "no"; then
6148: MYGNUPLOT=no
6149: else
6150: MYGNUPLOT=yes
6151: fi
6152: else
6153:
6154: MYGNUPLOT=yes
6155: fi
6156:
6157:
6158: # Check whether --enable-gnuplot was given.
6159: if test "${enable_gnuplot+set}" = set; then :
6160: enableval=$enable_gnuplot;
6161: if test "$enableval" = "no"; then
6162: GNUPLOT_SUPPORT=no
6163: MYGNUPLOT=no
6164: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
6165: else
6166: GNUPLOT_SUPPORT=yes
6167: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
6168: fi
6169: else
6170:
6171: if test "$MYGNUPLOT" = "yes"; then
6172: GNUPLOT_SUPPORT=yes
6173: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
6174: else
6175: GNUPLOT_SUPPORT=guessed
6176: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
6177: fi
6178: fi
6179:
6180:
6181: libX=""
6182: LIBMOTIF=""
6183: INCMOTIF=""
6184: BUILD_OPENMOTIF=""
6185:
6186: # Check whether --enable-motif was given.
6187: if test "${enable_motif+set}" = set; then :
6188: enableval=$enable_motif;
6189: if test "$enableval" = "no"; then
6190: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6191: else
6192: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6193: fi
6194: else
6195: if test "$have_x" == "yes"; then
6196: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6197: else
6198: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6199: fi
6200: fi
6201:
6202:
6203: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6204: libX="$X_LIBS -lXt -lX11"
6205: LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/lib/Xm/.libs/libXm.a \
6206: \$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a"
6207: INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \
6208: -I\$(top_builddir)/tools/$OPENMOTIF/lib \
6209: -I\$(top_builddir)/tools/$LIBXPM/include"
6210: BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF"
6211:
6212:
6213: subdirs="$subdirs tools/$LIBXPM"
6214:
6215: subdirs="$subdirs tools/$OPENMOTIF"
6216:
6217: fi
6218:
6219: # Check whether --enable-experimental was given.
6220: if test "${enable_experimental+set}" = set; then :
6221: enableval=$enable_experimental;
6222: if test "$enableval" = "no"; then
6223: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6224: else
6225: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
6226: fi
6227: else
6228: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6229: fi
6230:
6231:
6232: # Check whether --enable-debug was given.
6233: if test "${enable_debug+set}" = set; then :
6234: enableval=$enable_debug;
6235: if test "$enableval" = "no"; then
6236: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
6237: else
6238: DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
6239: fi
6240: else
6241: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
6242: fi
6243:
6244:
6245: # Check whether --enable-profile was given.
6246: if test "${enable_profile+set}" = set; then :
6247: enableval=$enable_profile;
6248: if test "$enableval" = "no"; then
6249: PROFILAGE=""
6250: else
6251: PROFILAGE="-pg"
6252: fi
6253: else
6254: PROFILAGE=""
6255: fi
6256:
6257:
6258:
6259:
6260: if test ! -d tools; then
6261: mkdir tools
6262: fi
6263: if test ! -d "$srcdir"/tools/$NCURSES; then
6264: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6265: (cd "$srcdir/tools" && tar -xf -)
6266: (cd "$srcdir/tools/"$NCURSES && \
6267: for i in ../$NCURSES*.patch.gz;
6268: do gunzip -c $i | patch -p1;
6269: done);
6270: fi
6271: if test ! -d "$srcdir"/tools/$READLINE; then
6272: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6273: (cd "$srcdir/tools" && tar -xf -)
6274: fi
6275: if test ! -d "$srcdir"/tools/$UNITS; then
6276: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6277: (cd "$srcdir/tools" && tar -xf -)
6278: fi
6279: if test ! -d "$srcdir"/tools/$GSL; then
6280: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6281: (cd "$srcdir/tools" && tar -xf -)
6282: if test $(uname) = "OS/2"; then
6283: (cd "$srcdir"/tools/$GSL; \
6284: TMP=$(mktemp tmp.XXXXXXXXXX); \
6285: sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
6286: \mv -f $TMP ltmain.sh)
6287: fi
6288: fi
6289: if test ! -d "$srcdir"/tools/$GPP; then
6290: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6291: (cd "$srcdir/tools" && tar -xf -)
6292: fi
6293: if test ! -d "$srcdir"/tools/$FILE; then
6294: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
6295: (cd "$srcdir/tools" && tar -xf - )
6296: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
6297: fi
6298: if test ! -d "$srcdir"/tools/$ICONV; then
6299: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6300: (cd "$srcdir/tools" && tar -xf -)
6301: fi
6302: if test ! -d "$srcdir"/tools/$SQLITE; then
6303: gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
6304: (cd "$srcdir/tools" && tar -xf -)
6305: fi
6306: if test ! -d "$srcdir"/tools/$SIGSEGV; then
6307: gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \
6308: (cd "$srcdir/tools" && tar -xf -)
6309: fi
6310: if test ! -d "$srcdir"/tools/$OPENMOTIF; then
6311: gunzip -c "$srcdir"/tools/$OPENMOTIF.tar.gz | \
6312: (cd "$srcdir/tools" && tar -xf -)
6313: fi
6314: if test ! -d "$srcdir"/tools/$LIBXPM; then
6315: gunzip -c "$srcdir"/tools/$LIBXPM.tar.gz | \
6316: (cd "$srcdir/tools" && tar -xf -)
6317: fi
6318: if test ! -d tools/$OPENSSL; then
6319: gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
6320: (cd tools && tar -xf -)
6321: fi
6322: if test ! -d rplcas; then
6323: mkdir rplcas
6324: fi
6325: if test ! -d "$srcdir"/rplcas/$GMP; then
6326: gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
6327: (cd "$srcdir/rplcas" && tar -xf -)
6328: fi
6329: if test ! -d "$srcdir"/rplcas/$MPFR; then
6330: gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
6331: (cd "$srcdir/rplcas" && tar -xf -)
6332: fi
6333: if test ! -d rplcas/$NTL; then
6334: gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
6335: (cd rplcas && tar -xf -)
6336: fi
6337: if test ! -d rplcas/$COCOA; then
6338: gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
6339: (cd rplcas && tar -xf -)
6340: fi
6341: if test ! -d rplcas/$PARI; then
6342: gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
6343: (cd rplcas && tar -xf -)
6344: fi
6345: if test ! -d "$srcdir"/rplcas/$GIAC; then
6346: gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
6347: (cd "$srcdir/rplcas" && tar -xf -)
6348: fi
6349:
6350:
6351:
6352: # Check whether --enable-final-run-path was given.
6353: if test "${enable_final_run_path+set}" = set; then :
6354: enableval=$enable_final_run_path;
6355: if test "x$enable_final_run_path" = "x"; then
6356: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6357: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
6358: as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
6359: else
6360: RUNPATH="$enable_final_run_path"
6361: fi
6362:
6363: else
6364: RUNPATH="\${prefix}"
6365:
6366: fi
6367:
6368:
6369:
6370:
6371: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6372: $as_echo_n "checking whether ln -s works... " >&6; }
6373: LN_S=$as_ln_s
6374: if test "$LN_S" = "ln -s"; then
6375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6376: $as_echo "yes" >&6; }
6377: else
6378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6379: $as_echo "no, using $LN_S" >&6; }
6380: fi
6381:
6382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6383: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6384: set x ${MAKE-make}
6385: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6386: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6387: $as_echo_n "(cached) " >&6
6388: else
6389: cat >conftest.make <<\_ACEOF
6390: SHELL = /bin/sh
6391: all:
6392: @echo '@@@%%%=$(MAKE)=@@@%%%'
6393: _ACEOF
6394: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6395: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6396: *@@@%%%=?*=@@@%%%*)
6397: eval ac_cv_prog_make_${ac_make}_set=yes;;
6398: *)
6399: eval ac_cv_prog_make_${ac_make}_set=no;;
6400: esac
6401: rm -f conftest.make
6402: fi
6403: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6404: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6405: $as_echo "yes" >&6; }
6406: SET_MAKE=
6407: else
6408: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409: $as_echo "no" >&6; }
6410: SET_MAKE="MAKE=${MAKE-make}"
6411: fi
6412:
6413: if test -n "$ac_tool_prefix"; then
6414: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6415: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6416: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417: $as_echo_n "checking for $ac_word... " >&6; }
6418: if ${ac_cv_prog_RANLIB+:} false; then :
6419: $as_echo_n "(cached) " >&6
6420: else
6421: if test -n "$RANLIB"; then
6422: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6423: else
6424: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425: for as_dir in $PATH
6426: do
6427: IFS=$as_save_IFS
6428: test -z "$as_dir" && as_dir=.
6429: for ac_exec_ext in '' $ac_executable_extensions; do
6430: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6432: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433: break 2
6434: fi
6435: done
6436: done
6437: IFS=$as_save_IFS
6438:
6439: fi
6440: fi
6441: RANLIB=$ac_cv_prog_RANLIB
6442: if test -n "$RANLIB"; then
6443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6444: $as_echo "$RANLIB" >&6; }
6445: else
6446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447: $as_echo "no" >&6; }
6448: fi
6449:
6450:
6451: fi
6452: if test -z "$ac_cv_prog_RANLIB"; then
6453: ac_ct_RANLIB=$RANLIB
6454: # Extract the first word of "ranlib", so it can be a program name with args.
6455: set dummy ranlib; ac_word=$2
6456: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457: $as_echo_n "checking for $ac_word... " >&6; }
6458: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6459: $as_echo_n "(cached) " >&6
6460: else
6461: if test -n "$ac_ct_RANLIB"; then
6462: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6463: else
6464: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465: for as_dir in $PATH
6466: do
6467: IFS=$as_save_IFS
6468: test -z "$as_dir" && as_dir=.
6469: for ac_exec_ext in '' $ac_executable_extensions; do
6470: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471: ac_cv_prog_ac_ct_RANLIB="ranlib"
6472: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6473: break 2
6474: fi
6475: done
6476: done
6477: IFS=$as_save_IFS
6478:
6479: fi
6480: fi
6481: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6482: if test -n "$ac_ct_RANLIB"; then
6483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6484: $as_echo "$ac_ct_RANLIB" >&6; }
6485: else
6486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6487: $as_echo "no" >&6; }
6488: fi
6489:
6490: if test "x$ac_ct_RANLIB" = x; then
6491: RANLIB=":"
6492: else
6493: case $cross_compiling:$ac_tool_warned in
6494: yes:)
6495: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6496: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6497: ac_tool_warned=yes ;;
6498: esac
6499: RANLIB=$ac_ct_RANLIB
6500: fi
6501: else
6502: RANLIB="$ac_cv_prog_RANLIB"
6503: fi
6504:
6505:
6506: # Extract the first word of "nawk", so it can be a program name with args.
6507: set dummy nawk; ac_word=$2
6508: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6509: $as_echo_n "checking for $ac_word... " >&6; }
6510: if ${ac_cv_prog_AWK+:} false; then :
6511: $as_echo_n "(cached) " >&6
6512: else
6513: if test -n "$AWK"; then
6514: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6515: else
6516: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517: for as_dir in $PATH
6518: do
6519: IFS=$as_save_IFS
6520: test -z "$as_dir" && as_dir=.
6521: for ac_exec_ext in '' $ac_executable_extensions; do
6522: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6523: ac_cv_prog_AWK="yes"
6524: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525: break 2
6526: fi
6527: done
6528: done
6529: IFS=$as_save_IFS
6530:
6531: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6532: fi
6533: fi
6534: AWK=$ac_cv_prog_AWK
6535: if test -n "$AWK"; then
6536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6537: $as_echo "$AWK" >&6; }
6538: else
6539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540: $as_echo "no" >&6; }
6541: fi
6542:
6543:
6544: if test "$AWK" = no; then
6545: # Extract the first word of "gawk", so it can be a program name with args.
6546: set dummy gawk; ac_word=$2
6547: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548: $as_echo_n "checking for $ac_word... " >&6; }
6549: if ${ac_cv_prog_AWK+:} false; then :
6550: $as_echo_n "(cached) " >&6
6551: else
6552: if test -n "$AWK"; then
6553: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6554: else
6555: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556: for as_dir in $PATH
6557: do
6558: IFS=$as_save_IFS
6559: test -z "$as_dir" && as_dir=.
6560: for ac_exec_ext in '' $ac_executable_extensions; do
6561: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6562: ac_cv_prog_AWK="yes"
6563: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564: break 2
6565: fi
6566: done
6567: done
6568: IFS=$as_save_IFS
6569:
6570: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6571: fi
6572: fi
6573: AWK=$ac_cv_prog_AWK
6574: if test -n "$AWK"; then
6575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6576: $as_echo "$AWK" >&6; }
6577: else
6578: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579: $as_echo "no" >&6; }
6580: fi
6581:
6582:
6583: if test "$AWK" = no; then
6584: as_fn_error $? "Can not find nawk !" "$LINENO" 5
6585: fi
6586: fi
6587:
6588: # Extract the first word of "sed", so it can be a program name with args.
6589: set dummy sed; ac_word=$2
6590: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6591: $as_echo_n "checking for $ac_word... " >&6; }
6592: if ${ac_cv_prog_SED+:} false; then :
6593: $as_echo_n "(cached) " >&6
6594: else
6595: if test -n "$SED"; then
6596: ac_cv_prog_SED="$SED" # Let the user override the test.
6597: else
6598: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6599: for as_dir in $PATH
6600: do
6601: IFS=$as_save_IFS
6602: test -z "$as_dir" && as_dir=.
6603: for ac_exec_ext in '' $ac_executable_extensions; do
6604: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6605: ac_cv_prog_SED="yes"
6606: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6607: break 2
6608: fi
6609: done
6610: done
6611: IFS=$as_save_IFS
6612:
6613: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
6614: fi
6615: fi
6616: SED=$ac_cv_prog_SED
6617: if test -n "$SED"; then
6618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6619: $as_echo "$SED" >&6; }
6620: else
6621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622: $as_echo "no" >&6; }
6623: fi
6624:
6625:
6626: if test "$SED" = no; then
6627: as_fn_error $? "Can not find sed !" "$LINENO" 5
6628: fi
6629:
6630: if test "$TEX_SUPPORT" = guessed; then
6631: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6632:
6633: # Extract the first word of "tex", so it can be a program name with args.
6634: set dummy tex; ac_word=$2
6635: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636: $as_echo_n "checking for $ac_word... " >&6; }
6637: if ${ac_cv_prog_TEX+:} false; then :
6638: $as_echo_n "(cached) " >&6
6639: else
6640: if test -n "$TEX"; then
6641: ac_cv_prog_TEX="$TEX" # Let the user override the test.
6642: else
6643: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644: for as_dir in $PATH
6645: do
6646: IFS=$as_save_IFS
6647: test -z "$as_dir" && as_dir=.
6648: for ac_exec_ext in '' $ac_executable_extensions; do
6649: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650: ac_cv_prog_TEX="yes"
6651: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652: break 2
6653: fi
6654: done
6655: done
6656: IFS=$as_save_IFS
6657:
6658: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
6659: fi
6660: fi
6661: TEX=$ac_cv_prog_TEX
6662: if test -n "$TEX"; then
6663: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6664: $as_echo "$TEX" >&6; }
6665: else
6666: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667: $as_echo "no" >&6; }
6668: fi
6669:
6670:
6671: if test "$TEX" = no; then
6672: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6673: Download at http://tex.loria.fr/
6674: " >&5
6675: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6676: Download at http://tex.loria.fr/
6677: " >&2;}
6678: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6679: fi
6680:
6681: # Extract the first word of "latex", so it can be a program name with args.
6682: set dummy latex; ac_word=$2
6683: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684: $as_echo_n "checking for $ac_word... " >&6; }
6685: if ${ac_cv_prog_LATEX+:} false; then :
6686: $as_echo_n "(cached) " >&6
6687: else
6688: if test -n "$LATEX"; then
6689: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
6690: else
6691: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692: for as_dir in $PATH
6693: do
6694: IFS=$as_save_IFS
6695: test -z "$as_dir" && as_dir=.
6696: for ac_exec_ext in '' $ac_executable_extensions; do
6697: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698: ac_cv_prog_LATEX="yes"
6699: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700: break 2
6701: fi
6702: done
6703: done
6704: IFS=$as_save_IFS
6705:
6706: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
6707: fi
6708: fi
6709: LATEX=$ac_cv_prog_LATEX
6710: if test -n "$LATEX"; then
6711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6712: $as_echo "$LATEX" >&6; }
6713: else
6714: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715: $as_echo "no" >&6; }
6716: fi
6717:
6718:
6719: if test "$LATEX" = no; then
6720: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6721: Download at http://tex.loria.fr/
6722: " >&5
6723: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6724: Download at http://tex.loria.fr/
6725: " >&2;}
6726: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6727: fi
6728:
6729: # Extract the first word of "dvips", so it can be a program name with args.
6730: set dummy dvips; ac_word=$2
6731: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732: $as_echo_n "checking for $ac_word... " >&6; }
6733: if ${ac_cv_prog_DVIPS+:} false; then :
6734: $as_echo_n "(cached) " >&6
6735: else
6736: if test -n "$DVIPS"; then
6737: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6738: else
6739: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740: for as_dir in $PATH
6741: do
6742: IFS=$as_save_IFS
6743: test -z "$as_dir" && as_dir=.
6744: for ac_exec_ext in '' $ac_executable_extensions; do
6745: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746: ac_cv_prog_DVIPS="yes"
6747: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748: break 2
6749: fi
6750: done
6751: done
6752: IFS=$as_save_IFS
6753:
6754: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6755: fi
6756: fi
6757: DVIPS=$ac_cv_prog_DVIPS
6758: if test -n "$DVIPS"; then
6759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6760: $as_echo "$DVIPS" >&6; }
6761: else
6762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6763: $as_echo "no" >&6; }
6764: fi
6765:
6766:
6767: if test "$DVIPS" = no; then
6768: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6769: Download at http://tex.loria.fr/
6770: " >&5
6771: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6772: Download at http://tex.loria.fr/
6773: " >&2;}
6774: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6775: fi
6776:
6777: # Extract the first word of "gs", so it can be a program name with args.
6778: set dummy gs; ac_word=$2
6779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780: $as_echo_n "checking for $ac_word... " >&6; }
6781: if ${ac_cv_prog_GS+:} false; then :
6782: $as_echo_n "(cached) " >&6
6783: else
6784: if test -n "$GS"; then
6785: ac_cv_prog_GS="$GS" # Let the user override the test.
6786: else
6787: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788: for as_dir in $PATH
6789: do
6790: IFS=$as_save_IFS
6791: test -z "$as_dir" && as_dir=.
6792: for ac_exec_ext in '' $ac_executable_extensions; do
6793: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794: ac_cv_prog_GS="yes"
6795: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796: break 2
6797: fi
6798: done
6799: done
6800: IFS=$as_save_IFS
6801:
6802: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6803: fi
6804: fi
6805: GS=$ac_cv_prog_GS
6806: if test -n "$GS"; then
6807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6808: $as_echo "$GS" >&6; }
6809: else
6810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6811: $as_echo "no" >&6; }
6812: fi
6813:
6814:
6815: if test "$GS" = no; then
6816: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6817: Download at http://ftp.lip6.fr/
6818: " >&5
6819: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6820: Download at http://ftp.lip6.fr/
6821: " >&2;}
6822: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6823: fi
6824:
6825: # Extract the first word of "gv", so it can be a program name with args.
6826: set dummy gv; ac_word=$2
6827: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6828: $as_echo_n "checking for $ac_word... " >&6; }
6829: if ${ac_cv_prog_GV+:} false; then :
6830: $as_echo_n "(cached) " >&6
6831: else
6832: if test -n "$GV"; then
6833: ac_cv_prog_GV="$GV" # Let the user override the test.
6834: else
6835: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836: for as_dir in $PATH
6837: do
6838: IFS=$as_save_IFS
6839: test -z "$as_dir" && as_dir=.
6840: for ac_exec_ext in '' $ac_executable_extensions; do
6841: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842: ac_cv_prog_GV="yes"
6843: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844: break 2
6845: fi
6846: done
6847: done
6848: IFS=$as_save_IFS
6849:
6850: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6851: fi
6852: fi
6853: GV=$ac_cv_prog_GV
6854: if test -n "$GV"; then
6855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6856: $as_echo "$GV" >&6; }
6857: else
6858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859: $as_echo "no" >&6; }
6860: fi
6861:
6862:
6863: if test "$GV" = no; then
6864: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6865: Download at http://ftp.lip6.fr/
6866: " >&5
6867: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6868: Download at http://ftp.lip6.fr/
6869: " >&2;}
6870: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6871: fi
6872: else
6873: if test "$TEX_SUPPORT" = no; then
6874: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6875: else
6876: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6877: fi
6878: fi
6879:
6880: if test "$GNUPLOT_SUPPORT" = guessed; then
6881: # Extract the first word of "gnuplot", so it can be a program name with args.
6882: set dummy gnuplot; ac_word=$2
6883: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884: $as_echo_n "checking for $ac_word... " >&6; }
6885: if ${ac_cv_prog_GNUPLOT_P+:} false; then :
6886: $as_echo_n "(cached) " >&6
6887: else
6888: if test -n "$GNUPLOT_P"; then
6889: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
6890: else
6891: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6892: for as_dir in $PATH
6893: do
6894: IFS=$as_save_IFS
6895: test -z "$as_dir" && as_dir=.
6896: for ac_exec_ext in '' $ac_executable_extensions; do
6897: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6898: ac_cv_prog_GNUPLOT_P="yes"
6899: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6900: break 2
6901: fi
6902: done
6903: done
6904: IFS=$as_save_IFS
6905:
6906: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
6907: fi
6908: fi
6909: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6910: if test -n "$GNUPLOT_P"; then
6911: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6912: $as_echo "$GNUPLOT_P" >&6; }
6913: else
6914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915: $as_echo "no" >&6; }
6916: fi
6917:
6918:
6919: if test "$GNUPLOT_P" = no; then
6920: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6921: Download at http://www.gnuplot.vt.edu/
6922: " >&5
6923: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6924: Download at http://www.gnuplot.vt.edu/
6925: " >&2;}
6926: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6927: else
6928: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6929: fi
6930: else
6931: if test "$GNUPLOT_SUPPORT" = no; then
6932: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6933: else
6934: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6935: fi
6936: fi
6937:
6938: if test "$VIM_SUPPORT" = guessed; then
6939: # Extract the first word of "vim", so it can be a program name with args.
6940: set dummy vim; ac_word=$2
6941: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942: $as_echo_n "checking for $ac_word... " >&6; }
6943: if ${ac_cv_prog_VIM+:} false; then :
6944: $as_echo_n "(cached) " >&6
6945: else
6946: if test -n "$VIM"; then
6947: ac_cv_prog_VIM="$VIM" # Let the user override the test.
6948: else
6949: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6950: for as_dir in $PATH
6951: do
6952: IFS=$as_save_IFS
6953: test -z "$as_dir" && as_dir=.
6954: for ac_exec_ext in '' $ac_executable_extensions; do
6955: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6956: ac_cv_prog_VIM="yes"
6957: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6958: break 2
6959: fi
6960: done
6961: done
6962: IFS=$as_save_IFS
6963:
6964: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
6965: fi
6966: fi
6967: VIM=$ac_cv_prog_VIM
6968: if test -n "$VIM"; then
6969: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6970: $as_echo "$VIM" >&6; }
6971: else
6972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6973: $as_echo "no" >&6; }
6974: fi
6975:
6976:
6977: if test "$VIM" = no; then
6978: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6979: Download at http://www.vim.org/
6980: " >&5
6981: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6982: Download at http://www.vim.org/
6983: " >&2;}
6984: VIM_SUPPORT="-UVIM_SUPPORT"
6985: else
6986: VIM_SUPPORT="-DVIM_SUPPORT"
6987: fi
6988: else
6989: if test "$VIM_SUPPORT" = no; then
6990: VIM_SUPPORT="-UVIM_SUPPORT"
6991: else
6992: VIM_SUPPORT="-DVIM_SUPPORT"
6993: fi
6994: fi
6995:
6996:
6997:
6998:
6999:
7000:
7001:
7002:
7003:
7004:
7005:
7006: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
7007:
7008:
7009: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7010: $as_echo_n "checking for main in -lm... " >&6; }
7011: if ${ac_cv_lib_m_main+:} false; then :
7012: $as_echo_n "(cached) " >&6
7013: else
7014: ac_check_lib_save_LIBS=$LIBS
7015: LIBS="-lm $LIBS"
7016: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017: /* end confdefs.h. */
7018:
7019:
7020: int
7021: main ()
7022: {
7023: return main ();
7024: ;
7025: return 0;
7026: }
7027: _ACEOF
7028: if ac_fn_c_try_link "$LINENO"; then :
7029: ac_cv_lib_m_main=yes
7030: else
7031: ac_cv_lib_m_main=no
7032: fi
7033: rm -f core conftest.err conftest.$ac_objext \
7034: conftest$ac_exeext conftest.$ac_ext
7035: LIBS=$ac_check_lib_save_LIBS
7036: fi
7037: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7038: $as_echo "$ac_cv_lib_m_main" >&6; }
7039: if test "x$ac_cv_lib_m_main" = xyes; then :
7040: cat >>confdefs.h <<_ACEOF
7041: #define HAVE_LIBM 1
7042: _ACEOF
7043:
7044: LIBS="-lm $LIBS"
7045:
7046: else
7047: as_fn_error $? "Can not find libm !" "$LINENO" 5
7048: fi
7049:
7050: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
7051: $as_echo_n "checking for main in -lpthread... " >&6; }
7052: if ${ac_cv_lib_pthread_main+:} false; then :
7053: $as_echo_n "(cached) " >&6
7054: else
7055: ac_check_lib_save_LIBS=$LIBS
7056: LIBS="-lpthread $LIBS"
7057: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058: /* end confdefs.h. */
7059:
7060:
7061: int
7062: main ()
7063: {
7064: return main ();
7065: ;
7066: return 0;
7067: }
7068: _ACEOF
7069: if ac_fn_c_try_link "$LINENO"; then :
7070: ac_cv_lib_pthread_main=yes
7071: else
7072: ac_cv_lib_pthread_main=no
7073: fi
7074: rm -f core conftest.err conftest.$ac_objext \
7075: conftest$ac_exeext conftest.$ac_ext
7076: LIBS=$ac_check_lib_save_LIBS
7077: fi
7078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
7079: $as_echo "$ac_cv_lib_pthread_main" >&6; }
7080: if test "x$ac_cv_lib_pthread_main" = xyes; then :
7081: cat >>confdefs.h <<_ACEOF
7082: #define HAVE_LIBPTHREAD 1
7083: _ACEOF
7084:
7085: LIBS="-lpthread $LIBS"
7086:
7087: else
7088: as_fn_error $? "Can not find libpthread !" "$LINENO" 5
7089: fi
7090:
7091:
7092: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
7093: #include <sys/sem.h>
7094:
7095: "
7096: if test "x$ac_cv_type_union_semun" = xyes; then :
7097: SEMUN=-DUNION_SEMUN
7098: else
7099: SEMUN=-UUNION_SEMUN
7100: fi
7101:
7102:
7103: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
7104: #include <sys/types.h>
7105: #include <netinet/in.h>
7106:
7107: "
7108: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
7109: IPV6=-DIPV6
7110: else
7111: IPV6=-UIPV6
7112: fi
7113:
7114:
7115: if test "$CYGWIN" != yes; then
7116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7117: $as_echo_n "checking for dlopen in -ldl... " >&6; }
7118: if ${ac_cv_lib_dl_dlopen+:} false; then :
7119: $as_echo_n "(cached) " >&6
7120: else
7121: ac_check_lib_save_LIBS=$LIBS
7122: LIBS="-ldl $LIBS"
7123: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124: /* end confdefs.h. */
7125:
7126: /* Override any GCC internal prototype to avoid an error.
7127: Use char because int might match the return type of a GCC
7128: builtin and then its argument prototype would still apply. */
7129: #ifdef __cplusplus
7130: extern "C"
7131: #endif
7132: char dlopen ();
7133: int
7134: main ()
7135: {
7136: return dlopen ();
7137: ;
7138: return 0;
7139: }
7140: _ACEOF
7141: if ac_fn_c_try_link "$LINENO"; then :
7142: ac_cv_lib_dl_dlopen=yes
7143: else
7144: ac_cv_lib_dl_dlopen=no
7145: fi
7146: rm -f core conftest.err conftest.$ac_objext \
7147: conftest$ac_exeext conftest.$ac_ext
7148: LIBS=$ac_check_lib_save_LIBS
7149: fi
7150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7151: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7152: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
7153: LIBS="$LIBS -ldl"
7154: else
7155: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7156: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
7157: fi
7158:
7159: fi
7160:
7161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7162: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
7163: if ${ac_cv_lib_rt_nanosleep+:} false; then :
7164: $as_echo_n "(cached) " >&6
7165: else
7166: ac_check_lib_save_LIBS=$LIBS
7167: LIBS="-lrt $LIBS"
7168: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169: /* end confdefs.h. */
7170:
7171: /* Override any GCC internal prototype to avoid an error.
7172: Use char because int might match the return type of a GCC
7173: builtin and then its argument prototype would still apply. */
7174: #ifdef __cplusplus
7175: extern "C"
7176: #endif
7177: char nanosleep ();
7178: int
7179: main ()
7180: {
7181: return nanosleep ();
7182: ;
7183: return 0;
7184: }
7185: _ACEOF
7186: if ac_fn_c_try_link "$LINENO"; then :
7187: ac_cv_lib_rt_nanosleep=yes
7188: else
7189: ac_cv_lib_rt_nanosleep=no
7190: fi
7191: rm -f core conftest.err conftest.$ac_objext \
7192: conftest$ac_exeext conftest.$ac_ext
7193: LIBS=$ac_check_lib_save_LIBS
7194: fi
7195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7196: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7197: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
7198: LIBS="$LIBS -lrt"
7199: else
7200: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7201: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7202: fi
7203:
7204:
7205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7206: $as_echo_n "checking for bind in -lsocket... " >&6; }
7207: if ${ac_cv_lib_socket_bind+:} false; then :
7208: $as_echo_n "(cached) " >&6
7209: else
7210: ac_check_lib_save_LIBS=$LIBS
7211: LIBS="-lsocket $LIBS"
7212: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7213: /* end confdefs.h. */
7214:
7215: /* Override any GCC internal prototype to avoid an error.
7216: Use char because int might match the return type of a GCC
7217: builtin and then its argument prototype would still apply. */
7218: #ifdef __cplusplus
7219: extern "C"
7220: #endif
7221: char bind ();
7222: int
7223: main ()
7224: {
7225: return bind ();
7226: ;
7227: return 0;
7228: }
7229: _ACEOF
7230: if ac_fn_c_try_link "$LINENO"; then :
7231: ac_cv_lib_socket_bind=yes
7232: else
7233: ac_cv_lib_socket_bind=no
7234: fi
7235: rm -f core conftest.err conftest.$ac_objext \
7236: conftest$ac_exeext conftest.$ac_ext
7237: LIBS=$ac_check_lib_save_LIBS
7238: fi
7239: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7240: $as_echo "$ac_cv_lib_socket_bind" >&6; }
7241: if test "x$ac_cv_lib_socket_bind" = xyes; then :
7242: LIBS="$LIBS -lsocket"
7243: else
7244: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7245: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
7246: fi
7247:
7248:
7249: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7250:
7251: # Check whether --with-mysql was given.
7252: if test "${with_mysql+set}" = set; then :
7253: withval=$with_mysql;
7254: else
7255: with_mysql=check
7256: fi
7257:
7258:
7259: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7260: libMySQLinc="-I/usr/include"
7261: libMySQLlib="/usr/lib"
7262:
7263: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7264: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7265: saved_CFLAGS="$CFLAGS"
7266: CFLAGS="$CFLAGS -L/$libMySQLinc"
7267: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268: /* end confdefs.h. */
7269: #include "mysql.h"
7270: int
7271: main ()
7272: {
7273:
7274: ;
7275: return 0;
7276: }
7277: _ACEOF
7278: if ac_fn_c_try_compile "$LINENO"; then :
7279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7280: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7281: libMySQLinc=$libMySQLinc/mysql
7282: else
7283: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7285: fi
7286: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287: CFLAGS=$saved_CFLAGS
7288:
7289: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7290: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7291: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7292: saved_CFLAGS="$CFLAGS"
7293: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7294: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295: /* end confdefs.h. */
7296: #include "mysql.h"
7297: int
7298: main ()
7299: {
7300:
7301: ;
7302: return 0;
7303: }
7304: _ACEOF
7305: if ac_fn_c_try_compile "$LINENO"; then :
7306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7307: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7308: libMySQLinc=$libMySQLinc
7309: else
7310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7312: fi
7313: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7314: CFLAGS=$saved_CFLAGS
7315: libMySQLinc=$libMySQLinc/mysql
7316: fi
7317:
7318: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7319: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7320: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7321: saved_CFLAGS="$CFLAGS"
7322: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7323: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324: /* end confdefs.h. */
7325: #include "mysql.h"
7326: int
7327: main ()
7328: {
7329:
7330: ;
7331: return 0;
7332: }
7333: _ACEOF
7334: if ac_fn_c_try_compile "$LINENO"; then :
7335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7336: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7337: libMySQLinc=$libMySQLinc/mysql
7338: else
7339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7341: fi
7342: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343: CFLAGS=$saved_CFLAGS
7344: libMySQLinc=$libMySQLinc/../local/include
7345: libMySQLlib=$libMySQLlib/../local/lib
7346: fi
7347:
7348: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7349: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7350: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7351: saved_CFLAGS="$CFLAGS"
7352: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7353: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354: /* end confdefs.h. */
7355: #include "mysql.h"
7356: int
7357: main ()
7358: {
7359:
7360: ;
7361: return 0;
7362: }
7363: _ACEOF
7364: if ac_fn_c_try_compile "$LINENO"; then :
7365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7366: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7367: libMySQLinc=$libMySQLinc/mysql
7368: else
7369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7371: fi
7372: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373: CFLAGS=$saved_CFLAGS
7374: libMySQLinc=$libMySQLinc/../local/include/mysql
7375: libMySQLlib=$libMySQLlib/../local/lib
7376: fi
7377: else
7378: if test "x$with_mysql" != xno; then
7379: libMySQLinc="-I$with_mysql/include"
7380: libMySQLlib="$with_mysql/lib"
7381:
7382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7383: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7384: saved_CFLAGS="$CFLAGS"
7385: CFLAGS="$CFLAGS $libMySQLinc"
7386: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387: /* end confdefs.h. */
7388: #include "mysql.h"
7389: int
7390: main ()
7391: {
7392:
7393: ;
7394: return 0;
7395: }
7396: _ACEOF
7397: if ac_fn_c_try_compile "$LINENO"; then :
7398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7399: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7400: libMySQLinc=$libMySQLinc/mysql
7401: else
7402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7404: fi
7405: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7406: CFLAGS=$saved_CFLAGS
7407:
7408: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7409: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7410: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7411: saved_CFLAGS="$CFLAGS"
7412: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7413: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414: /* end confdefs.h. */
7415: #include "mysql.h"
7416: int
7417: main ()
7418: {
7419:
7420: ;
7421: return 0;
7422: }
7423: _ACEOF
7424: if ac_fn_c_try_compile "$LINENO"; then :
7425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7426: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7427: libMySQLinc=$libMySQLinc
7428: else
7429: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7431: fi
7432: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433: CFLAGS=$saved_CFLAGS
7434: libMySQLinc=$libMySQLinc/mysql
7435: fi
7436: else
7437: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7438: fi
7439: fi
7440:
7441: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7442: MYSQL_LIB=no
7443:
7444: if test $MYSQL_LIB = no; then
7445: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7446: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7447: saved_LIBS="$LIBS"
7448: if test $STATIC = no; then
7449: LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
7450: else
7451: LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
7452: fi
7453: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454: /* end confdefs.h. */
7455: #include "mysql.h"
7456: int
7457: main ()
7458: {
7459: MYSQL mysql; mysql_init(&mysql);
7460: ;
7461: return 0;
7462: }
7463: _ACEOF
7464: if ac_fn_c_try_link "$LINENO"; then :
7465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7466: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
7467: else
7468: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469: $as_echo "no" >&6; }; MYSQL_LIB="no"
7470: fi
7471: rm -f core conftest.err conftest.$ac_objext \
7472: conftest$ac_exeext conftest.$ac_ext
7473: LIBS=$saved_LIBS;
7474: if test $STATIC = no; then
7475: libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
7476: else
7477: libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
7478: EXT_SQL="$EXT_SQL $libMySQLlib"
7479: fi
7480: fi
7481:
7482: if test $MYSQL_LIB = no; then
7483: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7484: fi
7485: fi
7486:
7487: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7488: libMySQLinc=
7489: libMySQLlib=
7490: fi
7491:
7492:
7493:
7494:
7495:
7496: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7497:
7498: # Check whether --with-postgresql was given.
7499: if test "${with_postgresql+set}" = set; then :
7500: withval=$with_postgresql;
7501: else
7502: with_postgresql=check
7503: fi
7504:
7505:
7506: # with_postgresql : check [pas défini], yes [uniquement --with],
7507: # no [--without], valeur [--with=valeur].
7508:
7509: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7510: libPgSQLinc="-I/usr/include"
7511: libPgSQLlib="/usr/lib"
7512:
7513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7514: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7515: saved_CFLAGS="$CFLAGS"
7516: CFLAGS="$CFLAGS $libPgSQLinc"
7517: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518: /* end confdefs.h. */
7519: #include "libpq-fe.h"
7520: int
7521: main ()
7522: {
7523:
7524: ;
7525: return 0;
7526: }
7527: _ACEOF
7528: if ac_fn_c_try_compile "$LINENO"; then :
7529: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7530: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7531: else
7532: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7534: fi
7535: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536: CFLAGS=$saved_CFLAGS
7537:
7538: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7540: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7541: saved_CFLAGS="$CFLAGS"
7542: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7543: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7544: /* end confdefs.h. */
7545: #include "libpq-fe.h"
7546: int
7547: main ()
7548: {
7549:
7550: ;
7551: return 0;
7552: }
7553: _ACEOF
7554: if ac_fn_c_try_compile "$LINENO"; then :
7555: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7556: $as_echo "yes" >&6; };
7557: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7558: else
7559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560: $as_echo "no" >&6; };
7561: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7562: fi
7563: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564: CFLAGS=$saved_CFLAGS
7565: libPgSQLinc=$libPgSQLinc/postgresql
7566: fi
7567:
7568: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7569: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7570: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7571: saved_CFLAGS="$CFLAGS"
7572: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7573: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574: /* end confdefs.h. */
7575: #include "libpq-fe.h"
7576: int
7577: main ()
7578: {
7579:
7580: ;
7581: return 0;
7582: }
7583: _ACEOF
7584: if ac_fn_c_try_compile "$LINENO"; then :
7585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7586: $as_echo "yes" >&6; };
7587: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7588: else
7589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590: $as_echo "no" >&6; };
7591: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7592: fi
7593: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594: CFLAGS=$saved_CFLAGS
7595: libPgSQLinc=$libPgSQLinc/pgsql
7596: fi
7597:
7598: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7599: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7600: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7601: saved_CFLAGS="$CFLAGS"
7602: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7603: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604: /* end confdefs.h. */
7605: #include "libpq-fe.h"
7606: int
7607: main ()
7608: {
7609:
7610: ;
7611: return 0;
7612: }
7613: _ACEOF
7614: if ac_fn_c_try_compile "$LINENO"; then :
7615: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7616: $as_echo "yes" >&6; };
7617: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7618: else
7619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620: $as_echo "no" >&6; };
7621: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7622: fi
7623: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624: CFLAGS=$saved_CFLAGS
7625: libPgSQLinc=$libPgSQLinc/../local/include
7626: libPgSQLlib=$libPgSQLlib/../local/lib
7627: fi
7628:
7629: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7631: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7632: saved_CFLAGS="$CFLAGS"
7633: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7634: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635: /* end confdefs.h. */
7636: #include "libpq-fe.h"
7637: int
7638: main ()
7639: {
7640:
7641: ;
7642: return 0;
7643: }
7644: _ACEOF
7645: if ac_fn_c_try_compile "$LINENO"; then :
7646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7647: $as_echo "yes" >&6; };
7648: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7649: else
7650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651: $as_echo "no" >&6; };
7652: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7653: fi
7654: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655: CFLAGS=$saved_CFLAGS
7656: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7657: libPgSQLlib=$libPgSQLlib/../local/lib
7658: fi
7659:
7660: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7662: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7663: saved_CFLAGS="$CFLAGS"
7664: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7665: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666: /* end confdefs.h. */
7667: #include "libpq-fe.h"
7668: int
7669: main ()
7670: {
7671:
7672: ;
7673: return 0;
7674: }
7675: _ACEOF
7676: if ac_fn_c_try_compile "$LINENO"; then :
7677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7678: $as_echo "yes" >&6; };
7679: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7680: else
7681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682: $as_echo "no" >&6; };
7683: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7684: fi
7685: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7686: CFLAGS=$saved_CFLAGS
7687: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7688: libPgSQLlib=$libPgSQLlib/../local/lib
7689: fi
7690: else
7691: if test "x$with_postgresql" != xno; then
7692: libPgSQLinc="-I$with_postgresql/include"
7693: libPgSQLlib="$with_postgresql/lib"
7694:
7695: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7696: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7697: saved_CFLAGS="$CFLAGS"
7698: CFLAGS="$CFLAGS $libPgSQLinc"
7699: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700: /* end confdefs.h. */
7701: #include "libpq-fe.h"
7702: int
7703: main ()
7704: {
7705:
7706: ;
7707: return 0;
7708: }
7709: _ACEOF
7710: if ac_fn_c_try_compile "$LINENO"; then :
7711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7712: $as_echo "yes" >&6; };
7713: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7714: else
7715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716: $as_echo "no" >&6; };
7717: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7718: fi
7719: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720: CFLAGS=$saved_CFLAGS
7721:
7722: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7723: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7724: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7725: saved_CFLAGS="$CFLAGS"
7726: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7727: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728: /* end confdefs.h. */
7729: #include "libpq-fe.h"
7730: int
7731: main ()
7732: {
7733:
7734: ;
7735: return 0;
7736: }
7737: _ACEOF
7738: if ac_fn_c_try_compile "$LINENO"; then :
7739: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7740: $as_echo "yes" >&6; };
7741: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7742: else
7743: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744: $as_echo "no" >&6; };
7745: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7746: fi
7747: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748: CFLAGS=$saved_CFLAGS
7749: libPgSQLinc=$libPgSQLinc/postgresql
7750: fi
7751:
7752: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7754: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7755: saved_CFLAGS="$CFLAGS"
7756: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7757: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758: /* end confdefs.h. */
7759: #include "libpq-fe.h"
7760: int
7761: main ()
7762: {
7763:
7764: ;
7765: return 0;
7766: }
7767: _ACEOF
7768: if ac_fn_c_try_compile "$LINENO"; then :
7769: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7770: $as_echo "yes" >&6; };
7771: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7772: else
7773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774: $as_echo "no" >&6; };
7775: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7776: fi
7777: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778: CFLAGS=$saved_CFLAGS
7779: libPgSQLinc=$libPgSQLinc/pgsql
7780: fi
7781: else
7782: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7783: fi
7784: fi
7785:
7786: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7787: POSTGRESQL_LIB=no
7788:
7789: if test $POSTGRESQL_LIB = no; then
7790: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7791: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7792: saved_LIBS="$LIBS"
7793: if test $STATIC = no; then
7794: LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
7795: else
7796: LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
7797: fi
7798: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7799: /* end confdefs.h. */
7800: #include "libpq-fe.h"
7801: int
7802: main ()
7803: {
7804: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7805: PQconnectdb(conninfo);
7806: ;
7807: return 0;
7808: }
7809: _ACEOF
7810: if ac_fn_c_try_link "$LINENO"; then :
7811: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7812: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
7813: else
7814: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7816: fi
7817: rm -f core conftest.err conftest.$ac_objext \
7818: conftest$ac_exeext conftest.$ac_ext
7819: LIBS=$saved_LIBS;
7820: if test $STATIC = no; then
7821: libPgSQLlib="-L/$libPgSQLlib -lpq"
7822: else
7823: libPgSQLlib="$libPgSQLlib/libpq.a"
7824: EXT_SQL="$EXT_SQL $libPgSQLlib"
7825: fi
7826: fi
7827: fi
7828:
7829: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7830: libPgSQLinc=
7831: libPgSQLlib=
7832: fi
7833:
7834:
7835:
7836:
7837:
7838: # with_postgresql : check [pas défini], yes [uniquement --with],
7839: # no [--without], valeur [--with=valeur].
7840:
7841: # Check whether --with-bourne_shell was given.
7842: if test "${with_bourne_shell+set}" = set; then :
7843: withval=$with_bourne_shell;
7844: else
7845: with_bourne_shell=no
7846: fi
7847:
7848:
7849: if test "x$with_bourne_shell" = xyes; then
7850: as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
7851: fi
7852:
7853: if test "x$with_bourne_shell" = xno; then
7854: if test $(uname) = "OS/2"; then
7855: as_fn_error $? "With OS/2 or eComstation, you have to specify a valide shell path !" "$LINENO" 5
7856: fi
7857:
7858: BSH_PATH=
7859: else
7860: if test ! -x $with_bourne_shell; then
7861: as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
7862: fi
7863:
7864: if test $(uname) = "OS/2"; then
7865: with_os2_bourne_shell=$(echo $with_bourne_shell | \
7866: sed -e '1,$s/\//\\\\\\\\/g')
7867: BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
7868: else
7869: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
7870: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
7871: BSH_PATH=
7872: fi
7873: fi
7874:
7875: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7876: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7877: if ${ac_cv_path_GREP+:} false; then :
7878: $as_echo_n "(cached) " >&6
7879: else
7880: if test -z "$GREP"; then
7881: ac_path_GREP_found=false
7882: # Loop through the user's path and test for each of PROGNAME-LIST
7883: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7885: do
7886: IFS=$as_save_IFS
7887: test -z "$as_dir" && as_dir=.
7888: for ac_prog in grep ggrep; do
7889: for ac_exec_ext in '' $ac_executable_extensions; do
7890: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7891: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7892: # Check for GNU ac_path_GREP and select it if it is found.
7893: # Check for GNU $ac_path_GREP
7894: case `"$ac_path_GREP" --version 2>&1` in
7895: *GNU*)
7896: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7897: *)
7898: ac_count=0
7899: $as_echo_n 0123456789 >"conftest.in"
7900: while :
7901: do
7902: cat "conftest.in" "conftest.in" >"conftest.tmp"
7903: mv "conftest.tmp" "conftest.in"
7904: cp "conftest.in" "conftest.nl"
7905: $as_echo 'GREP' >> "conftest.nl"
7906: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7907: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7908: as_fn_arith $ac_count + 1 && ac_count=$as_val
7909: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7910: # Best one so far, save it but keep looking for a better one
7911: ac_cv_path_GREP="$ac_path_GREP"
7912: ac_path_GREP_max=$ac_count
7913: fi
7914: # 10*(2^10) chars as input seems more than enough
7915: test $ac_count -gt 10 && break
7916: done
7917: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7918: esac
7919:
7920: $ac_path_GREP_found && break 3
7921: done
7922: done
7923: done
7924: IFS=$as_save_IFS
7925: if test -z "$ac_cv_path_GREP"; then
7926: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7927: fi
7928: else
7929: ac_cv_path_GREP=$GREP
7930: fi
7931:
7932: fi
7933: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7934: $as_echo "$ac_cv_path_GREP" >&6; }
7935: GREP="$ac_cv_path_GREP"
7936:
7937:
7938: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7939: $as_echo_n "checking for egrep... " >&6; }
7940: if ${ac_cv_path_EGREP+:} false; then :
7941: $as_echo_n "(cached) " >&6
7942: else
7943: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7944: then ac_cv_path_EGREP="$GREP -E"
7945: else
7946: if test -z "$EGREP"; then
7947: ac_path_EGREP_found=false
7948: # Loop through the user's path and test for each of PROGNAME-LIST
7949: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7950: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7951: do
7952: IFS=$as_save_IFS
7953: test -z "$as_dir" && as_dir=.
7954: for ac_prog in egrep; do
7955: for ac_exec_ext in '' $ac_executable_extensions; do
7956: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7957: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7958: # Check for GNU ac_path_EGREP and select it if it is found.
7959: # Check for GNU $ac_path_EGREP
7960: case `"$ac_path_EGREP" --version 2>&1` in
7961: *GNU*)
7962: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7963: *)
7964: ac_count=0
7965: $as_echo_n 0123456789 >"conftest.in"
7966: while :
7967: do
7968: cat "conftest.in" "conftest.in" >"conftest.tmp"
7969: mv "conftest.tmp" "conftest.in"
7970: cp "conftest.in" "conftest.nl"
7971: $as_echo 'EGREP' >> "conftest.nl"
7972: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7973: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7974: as_fn_arith $ac_count + 1 && ac_count=$as_val
7975: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7976: # Best one so far, save it but keep looking for a better one
7977: ac_cv_path_EGREP="$ac_path_EGREP"
7978: ac_path_EGREP_max=$ac_count
7979: fi
7980: # 10*(2^10) chars as input seems more than enough
7981: test $ac_count -gt 10 && break
7982: done
7983: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7984: esac
7985:
7986: $ac_path_EGREP_found && break 3
7987: done
7988: done
7989: done
7990: IFS=$as_save_IFS
7991: if test -z "$ac_cv_path_EGREP"; then
7992: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7993: fi
7994: else
7995: ac_cv_path_EGREP=$EGREP
7996: fi
7997:
7998: fi
7999: fi
8000: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8001: $as_echo "$ac_cv_path_EGREP" >&6; }
8002: EGREP="$ac_cv_path_EGREP"
8003:
8004:
8005: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8006: $as_echo_n "checking for ANSI C header files... " >&6; }
8007: if ${ac_cv_header_stdc+:} false; then :
8008: $as_echo_n "(cached) " >&6
8009: else
8010: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011: /* end confdefs.h. */
8012: #include <stdlib.h>
8013: #include <stdarg.h>
8014: #include <string.h>
8015: #include <float.h>
8016:
8017: int
8018: main ()
8019: {
8020:
8021: ;
8022: return 0;
8023: }
8024: _ACEOF
8025: if ac_fn_c_try_compile "$LINENO"; then :
8026: ac_cv_header_stdc=yes
8027: else
8028: ac_cv_header_stdc=no
8029: fi
8030: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031:
8032: if test $ac_cv_header_stdc = yes; then
8033: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8034: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035: /* end confdefs.h. */
8036: #include <string.h>
8037:
8038: _ACEOF
8039: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8040: $EGREP "memchr" >/dev/null 2>&1; then :
8041:
8042: else
8043: ac_cv_header_stdc=no
8044: fi
8045: rm -f conftest*
8046:
8047: fi
8048:
8049: if test $ac_cv_header_stdc = yes; then
8050: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8051: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052: /* end confdefs.h. */
8053: #include <stdlib.h>
8054:
8055: _ACEOF
8056: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8057: $EGREP "free" >/dev/null 2>&1; then :
8058:
8059: else
8060: ac_cv_header_stdc=no
8061: fi
8062: rm -f conftest*
8063:
8064: fi
8065:
8066: if test $ac_cv_header_stdc = yes; then
8067: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8068: if test "$cross_compiling" = yes; then :
8069: :
8070: else
8071: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072: /* end confdefs.h. */
8073: #include <ctype.h>
8074: #include <stdlib.h>
8075: #if ((' ' & 0x0FF) == 0x020)
8076: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8077: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8078: #else
8079: # define ISLOWER(c) \
8080: (('a' <= (c) && (c) <= 'i') \
8081: || ('j' <= (c) && (c) <= 'r') \
8082: || ('s' <= (c) && (c) <= 'z'))
8083: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8084: #endif
8085:
8086: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8087: int
8088: main ()
8089: {
8090: int i;
8091: for (i = 0; i < 256; i++)
8092: if (XOR (islower (i), ISLOWER (i))
8093: || toupper (i) != TOUPPER (i))
8094: return 2;
8095: return 0;
8096: }
8097: _ACEOF
8098: if ac_fn_c_try_run "$LINENO"; then :
8099:
8100: else
8101: ac_cv_header_stdc=no
8102: fi
8103: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8104: conftest.$ac_objext conftest.beam conftest.$ac_ext
8105: fi
8106:
8107: fi
8108: fi
8109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8110: $as_echo "$ac_cv_header_stdc" >&6; }
8111: if test $ac_cv_header_stdc = yes; then
8112:
8113: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8114:
8115: fi
8116:
8117: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8118: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8119: inttypes.h stdint.h unistd.h
8120: do :
8121: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8122: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8123: "
8124: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8125: cat >>confdefs.h <<_ACEOF
8126: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8127: _ACEOF
8128:
8129: fi
8130:
8131: done
8132:
8133:
8134: # The cast to long int works around a bug in the HP C Compiler
8135: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8136: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8137: # This bug is HP SR number 8606223364.
8138: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8139: $as_echo_n "checking size of void *... " >&6; }
8140: if ${ac_cv_sizeof_void_p+:} false; then :
8141: $as_echo_n "(cached) " >&6
8142: else
8143: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8144:
8145: else
8146: if test "$ac_cv_type_void_p" = yes; then
8147: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8148: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8149: as_fn_error 77 "cannot compute sizeof (void *)
8150: See \`config.log' for more details" "$LINENO" 5; }
8151: else
8152: ac_cv_sizeof_void_p=0
8153: fi
8154: fi
8155:
8156: fi
8157: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8158: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8159:
8160:
8161:
8162: cat >>confdefs.h <<_ACEOF
8163: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8164: _ACEOF
8165:
8166:
8167: # The cast to long int works around a bug in the HP C Compiler
8168: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8169: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8170: # This bug is HP SR number 8606223364.
8171: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8172: $as_echo_n "checking size of char... " >&6; }
8173: if ${ac_cv_sizeof_char+:} false; then :
8174: $as_echo_n "(cached) " >&6
8175: else
8176: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8177:
8178: else
8179: if test "$ac_cv_type_char" = yes; then
8180: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8181: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8182: as_fn_error 77 "cannot compute sizeof (char)
8183: See \`config.log' for more details" "$LINENO" 5; }
8184: else
8185: ac_cv_sizeof_char=0
8186: fi
8187: fi
8188:
8189: fi
8190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8191: $as_echo "$ac_cv_sizeof_char" >&6; }
8192:
8193:
8194:
8195: cat >>confdefs.h <<_ACEOF
8196: #define SIZEOF_CHAR $ac_cv_sizeof_char
8197: _ACEOF
8198:
8199:
8200: # The cast to long int works around a bug in the HP C Compiler
8201: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8202: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8203: # This bug is HP SR number 8606223364.
8204: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8205: $as_echo_n "checking size of short int... " >&6; }
8206: if ${ac_cv_sizeof_short_int+:} false; then :
8207: $as_echo_n "(cached) " >&6
8208: else
8209: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
8210:
8211: else
8212: if test "$ac_cv_type_short_int" = yes; then
8213: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8214: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8215: as_fn_error 77 "cannot compute sizeof (short int)
8216: See \`config.log' for more details" "$LINENO" 5; }
8217: else
8218: ac_cv_sizeof_short_int=0
8219: fi
8220: fi
8221:
8222: fi
8223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8224: $as_echo "$ac_cv_sizeof_short_int" >&6; }
8225:
8226:
8227:
8228: cat >>confdefs.h <<_ACEOF
8229: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8230: _ACEOF
8231:
8232:
8233: # The cast to long int works around a bug in the HP C Compiler
8234: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8235: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8236: # This bug is HP SR number 8606223364.
8237: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8238: $as_echo_n "checking size of int... " >&6; }
8239: if ${ac_cv_sizeof_int+:} false; then :
8240: $as_echo_n "(cached) " >&6
8241: else
8242: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8243:
8244: else
8245: if test "$ac_cv_type_int" = yes; then
8246: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8247: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8248: as_fn_error 77 "cannot compute sizeof (int)
8249: See \`config.log' for more details" "$LINENO" 5; }
8250: else
8251: ac_cv_sizeof_int=0
8252: fi
8253: fi
8254:
8255: fi
8256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8257: $as_echo "$ac_cv_sizeof_int" >&6; }
8258:
8259:
8260:
8261: cat >>confdefs.h <<_ACEOF
8262: #define SIZEOF_INT $ac_cv_sizeof_int
8263: _ACEOF
8264:
8265:
8266: # The cast to long int works around a bug in the HP C Compiler
8267: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8268: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8269: # This bug is HP SR number 8606223364.
8270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8271: $as_echo_n "checking size of long int... " >&6; }
8272: if ${ac_cv_sizeof_long_int+:} false; then :
8273: $as_echo_n "(cached) " >&6
8274: else
8275: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
8276:
8277: else
8278: if test "$ac_cv_type_long_int" = yes; then
8279: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8280: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8281: as_fn_error 77 "cannot compute sizeof (long int)
8282: See \`config.log' for more details" "$LINENO" 5; }
8283: else
8284: ac_cv_sizeof_long_int=0
8285: fi
8286: fi
8287:
8288: fi
8289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8290: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8291:
8292:
8293:
8294: cat >>confdefs.h <<_ACEOF
8295: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
8296: _ACEOF
8297:
8298:
8299: # The cast to long int works around a bug in the HP C Compiler
8300: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8301: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8302: # This bug is HP SR number 8606223364.
8303: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8304: $as_echo_n "checking size of long long int... " >&6; }
8305: if ${ac_cv_sizeof_long_long_int+:} false; then :
8306: $as_echo_n "(cached) " >&6
8307: else
8308: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8309:
8310: else
8311: if test "$ac_cv_type_long_long_int" = yes; then
8312: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8313: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8314: as_fn_error 77 "cannot compute sizeof (long long int)
8315: See \`config.log' for more details" "$LINENO" 5; }
8316: else
8317: ac_cv_sizeof_long_long_int=0
8318: fi
8319: fi
8320:
8321: fi
8322: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8323: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8324:
8325:
8326:
8327: cat >>confdefs.h <<_ACEOF
8328: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8329: _ACEOF
8330:
8331:
8332: # The cast to long int works around a bug in the HP C Compiler
8333: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8334: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8335: # This bug is HP SR number 8606223364.
8336: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8337: $as_echo_n "checking size of float... " >&6; }
8338: if ${ac_cv_sizeof_float+:} false; then :
8339: $as_echo_n "(cached) " >&6
8340: else
8341: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
8342:
8343: else
8344: if test "$ac_cv_type_float" = yes; then
8345: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8346: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8347: as_fn_error 77 "cannot compute sizeof (float)
8348: See \`config.log' for more details" "$LINENO" 5; }
8349: else
8350: ac_cv_sizeof_float=0
8351: fi
8352: fi
8353:
8354: fi
8355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8356: $as_echo "$ac_cv_sizeof_float" >&6; }
8357:
8358:
8359:
8360: cat >>confdefs.h <<_ACEOF
8361: #define SIZEOF_FLOAT $ac_cv_sizeof_float
8362: _ACEOF
8363:
8364:
8365: # The cast to long int works around a bug in the HP C Compiler
8366: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8367: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8368: # This bug is HP SR number 8606223364.
8369: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8370: $as_echo_n "checking size of double... " >&6; }
8371: if ${ac_cv_sizeof_double+:} false; then :
8372: $as_echo_n "(cached) " >&6
8373: else
8374: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
8375:
8376: else
8377: if test "$ac_cv_type_double" = yes; then
8378: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8379: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8380: as_fn_error 77 "cannot compute sizeof (double)
8381: See \`config.log' for more details" "$LINENO" 5; }
8382: else
8383: ac_cv_sizeof_double=0
8384: fi
8385: fi
8386:
8387: fi
8388: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8389: $as_echo "$ac_cv_sizeof_double" >&6; }
8390:
8391:
8392:
8393: cat >>confdefs.h <<_ACEOF
8394: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8395: _ACEOF
8396:
8397:
8398: # The cast to long int works around a bug in the HP C Compiler
8399: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8400: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8401: # This bug is HP SR number 8606223364.
8402: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8403: $as_echo_n "checking size of long double... " >&6; }
8404: if ${ac_cv_sizeof_long_double+:} false; then :
8405: $as_echo_n "(cached) " >&6
8406: else
8407: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8408:
8409: else
8410: if test "$ac_cv_type_long_double" = yes; then
8411: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8412: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8413: as_fn_error 77 "cannot compute sizeof (long double)
8414: See \`config.log' for more details" "$LINENO" 5; }
8415: else
8416: ac_cv_sizeof_long_double=0
8417: fi
8418: fi
8419:
8420: fi
8421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8422: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8423:
8424:
8425:
8426: cat >>confdefs.h <<_ACEOF
8427: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8428: _ACEOF
8429:
8430:
8431:
8432: ac_header_dirent=no
8433: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8434: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8436: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8437: if eval \${$as_ac_Header+:} false; then :
8438: $as_echo_n "(cached) " >&6
8439: else
8440: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441: /* end confdefs.h. */
8442: #include <sys/types.h>
8443: #include <$ac_hdr>
8444:
8445: int
8446: main ()
8447: {
8448: if ((DIR *) 0)
8449: return 0;
8450: ;
8451: return 0;
8452: }
8453: _ACEOF
8454: if ac_fn_c_try_compile "$LINENO"; then :
8455: eval "$as_ac_Header=yes"
8456: else
8457: eval "$as_ac_Header=no"
8458: fi
8459: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460: fi
8461: eval ac_res=\$$as_ac_Header
8462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8463: $as_echo "$ac_res" >&6; }
8464: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8465: cat >>confdefs.h <<_ACEOF
8466: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8467: _ACEOF
8468:
8469: ac_header_dirent=$ac_hdr; break
8470: fi
8471:
8472: done
8473: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8474: if test $ac_header_dirent = dirent.h; then
8475: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8476: $as_echo_n "checking for library containing opendir... " >&6; }
8477: if ${ac_cv_search_opendir+:} false; then :
8478: $as_echo_n "(cached) " >&6
8479: else
8480: ac_func_search_save_LIBS=$LIBS
8481: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8482: /* end confdefs.h. */
8483:
8484: /* Override any GCC internal prototype to avoid an error.
8485: Use char because int might match the return type of a GCC
8486: builtin and then its argument prototype would still apply. */
8487: #ifdef __cplusplus
8488: extern "C"
8489: #endif
8490: char opendir ();
8491: int
8492: main ()
8493: {
8494: return opendir ();
8495: ;
8496: return 0;
8497: }
8498: _ACEOF
8499: for ac_lib in '' dir; do
8500: if test -z "$ac_lib"; then
8501: ac_res="none required"
8502: else
8503: ac_res=-l$ac_lib
8504: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8505: fi
8506: if ac_fn_c_try_link "$LINENO"; then :
8507: ac_cv_search_opendir=$ac_res
8508: fi
8509: rm -f core conftest.err conftest.$ac_objext \
8510: conftest$ac_exeext
8511: if ${ac_cv_search_opendir+:} false; then :
8512: break
8513: fi
8514: done
8515: if ${ac_cv_search_opendir+:} false; then :
8516:
8517: else
8518: ac_cv_search_opendir=no
8519: fi
8520: rm conftest.$ac_ext
8521: LIBS=$ac_func_search_save_LIBS
8522: fi
8523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8524: $as_echo "$ac_cv_search_opendir" >&6; }
8525: ac_res=$ac_cv_search_opendir
8526: if test "$ac_res" != no; then :
8527: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8528:
8529: fi
8530:
8531: else
8532: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8533: $as_echo_n "checking for library containing opendir... " >&6; }
8534: if ${ac_cv_search_opendir+:} false; then :
8535: $as_echo_n "(cached) " >&6
8536: else
8537: ac_func_search_save_LIBS=$LIBS
8538: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539: /* end confdefs.h. */
8540:
8541: /* Override any GCC internal prototype to avoid an error.
8542: Use char because int might match the return type of a GCC
8543: builtin and then its argument prototype would still apply. */
8544: #ifdef __cplusplus
8545: extern "C"
8546: #endif
8547: char opendir ();
8548: int
8549: main ()
8550: {
8551: return opendir ();
8552: ;
8553: return 0;
8554: }
8555: _ACEOF
8556: for ac_lib in '' x; do
8557: if test -z "$ac_lib"; then
8558: ac_res="none required"
8559: else
8560: ac_res=-l$ac_lib
8561: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8562: fi
8563: if ac_fn_c_try_link "$LINENO"; then :
8564: ac_cv_search_opendir=$ac_res
8565: fi
8566: rm -f core conftest.err conftest.$ac_objext \
8567: conftest$ac_exeext
8568: if ${ac_cv_search_opendir+:} false; then :
8569: break
8570: fi
8571: done
8572: if ${ac_cv_search_opendir+:} false; then :
8573:
8574: else
8575: ac_cv_search_opendir=no
8576: fi
8577: rm conftest.$ac_ext
8578: LIBS=$ac_func_search_save_LIBS
8579: fi
8580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8581: $as_echo "$ac_cv_search_opendir" >&6; }
8582: ac_res=$ac_cv_search_opendir
8583: if test "$ac_res" != no; then :
8584: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8585:
8586: fi
8587:
8588: fi
8589:
8590: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8591: $as_echo_n "checking for ANSI C header files... " >&6; }
8592: if ${ac_cv_header_stdc+:} false; then :
8593: $as_echo_n "(cached) " >&6
8594: else
8595: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596: /* end confdefs.h. */
8597: #include <stdlib.h>
8598: #include <stdarg.h>
8599: #include <string.h>
8600: #include <float.h>
8601:
8602: int
8603: main ()
8604: {
8605:
8606: ;
8607: return 0;
8608: }
8609: _ACEOF
8610: if ac_fn_c_try_compile "$LINENO"; then :
8611: ac_cv_header_stdc=yes
8612: else
8613: ac_cv_header_stdc=no
8614: fi
8615: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616:
8617: if test $ac_cv_header_stdc = yes; then
8618: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8619: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620: /* end confdefs.h. */
8621: #include <string.h>
8622:
8623: _ACEOF
8624: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8625: $EGREP "memchr" >/dev/null 2>&1; then :
8626:
8627: else
8628: ac_cv_header_stdc=no
8629: fi
8630: rm -f conftest*
8631:
8632: fi
8633:
8634: if test $ac_cv_header_stdc = yes; then
8635: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8636: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637: /* end confdefs.h. */
8638: #include <stdlib.h>
8639:
8640: _ACEOF
8641: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8642: $EGREP "free" >/dev/null 2>&1; then :
8643:
8644: else
8645: ac_cv_header_stdc=no
8646: fi
8647: rm -f conftest*
8648:
8649: fi
8650:
8651: if test $ac_cv_header_stdc = yes; then
8652: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8653: if test "$cross_compiling" = yes; then :
8654: :
8655: else
8656: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8657: /* end confdefs.h. */
8658: #include <ctype.h>
8659: #include <stdlib.h>
8660: #if ((' ' & 0x0FF) == 0x020)
8661: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8662: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8663: #else
8664: # define ISLOWER(c) \
8665: (('a' <= (c) && (c) <= 'i') \
8666: || ('j' <= (c) && (c) <= 'r') \
8667: || ('s' <= (c) && (c) <= 'z'))
8668: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8669: #endif
8670:
8671: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8672: int
8673: main ()
8674: {
8675: int i;
8676: for (i = 0; i < 256; i++)
8677: if (XOR (islower (i), ISLOWER (i))
8678: || toupper (i) != TOUPPER (i))
8679: return 2;
8680: return 0;
8681: }
8682: _ACEOF
8683: if ac_fn_c_try_run "$LINENO"; then :
8684:
8685: else
8686: ac_cv_header_stdc=no
8687: fi
8688: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8689: conftest.$ac_objext conftest.beam conftest.$ac_ext
8690: fi
8691:
8692: fi
8693: fi
8694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8695: $as_echo "$ac_cv_header_stdc" >&6; }
8696: if test $ac_cv_header_stdc = yes; then
8697:
8698: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8699:
8700: fi
8701:
8702: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8703: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8704: if ${ac_cv_header_sys_wait_h+:} false; then :
8705: $as_echo_n "(cached) " >&6
8706: else
8707: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708: /* end confdefs.h. */
8709: #include <sys/types.h>
8710: #include <sys/wait.h>
8711: #ifndef WEXITSTATUS
8712: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8713: #endif
8714: #ifndef WIFEXITED
8715: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8716: #endif
8717:
8718: int
8719: main ()
8720: {
8721: int s;
8722: wait (&s);
8723: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8724: ;
8725: return 0;
8726: }
8727: _ACEOF
8728: if ac_fn_c_try_compile "$LINENO"; then :
8729: ac_cv_header_sys_wait_h=yes
8730: else
8731: ac_cv_header_sys_wait_h=no
8732: fi
8733: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734: fi
8735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8736: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8737: if test $ac_cv_header_sys_wait_h = yes; then
8738:
8739: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8740:
8741: fi
8742:
8743: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8744: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8745: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8746: do :
8747: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8748: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8749: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8750: cat >>confdefs.h <<_ACEOF
8751: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8752: _ACEOF
8753:
8754: fi
8755:
8756: done
8757:
8758:
8759: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8760: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8761: if ${ac_cv_c_const+:} false; then :
8762: $as_echo_n "(cached) " >&6
8763: else
8764: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8765: /* end confdefs.h. */
8766:
8767: int
8768: main ()
8769: {
8770: /* FIXME: Include the comments suggested by Paul. */
8771: #ifndef __cplusplus
8772: /* Ultrix mips cc rejects this. */
8773: typedef int charset[2];
8774: const charset cs;
8775: /* SunOS 4.1.1 cc rejects this. */
8776: char const *const *pcpcc;
8777: char **ppc;
8778: /* NEC SVR4.0.2 mips cc rejects this. */
8779: struct point {int x, y;};
8780: static struct point const zero = {0,0};
8781: /* AIX XL C 1.02.0.0 rejects this.
8782: It does not let you subtract one const X* pointer from another in
8783: an arm of an if-expression whose if-part is not a constant
8784: expression */
8785: const char *g = "string";
8786: pcpcc = &g + (g ? g-g : 0);
8787: /* HPUX 7.0 cc rejects these. */
8788: ++pcpcc;
8789: ppc = (char**) pcpcc;
8790: pcpcc = (char const *const *) ppc;
8791: { /* SCO 3.2v4 cc rejects this. */
8792: char *t;
8793: char const *s = 0 ? (char *) 0 : (char const *) 0;
8794:
8795: *t++ = 0;
8796: if (s) return 0;
8797: }
8798: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8799: int x[] = {25, 17};
8800: const int *foo = &x[0];
8801: ++foo;
8802: }
8803: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8804: typedef const int *iptr;
8805: iptr p = 0;
8806: ++p;
8807: }
8808: { /* AIX XL C 1.02.0.0 rejects this saying
8809: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8810: struct s { int j; const int *ap[3]; };
8811: struct s *b; b->j = 5;
8812: }
8813: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8814: const int foo = 10;
8815: if (!foo) return 0;
8816: }
8817: return !cs[0] && !zero.x;
8818: #endif
8819:
8820: ;
8821: return 0;
8822: }
8823: _ACEOF
8824: if ac_fn_c_try_compile "$LINENO"; then :
8825: ac_cv_c_const=yes
8826: else
8827: ac_cv_c_const=no
8828: fi
8829: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830: fi
8831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8832: $as_echo "$ac_cv_c_const" >&6; }
8833: if test $ac_cv_c_const = no; then
8834:
8835: $as_echo "#define const /**/" >>confdefs.h
8836:
8837: fi
8838:
8839: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8840: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8841: if ${ac_cv_type_uid_t+:} false; then :
8842: $as_echo_n "(cached) " >&6
8843: else
8844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8845: /* end confdefs.h. */
8846: #include <sys/types.h>
8847:
8848: _ACEOF
8849: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8850: $EGREP "uid_t" >/dev/null 2>&1; then :
8851: ac_cv_type_uid_t=yes
8852: else
8853: ac_cv_type_uid_t=no
8854: fi
8855: rm -f conftest*
8856:
8857: fi
8858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8859: $as_echo "$ac_cv_type_uid_t" >&6; }
8860: if test $ac_cv_type_uid_t = no; then
8861:
8862: $as_echo "#define uid_t int" >>confdefs.h
8863:
8864:
8865: $as_echo "#define gid_t int" >>confdefs.h
8866:
8867: fi
8868:
8869: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8870: if test "x$ac_cv_type_pid_t" = xyes; then :
8871:
8872: else
8873:
8874: cat >>confdefs.h <<_ACEOF
8875: #define pid_t int
8876: _ACEOF
8877:
8878: fi
8879:
8880: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8881: if test "x$ac_cv_type_size_t" = xyes; then :
8882:
8883: else
8884:
8885: cat >>confdefs.h <<_ACEOF
8886: #define size_t unsigned int
8887: _ACEOF
8888:
8889: fi
8890:
8891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8892: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8893: if ${ac_cv_header_time+:} false; then :
8894: $as_echo_n "(cached) " >&6
8895: else
8896: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8897: /* end confdefs.h. */
8898: #include <sys/types.h>
8899: #include <sys/time.h>
8900: #include <time.h>
8901:
8902: int
8903: main ()
8904: {
8905: if ((struct tm *) 0)
8906: return 0;
8907: ;
8908: return 0;
8909: }
8910: _ACEOF
8911: if ac_fn_c_try_compile "$LINENO"; then :
8912: ac_cv_header_time=yes
8913: else
8914: ac_cv_header_time=no
8915: fi
8916: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917: fi
8918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8919: $as_echo "$ac_cv_header_time" >&6; }
8920: if test $ac_cv_header_time = yes; then
8921:
8922: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8923:
8924: fi
8925:
8926: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8927: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8928: if ${ac_cv_struct_tm+:} false; then :
8929: $as_echo_n "(cached) " >&6
8930: else
8931: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932: /* end confdefs.h. */
8933: #include <sys/types.h>
8934: #include <time.h>
8935:
8936: int
8937: main ()
8938: {
8939: struct tm tm;
8940: int *p = &tm.tm_sec;
8941: return !p;
8942: ;
8943: return 0;
8944: }
8945: _ACEOF
8946: if ac_fn_c_try_compile "$LINENO"; then :
8947: ac_cv_struct_tm=time.h
8948: else
8949: ac_cv_struct_tm=sys/time.h
8950: fi
8951: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8952: fi
8953: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8954: $as_echo "$ac_cv_struct_tm" >&6; }
8955: if test $ac_cv_struct_tm = sys/time.h; then
8956:
8957: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8958:
8959: fi
8960:
8961:
8962: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8963: $as_echo_n "checking return type of signal handlers... " >&6; }
8964: if ${ac_cv_type_signal+:} false; then :
8965: $as_echo_n "(cached) " >&6
8966: else
8967: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968: /* end confdefs.h. */
8969: #include <sys/types.h>
8970: #include <signal.h>
8971:
8972: int
8973: main ()
8974: {
8975: return *(signal (0, 0)) (0) == 1;
8976: ;
8977: return 0;
8978: }
8979: _ACEOF
8980: if ac_fn_c_try_compile "$LINENO"; then :
8981: ac_cv_type_signal=int
8982: else
8983: ac_cv_type_signal=void
8984: fi
8985: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986: fi
8987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8988: $as_echo "$ac_cv_type_signal" >&6; }
8989:
8990: cat >>confdefs.h <<_ACEOF
8991: #define RETSIGTYPE $ac_cv_type_signal
8992: _ACEOF
8993:
8994:
8995: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8996: $as_echo_n "checking for working strcoll... " >&6; }
8997: if ${ac_cv_func_strcoll_works+:} false; then :
8998: $as_echo_n "(cached) " >&6
8999: else
9000: if test "$cross_compiling" = yes; then :
9001: ac_cv_func_strcoll_works=no
9002: else
9003: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004: /* end confdefs.h. */
9005: $ac_includes_default
9006: int
9007: main ()
9008: {
9009: return (strcoll ("abc", "def") >= 0 ||
9010: strcoll ("ABC", "DEF") >= 0 ||
9011: strcoll ("123", "456") >= 0)
9012: ;
9013: return 0;
9014: }
9015: _ACEOF
9016: if ac_fn_c_try_run "$LINENO"; then :
9017: ac_cv_func_strcoll_works=yes
9018: else
9019: ac_cv_func_strcoll_works=no
9020: fi
9021: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9022: conftest.$ac_objext conftest.beam conftest.$ac_ext
9023: fi
9024:
9025: fi
9026: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9027: $as_echo "$ac_cv_func_strcoll_works" >&6; }
9028: if test $ac_cv_func_strcoll_works = yes; then
9029:
9030: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
9031:
9032: fi
9033:
9034: for ac_func in strftime
9035: do :
9036: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
9037: if test "x$ac_cv_func_strftime" = xyes; then :
9038: cat >>confdefs.h <<_ACEOF
9039: #define HAVE_STRFTIME 1
9040: _ACEOF
9041:
9042: else
9043: # strftime is in -lintl on SCO UNIX.
9044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9045: $as_echo_n "checking for strftime in -lintl... " >&6; }
9046: if ${ac_cv_lib_intl_strftime+:} false; then :
9047: $as_echo_n "(cached) " >&6
9048: else
9049: ac_check_lib_save_LIBS=$LIBS
9050: LIBS="-lintl $LIBS"
9051: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052: /* end confdefs.h. */
9053:
9054: /* Override any GCC internal prototype to avoid an error.
9055: Use char because int might match the return type of a GCC
9056: builtin and then its argument prototype would still apply. */
9057: #ifdef __cplusplus
9058: extern "C"
9059: #endif
9060: char strftime ();
9061: int
9062: main ()
9063: {
9064: return strftime ();
9065: ;
9066: return 0;
9067: }
9068: _ACEOF
9069: if ac_fn_c_try_link "$LINENO"; then :
9070: ac_cv_lib_intl_strftime=yes
9071: else
9072: ac_cv_lib_intl_strftime=no
9073: fi
9074: rm -f core conftest.err conftest.$ac_objext \
9075: conftest$ac_exeext conftest.$ac_ext
9076: LIBS=$ac_check_lib_save_LIBS
9077: fi
9078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9079: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
9080: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
9081: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9082:
9083: LIBS="-lintl $LIBS"
9084: fi
9085:
9086: fi
9087: done
9088:
9089: for ac_func in vprintf
9090: do :
9091: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
9092: if test "x$ac_cv_func_vprintf" = xyes; then :
9093: cat >>confdefs.h <<_ACEOF
9094: #define HAVE_VPRINTF 1
9095: _ACEOF
9096:
9097: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
9098: if test "x$ac_cv_func__doprnt" = xyes; then :
9099:
9100: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
9101:
9102: fi
9103:
9104: fi
9105: done
9106:
9107:
9108: for ac_func in ftime getcwd putenv select strcspn strdup \
9109: strerror strspn strstr strtod
9110: do :
9111: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9112: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9113: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9114: cat >>confdefs.h <<_ACEOF
9115: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9116: _ACEOF
9117:
9118: fi
9119: done
9120:
9121:
9122:
9123: # Check whether --with-openssl_arch was given.
9124: if test "${with_openssl_arch+set}" = set; then :
9125: withval=$with_openssl_arch;
9126: else
9127: with_openssl_arch=none
9128: fi
9129:
9130:
9131: if test $(uname) = "OS/2"; then
9132: bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
9133: else
9134: if test "x$with_openssl_arch" = xnone; then
9135: (cd tools/$OPENSSL && ./config no-asm)
9136: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
9137: (cd tools/$OPENSSL && ./Configure)
9138: as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
9139: elif test "x$with_openssl_arch" = xlist; then
9140: (cd tools/$OPENSSL && ./Configure)
9141: as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
9142: else
9143: (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
9144: fi
9145: fi
9146:
9147: if test "$MYGNUPLOT" = "yes"; then
9148: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9149: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9150: (cd "$srcdir/tools" && tar -xf -)
9151: fi
9152: subdirs="$subdirs tools/$GNUPLOT"
9153:
9154: GNUPLOT_COMPILATION=$GNUPLOT
9155: else
9156: GNUPLOT_COMPILATION=
9157: fi
9158:
9159:
9160:
9161: HOST=$host
9162:
9163:
9164: case $host_cpu in
9165:
9166: i?86)
9167: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9168: -Wno-pointer-sign"
9169: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9170: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9171: break ;;
9172:
9173: x86_64*)
9174: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9175: -Wno-pointer-sign"
9176: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9177: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9178: break ;;
9179:
9180: alpha*)
9181: CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
9182: -Wno-pointer-sign"
9183: FFLAGS="$FFLAGS -mieee -Wall"
9184: FCFLAGS="$FCFLAGS -mieee -Wall"
9185: break ;;
9186:
9187: sparc*)
9188: CFLAGS="$CFLAGS -Wall -funsigned-char \
9189: -Wno-pointer-sign"
9190: FFLAGS="$FFLAGS -Wall"
9191: FCFLAGS="$FCFLAGS -Wall"
9192: break ;;
9193:
9194: esac
9195:
9196: case $host_os in
9197:
9198: cygwin*)
9199: OS=Cygwin
9200: break ;;
9201:
9202: interix*)
9203: OS=Interix
9204: break ;;
9205:
9206: *)
9207: OS=$(uname)
9208: break ;;
9209:
9210: esac
9211:
9212:
9213:
9214: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9215: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
9216: MALLOC=
9217:
9218: case $OS in
9219:
9220: Darwin)
9221: EXPORT_DYNAMIC=-Wl,-flat_namespace
9222: NESTED_FUNCTIONS=-fnested-functions
9223: CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
9224: ac_configure_args="$ac_configure_args --with-readline=builtin \
9225: --disable-shared --enable-static --enable-threads \
9226: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9227: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9228: LDFLAGS=\"$LDFLAGS\""
9229: C_STANDARD=-std=gnu99
9230: ELF=
9231: break ;;
9232:
9233: Cygwin)
9234: EXPORT_DYNAMIC=-Wl,--export-all-symbols
9235: NESTED_FUNCTIONS=
9236: ac_configure_args="$ac_configure_args --with-readline=builtin \
9237: --disable-shared --enable-static --enable-threads \
9238: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9239: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9240: LDFLAGS=\"$LDFLAGS\""
9241: C_STANDARD=-std=gnu99
9242: ELF=
9243: break ;;
9244:
9245: Interix)
9246: EXPORT_DYNAMIC=-Wl,--export-all-symbols
9247: NESTED_FUNCTIONS=
9248: ac_configure_args="$ac_configure_args --with-readline=builtin \
9249: --disable-shared --enable-static --enable-threads \
9250: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9251: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9252: LDFLAGS=\"$LDFLAGS\""
9253: C_STANDARD=-std=gnu99
9254: ELF=
9255: break;;
9256:
9257: AIX)
9258: EXPORT_DYNAMIC=-Wl,--export-dynamic
9259: NESTED_FUNCTIONS=
9260: ac_configure_args="$ac_configure_args --with-readline=builtin \
9261: --disable-shared --enable-static --enable-threads \
9262: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9263: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9264: LDFLAGS=\"$LDFLAGS\""
9265: C_STANDARD=-std=gnu99
9266: ELF=
9267: break ;;
9268:
9269: OS/2)
9270: if test $FORCED_FINAL_ENCODING -eq 0; then \
9271: FINAL_ENCODING=CP850; \
9272: fi;
9273: OS=OS2
9274: NESTED_FUNCTIONS=
9275: EXPORT_DYNAMIC=-Zmap
9276: ac_configure_args="$ac_configure_args --without-readline \
9277: --without-cairo --disable-shared --enable-static \
9278: --enable-threads \
9279: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9280: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9281: LDFLAGS=\"$LDFLAGS\""
9282: C_STANDARD=
9283: ELF=
9284: break;;
9285:
9286: OpenBSD)
9287: if test $FORCED_FINAL_ENCODING -eq 0; then \
9288: FINAL_ENCODING=UTF-8; \
9289: fi;
9290: EXPORT_DYNAMIC=-Wl,--export-dynamic
9291: NESTED_FUNCTIONS=
9292: ac_configure_args="$ac_configure_args --with-readline=builtin \
9293: --disable-shared --enable-static --enable-threads \
9294: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9295: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9296: LDFLAGS=\"$LDFLAGS\""
9297: C_STANDARD=-std=gnu99
9298: ELF=
9299: break;;
9300:
9301: SunOS)
9302: EXPORT_DYNAMIC=-Wl,--export-dynamic
9303: NESTED_FUNCTIONS=
9304:
9305: ac_configure_args="$ac_configure_args --with-readline=builtin \
9306: --disable-shared --enable-static --enable-threads \
9307: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9308: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9309: LDFLAGS=\"$LDFLAGS\""
9310: C_STANDARD=-std=gnu99
9311: MALLOC=-lumem
9312: ELF=
9313: break ;;
9314:
9315: NetBSD)
9316: EXPORT_DYNAMIC=-Wl,--export-dynamic
9317: NESTED_FUNCTIONS=
9318:
9319: ac_configure_args="$ac_configure_args --with-readline=builtin \
9320: --disable-shared --enable-static --enable-threads \
9321: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9322: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9323: LDFLAGS=\"$LDFLAGS\""
9324: C_STANDARD=-std=gnu99
9325: GCCBIN=`which gcc`
9326: GCCLIB=`dirname $GCCBIN`/../lib
9327: ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
9328: break ;;
9329:
9330: *)
9331: EXPORT_DYNAMIC=-Wl,--export-dynamic
9332: NESTED_FUNCTIONS=
9333:
9334: ac_configure_args="$ac_configure_args --with-readline=builtin \
9335: --disable-shared --enable-static --enable-threads \
9336: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9337: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9338: LDFLAGS=\"$LDFLAGS\""
9339: C_STANDARD=-std=gnu99
9340: ELF=
9341: break ;;
9342:
9343: esac
9344:
9345:
9346:
9347:
9348:
9349:
9350:
9351:
9352:
9353:
9354:
9355:
9356:
9357:
9358:
9359:
9360:
9361:
9362:
9363:
9364:
9365:
9366:
9367:
9368:
9369:
9370:
9371:
9372:
9373:
9374:
9375:
9376:
9377:
9378:
9379:
9380:
9381:
9382:
9383:
9384:
9385:
9386:
9387:
9388:
9389: subdirs="$subdirs tools/$NCURSES"
9390:
9391: subdirs="$subdirs tools/$READLINE"
9392:
9393: subdirs="$subdirs tools/$GSL"
9394:
9395: subdirs="$subdirs tools/$GPP"
9396:
9397: subdirs="$subdirs tools/$FILE"
9398:
9399: subdirs="$subdirs tools/$ICONV"
9400:
9401: subdirs="$subdirs tools/$SQLITE"
9402:
9403: subdirs="$subdirs tools/$UNITS"
9404:
9405: subdirs="$subdirs tools/$SIGSEGV"
9406:
9407:
9408: ac_config_files="$ac_config_files Makefile"
9409:
9410: ac_config_files="$ac_config_files COPYING"
9411:
9412: ac_config_files="$ac_config_files tools/Makefile"
9413:
9414: ac_config_files="$ac_config_files src/Makefile"
9415:
9416: ac_config_files="$ac_config_files man/Makefile"
9417:
9418: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9419:
9420: ac_config_files="$ac_config_files doc/Makefile"
9421:
9422: ac_config_files="$ac_config_files scripts/Makefile"
9423:
9424: ac_config_files="$ac_config_files scripts/mkrplso"
9425:
9426: ac_config_files="$ac_config_files scripts/rplcc"
9427:
9428: ac_config_files="$ac_config_files scripts/rpllink"
9429:
9430: ac_config_files="$ac_config_files rpltags/Makefile"
9431:
9432: ac_config_files="$ac_config_files rpliconv/Makefile"
9433:
9434: ac_config_files="$ac_config_files rplsums/Makefile"
9435:
9436: ac_config_files="$ac_config_files rplcas/Makefile"
9437:
9438: ac_config_files="$ac_config_files rplawk/Makefile"
9439:
9440: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9441:
9442: ac_config_files="$ac_config_files lapack/blas/Makefile"
9443:
9444:
9445: ac_config_files="$ac_config_files man/rpl.1"
9446:
9447: ac_config_files="$ac_config_files man/rplcc.1"
9448:
9449: ac_config_files="$ac_config_files man/rpllink.1"
9450:
9451: ac_config_files="$ac_config_files man/rpltags.1"
9452:
9453: ac_config_files="$ac_config_files man/mkrplso.1"
9454:
9455: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9456:
9457: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9458:
9459: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9460:
9461: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9462:
9463: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9464:
9465:
9466: cat >confcache <<\_ACEOF
9467: # This file is a shell script that caches the results of configure
9468: # tests run on this system so they can be shared between configure
9469: # scripts and configure runs, see configure's option --config-cache.
9470: # It is not useful on other systems. If it contains results you don't
9471: # want to keep, you may remove or edit it.
9472: #
9473: # config.status only pays attention to the cache file if you give it
9474: # the --recheck option to rerun configure.
9475: #
9476: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9477: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9478: # following values.
9479:
9480: _ACEOF
9481:
9482: # The following way of writing the cache mishandles newlines in values,
9483: # but we know of no workaround that is simple, portable, and efficient.
9484: # So, we kill variables containing newlines.
9485: # Ultrix sh set writes to stderr and can't be redirected directly,
9486: # and sets the high bit in the cache file unless we assign to the vars.
9487: (
9488: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9489: eval ac_val=\$$ac_var
9490: case $ac_val in #(
9491: *${as_nl}*)
9492: case $ac_var in #(
9493: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9494: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9495: esac
9496: case $ac_var in #(
9497: _ | IFS | as_nl) ;; #(
9498: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9499: *) { eval $ac_var=; unset $ac_var;} ;;
9500: esac ;;
9501: esac
9502: done
9503:
9504: (set) 2>&1 |
9505: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9506: *${as_nl}ac_space=\ *)
9507: # `set' does not quote correctly, so add quotes: double-quote
9508: # substitution turns \\\\ into \\, and sed turns \\ into \.
9509: sed -n \
9510: "s/'/'\\\\''/g;
9511: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9512: ;; #(
9513: *)
9514: # `set' quotes correctly as required by POSIX, so do not add quotes.
9515: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9516: ;;
9517: esac |
9518: sort
9519: ) |
9520: sed '
9521: /^ac_cv_env_/b end
9522: t clear
9523: :clear
9524: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9525: t end
9526: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9527: :end' >>confcache
9528: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9529: if test -w "$cache_file"; then
9530: if test "x$cache_file" != "x/dev/null"; then
9531: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9532: $as_echo "$as_me: updating cache $cache_file" >&6;}
9533: if test ! -f "$cache_file" || test -h "$cache_file"; then
9534: cat confcache >"$cache_file"
9535: else
9536: case $cache_file in #(
9537: */* | ?:*)
9538: mv -f confcache "$cache_file"$$ &&
9539: mv -f "$cache_file"$$ "$cache_file" ;; #(
9540: *)
9541: mv -f confcache "$cache_file" ;;
9542: esac
9543: fi
9544: fi
9545: else
9546: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9547: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9548: fi
9549: fi
9550: rm -f confcache
9551:
9552: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9553: # Let make expand exec_prefix.
9554: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9555:
9556: DEFS=-DHAVE_CONFIG_H
9557:
9558: ac_libobjs=
9559: ac_ltlibobjs=
9560: U=
9561: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9562: # 1. Remove the extension, and $U if already installed.
9563: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9564: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9565: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9566: # will be set to the directory where LIBOBJS objects are built.
9567: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9568: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9569: done
9570: LIBOBJS=$ac_libobjs
9571:
9572: LTLIBOBJS=$ac_ltlibobjs
9573:
9574:
9575: if test -n "$EXEEXT"; then
9576: am__EXEEXT_TRUE=
9577: am__EXEEXT_FALSE='#'
9578: else
9579: am__EXEEXT_TRUE='#'
9580: am__EXEEXT_FALSE=
9581: fi
9582:
9583: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9584: as_fn_error $? "conditional \"AMDEP\" was never defined.
9585: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9586: fi
9587: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9588: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
9589: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9590: fi
9591: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9592: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
9593: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9594: fi
9595:
9596: : "${CONFIG_STATUS=./config.status}"
9597: ac_write_fail=0
9598: ac_clean_files_save=$ac_clean_files
9599: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9600: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9601: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9602: as_write_fail=0
9603: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9604: #! $SHELL
9605: # Generated by $as_me.
9606: # Run this file to recreate the current configuration.
9607: # Compiler output produced by configure, useful for debugging
9608: # configure, is in config.log if it exists.
9609:
9610: debug=false
9611: ac_cs_recheck=false
9612: ac_cs_silent=false
9613:
9614: SHELL=\${CONFIG_SHELL-$SHELL}
9615: export SHELL
9616: _ASEOF
9617: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9618: ## -------------------- ##
9619: ## M4sh Initialization. ##
9620: ## -------------------- ##
9621:
9622: # Be more Bourne compatible
9623: DUALCASE=1; export DUALCASE # for MKS sh
9624: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9625: emulate sh
9626: NULLCMD=:
9627: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9628: # is contrary to our usage. Disable this feature.
9629: alias -g '${1+"$@"}'='"$@"'
9630: setopt NO_GLOB_SUBST
9631: else
9632: case `(set -o) 2>/dev/null` in #(
9633: *posix*) :
9634: set -o posix ;; #(
9635: *) :
9636: ;;
9637: esac
9638: fi
9639:
9640:
9641: as_nl='
9642: '
9643: export as_nl
9644: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9645: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9646: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9647: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9648: # Prefer a ksh shell builtin over an external printf program on Solaris,
9649: # but without wasting forks for bash or zsh.
9650: if test -z "$BASH_VERSION$ZSH_VERSION" \
9651: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9652: as_echo='print -r --'
9653: as_echo_n='print -rn --'
9654: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9655: as_echo='printf %s\n'
9656: as_echo_n='printf %s'
9657: else
9658: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9659: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9660: as_echo_n='/usr/ucb/echo -n'
9661: else
9662: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9663: as_echo_n_body='eval
9664: arg=$1;
9665: case $arg in #(
9666: *"$as_nl"*)
9667: expr "X$arg" : "X\\(.*\\)$as_nl";
9668: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9669: esac;
9670: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9671: '
9672: export as_echo_n_body
9673: as_echo_n='sh -c $as_echo_n_body as_echo'
9674: fi
9675: export as_echo_body
9676: as_echo='sh -c $as_echo_body as_echo'
9677: fi
9678:
9679: # The user is always right.
9680: if test "${PATH_SEPARATOR+set}" != set; then
9681: PATH_SEPARATOR=:
9682: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9683: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9684: PATH_SEPARATOR=';'
9685: }
9686: fi
9687:
9688:
9689: # IFS
9690: # We need space, tab and new line, in precisely that order. Quoting is
9691: # there to prevent editors from complaining about space-tab.
9692: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9693: # splitting by setting IFS to empty value.)
9694: IFS=" "" $as_nl"
9695:
9696: # Find who we are. Look in the path if we contain no directory separator.
9697: as_myself=
9698: case $0 in #((
9699: *[\\/]* ) as_myself=$0 ;;
9700: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9701: for as_dir in $PATH
9702: do
9703: IFS=$as_save_IFS
9704: test -z "$as_dir" && as_dir=.
9705: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9706: done
9707: IFS=$as_save_IFS
9708:
9709: ;;
9710: esac
9711: # We did not find ourselves, most probably we were run as `sh COMMAND'
9712: # in which case we are not to be found in the path.
9713: if test "x$as_myself" = x; then
9714: as_myself=$0
9715: fi
9716: if test ! -f "$as_myself"; then
9717: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9718: exit 1
9719: fi
9720:
9721: # Unset variables that we do not need and which cause bugs (e.g. in
9722: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9723: # suppresses any "Segmentation fault" message there. '((' could
9724: # trigger a bug in pdksh 5.2.14.
9725: for as_var in BASH_ENV ENV MAIL MAILPATH
9726: do eval test x\${$as_var+set} = xset \
9727: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9728: done
9729: PS1='$ '
9730: PS2='> '
9731: PS4='+ '
9732:
9733: # NLS nuisances.
9734: LC_ALL=C
9735: export LC_ALL
9736: LANGUAGE=C
9737: export LANGUAGE
9738:
9739: # CDPATH.
9740: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9741:
9742:
9743: # as_fn_error STATUS ERROR [LINENO LOG_FD]
9744: # ----------------------------------------
9745: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9746: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9747: # script with STATUS, using 1 if that was 0.
9748: as_fn_error ()
9749: {
9750: as_status=$1; test $as_status -eq 0 && as_status=1
9751: if test "$4"; then
9752: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9753: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9754: fi
9755: $as_echo "$as_me: error: $2" >&2
9756: as_fn_exit $as_status
9757: } # as_fn_error
9758:
9759:
9760: # as_fn_set_status STATUS
9761: # -----------------------
9762: # Set $? to STATUS, without forking.
9763: as_fn_set_status ()
9764: {
9765: return $1
9766: } # as_fn_set_status
9767:
9768: # as_fn_exit STATUS
9769: # -----------------
9770: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9771: as_fn_exit ()
9772: {
9773: set +e
9774: as_fn_set_status $1
9775: exit $1
9776: } # as_fn_exit
9777:
9778: # as_fn_unset VAR
9779: # ---------------
9780: # Portably unset VAR.
9781: as_fn_unset ()
9782: {
9783: { eval $1=; unset $1;}
9784: }
9785: as_unset=as_fn_unset
9786: # as_fn_append VAR VALUE
9787: # ----------------------
9788: # Append the text in VALUE to the end of the definition contained in VAR. Take
9789: # advantage of any shell optimizations that allow amortized linear growth over
9790: # repeated appends, instead of the typical quadratic growth present in naive
9791: # implementations.
9792: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9793: eval 'as_fn_append ()
9794: {
9795: eval $1+=\$2
9796: }'
9797: else
9798: as_fn_append ()
9799: {
9800: eval $1=\$$1\$2
9801: }
9802: fi # as_fn_append
9803:
9804: # as_fn_arith ARG...
9805: # ------------------
9806: # Perform arithmetic evaluation on the ARGs, and store the result in the
9807: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9808: # must be portable across $(()) and expr.
9809: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9810: eval 'as_fn_arith ()
9811: {
9812: as_val=$(( $* ))
9813: }'
9814: else
9815: as_fn_arith ()
9816: {
9817: as_val=`expr "$@" || test $? -eq 1`
9818: }
9819: fi # as_fn_arith
9820:
9821:
9822: if expr a : '\(a\)' >/dev/null 2>&1 &&
9823: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9824: as_expr=expr
9825: else
9826: as_expr=false
9827: fi
9828:
9829: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9830: as_basename=basename
9831: else
9832: as_basename=false
9833: fi
9834:
9835: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9836: as_dirname=dirname
9837: else
9838: as_dirname=false
9839: fi
9840:
9841: as_me=`$as_basename -- "$0" ||
9842: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9843: X"$0" : 'X\(//\)$' \| \
9844: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9845: $as_echo X/"$0" |
9846: sed '/^.*\/\([^/][^/]*\)\/*$/{
9847: s//\1/
9848: q
9849: }
9850: /^X\/\(\/\/\)$/{
9851: s//\1/
9852: q
9853: }
9854: /^X\/\(\/\).*/{
9855: s//\1/
9856: q
9857: }
9858: s/.*/./; q'`
9859:
9860: # Avoid depending upon Character Ranges.
9861: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9862: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9863: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9864: as_cr_digits='0123456789'
9865: as_cr_alnum=$as_cr_Letters$as_cr_digits
9866:
9867: ECHO_C= ECHO_N= ECHO_T=
9868: case `echo -n x` in #(((((
9869: -n*)
9870: case `echo 'xy\c'` in
9871: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9872: xy) ECHO_C='\c';;
9873: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9874: ECHO_T=' ';;
9875: esac;;
9876: *)
9877: ECHO_N='-n';;
9878: esac
9879:
9880: rm -f conf$$ conf$$.exe conf$$.file
9881: if test -d conf$$.dir; then
9882: rm -f conf$$.dir/conf$$.file
9883: else
9884: rm -f conf$$.dir
9885: mkdir conf$$.dir 2>/dev/null
9886: fi
9887: if (echo >conf$$.file) 2>/dev/null; then
9888: if ln -s conf$$.file conf$$ 2>/dev/null; then
9889: as_ln_s='ln -s'
9890: # ... but there are two gotchas:
9891: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9892: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9893: # In both cases, we have to default to `cp -p'.
9894: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9895: as_ln_s='cp -p'
9896: elif ln conf$$.file conf$$ 2>/dev/null; then
9897: as_ln_s=ln
9898: else
9899: as_ln_s='cp -p'
9900: fi
9901: else
9902: as_ln_s='cp -p'
9903: fi
9904: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9905: rmdir conf$$.dir 2>/dev/null
9906:
9907:
9908: # as_fn_mkdir_p
9909: # -------------
9910: # Create "$as_dir" as a directory, including parents if necessary.
9911: as_fn_mkdir_p ()
9912: {
9913:
9914: case $as_dir in #(
9915: -*) as_dir=./$as_dir;;
9916: esac
9917: test -d "$as_dir" || eval $as_mkdir_p || {
9918: as_dirs=
9919: while :; do
9920: case $as_dir in #(
9921: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9922: *) as_qdir=$as_dir;;
9923: esac
9924: as_dirs="'$as_qdir' $as_dirs"
9925: as_dir=`$as_dirname -- "$as_dir" ||
9926: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9927: X"$as_dir" : 'X\(//\)[^/]' \| \
9928: X"$as_dir" : 'X\(//\)$' \| \
9929: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9930: $as_echo X"$as_dir" |
9931: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9932: s//\1/
9933: q
9934: }
9935: /^X\(\/\/\)[^/].*/{
9936: s//\1/
9937: q
9938: }
9939: /^X\(\/\/\)$/{
9940: s//\1/
9941: q
9942: }
9943: /^X\(\/\).*/{
9944: s//\1/
9945: q
9946: }
9947: s/.*/./; q'`
9948: test -d "$as_dir" && break
9949: done
9950: test -z "$as_dirs" || eval "mkdir $as_dirs"
9951: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9952:
9953:
9954: } # as_fn_mkdir_p
9955: if mkdir -p . 2>/dev/null; then
9956: as_mkdir_p='mkdir -p "$as_dir"'
9957: else
9958: test -d ./-p && rmdir ./-p
9959: as_mkdir_p=false
9960: fi
9961:
9962: if test -x / >/dev/null 2>&1; then
9963: as_test_x='test -x'
9964: else
9965: if ls -dL / >/dev/null 2>&1; then
9966: as_ls_L_option=L
9967: else
9968: as_ls_L_option=
9969: fi
9970: as_test_x='
9971: eval sh -c '\''
9972: if test -d "$1"; then
9973: test -d "$1/.";
9974: else
9975: case $1 in #(
9976: -*)set "./$1";;
9977: esac;
9978: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9979: ???[sx]*):;;*)false;;esac;fi
9980: '\'' sh
9981: '
9982: fi
9983: as_executable_p=$as_test_x
9984:
9985: # Sed expression to map a string onto a valid CPP name.
9986: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9987:
9988: # Sed expression to map a string onto a valid variable name.
9989: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9990:
9991:
9992: exec 6>&1
9993: ## ----------------------------------- ##
9994: ## Main body of $CONFIG_STATUS script. ##
9995: ## ----------------------------------- ##
9996: _ASEOF
9997: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9998:
9999: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10000: # Save the log message, to keep $0 and so on meaningful, and to
10001: # report actual input values of CONFIG_FILES etc. instead of their
10002: # values after options handling.
10003: ac_log="
10004: This file was extended by rpl $as_me 4.1.3, which was
10005: generated by GNU Autoconf 2.68. Invocation command line was
10006:
10007: CONFIG_FILES = $CONFIG_FILES
10008: CONFIG_HEADERS = $CONFIG_HEADERS
10009: CONFIG_LINKS = $CONFIG_LINKS
10010: CONFIG_COMMANDS = $CONFIG_COMMANDS
10011: $ $0 $@
10012:
10013: on `(hostname || uname -n) 2>/dev/null | sed 1q`
10014: "
10015:
10016: _ACEOF
10017:
10018: case $ac_config_files in *"
10019: "*) set x $ac_config_files; shift; ac_config_files=$*;;
10020: esac
10021:
10022: case $ac_config_headers in *"
10023: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10024: esac
10025:
10026:
10027: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10028: # Files that config.status was made for.
10029: config_files="$ac_config_files"
10030: config_headers="$ac_config_headers"
10031: config_commands="$ac_config_commands"
10032:
10033: _ACEOF
10034:
10035: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10036: ac_cs_usage="\
10037: \`$as_me' instantiates files and other configuration actions
10038: from templates according to the current configuration. Unless the files
10039: and actions are specified as TAGs, all are instantiated by default.
10040:
10041: Usage: $0 [OPTION]... [TAG]...
10042:
10043: -h, --help print this help, then exit
10044: -V, --version print version number and configuration settings, then exit
10045: --config print configuration, then exit
10046: -q, --quiet, --silent
10047: do not print progress messages
10048: -d, --debug don't remove temporary files
10049: --recheck update $as_me by reconfiguring in the same conditions
10050: --file=FILE[:TEMPLATE]
10051: instantiate the configuration file FILE
10052: --header=FILE[:TEMPLATE]
10053: instantiate the configuration header FILE
10054:
10055: Configuration files:
10056: $config_files
10057:
10058: Configuration headers:
10059: $config_headers
10060:
10061: Configuration commands:
10062: $config_commands
10063:
10064: Report bugs to the package provider."
10065:
10066: _ACEOF
10067: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10068: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10069: ac_cs_version="\\
10070: rpl config.status 4.1.3
10071: configured by $0, generated by GNU Autoconf 2.68,
10072: with options \\"\$ac_cs_config\\"
10073:
10074: Copyright (C) 2010 Free Software Foundation, Inc.
10075: This config.status script is free software; the Free Software Foundation
10076: gives unlimited permission to copy, distribute and modify it."
10077:
10078: ac_pwd='$ac_pwd'
10079: srcdir='$srcdir'
10080: INSTALL='$INSTALL'
10081: MKDIR_P='$MKDIR_P'
10082: AWK='$AWK'
10083: test -n "\$AWK" || AWK=awk
10084: _ACEOF
10085:
10086: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10087: # The default lists apply if the user does not specify any file.
10088: ac_need_defaults=:
10089: while test $# != 0
10090: do
10091: case $1 in
10092: --*=?*)
10093: ac_option=`expr "X$1" : 'X\([^=]*\)='`
10094: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10095: ac_shift=:
10096: ;;
10097: --*=)
10098: ac_option=`expr "X$1" : 'X\([^=]*\)='`
10099: ac_optarg=
10100: ac_shift=:
10101: ;;
10102: *)
10103: ac_option=$1
10104: ac_optarg=$2
10105: ac_shift=shift
10106: ;;
10107: esac
10108:
10109: case $ac_option in
10110: # Handling of the options.
10111: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10112: ac_cs_recheck=: ;;
10113: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10114: $as_echo "$ac_cs_version"; exit ;;
10115: --config | --confi | --conf | --con | --co | --c )
10116: $as_echo "$ac_cs_config"; exit ;;
10117: --debug | --debu | --deb | --de | --d | -d )
10118: debug=: ;;
10119: --file | --fil | --fi | --f )
10120: $ac_shift
10121: case $ac_optarg in
10122: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10123: '') as_fn_error $? "missing file argument" ;;
10124: esac
10125: as_fn_append CONFIG_FILES " '$ac_optarg'"
10126: ac_need_defaults=false;;
10127: --header | --heade | --head | --hea )
10128: $ac_shift
10129: case $ac_optarg in
10130: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10131: esac
10132: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10133: ac_need_defaults=false;;
10134: --he | --h)
10135: # Conflict between --help and --header
10136: as_fn_error $? "ambiguous option: \`$1'
10137: Try \`$0 --help' for more information.";;
10138: --help | --hel | -h )
10139: $as_echo "$ac_cs_usage"; exit ;;
10140: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10141: | -silent | --silent | --silen | --sile | --sil | --si | --s)
10142: ac_cs_silent=: ;;
10143:
10144: # This is an error.
10145: -*) as_fn_error $? "unrecognized option: \`$1'
10146: Try \`$0 --help' for more information." ;;
10147:
10148: *) as_fn_append ac_config_targets " $1"
10149: ac_need_defaults=false ;;
10150:
10151: esac
10152: shift
10153: done
10154:
10155: ac_configure_extra_args=
10156:
10157: if $ac_cs_silent; then
10158: exec 6>/dev/null
10159: ac_configure_extra_args="$ac_configure_extra_args --silent"
10160: fi
10161:
10162: _ACEOF
10163: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10164: if \$ac_cs_recheck; then
10165: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10166: shift
10167: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10168: CONFIG_SHELL='$SHELL'
10169: export CONFIG_SHELL
10170: exec "\$@"
10171: fi
10172:
10173: _ACEOF
10174: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10175: exec 5>>config.log
10176: {
10177: echo
10178: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10179: ## Running $as_me. ##
10180: _ASBOX
10181: $as_echo "$ac_log"
10182: } >&5
10183:
10184: _ACEOF
10185: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10186: #
10187: # INIT-COMMANDS
10188: #
10189: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10190:
10191: _ACEOF
10192:
10193: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10194:
10195: # Handling of arguments.
10196: for ac_config_target in $ac_config_targets
10197: do
10198: case $ac_config_target in
10199: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
10200: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10201: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10202: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
10203: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10204: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10205: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10206: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
10207: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10208: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
10209: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
10210: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
10211: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
10212: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
10213: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
10214: "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
10215: "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
10216: "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
10217: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
10218: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
10219: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
10220: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
10221: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
10222: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
10223: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
10224: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
10225: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
10226: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
10227: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
10228: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
10229:
10230: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10231: esac
10232: done
10233:
10234:
10235: # If the user did not use the arguments to specify the items to instantiate,
10236: # then the envvar interface is used. Set only those that are not.
10237: # We use the long form for the default assignment because of an extremely
10238: # bizarre bug on SunOS 4.1.3.
10239: if $ac_need_defaults; then
10240: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10241: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10242: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10243: fi
10244:
10245: # Have a temporary directory for convenience. Make it in the build tree
10246: # simply because there is no reason against having it here, and in addition,
10247: # creating and moving files from /tmp can sometimes cause problems.
10248: # Hook for its removal unless debugging.
10249: # Note that there is a small window in which the directory will not be cleaned:
10250: # after its creation but before its name has been assigned to `$tmp'.
10251: $debug ||
10252: {
10253: tmp= ac_tmp=
10254: trap 'exit_status=$?
10255: : "${ac_tmp:=$tmp}"
10256: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10257: ' 0
10258: trap 'as_fn_exit 1' 1 2 13 15
10259: }
10260: # Create a (secure) tmp directory for tmp files.
10261:
10262: {
10263: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10264: test -d "$tmp"
10265: } ||
10266: {
10267: tmp=./conf$$-$RANDOM
10268: (umask 077 && mkdir "$tmp")
10269: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10270: ac_tmp=$tmp
10271:
10272: # Set up the scripts for CONFIG_FILES section.
10273: # No need to generate them if there are no CONFIG_FILES.
10274: # This happens for instance with `./config.status config.h'.
10275: if test -n "$CONFIG_FILES"; then
10276:
10277:
10278: ac_cr=`echo X | tr X '\015'`
10279: # On cygwin, bash can eat \r inside `` if the user requested igncr.
10280: # But we know of no other shell where ac_cr would be empty at this
10281: # point, so we can use a bashism as a fallback.
10282: if test "x$ac_cr" = x; then
10283: eval ac_cr=\$\'\\r\'
10284: fi
10285: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10286: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10287: ac_cs_awk_cr='\\r'
10288: else
10289: ac_cs_awk_cr=$ac_cr
10290: fi
10291:
10292: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10293: _ACEOF
10294:
10295:
10296: {
10297: echo "cat >conf$$subs.awk <<_ACEOF" &&
10298: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10299: echo "_ACEOF"
10300: } >conf$$subs.sh ||
10301: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10302: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10303: ac_delim='%!_!# '
10304: for ac_last_try in false false false false false :; do
10305: . ./conf$$subs.sh ||
10306: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10307:
10308: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10309: if test $ac_delim_n = $ac_delim_num; then
10310: break
10311: elif $ac_last_try; then
10312: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10313: else
10314: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10315: fi
10316: done
10317: rm -f conf$$subs.sh
10318:
10319: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10320: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10321: _ACEOF
10322: sed -n '
10323: h
10324: s/^/S["/; s/!.*/"]=/
10325: p
10326: g
10327: s/^[^!]*!//
10328: :repl
10329: t repl
10330: s/'"$ac_delim"'$//
10331: t delim
10332: :nl
10333: h
10334: s/\(.\{148\}\)..*/\1/
10335: t more1
10336: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10337: p
10338: n
10339: b repl
10340: :more1
10341: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10342: p
10343: g
10344: s/.\{148\}//
10345: t nl
10346: :delim
10347: h
10348: s/\(.\{148\}\)..*/\1/
10349: t more2
10350: s/["\\]/\\&/g; s/^/"/; s/$/"/
10351: p
10352: b
10353: :more2
10354: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10355: p
10356: g
10357: s/.\{148\}//
10358: t delim
10359: ' <conf$$subs.awk | sed '
10360: /^[^""]/{
10361: N
10362: s/\n//
10363: }
10364: ' >>$CONFIG_STATUS || ac_write_fail=1
10365: rm -f conf$$subs.awk
10366: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10367: _ACAWK
10368: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10369: for (key in S) S_is_set[key] = 1
10370: FS = ""
10371:
10372: }
10373: {
10374: line = $ 0
10375: nfields = split(line, field, "@")
10376: substed = 0
10377: len = length(field[1])
10378: for (i = 2; i < nfields; i++) {
10379: key = field[i]
10380: keylen = length(key)
10381: if (S_is_set[key]) {
10382: value = S[key]
10383: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10384: len += length(value) + length(field[++i])
10385: substed = 1
10386: } else
10387: len += 1 + keylen
10388: }
10389:
10390: print line
10391: }
10392:
10393: _ACAWK
10394: _ACEOF
10395: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10396: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10397: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10398: else
10399: cat
10400: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10401: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10402: _ACEOF
10403:
10404: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10405: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10406: # trailing colons and then remove the whole line if VPATH becomes empty
10407: # (actually we leave an empty line to preserve line numbers).
10408: if test "x$srcdir" = x.; then
10409: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10410: h
10411: s///
10412: s/^/:/
10413: s/[ ]*$/:/
10414: s/:\$(srcdir):/:/g
10415: s/:\${srcdir}:/:/g
10416: s/:@srcdir@:/:/g
10417: s/^:*//
10418: s/:*$//
10419: x
10420: s/\(=[ ]*\).*/\1/
10421: G
10422: s/\n//
10423: s/^[^=]*=[ ]*$//
10424: }'
10425: fi
10426:
10427: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10428: fi # test -n "$CONFIG_FILES"
10429:
10430: # Set up the scripts for CONFIG_HEADERS section.
10431: # No need to generate them if there are no CONFIG_HEADERS.
10432: # This happens for instance with `./config.status Makefile'.
10433: if test -n "$CONFIG_HEADERS"; then
10434: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10435: BEGIN {
10436: _ACEOF
10437:
10438: # Transform confdefs.h into an awk script `defines.awk', embedded as
10439: # here-document in config.status, that substitutes the proper values into
10440: # config.h.in to produce config.h.
10441:
10442: # Create a delimiter string that does not exist in confdefs.h, to ease
10443: # handling of long lines.
10444: ac_delim='%!_!# '
10445: for ac_last_try in false false :; do
10446: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10447: if test -z "$ac_tt"; then
10448: break
10449: elif $ac_last_try; then
10450: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10451: else
10452: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10453: fi
10454: done
10455:
10456: # For the awk script, D is an array of macro values keyed by name,
10457: # likewise P contains macro parameters if any. Preserve backslash
10458: # newline sequences.
10459:
10460: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10461: sed -n '
10462: s/.\{148\}/&'"$ac_delim"'/g
10463: t rset
10464: :rset
10465: s/^[ ]*#[ ]*define[ ][ ]*/ /
10466: t def
10467: d
10468: :def
10469: s/\\$//
10470: t bsnl
10471: s/["\\]/\\&/g
10472: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10473: D["\1"]=" \3"/p
10474: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10475: d
10476: :bsnl
10477: s/["\\]/\\&/g
10478: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10479: D["\1"]=" \3\\\\\\n"\\/p
10480: t cont
10481: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10482: t cont
10483: d
10484: :cont
10485: n
10486: s/.\{148\}/&'"$ac_delim"'/g
10487: t clear
10488: :clear
10489: s/\\$//
10490: t bsnlc
10491: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10492: d
10493: :bsnlc
10494: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10495: b cont
10496: ' <confdefs.h | sed '
10497: s/'"$ac_delim"'/"\\\
10498: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10499:
10500: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10501: for (key in D) D_is_set[key] = 1
10502: FS = ""
10503: }
10504: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10505: line = \$ 0
10506: split(line, arg, " ")
10507: if (arg[1] == "#") {
10508: defundef = arg[2]
10509: mac1 = arg[3]
10510: } else {
10511: defundef = substr(arg[1], 2)
10512: mac1 = arg[2]
10513: }
10514: split(mac1, mac2, "(") #)
10515: macro = mac2[1]
10516: prefix = substr(line, 1, index(line, defundef) - 1)
10517: if (D_is_set[macro]) {
10518: # Preserve the white space surrounding the "#".
10519: print prefix "define", macro P[macro] D[macro]
10520: next
10521: } else {
10522: # Replace #undef with comments. This is necessary, for example,
10523: # in the case of _POSIX_SOURCE, which is predefined and required
10524: # on some systems where configure will not decide to define it.
10525: if (defundef == "undef") {
10526: print "/*", prefix defundef, macro, "*/"
10527: next
10528: }
10529: }
10530: }
10531: { print }
10532: _ACAWK
10533: _ACEOF
10534: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10535: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10536: fi # test -n "$CONFIG_HEADERS"
10537:
10538:
10539: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10540: shift
10541: for ac_tag
10542: do
10543: case $ac_tag in
10544: :[FHLC]) ac_mode=$ac_tag; continue;;
10545: esac
10546: case $ac_mode$ac_tag in
10547: :[FHL]*:*);;
10548: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10549: :[FH]-) ac_tag=-:-;;
10550: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10551: esac
10552: ac_save_IFS=$IFS
10553: IFS=:
10554: set x $ac_tag
10555: IFS=$ac_save_IFS
10556: shift
10557: ac_file=$1
10558: shift
10559:
10560: case $ac_mode in
10561: :L) ac_source=$1;;
10562: :[FH])
10563: ac_file_inputs=
10564: for ac_f
10565: do
10566: case $ac_f in
10567: -) ac_f="$ac_tmp/stdin";;
10568: *) # Look for the file first in the build tree, then in the source tree
10569: # (if the path is not absolute). The absolute path cannot be DOS-style,
10570: # because $ac_f cannot contain `:'.
10571: test -f "$ac_f" ||
10572: case $ac_f in
10573: [\\/$]*) false;;
10574: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10575: esac ||
10576: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10577: esac
10578: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10579: as_fn_append ac_file_inputs " '$ac_f'"
10580: done
10581:
10582: # Let's still pretend it is `configure' which instantiates (i.e., don't
10583: # use $as_me), people would be surprised to read:
10584: # /* config.h. Generated by config.status. */
10585: configure_input='Generated from '`
10586: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10587: `' by configure.'
10588: if test x"$ac_file" != x-; then
10589: configure_input="$ac_file. $configure_input"
10590: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10591: $as_echo "$as_me: creating $ac_file" >&6;}
10592: fi
10593: # Neutralize special characters interpreted by sed in replacement strings.
10594: case $configure_input in #(
10595: *\&* | *\|* | *\\* )
10596: ac_sed_conf_input=`$as_echo "$configure_input" |
10597: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10598: *) ac_sed_conf_input=$configure_input;;
10599: esac
10600:
10601: case $ac_tag in
10602: *:-:* | *:-) cat >"$ac_tmp/stdin" \
10603: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10604: esac
10605: ;;
10606: esac
10607:
10608: ac_dir=`$as_dirname -- "$ac_file" ||
10609: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10610: X"$ac_file" : 'X\(//\)[^/]' \| \
10611: X"$ac_file" : 'X\(//\)$' \| \
10612: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10613: $as_echo X"$ac_file" |
10614: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10615: s//\1/
10616: q
10617: }
10618: /^X\(\/\/\)[^/].*/{
10619: s//\1/
10620: q
10621: }
10622: /^X\(\/\/\)$/{
10623: s//\1/
10624: q
10625: }
10626: /^X\(\/\).*/{
10627: s//\1/
10628: q
10629: }
10630: s/.*/./; q'`
10631: as_dir="$ac_dir"; as_fn_mkdir_p
10632: ac_builddir=.
10633:
10634: case "$ac_dir" in
10635: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10636: *)
10637: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10638: # A ".." for each directory in $ac_dir_suffix.
10639: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10640: case $ac_top_builddir_sub in
10641: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10642: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10643: esac ;;
10644: esac
10645: ac_abs_top_builddir=$ac_pwd
10646: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10647: # for backward compatibility:
10648: ac_top_builddir=$ac_top_build_prefix
10649:
10650: case $srcdir in
10651: .) # We are building in place.
10652: ac_srcdir=.
10653: ac_top_srcdir=$ac_top_builddir_sub
10654: ac_abs_top_srcdir=$ac_pwd ;;
10655: [\\/]* | ?:[\\/]* ) # Absolute name.
10656: ac_srcdir=$srcdir$ac_dir_suffix;
10657: ac_top_srcdir=$srcdir
10658: ac_abs_top_srcdir=$srcdir ;;
10659: *) # Relative name.
10660: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10661: ac_top_srcdir=$ac_top_build_prefix$srcdir
10662: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10663: esac
10664: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10665:
10666:
10667: case $ac_mode in
10668: :F)
10669: #
10670: # CONFIG_FILE
10671: #
10672:
10673: case $INSTALL in
10674: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10675: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10676: esac
10677: ac_MKDIR_P=$MKDIR_P
10678: case $MKDIR_P in
10679: [\\/$]* | ?:[\\/]* ) ;;
10680: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10681: esac
10682: _ACEOF
10683:
10684: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10685: # If the template does not know about datarootdir, expand it.
10686: # FIXME: This hack should be removed a few years after 2.60.
10687: ac_datarootdir_hack=; ac_datarootdir_seen=
10688: ac_sed_dataroot='
10689: /datarootdir/ {
10690: p
10691: q
10692: }
10693: /@datadir@/p
10694: /@docdir@/p
10695: /@infodir@/p
10696: /@localedir@/p
10697: /@mandir@/p'
10698: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10699: *datarootdir*) ac_datarootdir_seen=yes;;
10700: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10701: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10702: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10703: _ACEOF
10704: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10705: ac_datarootdir_hack='
10706: s&@datadir@&$datadir&g
10707: s&@docdir@&$docdir&g
10708: s&@infodir@&$infodir&g
10709: s&@localedir@&$localedir&g
10710: s&@mandir@&$mandir&g
10711: s&\\\${datarootdir}&$datarootdir&g' ;;
10712: esac
10713: _ACEOF
10714:
10715: # Neutralize VPATH when `$srcdir' = `.'.
10716: # Shell code in configure.ac might set extrasub.
10717: # FIXME: do we really want to maintain this feature?
10718: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10719: ac_sed_extra="$ac_vpsub
10720: $extrasub
10721: _ACEOF
10722: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10723: :t
10724: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10725: s|@configure_input@|$ac_sed_conf_input|;t t
10726: s&@top_builddir@&$ac_top_builddir_sub&;t t
10727: s&@top_build_prefix@&$ac_top_build_prefix&;t t
10728: s&@srcdir@&$ac_srcdir&;t t
10729: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10730: s&@top_srcdir@&$ac_top_srcdir&;t t
10731: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10732: s&@builddir@&$ac_builddir&;t t
10733: s&@abs_builddir@&$ac_abs_builddir&;t t
10734: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10735: s&@INSTALL@&$ac_INSTALL&;t t
10736: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10737: $ac_datarootdir_hack
10738: "
10739: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10740: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10741:
10742: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10743: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10744: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10745: "$ac_tmp/out"`; test -z "$ac_out"; } &&
10746: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10747: which seems to be undefined. Please make sure it is defined" >&5
10748: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10749: which seems to be undefined. Please make sure it is defined" >&2;}
10750:
10751: rm -f "$ac_tmp/stdin"
10752: case $ac_file in
10753: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10754: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10755: esac \
10756: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10757: ;;
10758: :H)
10759: #
10760: # CONFIG_HEADER
10761: #
10762: if test x"$ac_file" != x-; then
10763: {
10764: $as_echo "/* $configure_input */" \
10765: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10766: } >"$ac_tmp/config.h" \
10767: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10768: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10769: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10770: $as_echo "$as_me: $ac_file is unchanged" >&6;}
10771: else
10772: rm -f "$ac_file"
10773: mv "$ac_tmp/config.h" "$ac_file" \
10774: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10775: fi
10776: else
10777: $as_echo "/* $configure_input */" \
10778: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10779: || as_fn_error $? "could not create -" "$LINENO" 5
10780: fi
10781: # Compute "$ac_file"'s index in $config_headers.
10782: _am_arg="$ac_file"
10783: _am_stamp_count=1
10784: for _am_header in $config_headers :; do
10785: case $_am_header in
10786: $_am_arg | $_am_arg:* )
10787: break ;;
10788: * )
10789: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10790: esac
10791: done
10792: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10793: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10794: X"$_am_arg" : 'X\(//\)[^/]' \| \
10795: X"$_am_arg" : 'X\(//\)$' \| \
10796: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10797: $as_echo X"$_am_arg" |
10798: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10799: s//\1/
10800: q
10801: }
10802: /^X\(\/\/\)[^/].*/{
10803: s//\1/
10804: q
10805: }
10806: /^X\(\/\/\)$/{
10807: s//\1/
10808: q
10809: }
10810: /^X\(\/\).*/{
10811: s//\1/
10812: q
10813: }
10814: s/.*/./; q'`/stamp-h$_am_stamp_count
10815: ;;
10816:
10817: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10818: $as_echo "$as_me: executing $ac_file commands" >&6;}
10819: ;;
10820: esac
10821:
10822:
10823: case $ac_file$ac_mode in
10824: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10825: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10826: # are listed without --file. Let's play safe and only enable the eval
10827: # if we detect the quoting.
10828: case $CONFIG_FILES in
10829: *\'*) eval set x "$CONFIG_FILES" ;;
10830: *) set x $CONFIG_FILES ;;
10831: esac
10832: shift
10833: for mf
10834: do
10835: # Strip MF so we end up with the name of the file.
10836: mf=`echo "$mf" | sed -e 's/:.*$//'`
10837: # Check whether this is an Automake generated Makefile or not.
10838: # We used to match only the files named `Makefile.in', but
10839: # some people rename them; so instead we look at the file content.
10840: # Grep'ing the first line is not enough: some people post-process
10841: # each Makefile.in and add a new line on top of each file to say so.
10842: # Grep'ing the whole file is not good either: AIX grep has a line
10843: # limit of 2048, but all sed's we know have understand at least 4000.
10844: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10845: dirpart=`$as_dirname -- "$mf" ||
10846: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10847: X"$mf" : 'X\(//\)[^/]' \| \
10848: X"$mf" : 'X\(//\)$' \| \
10849: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10850: $as_echo X"$mf" |
10851: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10852: s//\1/
10853: q
10854: }
10855: /^X\(\/\/\)[^/].*/{
10856: s//\1/
10857: q
10858: }
10859: /^X\(\/\/\)$/{
10860: s//\1/
10861: q
10862: }
10863: /^X\(\/\).*/{
10864: s//\1/
10865: q
10866: }
10867: s/.*/./; q'`
10868: else
10869: continue
10870: fi
10871: # Extract the definition of DEPDIR, am__include, and am__quote
10872: # from the Makefile without running `make'.
10873: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10874: test -z "$DEPDIR" && continue
10875: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10876: test -z "am__include" && continue
10877: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10878: # When using ansi2knr, U may be empty or an underscore; expand it
10879: U=`sed -n 's/^U = //p' < "$mf"`
10880: # Find all dependency output files, they are included files with
10881: # $(DEPDIR) in their names. We invoke sed twice because it is the
10882: # simplest approach to changing $(DEPDIR) to its actual value in the
10883: # expansion.
10884: for file in `sed -n "
10885: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10886: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10887: # Make sure the directory exists.
10888: test -f "$dirpart/$file" && continue
10889: fdir=`$as_dirname -- "$file" ||
10890: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10891: X"$file" : 'X\(//\)[^/]' \| \
10892: X"$file" : 'X\(//\)$' \| \
10893: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10894: $as_echo X"$file" |
10895: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10896: s//\1/
10897: q
10898: }
10899: /^X\(\/\/\)[^/].*/{
10900: s//\1/
10901: q
10902: }
10903: /^X\(\/\/\)$/{
10904: s//\1/
10905: q
10906: }
10907: /^X\(\/\).*/{
10908: s//\1/
10909: q
10910: }
10911: s/.*/./; q'`
10912: as_dir=$dirpart/$fdir; as_fn_mkdir_p
10913: # echo "creating $dirpart/$file"
10914: echo '# dummy' > "$dirpart/$file"
10915: done
10916: done
10917: }
10918: ;;
10919:
10920: esac
10921: done # for ac_tag
10922:
10923:
10924: as_fn_exit 0
10925: _ACEOF
10926: ac_clean_files=$ac_clean_files_save
10927:
10928: test $ac_write_fail = 0 ||
10929: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10930:
10931:
10932: # configure is writing to config.log, and then calls config.status.
10933: # config.status does its own redirection, appending to config.log.
10934: # Unfortunately, on DOS this fails, as config.log is still kept open
10935: # by configure, so config.status won't be able to write to it; its
10936: # output is simply discarded. So we exec the FD to /dev/null,
10937: # effectively closing config.log, so it can be properly (re)opened and
10938: # appended to by config.status. When coming back to configure, we
10939: # need to make the FD available again.
10940: if test "$no_create" != yes; then
10941: ac_cs_success=:
10942: ac_config_status_args=
10943: test "$silent" = yes &&
10944: ac_config_status_args="$ac_config_status_args --quiet"
10945: exec 5>/dev/null
10946: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10947: exec 5>>config.log
10948: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10949: # would make configure fail if this is the last instruction.
10950: $ac_cs_success || as_fn_exit 1
10951: fi
10952:
10953: #
10954: # CONFIG_SUBDIRS section.
10955: #
10956: if test "$no_recursion" != yes; then
10957:
10958: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10959: # so they do not pile up.
10960: ac_sub_configure_args=
10961: ac_prev=
10962: eval "set x $ac_configure_args"
10963: shift
10964: for ac_arg
10965: do
10966: if test -n "$ac_prev"; then
10967: ac_prev=
10968: continue
10969: fi
10970: case $ac_arg in
10971: -cache-file | --cache-file | --cache-fil | --cache-fi \
10972: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10973: ac_prev=cache_file ;;
10974: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10975: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10976: | --c=*)
10977: ;;
10978: --config-cache | -C)
10979: ;;
10980: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10981: ac_prev=srcdir ;;
10982: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10983: ;;
10984: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10985: ac_prev=prefix ;;
10986: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10987: ;;
10988: --disable-option-checking)
10989: ;;
10990: *)
10991: case $ac_arg in
10992: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10993: esac
10994: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10995: esac
10996: done
10997:
10998: # Always prepend --prefix to ensure using the same prefix
10999: # in subdir configurations.
11000: ac_arg="--prefix=$prefix"
11001: case $ac_arg in
11002: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11003: esac
11004: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
11005:
11006: # Pass --silent
11007: if test "$silent" = yes; then
11008: ac_sub_configure_args="--silent $ac_sub_configure_args"
11009: fi
11010:
11011: # Always prepend --disable-option-checking to silence warnings, since
11012: # different subdirs can have different --enable and --with options.
11013: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11014:
11015: ac_popdir=`pwd`
11016: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11017:
11018: # Do not complain, so a configure script can configure whichever
11019: # parts of a large source tree are present.
11020: test -d "$srcdir/$ac_dir" || continue
11021:
11022: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
11023: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11024: $as_echo "$ac_msg" >&6
11025: as_dir="$ac_dir"; as_fn_mkdir_p
11026: ac_builddir=.
11027:
11028: case "$ac_dir" in
11029: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11030: *)
11031: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11032: # A ".." for each directory in $ac_dir_suffix.
11033: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11034: case $ac_top_builddir_sub in
11035: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11036: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11037: esac ;;
11038: esac
11039: ac_abs_top_builddir=$ac_pwd
11040: ac_abs_builddir=$ac_pwd$ac_dir_suffix
11041: # for backward compatibility:
11042: ac_top_builddir=$ac_top_build_prefix
11043:
11044: case $srcdir in
11045: .) # We are building in place.
11046: ac_srcdir=.
11047: ac_top_srcdir=$ac_top_builddir_sub
11048: ac_abs_top_srcdir=$ac_pwd ;;
11049: [\\/]* | ?:[\\/]* ) # Absolute name.
11050: ac_srcdir=$srcdir$ac_dir_suffix;
11051: ac_top_srcdir=$srcdir
11052: ac_abs_top_srcdir=$srcdir ;;
11053: *) # Relative name.
11054: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11055: ac_top_srcdir=$ac_top_build_prefix$srcdir
11056: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11057: esac
11058: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11059:
11060:
11061: cd "$ac_dir"
11062:
11063: # Check for guested configure; otherwise get Cygnus style configure.
11064: if test -f "$ac_srcdir/configure.gnu"; then
11065: ac_sub_configure=$ac_srcdir/configure.gnu
11066: elif test -f "$ac_srcdir/configure"; then
11067: ac_sub_configure=$ac_srcdir/configure
11068: elif test -f "$ac_srcdir/configure.in"; then
11069: # This should be Cygnus configure.
11070: ac_sub_configure=$ac_aux_dir/configure
11071: else
11072: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11073: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
11074: ac_sub_configure=
11075: fi
11076:
11077: # The recursion is here.
11078: if test -n "$ac_sub_configure"; then
11079: # Make the cache file name correct relative to the subdirectory.
11080: case $cache_file in
11081: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11082: *) # Relative name.
11083: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11084: esac
11085:
11086: { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
11087: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
11088: # The eval makes quoting arguments work.
11089: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11090: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
11091: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
11092: fi
11093:
11094: cd "$ac_popdir"
11095: done
11096: fi
11097: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11098: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11099: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11100: fi
11101:
CVSweb interface <joel.bertrand@systella.fr>