Annotation of rpl/configure, revision 1.64
1.1 bertrand 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.63 bertrand 3: # Generated by GNU Autoconf 2.68 for rpl 4.1.0.
1.15 bertrand 4: #
1.1 bertrand 5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.36 bertrand 7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8: # Foundation, Inc.
1.15 bertrand 9: #
10: #
1.1 bertrand 11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
1.15 bertrand 13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
1.1 bertrand 16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
1.15 bertrand 19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 bertrand 20: emulate sh
21: NULLCMD=:
1.15 bertrand 22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1 bertrand 23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
1.15 bertrand 27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
1.1 bertrand 32: esac
33: fi
34:
35:
1.15 bertrand 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
1.14 bertrand 73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
1.15 bertrand 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: }
1.1 bertrand 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.
1.57 bertrand 92: as_myself=
1.15 bertrand 93: case $0 in #((
1.1 bertrand 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=.
1.15 bertrand 100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101: done
1.1 bertrand 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
1.15 bertrand 112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113: exit 1
1.1 bertrand 114: fi
115:
1.15 bertrand 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 || :
1.1 bertrand 123: done
124: PS1='$ '
125: PS2='> '
126: PS4='+ '
127:
128: # NLS nuisances.
1.15 bertrand 129: LC_ALL=C
130: export LC_ALL
131: LANGUAGE=C
132: export LANGUAGE
1.1 bertrand 133:
134: # CDPATH.
1.15 bertrand 135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1 bertrand 136:
137: if test "x$CONFIG_SHELL" = x; then
1.15 bertrand 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
1.1 bertrand 145: else
1.15 bertrand 146: case \`(set -o) 2>/dev/null\` in #(
147: *posix*) :
148: set -o posix ;; #(
149: *) :
150: ;;
151: esac
1.1 bertrand 152: fi
1.15 bertrand 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; }
1.1 bertrand 159:
160: exitcode=0
1.15 bertrand 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
1.14 bertrand 178: else
1.15 bertrand 179: as_have_required=no
1.14 bertrand 180: fi
1.15 bertrand 181: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.14 bertrand 182:
183: else
1.15 bertrand 184: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185: as_found=false
1.1 bertrand 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=.
1.15 bertrand 190: as_found=:
191: case $as_dir in #(
1.1 bertrand 192: /*)
193: for as_base in sh bash ksh sh5; do
1.15 bertrand 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
1.1 bertrand 203: done;;
204: esac
1.15 bertrand 205: as_found=false
1.1 bertrand 206: done
1.15 bertrand 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; }
1.1 bertrand 211: IFS=$as_save_IFS
212:
213:
1.15 bertrand 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.
1.57 bertrand 218: # Preserve -v and -x to the replacement shell.
1.15 bertrand 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
1.57 bertrand 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+"$@"}
1.15 bertrand 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
1.1 bertrand 246: fi
247: fi
1.15 bertrand 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
1.14 bertrand 253:
1.15 bertrand 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: {
1.14 bertrand 289:
1.15 bertrand 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"
1.36 bertrand 327: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1 bertrand 328:
329:
1.15 bertrand 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: }'
1.14 bertrand 342: else
1.15 bertrand 343: as_fn_append ()
344: {
345: eval $1=\$$1\$2
346: }
347: fi # as_fn_append
1.1 bertrand 348:
1.15 bertrand 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: }'
1.1 bertrand 359: else
1.15 bertrand 360: as_fn_arith ()
361: {
362: as_val=`expr "$@" || test $? -eq 1`
363: }
364: fi # as_fn_arith
1.14 bertrand 365:
366:
1.36 bertrand 367: # as_fn_error STATUS ERROR [LINENO LOG_FD]
368: # ----------------------------------------
1.15 bertrand 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
1.36 bertrand 371: # script with STATUS, using 1 if that was 0.
1.15 bertrand 372: as_fn_error ()
373: {
1.36 bertrand 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
1.15 bertrand 378: fi
1.36 bertrand 379: $as_echo "$as_me: error: $2" >&2
1.15 bertrand 380: as_fn_exit $as_status
381: } # as_fn_error
1.14 bertrand 382:
1.15 bertrand 383: if expr a : '\(a\)' >/dev/null 2>&1 &&
384: test "X`expr 00001 : '.*\(...\)'`" = X001; then
385: as_expr=expr
1.1 bertrand 386: else
1.15 bertrand 387: as_expr=false
1.14 bertrand 388: fi
389:
1.15 bertrand 390: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391: as_basename=basename
1.1 bertrand 392: else
1.15 bertrand 393: as_basename=false
1.14 bertrand 394: fi
395:
1.15 bertrand 396: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397: as_dirname=dirname
1.1 bertrand 398: else
1.15 bertrand 399: as_dirname=false
1.1 bertrand 400: fi
401:
1.15 bertrand 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'`
1.1 bertrand 420:
1.15 bertrand 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
1.1 bertrand 427:
428:
1.15 bertrand 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. :-)
1.1 bertrand 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" ||
1.15 bertrand 450: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1 bertrand 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:
1.15 bertrand 460: ECHO_C= ECHO_N= ECHO_T=
461: case `echo -n x` in #(((((
462: -n*)
463: case `echo 'xy\c'` in
1.1 bertrand 464: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.15 bertrand 465: xy) ECHO_C='\c';;
466: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467: ECHO_T=' ';;
1.1 bertrand 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
1.15 bertrand 478: mkdir conf$$.dir 2>/dev/null
1.1 bertrand 479: fi
1.15 bertrand 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
1.1 bertrand 492: as_ln_s='cp -p'
1.15 bertrand 493: fi
1.1 bertrand 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
1.15 bertrand 501: as_mkdir_p='mkdir -p "$as_dir"'
1.1 bertrand 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
1.15 bertrand 518: test -d "$1/.";
1.1 bertrand 519: else
1.15 bertrand 520: case $1 in #(
521: -*)set "./$1";;
1.1 bertrand 522: esac;
1.15 bertrand 523: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1 bertrand 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:
1.15 bertrand 537: test -n "$DJDIR" || exec 7<&0 </dev/null
538: exec 6>&1
1.1 bertrand 539:
540: # Name of the host.
1.36 bertrand 541: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1 bertrand 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'
1.63 bertrand 560: PACKAGE_VERSION='4.1.0'
561: PACKAGE_STRING='rpl 4.1.0'
1.1 bertrand 562: PACKAGE_BUGREPORT=''
1.15 bertrand 563: PACKAGE_URL=''
1.1 bertrand 564:
565: ac_default_prefix=/usr/local
566: # Factoring default headers for most tests.
567: ac_includes_default="\
568: #include <stdio.h>
569: #ifdef HAVE_SYS_TYPES_H
570: # include <sys/types.h>
571: #endif
572: #ifdef HAVE_SYS_STAT_H
573: # include <sys/stat.h>
574: #endif
575: #ifdef STDC_HEADERS
576: # include <stdlib.h>
577: # include <stddef.h>
578: #else
579: # ifdef HAVE_STDLIB_H
580: # include <stdlib.h>
581: # endif
582: #endif
583: #ifdef HAVE_STRING_H
584: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585: # include <memory.h>
586: # endif
587: # include <string.h>
588: #endif
589: #ifdef HAVE_STRINGS_H
590: # include <strings.h>
591: #endif
592: #ifdef HAVE_INTTYPES_H
593: # include <inttypes.h>
594: #endif
595: #ifdef HAVE_STDINT_H
596: # include <stdint.h>
597: #endif
598: #ifdef HAVE_UNISTD_H
599: # include <unistd.h>
600: #endif"
601:
1.15 bertrand 602: enable_option_checking=no
603: ac_subst_vars='am__EXEEXT_FALSE
604: am__EXEEXT_TRUE
605: LTLIBOBJS
606: LIBOBJS
1.56 bertrand 607: GIAC
608: PARI
609: COCOA
610: NTL
1.55 bertrand 611: MPFR
612: GMP
1.49 bertrand 613: MALLOC
1.30 bertrand 614: EXT_SQL
1.15 bertrand 615: DATE_FR
616: FINAL_ENCODING
617: OPENSSL
618: SQLITE
619: ICONV
620: FILE
621: GNUPLOT
622: GPP
623: GSL
624: UNITS
625: READLINE
626: NCURSES
1.40 bertrand 627: BSH_PATH
1.35 bertrand 628: BROKEN_SIGINFO
1.34 bertrand 629: IPV6
1.33 bertrand 630: SEMUN
1.36 bertrand 631: IPCS_SYSV
1.17 bertrand 632: SEMAPHORES_NOMMES
633: NESTED_FUNCTIONS
634: EXPORT_DYNAMIC
1.33 bertrand 635: C_STANDARD
1.15 bertrand 636: OS
637: GNUPLOT_COMPILATION
638: subdirs
639: EGREP
640: GREP
641: libPgSQLlib
642: libPgSQLinc
643: POSTGRESQL_SUPPORT
644: libMySQLlib
645: libMySQLinc
646: MYSQL_SUPPORT
647: DATE
648: includeX
649: libX
650: MOTIF_SUPPORT
651: DEBUG
652: EXPERIMENTAL_CODE
653: VIM_SUPPORT
654: POSTSCRIPT_SUPPORT
655: FORCE_GNUPLOT_PATH
656: GNUPLOT_SUPPORT
657: VIM
658: GNUPLOT_P
659: GV
660: GS
661: DVIPS
662: LATEX
663: TEX
664: SED
665: RANLIB
666: LN_S
667: RUNPATH
668: PROFILAGE
669: X_EXTRA_LIBS
670: X_LIBS
671: X_PRE_LIBS
672: X_CFLAGS
673: CPP
674: XMKMF
675: ac_ct_FC
676: FCFLAGS
677: FC
678: ac_ct_F77
679: FFLAGS
680: F77
681: am__fastdepCXX_FALSE
682: am__fastdepCXX_TRUE
683: CXXDEPMODE
684: ac_ct_CXX
685: CXXFLAGS
686: CXX
687: am__fastdepCC_FALSE
688: am__fastdepCC_TRUE
689: CCDEPMODE
690: AMDEPBACKSLASH
691: AMDEP_FALSE
692: AMDEP_TRUE
693: am__quote
694: am__include
695: DEPDIR
696: OBJEXT
697: EXEEXT
698: ac_ct_CC
699: CPPFLAGS
700: LDFLAGS
701: CFLAGS
702: CC
703: am__untar
704: am__tar
705: AMTAR
706: am__leading_dot
707: SET_MAKE
708: AWK
709: mkdir_p
710: MKDIR_P
711: INSTALL_STRIP_PROGRAM
712: STRIP
713: install_sh
714: MAKEINFO
715: AUTOHEADER
716: AUTOMAKE
717: AUTOCONF
718: ACLOCAL
719: VERSION
720: PACKAGE
721: CYGPATH_W
722: am__isrc
723: INSTALL_DATA
724: INSTALL_SCRIPT
725: INSTALL_PROGRAM
726: target_os
727: target_vendor
728: target_cpu
729: target
730: host_os
731: host_vendor
732: host_cpu
733: host
734: build_os
735: build_vendor
736: build_cpu
737: build
738: target_alias
739: host_alias
740: build_alias
741: LIBS
742: ECHO_T
743: ECHO_N
744: ECHO_C
745: DEFS
746: mandir
747: localedir
748: libdir
749: psdir
750: pdfdir
751: dvidir
752: htmldir
753: infodir
754: docdir
755: oldincludedir
756: includedir
757: localstatedir
758: sharedstatedir
759: sysconfdir
760: datadir
761: datarootdir
762: libexecdir
763: sbindir
764: bindir
765: program_transform_name
766: prefix
767: exec_prefix
768: PACKAGE_URL
769: PACKAGE_BUGREPORT
770: PACKAGE_STRING
771: PACKAGE_VERSION
772: PACKAGE_TARNAME
773: PACKAGE_NAME
1.14 bertrand 774: PATH_SEPARATOR
1.15 bertrand 775: SHELL'
776: ac_subst_files=''
777: ac_user_opts='
778: enable_option_checking
779: enable_dependency_tracking
780: with_x
1.64 ! bertrand 781: with_32bits
1.15 bertrand 782: enable_optimization
1.36 bertrand 783: enable_sysv_semaphores
1.30 bertrand 784: enable_full_static
1.15 bertrand 785: enable_final_encoding
786: enable_tex
787: enable_vim
788: enable_embedded_gnuplot
789: enable_gnuplot
790: enable_motif
791: enable_experimental
792: enable_debug
793: enable_profile
794: enable_final_run_path
795: with_mysql
796: with_postgresql
1.40 bertrand 797: with_bourne_shell
1.15 bertrand 798: with_openssl_arch
799: '
800: ac_precious_vars='build_alias
1.1 bertrand 801: host_alias
802: target_alias
803: CC
804: CFLAGS
805: LDFLAGS
1.15 bertrand 806: LIBS
1.1 bertrand 807: CPPFLAGS
808: CXX
809: CXXFLAGS
1.15 bertrand 810: CCC
1.1 bertrand 811: F77
812: FFLAGS
813: FC
814: FCFLAGS
815: XMKMF
816: CPP'
817: ac_subdirs_all='tools/$NCURSES
818: tools/$READLINE
819: tools/$GSL
820: tools/$GPP
821: tools/$FILE
822: tools/$ICONV
1.9 bertrand 823: tools/$SQLITE
1.17 bertrand 824: tools/$UNITS
1.1 bertrand 825: tools/$GNUPLOT'
826:
827: # Initialize some variables set by options.
828: ac_init_help=
829: ac_init_version=false
1.15 bertrand 830: ac_unrecognized_opts=
831: ac_unrecognized_sep=
1.1 bertrand 832: # The variables have the same names as the options, with
833: # dashes changed to underlines.
834: cache_file=/dev/null
835: exec_prefix=NONE
836: no_create=
837: no_recursion=
838: prefix=NONE
839: program_prefix=NONE
840: program_suffix=NONE
841: program_transform_name=s,x,x,
842: silent=
843: site=
844: srcdir=
845: verbose=
846: x_includes=NONE
847: x_libraries=NONE
848:
849: # Installation directory options.
850: # These are left unexpanded so users can "make install exec_prefix=/foo"
851: # and all the variables that are supposed to be based on exec_prefix
852: # by default will actually change.
853: # Use braces instead of parens because sh, perl, etc. also accept them.
854: # (The list follows the same order as the GNU Coding Standards.)
855: bindir='${exec_prefix}/bin'
856: sbindir='${exec_prefix}/sbin'
857: libexecdir='${exec_prefix}/libexec'
858: datarootdir='${prefix}/share'
859: datadir='${datarootdir}'
860: sysconfdir='${prefix}/etc'
861: sharedstatedir='${prefix}/com'
862: localstatedir='${prefix}/var'
863: includedir='${prefix}/include'
864: oldincludedir='/usr/include'
865: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
866: infodir='${datarootdir}/info'
867: htmldir='${docdir}'
868: dvidir='${docdir}'
869: pdfdir='${docdir}'
870: psdir='${docdir}'
871: libdir='${exec_prefix}/lib'
872: localedir='${datarootdir}/locale'
873: mandir='${datarootdir}/man'
874:
875: ac_prev=
876: ac_dashdash=
877: for ac_option
878: do
879: # If the previous option needs an argument, assign it.
880: if test -n "$ac_prev"; then
881: eval $ac_prev=\$ac_option
882: ac_prev=
883: continue
884: fi
885:
886: case $ac_option in
1.36 bertrand 887: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888: *=) ac_optarg= ;;
889: *) ac_optarg=yes ;;
1.1 bertrand 890: esac
891:
892: # Accept the important Cygnus configure options, so we can diagnose typos.
893:
894: case $ac_dashdash$ac_option in
895: --)
896: ac_dashdash=yes ;;
897:
898: -bindir | --bindir | --bindi | --bind | --bin | --bi)
899: ac_prev=bindir ;;
900: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
901: bindir=$ac_optarg ;;
902:
903: -build | --build | --buil | --bui | --bu)
904: ac_prev=build_alias ;;
905: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
906: build_alias=$ac_optarg ;;
907:
908: -cache-file | --cache-file | --cache-fil | --cache-fi \
909: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910: ac_prev=cache_file ;;
911: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
913: cache_file=$ac_optarg ;;
914:
915: --config-cache | -C)
916: cache_file=config.cache ;;
917:
918: -datadir | --datadir | --datadi | --datad)
919: ac_prev=datadir ;;
920: -datadir=* | --datadir=* | --datadi=* | --datad=*)
921: datadir=$ac_optarg ;;
922:
923: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924: | --dataroo | --dataro | --datar)
925: ac_prev=datarootdir ;;
926: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928: datarootdir=$ac_optarg ;;
929:
930: -disable-* | --disable-*)
1.15 bertrand 931: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 bertrand 932: # Reject names that are not valid shell variable names.
1.15 bertrand 933: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 934: as_fn_error $? "invalid feature name: $ac_useropt"
1.15 bertrand 935: ac_useropt_orig=$ac_useropt
936: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937: case $ac_user_opts in
938: *"
939: "enable_$ac_useropt"
940: "*) ;;
941: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942: ac_unrecognized_sep=', ';;
943: esac
944: eval enable_$ac_useropt=no ;;
1.1 bertrand 945:
946: -docdir | --docdir | --docdi | --doc | --do)
947: ac_prev=docdir ;;
948: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949: docdir=$ac_optarg ;;
950:
951: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952: ac_prev=dvidir ;;
953: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954: dvidir=$ac_optarg ;;
955:
956: -enable-* | --enable-*)
1.15 bertrand 957: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 bertrand 958: # Reject names that are not valid shell variable names.
1.15 bertrand 959: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 960: as_fn_error $? "invalid feature name: $ac_useropt"
1.15 bertrand 961: ac_useropt_orig=$ac_useropt
962: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963: case $ac_user_opts in
964: *"
965: "enable_$ac_useropt"
966: "*) ;;
967: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968: ac_unrecognized_sep=', ';;
969: esac
970: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 bertrand 971:
972: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974: | --exec | --exe | --ex)
975: ac_prev=exec_prefix ;;
976: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978: | --exec=* | --exe=* | --ex=*)
979: exec_prefix=$ac_optarg ;;
980:
981: -gas | --gas | --ga | --g)
982: # Obsolete; use --with-gas.
983: with_gas=yes ;;
984:
985: -help | --help | --hel | --he | -h)
986: ac_init_help=long ;;
987: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988: ac_init_help=recursive ;;
989: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990: ac_init_help=short ;;
991:
992: -host | --host | --hos | --ho)
993: ac_prev=host_alias ;;
994: -host=* | --host=* | --hos=* | --ho=*)
995: host_alias=$ac_optarg ;;
996:
997: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998: ac_prev=htmldir ;;
999: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000: | --ht=*)
1001: htmldir=$ac_optarg ;;
1002:
1003: -includedir | --includedir | --includedi | --included | --include \
1004: | --includ | --inclu | --incl | --inc)
1005: ac_prev=includedir ;;
1006: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007: | --includ=* | --inclu=* | --incl=* | --inc=*)
1008: includedir=$ac_optarg ;;
1009:
1010: -infodir | --infodir | --infodi | --infod | --info | --inf)
1011: ac_prev=infodir ;;
1012: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1013: infodir=$ac_optarg ;;
1014:
1015: -libdir | --libdir | --libdi | --libd)
1016: ac_prev=libdir ;;
1017: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1018: libdir=$ac_optarg ;;
1019:
1020: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021: | --libexe | --libex | --libe)
1022: ac_prev=libexecdir ;;
1023: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024: | --libexe=* | --libex=* | --libe=*)
1025: libexecdir=$ac_optarg ;;
1026:
1027: -localedir | --localedir | --localedi | --localed | --locale)
1028: ac_prev=localedir ;;
1029: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030: localedir=$ac_optarg ;;
1031:
1032: -localstatedir | --localstatedir | --localstatedi | --localstated \
1033: | --localstate | --localstat | --localsta | --localst | --locals)
1034: ac_prev=localstatedir ;;
1035: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1036: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1037: localstatedir=$ac_optarg ;;
1038:
1039: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040: ac_prev=mandir ;;
1041: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1042: mandir=$ac_optarg ;;
1043:
1044: -nfp | --nfp | --nf)
1045: # Obsolete; use --without-fp.
1046: with_fp=no ;;
1047:
1048: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1049: | --no-cr | --no-c | -n)
1050: no_create=yes ;;
1051:
1052: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054: no_recursion=yes ;;
1055:
1056: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058: | --oldin | --oldi | --old | --ol | --o)
1059: ac_prev=oldincludedir ;;
1060: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1063: oldincludedir=$ac_optarg ;;
1064:
1065: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066: ac_prev=prefix ;;
1067: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1068: prefix=$ac_optarg ;;
1069:
1070: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071: | --program-pre | --program-pr | --program-p)
1072: ac_prev=program_prefix ;;
1073: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1075: program_prefix=$ac_optarg ;;
1076:
1077: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078: | --program-suf | --program-su | --program-s)
1079: ac_prev=program_suffix ;;
1080: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1082: program_suffix=$ac_optarg ;;
1083:
1084: -program-transform-name | --program-transform-name \
1085: | --program-transform-nam | --program-transform-na \
1086: | --program-transform-n | --program-transform- \
1087: | --program-transform | --program-transfor \
1088: | --program-transfo | --program-transf \
1089: | --program-trans | --program-tran \
1090: | --progr-tra | --program-tr | --program-t)
1091: ac_prev=program_transform_name ;;
1092: -program-transform-name=* | --program-transform-name=* \
1093: | --program-transform-nam=* | --program-transform-na=* \
1094: | --program-transform-n=* | --program-transform-=* \
1095: | --program-transform=* | --program-transfor=* \
1096: | --program-transfo=* | --program-transf=* \
1097: | --program-trans=* | --program-tran=* \
1098: | --progr-tra=* | --program-tr=* | --program-t=*)
1099: program_transform_name=$ac_optarg ;;
1100:
1101: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102: ac_prev=pdfdir ;;
1103: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104: pdfdir=$ac_optarg ;;
1105:
1106: -psdir | --psdir | --psdi | --psd | --ps)
1107: ac_prev=psdir ;;
1108: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109: psdir=$ac_optarg ;;
1110:
1111: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112: | -silent | --silent | --silen | --sile | --sil)
1113: silent=yes ;;
1114:
1115: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116: ac_prev=sbindir ;;
1117: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118: | --sbi=* | --sb=*)
1119: sbindir=$ac_optarg ;;
1120:
1121: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123: | --sharedst | --shareds | --shared | --share | --shar \
1124: | --sha | --sh)
1125: ac_prev=sharedstatedir ;;
1126: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129: | --sha=* | --sh=*)
1130: sharedstatedir=$ac_optarg ;;
1131:
1132: -site | --site | --sit)
1133: ac_prev=site ;;
1134: -site=* | --site=* | --sit=*)
1135: site=$ac_optarg ;;
1136:
1137: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138: ac_prev=srcdir ;;
1139: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1140: srcdir=$ac_optarg ;;
1141:
1142: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143: | --syscon | --sysco | --sysc | --sys | --sy)
1144: ac_prev=sysconfdir ;;
1145: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1147: sysconfdir=$ac_optarg ;;
1148:
1149: -target | --target | --targe | --targ | --tar | --ta | --t)
1150: ac_prev=target_alias ;;
1151: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1152: target_alias=$ac_optarg ;;
1153:
1154: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155: verbose=yes ;;
1156:
1157: -version | --version | --versio | --versi | --vers | -V)
1158: ac_init_version=: ;;
1159:
1160: -with-* | --with-*)
1.15 bertrand 1161: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 bertrand 1162: # Reject names that are not valid shell variable names.
1.15 bertrand 1163: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 1164: as_fn_error $? "invalid package name: $ac_useropt"
1.15 bertrand 1165: ac_useropt_orig=$ac_useropt
1166: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167: case $ac_user_opts in
1168: *"
1169: "with_$ac_useropt"
1170: "*) ;;
1171: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172: ac_unrecognized_sep=', ';;
1173: esac
1174: eval with_$ac_useropt=\$ac_optarg ;;
1.1 bertrand 1175:
1176: -without-* | --without-*)
1.15 bertrand 1177: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 bertrand 1178: # Reject names that are not valid shell variable names.
1.15 bertrand 1179: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 1180: as_fn_error $? "invalid package name: $ac_useropt"
1.15 bertrand 1181: ac_useropt_orig=$ac_useropt
1182: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183: case $ac_user_opts in
1184: *"
1185: "with_$ac_useropt"
1186: "*) ;;
1187: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188: ac_unrecognized_sep=', ';;
1189: esac
1190: eval with_$ac_useropt=no ;;
1.1 bertrand 1191:
1192: --x)
1193: # Obsolete; use --with-x.
1194: with_x=yes ;;
1195:
1196: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197: | --x-incl | --x-inc | --x-in | --x-i)
1198: ac_prev=x_includes ;;
1199: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201: x_includes=$ac_optarg ;;
1202:
1203: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205: ac_prev=x_libraries ;;
1206: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208: x_libraries=$ac_optarg ;;
1209:
1.36 bertrand 1210: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1211: Try \`$0 --help' for more information"
1.1 bertrand 1212: ;;
1213:
1214: *=*)
1215: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216: # Reject names that are not valid shell variable names.
1.15 bertrand 1217: case $ac_envvar in #(
1218: '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36 bertrand 1219: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15 bertrand 1220: esac
1.1 bertrand 1221: eval $ac_envvar=\$ac_optarg
1222: export $ac_envvar ;;
1223:
1224: *)
1225: # FIXME: should be removed in autoconf 3.0.
1.15 bertrand 1226: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 bertrand 1227: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15 bertrand 1228: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.57 bertrand 1229: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 bertrand 1230: ;;
1231:
1232: esac
1233: done
1234:
1235: if test -n "$ac_prev"; then
1236: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36 bertrand 1237: as_fn_error $? "missing argument to $ac_option"
1.15 bertrand 1238: fi
1239:
1240: if test -n "$ac_unrecognized_opts"; then
1241: case $enable_option_checking in
1242: no) ;;
1.36 bertrand 1243: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15 bertrand 1244: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245: esac
1.1 bertrand 1246: fi
1247:
1.15 bertrand 1248: # Check all directory arguments for consistency.
1.1 bertrand 1249: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250: datadir sysconfdir sharedstatedir localstatedir includedir \
1251: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252: libdir localedir mandir
1253: do
1254: eval ac_val=\$$ac_var
1.15 bertrand 1255: # Remove trailing slashes.
1256: case $ac_val in
1257: */ )
1258: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259: eval $ac_var=\$ac_val;;
1260: esac
1261: # Be sure to have absolute directory names.
1.1 bertrand 1262: case $ac_val in
1263: [\\/$]* | ?:[\\/]* ) continue;;
1264: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265: esac
1.36 bertrand 1266: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 bertrand 1267: done
1268:
1269: # There might be people who depend on the old broken behavior: `$host'
1270: # used to hold the argument of --host etc.
1271: # FIXME: To remove some day.
1272: build=$build_alias
1273: host=$host_alias
1274: target=$target_alias
1275:
1276: # FIXME: To remove some day.
1277: if test "x$host_alias" != x; then
1278: if test "x$build_alias" = x; then
1279: cross_compiling=maybe
1.36 bertrand 1280: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1281: If a cross compiler is detected then cross compile mode will be used" >&2
1.1 bertrand 1282: elif test "x$build_alias" != "x$host_alias"; then
1283: cross_compiling=yes
1284: fi
1285: fi
1286:
1287: ac_tool_prefix=
1288: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289:
1290: test "$silent" = yes && exec 6>/dev/null
1291:
1292:
1293: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294: ac_ls_di=`ls -di .` &&
1295: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36 bertrand 1296: as_fn_error $? "working directory cannot be determined"
1.1 bertrand 1297: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36 bertrand 1298: as_fn_error $? "pwd does not report name of working directory"
1.1 bertrand 1299:
1300:
1301: # Find the source files, if location was not specified.
1302: if test -z "$srcdir"; then
1303: ac_srcdir_defaulted=yes
1304: # Try the directory containing this script, then the parent directory.
1.15 bertrand 1305: ac_confdir=`$as_dirname -- "$as_myself" ||
1306: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307: X"$as_myself" : 'X\(//\)[^/]' \| \
1308: X"$as_myself" : 'X\(//\)$' \| \
1309: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310: $as_echo X"$as_myself" |
1.1 bertrand 1311: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312: s//\1/
1313: q
1314: }
1315: /^X\(\/\/\)[^/].*/{
1316: s//\1/
1317: q
1318: }
1319: /^X\(\/\/\)$/{
1320: s//\1/
1321: q
1322: }
1323: /^X\(\/\).*/{
1324: s//\1/
1325: q
1326: }
1327: s/.*/./; q'`
1328: srcdir=$ac_confdir
1329: if test ! -r "$srcdir/$ac_unique_file"; then
1330: srcdir=..
1331: fi
1332: else
1333: ac_srcdir_defaulted=no
1334: fi
1335: if test ! -r "$srcdir/$ac_unique_file"; then
1336: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36 bertrand 1337: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1 bertrand 1338: fi
1339: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340: ac_abs_confdir=`(
1.36 bertrand 1341: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1 bertrand 1342: pwd)`
1343: # When building in place, set srcdir=.
1344: if test "$ac_abs_confdir" = "$ac_pwd"; then
1345: srcdir=.
1346: fi
1347: # Remove unnecessary trailing slashes from srcdir.
1348: # Double slashes in file names in object file debugging info
1349: # mess up M-x gdb in Emacs.
1350: case $srcdir in
1351: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352: esac
1353: for ac_var in $ac_precious_vars; do
1354: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355: eval ac_env_${ac_var}_value=\$${ac_var}
1356: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358: done
1359:
1360: #
1361: # Report the --help message.
1362: #
1363: if test "$ac_init_help" = "long"; then
1364: # Omit some internal or obsolete options to make the list less imposing.
1365: # This message is too long to be a string in the A/UX 3.1 sh.
1366: cat <<_ACEOF
1.63 bertrand 1367: \`configure' configures rpl 4.1.0 to adapt to many kinds of systems.
1.1 bertrand 1368:
1369: Usage: $0 [OPTION]... [VAR=VALUE]...
1370:
1371: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372: VAR=VALUE. See below for descriptions of some of the useful variables.
1373:
1374: Defaults for the options are specified in brackets.
1375:
1376: Configuration:
1377: -h, --help display this help and exit
1378: --help=short display options specific to this package
1379: --help=recursive display the short help of all the included packages
1380: -V, --version display version information and exit
1.36 bertrand 1381: -q, --quiet, --silent do not print \`checking ...' messages
1.1 bertrand 1382: --cache-file=FILE cache test results in FILE [disabled]
1383: -C, --config-cache alias for \`--cache-file=config.cache'
1384: -n, --no-create do not create output files
1385: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386:
1387: Installation directories:
1388: --prefix=PREFIX install architecture-independent files in PREFIX
1.15 bertrand 1389: [$ac_default_prefix]
1.1 bertrand 1390: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.15 bertrand 1391: [PREFIX]
1.1 bertrand 1392:
1393: By default, \`make install' will install all the files in
1394: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396: for instance \`--prefix=\$HOME'.
1397:
1398: For better control, use the options below.
1399:
1400: Fine tuning of the installation directories:
1.15 bertrand 1401: --bindir=DIR user executables [EPREFIX/bin]
1402: --sbindir=DIR system admin executables [EPREFIX/sbin]
1403: --libexecdir=DIR program executables [EPREFIX/libexec]
1404: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407: --libdir=DIR object code libraries [EPREFIX/lib]
1408: --includedir=DIR C header files [PREFIX/include]
1409: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412: --infodir=DIR info documentation [DATAROOTDIR/info]
1413: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414: --mandir=DIR man documentation [DATAROOTDIR/man]
1415: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1416: --htmldir=DIR html documentation [DOCDIR]
1417: --dvidir=DIR dvi documentation [DOCDIR]
1418: --pdfdir=DIR pdf documentation [DOCDIR]
1419: --psdir=DIR ps documentation [DOCDIR]
1.1 bertrand 1420: _ACEOF
1421:
1422: cat <<\_ACEOF
1423:
1424: Program names:
1425: --program-prefix=PREFIX prepend PREFIX to installed program names
1426: --program-suffix=SUFFIX append SUFFIX to installed program names
1427: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1428:
1429: X features:
1430: --x-includes=DIR X include files are in DIR
1431: --x-libraries=DIR X library files are in DIR
1432:
1433: System types:
1434: --build=BUILD configure for building on BUILD [guessed]
1435: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436: --target=TARGET configure for building compilers for TARGET [HOST]
1437: _ACEOF
1438: fi
1439:
1440: if test -n "$ac_init_help"; then
1441: case $ac_init_help in
1.63 bertrand 1442: short | recursive ) echo "Configuration of rpl 4.1.0:";;
1.1 bertrand 1443: esac
1444: cat <<\_ACEOF
1445:
1446: Optional Features:
1.15 bertrand 1447: --disable-option-checking ignore unrecognized --enable/--with options
1.1 bertrand 1448: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450: --disable-dependency-tracking speeds up one-time build
1451: --enable-dependency-tracking do not reject slow dependency extractors
1452: --enable-optimization set compiler flags [default=environment variables -O3]
1.36 bertrand 1453: --enable-sysv-ipcs use SystemV IPC functions [default=no]
1.30 bertrand 1454: --enable-full-static build static RPL/2 engine [default=shared]
1.1 bertrand 1455: --enable-final-encoding force final encoding [default=guessed]
1456: --enable-tex provide the TeX support [default=guessed]
1457: --enable-vim provide the vim support [default=guessed]
1458: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1459: --enable-gnuplot provide the GnuPlot support [default=guessed]
1460: --enable-motif provide the Motif support [default=guessed]
1461: --enable-experimental enable experimental code [default=no]
1462: --enable-debug enable debug code [default=no]
1463: --enable-profile enable profile code [default=no]
1464: --enable-final-run-path=PATH enable another final run path than PREFIX
1465:
1466: Optional Packages:
1467: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1468: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1469: --with-x use the X Window System
1.64 ! bertrand 1470: --with-32bits-abi force 32bits ABI (multilib)
1.1 bertrand 1471: --with-mysql=PATH specify directory for installed mysql
1472: --with-postgresql=PATH specify directory for installed postgresql
1.40 bertrand 1473: --with-bourne-shell=PATH specify path for OS/2 bourne shell
1.15 bertrand 1474: --with-openssl-arch=ARCH specify os and compiler for openssl (ARCH or list)
1.1 bertrand 1475:
1476: Some influential environment variables:
1477: CC C compiler command
1478: CFLAGS C compiler flags
1479: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1480: nonstandard directory <lib dir>
1481: LIBS libraries to pass to the linker, e.g. -l<library>
1.15 bertrand 1482: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1 bertrand 1483: you have headers in a nonstandard directory <include dir>
1484: CXX C++ compiler command
1485: CXXFLAGS C++ compiler flags
1486: F77 Fortran 77 compiler command
1487: FFLAGS Fortran 77 compiler flags
1488: FC Fortran compiler command
1489: FCFLAGS Fortran compiler flags
1490: XMKMF Path to xmkmf, Makefile generator for X Window System
1491: CPP C preprocessor
1492:
1493: Use these variables to override the choices made by `configure' or to help
1494: it to find libraries and programs with nonstandard names/locations.
1495:
1.15 bertrand 1496: Report bugs to the package provider.
1.1 bertrand 1497: _ACEOF
1498: ac_status=$?
1499: fi
1500:
1501: if test "$ac_init_help" = "recursive"; then
1502: # If there are subdirs, report their specific --help.
1503: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15 bertrand 1504: test -d "$ac_dir" ||
1505: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506: continue
1.1 bertrand 1507: ac_builddir=.
1508:
1509: case "$ac_dir" in
1510: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511: *)
1.15 bertrand 1512: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 1513: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 1514: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 1515: case $ac_top_builddir_sub in
1516: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518: esac ;;
1519: esac
1520: ac_abs_top_builddir=$ac_pwd
1521: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522: # for backward compatibility:
1523: ac_top_builddir=$ac_top_build_prefix
1524:
1525: case $srcdir in
1526: .) # We are building in place.
1527: ac_srcdir=.
1528: ac_top_srcdir=$ac_top_builddir_sub
1529: ac_abs_top_srcdir=$ac_pwd ;;
1530: [\\/]* | ?:[\\/]* ) # Absolute name.
1531: ac_srcdir=$srcdir$ac_dir_suffix;
1532: ac_top_srcdir=$srcdir
1533: ac_abs_top_srcdir=$srcdir ;;
1534: *) # Relative name.
1535: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536: ac_top_srcdir=$ac_top_build_prefix$srcdir
1537: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1538: esac
1539: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540:
1541: cd "$ac_dir" || { ac_status=$?; continue; }
1542: # Check for guested configure.
1543: if test -f "$ac_srcdir/configure.gnu"; then
1544: echo &&
1545: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546: elif test -f "$ac_srcdir/configure"; then
1547: echo &&
1548: $SHELL "$ac_srcdir/configure" --help=recursive
1549: else
1.15 bertrand 1550: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1 bertrand 1551: fi || ac_status=$?
1552: cd "$ac_pwd" || { ac_status=$?; break; }
1553: done
1554: fi
1555:
1556: test -n "$ac_init_help" && exit $ac_status
1557: if $ac_init_version; then
1558: cat <<\_ACEOF
1.63 bertrand 1559: rpl configure 4.1.0
1.57 bertrand 1560: generated by GNU Autoconf 2.68
1.1 bertrand 1561:
1.36 bertrand 1562: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 bertrand 1563: This configure script is free software; the Free Software Foundation
1564: gives unlimited permission to copy, distribute and modify it.
1565: _ACEOF
1566: exit
1567: fi
1568:
1.15 bertrand 1569: ## ------------------------ ##
1570: ## Autoconf initialization. ##
1571: ## ------------------------ ##
1572:
1573: # ac_fn_c_try_compile LINENO
1574: # --------------------------
1575: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1576: ac_fn_c_try_compile ()
1577: {
1578: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579: rm -f conftest.$ac_objext
1580: if { { ac_try="$ac_compile"
1581: case "(($ac_try" in
1582: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583: *) ac_try_echo=$ac_try;;
1584: esac
1585: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586: $as_echo "$ac_try_echo"; } >&5
1587: (eval "$ac_compile") 2>conftest.err
1588: ac_status=$?
1589: if test -s conftest.err; then
1590: grep -v '^ *+' conftest.err >conftest.er1
1591: cat conftest.er1 >&5
1592: mv -f conftest.er1 conftest.err
1593: fi
1594: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595: test $ac_status = 0; } && {
1596: test -z "$ac_c_werror_flag" ||
1597: test ! -s conftest.err
1598: } && test -s conftest.$ac_objext; then :
1599: ac_retval=0
1600: else
1601: $as_echo "$as_me: failed program was:" >&5
1602: sed 's/^/| /' conftest.$ac_ext >&5
1603:
1604: ac_retval=1
1605: fi
1.57 bertrand 1606: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1607: as_fn_set_status $ac_retval
1.1 bertrand 1608:
1.15 bertrand 1609: } # ac_fn_c_try_compile
1.1 bertrand 1610:
1.15 bertrand 1611: # ac_fn_cxx_try_compile LINENO
1612: # ----------------------------
1613: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614: ac_fn_cxx_try_compile ()
1.1 bertrand 1615: {
1.15 bertrand 1616: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617: rm -f conftest.$ac_objext
1618: if { { ac_try="$ac_compile"
1619: case "(($ac_try" in
1620: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621: *) ac_try_echo=$ac_try;;
1622: esac
1623: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624: $as_echo "$ac_try_echo"; } >&5
1625: (eval "$ac_compile") 2>conftest.err
1626: ac_status=$?
1627: if test -s conftest.err; then
1628: grep -v '^ *+' conftest.err >conftest.er1
1629: cat conftest.er1 >&5
1630: mv -f conftest.er1 conftest.err
1631: fi
1632: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633: test $ac_status = 0; } && {
1634: test -z "$ac_cxx_werror_flag" ||
1635: test ! -s conftest.err
1636: } && test -s conftest.$ac_objext; then :
1637: ac_retval=0
1638: else
1639: $as_echo "$as_me: failed program was:" >&5
1640: sed 's/^/| /' conftest.$ac_ext >&5
1641:
1642: ac_retval=1
1643: fi
1.57 bertrand 1644: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1645: as_fn_set_status $ac_retval
1.1 bertrand 1646:
1.15 bertrand 1647: } # ac_fn_cxx_try_compile
1.1 bertrand 1648:
1.15 bertrand 1649: # ac_fn_f77_try_compile LINENO
1650: # ----------------------------
1651: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652: ac_fn_f77_try_compile ()
1653: {
1654: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655: rm -f conftest.$ac_objext
1656: if { { ac_try="$ac_compile"
1657: case "(($ac_try" in
1658: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659: *) ac_try_echo=$ac_try;;
1660: esac
1661: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662: $as_echo "$ac_try_echo"; } >&5
1663: (eval "$ac_compile") 2>conftest.err
1664: ac_status=$?
1665: if test -s conftest.err; then
1666: grep -v '^ *+' conftest.err >conftest.er1
1667: cat conftest.er1 >&5
1668: mv -f conftest.er1 conftest.err
1669: fi
1670: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671: test $ac_status = 0; } && {
1672: test -z "$ac_f77_werror_flag" ||
1673: test ! -s conftest.err
1674: } && test -s conftest.$ac_objext; then :
1675: ac_retval=0
1676: else
1677: $as_echo "$as_me: failed program was:" >&5
1678: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1679:
1.15 bertrand 1680: ac_retval=1
1681: fi
1.57 bertrand 1682: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1683: as_fn_set_status $ac_retval
1.1 bertrand 1684:
1.15 bertrand 1685: } # ac_fn_f77_try_compile
1.1 bertrand 1686:
1.15 bertrand 1687: # ac_fn_fc_try_compile LINENO
1688: # ---------------------------
1689: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1690: ac_fn_fc_try_compile ()
1691: {
1692: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693: rm -f conftest.$ac_objext
1694: if { { ac_try="$ac_compile"
1695: case "(($ac_try" in
1696: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697: *) ac_try_echo=$ac_try;;
1698: esac
1699: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700: $as_echo "$ac_try_echo"; } >&5
1701: (eval "$ac_compile") 2>conftest.err
1702: ac_status=$?
1703: if test -s conftest.err; then
1704: grep -v '^ *+' conftest.err >conftest.er1
1705: cat conftest.er1 >&5
1706: mv -f conftest.er1 conftest.err
1707: fi
1708: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709: test $ac_status = 0; } && {
1710: test -z "$ac_fc_werror_flag" ||
1711: test ! -s conftest.err
1712: } && test -s conftest.$ac_objext; then :
1713: ac_retval=0
1714: else
1715: $as_echo "$as_me: failed program was:" >&5
1716: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1717:
1.15 bertrand 1718: ac_retval=1
1719: fi
1.57 bertrand 1720: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1721: as_fn_set_status $ac_retval
1.1 bertrand 1722:
1.15 bertrand 1723: } # ac_fn_fc_try_compile
1.1 bertrand 1724:
1.15 bertrand 1725: # ac_fn_c_try_cpp LINENO
1726: # ----------------------
1727: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1728: ac_fn_c_try_cpp ()
1729: {
1730: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731: if { { ac_try="$ac_cpp conftest.$ac_ext"
1732: case "(($ac_try" in
1733: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734: *) ac_try_echo=$ac_try;;
1735: esac
1736: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737: $as_echo "$ac_try_echo"; } >&5
1738: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1739: ac_status=$?
1740: if test -s conftest.err; then
1741: grep -v '^ *+' conftest.err >conftest.er1
1742: cat conftest.er1 >&5
1743: mv -f conftest.er1 conftest.err
1744: fi
1745: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36 bertrand 1746: test $ac_status = 0; } > conftest.i && {
1.15 bertrand 1747: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1748: test ! -s conftest.err
1749: }; then :
1750: ac_retval=0
1751: else
1752: $as_echo "$as_me: failed program was:" >&5
1753: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1754:
1.15 bertrand 1755: ac_retval=1
1756: fi
1.57 bertrand 1757: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1758: as_fn_set_status $ac_retval
1.1 bertrand 1759:
1.15 bertrand 1760: } # ac_fn_c_try_cpp
1.1 bertrand 1761:
1.15 bertrand 1762: # ac_fn_c_try_link LINENO
1763: # -----------------------
1764: # Try to link conftest.$ac_ext, and return whether this succeeded.
1765: ac_fn_c_try_link ()
1766: {
1767: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768: rm -f conftest.$ac_objext conftest$ac_exeext
1769: if { { ac_try="$ac_link"
1770: case "(($ac_try" in
1771: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772: *) ac_try_echo=$ac_try;;
1773: esac
1774: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775: $as_echo "$ac_try_echo"; } >&5
1776: (eval "$ac_link") 2>conftest.err
1777: ac_status=$?
1778: if test -s conftest.err; then
1779: grep -v '^ *+' conftest.err >conftest.er1
1780: cat conftest.er1 >&5
1781: mv -f conftest.er1 conftest.err
1782: fi
1783: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784: test $ac_status = 0; } && {
1785: test -z "$ac_c_werror_flag" ||
1786: test ! -s conftest.err
1787: } && test -s conftest$ac_exeext && {
1788: test "$cross_compiling" = yes ||
1789: $as_test_x conftest$ac_exeext
1790: }; then :
1791: ac_retval=0
1792: else
1793: $as_echo "$as_me: failed program was:" >&5
1794: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1795:
1.15 bertrand 1796: ac_retval=1
1797: fi
1798: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800: # interfere with the next link command; also delete a directory that is
1801: # left behind by Apple's compiler. We do this before executing the actions.
1802: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57 bertrand 1803: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1804: as_fn_set_status $ac_retval
1.1 bertrand 1805:
1.15 bertrand 1806: } # ac_fn_c_try_link
1.1 bertrand 1807:
1.15 bertrand 1808: # ac_fn_c_check_func LINENO FUNC VAR
1809: # ----------------------------------
1810: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1811: ac_fn_c_check_func ()
1812: {
1813: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 1816: if eval \${$3+:} false; then :
1.15 bertrand 1817: $as_echo_n "(cached) " >&6
1818: else
1819: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820: /* end confdefs.h. */
1821: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1822: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1823: #define $2 innocuous_$2
1.1 bertrand 1824:
1.15 bertrand 1825: /* System header to define __stub macros and hopefully few prototypes,
1826: which can conflict with char $2 (); below.
1827: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1828: <limits.h> exists even on freestanding compilers. */
1.1 bertrand 1829:
1.15 bertrand 1830: #ifdef __STDC__
1831: # include <limits.h>
1832: #else
1833: # include <assert.h>
1834: #endif
1.1 bertrand 1835:
1.15 bertrand 1836: #undef $2
1.1 bertrand 1837:
1.15 bertrand 1838: /* Override any GCC internal prototype to avoid an error.
1839: Use char because int might match the return type of a GCC
1840: builtin and then its argument prototype would still apply. */
1841: #ifdef __cplusplus
1842: extern "C"
1843: #endif
1844: char $2 ();
1845: /* The GNU C library defines this for functions which it implements
1846: to always fail with ENOSYS. Some functions are actually named
1847: something starting with __ and the normal name is an alias. */
1848: #if defined __stub_$2 || defined __stub___$2
1849: choke me
1850: #endif
1.1 bertrand 1851:
1.15 bertrand 1852: int
1853: main ()
1854: {
1855: return $2 ();
1856: ;
1857: return 0;
1858: }
1.1 bertrand 1859: _ACEOF
1.15 bertrand 1860: if ac_fn_c_try_link "$LINENO"; then :
1861: eval "$3=yes"
1862: else
1863: eval "$3=no"
1864: fi
1865: rm -f core conftest.err conftest.$ac_objext \
1866: conftest$ac_exeext conftest.$ac_ext
1867: fi
1868: eval ac_res=\$$3
1869: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870: $as_echo "$ac_res" >&6; }
1.57 bertrand 1871: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 bertrand 1872:
1.15 bertrand 1873: } # ac_fn_c_check_func
1.1 bertrand 1874:
1.33 bertrand 1875: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1876: # -------------------------------------------
1877: # Tests whether TYPE exists after having included INCLUDES, setting cache
1878: # variable VAR accordingly.
1879: ac_fn_c_check_type ()
1880: {
1881: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 1884: if eval \${$3+:} false; then :
1.33 bertrand 1885: $as_echo_n "(cached) " >&6
1886: else
1887: eval "$3=no"
1888: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889: /* end confdefs.h. */
1890: $4
1891: int
1892: main ()
1893: {
1894: if (sizeof ($2))
1895: return 0;
1896: ;
1897: return 0;
1898: }
1899: _ACEOF
1900: if ac_fn_c_try_compile "$LINENO"; then :
1901: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902: /* end confdefs.h. */
1903: $4
1904: int
1905: main ()
1906: {
1907: if (sizeof (($2)))
1908: return 0;
1909: ;
1910: return 0;
1911: }
1912: _ACEOF
1913: if ac_fn_c_try_compile "$LINENO"; then :
1914:
1915: else
1916: eval "$3=yes"
1917: fi
1918: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919: fi
1920: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921: fi
1922: eval ac_res=\$$3
1923: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924: $as_echo "$ac_res" >&6; }
1.57 bertrand 1925: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.33 bertrand 1926:
1927: } # ac_fn_c_check_type
1928:
1.15 bertrand 1929: # ac_fn_c_try_run LINENO
1930: # ----------------------
1931: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1932: # that executables *can* be run.
1933: ac_fn_c_try_run ()
1934: {
1935: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936: if { { ac_try="$ac_link"
1937: case "(($ac_try" in
1938: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1939: *) ac_try_echo=$ac_try;;
1940: esac
1941: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942: $as_echo "$ac_try_echo"; } >&5
1943: (eval "$ac_link") 2>&5
1944: ac_status=$?
1945: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1947: { { case "(($ac_try" in
1948: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949: *) ac_try_echo=$ac_try;;
1950: esac
1951: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952: $as_echo "$ac_try_echo"; } >&5
1953: (eval "$ac_try") 2>&5
1954: ac_status=$?
1955: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956: test $ac_status = 0; }; }; then :
1957: ac_retval=0
1958: else
1959: $as_echo "$as_me: program exited with status $ac_status" >&5
1960: $as_echo "$as_me: failed program was:" >&5
1961: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1962:
1.15 bertrand 1963: ac_retval=$ac_status
1964: fi
1965: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57 bertrand 1966: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1967: as_fn_set_status $ac_retval
1.1 bertrand 1968:
1.15 bertrand 1969: } # ac_fn_c_try_run
1.1 bertrand 1970:
1.15 bertrand 1971: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1972: # --------------------------------------------
1973: # Tries to find the compile-time value of EXPR in a program that includes
1974: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1975: # computed
1976: ac_fn_c_compute_int ()
1977: {
1978: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979: if test "$cross_compiling" = yes; then
1980: # Depending upon the size, compute the lo and hi bounds.
1981: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982: /* end confdefs.h. */
1983: $4
1984: int
1985: main ()
1986: {
1987: static int test_array [1 - 2 * !(($2) >= 0)];
1988: test_array [0] = 0
1.1 bertrand 1989:
1.15 bertrand 1990: ;
1991: return 0;
1992: }
1.1 bertrand 1993: _ACEOF
1.15 bertrand 1994: if ac_fn_c_try_compile "$LINENO"; then :
1995: ac_lo=0 ac_mid=0
1996: while :; do
1997: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998: /* end confdefs.h. */
1999: $4
2000: int
2001: main ()
2002: {
2003: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2004: test_array [0] = 0
1.1 bertrand 2005:
1.15 bertrand 2006: ;
2007: return 0;
2008: }
2009: _ACEOF
2010: if ac_fn_c_try_compile "$LINENO"; then :
2011: ac_hi=$ac_mid; break
2012: else
2013: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2014: if test $ac_lo -le $ac_mid; then
2015: ac_lo= ac_hi=
2016: break
2017: fi
2018: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2019: fi
2020: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021: done
2022: else
2023: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024: /* end confdefs.h. */
2025: $4
2026: int
2027: main ()
2028: {
2029: static int test_array [1 - 2 * !(($2) < 0)];
2030: test_array [0] = 0
1.1 bertrand 2031:
1.15 bertrand 2032: ;
2033: return 0;
2034: }
1.1 bertrand 2035: _ACEOF
1.15 bertrand 2036: if ac_fn_c_try_compile "$LINENO"; then :
2037: ac_hi=-1 ac_mid=-1
2038: while :; do
2039: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040: /* end confdefs.h. */
2041: $4
2042: int
2043: main ()
2044: {
2045: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2046: test_array [0] = 0
1.1 bertrand 2047:
1.15 bertrand 2048: ;
2049: return 0;
2050: }
2051: _ACEOF
2052: if ac_fn_c_try_compile "$LINENO"; then :
2053: ac_lo=$ac_mid; break
2054: else
2055: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2056: if test $ac_mid -le $ac_hi; then
2057: ac_lo= ac_hi=
2058: break
2059: fi
2060: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2061: fi
2062: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063: done
1.1 bertrand 2064: else
1.15 bertrand 2065: ac_lo= ac_hi=
2066: fi
2067: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 2068: fi
1.15 bertrand 2069: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070: # Binary search between lo and hi bounds.
2071: while test "x$ac_lo" != "x$ac_hi"; do
2072: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074: /* end confdefs.h. */
2075: $4
2076: int
2077: main ()
2078: {
2079: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2080: test_array [0] = 0
1.1 bertrand 2081:
1.15 bertrand 2082: ;
2083: return 0;
2084: }
2085: _ACEOF
2086: if ac_fn_c_try_compile "$LINENO"; then :
2087: ac_hi=$ac_mid
1.1 bertrand 2088: else
1.15 bertrand 2089: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1 bertrand 2090: fi
1.15 bertrand 2091: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092: done
2093: case $ac_lo in #((
2094: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2095: '') ac_retval=1 ;;
2096: esac
2097: else
2098: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099: /* end confdefs.h. */
2100: $4
2101: static long int longval () { return $2; }
2102: static unsigned long int ulongval () { return $2; }
2103: #include <stdio.h>
2104: #include <stdlib.h>
2105: int
2106: main ()
2107: {
1.1 bertrand 2108:
1.15 bertrand 2109: FILE *f = fopen ("conftest.val", "w");
2110: if (! f)
2111: return 1;
2112: if (($2) < 0)
2113: {
2114: long int i = longval ();
2115: if (i != ($2))
2116: return 1;
2117: fprintf (f, "%ld", i);
2118: }
2119: else
2120: {
2121: unsigned long int i = ulongval ();
2122: if (i != ($2))
2123: return 1;
2124: fprintf (f, "%lu", i);
2125: }
2126: /* Do not output a trailing newline, as this causes \r\n confusion
2127: on some platforms. */
2128: return ferror (f) || fclose (f) != 0;
2129:
2130: ;
2131: return 0;
2132: }
2133: _ACEOF
2134: if ac_fn_c_try_run "$LINENO"; then :
2135: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2136: else
2137: ac_retval=1
1.14 bertrand 2138: fi
1.15 bertrand 2139: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2140: conftest.$ac_objext conftest.beam conftest.$ac_ext
2141: rm -f conftest.val
1.14 bertrand 2142:
1.15 bertrand 2143: fi
1.57 bertrand 2144: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 2145: as_fn_set_status $ac_retval
1.14 bertrand 2146:
1.15 bertrand 2147: } # ac_fn_c_compute_int
1.1 bertrand 2148:
1.15 bertrand 2149: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2150: # -------------------------------------------------------
2151: # Tests whether HEADER exists and can be compiled using the include files in
2152: # INCLUDES, setting the cache variable VAR accordingly.
2153: ac_fn_c_check_header_compile ()
2154: {
2155: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 2158: if eval \${$3+:} false; then :
1.15 bertrand 2159: $as_echo_n "(cached) " >&6
2160: else
2161: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162: /* end confdefs.h. */
2163: $4
2164: #include <$2>
2165: _ACEOF
2166: if ac_fn_c_try_compile "$LINENO"; then :
2167: eval "$3=yes"
2168: else
2169: eval "$3=no"
2170: fi
2171: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172: fi
2173: eval ac_res=\$$3
2174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175: $as_echo "$ac_res" >&6; }
1.57 bertrand 2176: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 bertrand 2177:
1.15 bertrand 2178: } # ac_fn_c_check_header_compile
1.1 bertrand 2179:
1.15 bertrand 2180: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2181: # -------------------------------------------------------
2182: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2183: # the include files in INCLUDES and setting the cache variable VAR
2184: # accordingly.
2185: ac_fn_c_check_header_mongrel ()
2186: {
2187: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.57 bertrand 2188: if eval \${$3+:} false; then :
1.15 bertrand 2189: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2190: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 2191: if eval \${$3+:} false; then :
1.15 bertrand 2192: $as_echo_n "(cached) " >&6
2193: fi
2194: eval ac_res=\$$3
2195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196: $as_echo "$ac_res" >&6; }
2197: else
2198: # Is the header compilable?
2199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2200: $as_echo_n "checking $2 usability... " >&6; }
2201: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202: /* end confdefs.h. */
2203: $4
2204: #include <$2>
2205: _ACEOF
2206: if ac_fn_c_try_compile "$LINENO"; then :
2207: ac_header_compiler=yes
2208: else
2209: ac_header_compiler=no
2210: fi
2211: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2213: $as_echo "$ac_header_compiler" >&6; }
1.1 bertrand 2214:
1.15 bertrand 2215: # Is the header present?
2216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2217: $as_echo_n "checking $2 presence... " >&6; }
2218: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219: /* end confdefs.h. */
2220: #include <$2>
2221: _ACEOF
2222: if ac_fn_c_try_cpp "$LINENO"; then :
2223: ac_header_preproc=yes
2224: else
2225: ac_header_preproc=no
2226: fi
1.36 bertrand 2227: rm -f conftest.err conftest.i conftest.$ac_ext
1.15 bertrand 2228: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2229: $as_echo "$ac_header_preproc" >&6; }
1.1 bertrand 2230:
1.15 bertrand 2231: # So? What about this header?
2232: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2233: yes:no: )
2234: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2235: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2236: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2237: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2238: ;;
2239: no:yes:* )
2240: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2241: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2242: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2243: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2244: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2245: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2246: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2247: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2248: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2249: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2250: ;;
2251: esac
2252: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2253: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 2254: if eval \${$3+:} false; then :
1.15 bertrand 2255: $as_echo_n "(cached) " >&6
2256: else
2257: eval "$3=\$ac_header_compiler"
2258: fi
2259: eval ac_res=\$$3
2260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261: $as_echo "$ac_res" >&6; }
2262: fi
1.57 bertrand 2263: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 bertrand 2264:
1.15 bertrand 2265: } # ac_fn_c_check_header_mongrel
2266: cat >config.log <<_ACEOF
2267: This file contains any messages produced by compilers while
2268: running configure, to aid debugging if configure makes a mistake.
1.1 bertrand 2269:
1.63 bertrand 2270: It was created by rpl $as_me 4.1.0, which was
1.57 bertrand 2271: generated by GNU Autoconf 2.68. Invocation command line was
1.1 bertrand 2272:
1.15 bertrand 2273: $ $0 $@
1.1 bertrand 2274:
1.15 bertrand 2275: _ACEOF
2276: exec 5>>config.log
2277: {
2278: cat <<_ASUNAME
2279: ## --------- ##
2280: ## Platform. ##
2281: ## --------- ##
1.1 bertrand 2282:
1.15 bertrand 2283: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2284: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2285: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2286: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2287: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1 bertrand 2288:
1.15 bertrand 2289: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2290: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.1 bertrand 2291:
1.15 bertrand 2292: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2293: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2294: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2295: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2296: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2297: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2298: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1.1 bertrand 2299:
1.15 bertrand 2300: _ASUNAME
1.1 bertrand 2301:
1.15 bertrand 2302: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303: for as_dir in $PATH
2304: do
2305: IFS=$as_save_IFS
2306: test -z "$as_dir" && as_dir=.
2307: $as_echo "PATH: $as_dir"
2308: done
2309: IFS=$as_save_IFS
1.1 bertrand 2310:
1.15 bertrand 2311: } >&5
1.1 bertrand 2312:
1.15 bertrand 2313: cat >&5 <<_ACEOF
1.1 bertrand 2314:
2315:
1.15 bertrand 2316: ## ----------- ##
2317: ## Core tests. ##
2318: ## ----------- ##
1.1 bertrand 2319:
1.15 bertrand 2320: _ACEOF
1.1 bertrand 2321:
2322:
1.15 bertrand 2323: # Keep a trace of the command line.
2324: # Strip out --no-create and --no-recursion so they do not pile up.
2325: # Strip out --silent because we don't want to record it for future runs.
2326: # Also quote any args containing shell meta-characters.
2327: # Make two passes to allow for proper duplicate-argument suppression.
2328: ac_configure_args=
2329: ac_configure_args0=
2330: ac_configure_args1=
2331: ac_must_keep_next=false
2332: for ac_pass in 1 2
2333: do
2334: for ac_arg
2335: do
2336: case $ac_arg in
2337: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2338: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2339: | -silent | --silent | --silen | --sile | --sil)
2340: continue ;;
2341: *\'*)
2342: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2343: esac
2344: case $ac_pass in
2345: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2346: 2)
2347: as_fn_append ac_configure_args1 " '$ac_arg'"
2348: if test $ac_must_keep_next = true; then
2349: ac_must_keep_next=false # Got value, back to normal.
2350: else
2351: case $ac_arg in
2352: *=* | --config-cache | -C | -disable-* | --disable-* \
2353: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2354: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2355: | -with-* | --with-* | -without-* | --without-* | --x)
2356: case "$ac_configure_args0 " in
2357: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2358: esac
2359: ;;
2360: -* ) ac_must_keep_next=true ;;
2361: esac
2362: fi
2363: as_fn_append ac_configure_args " '$ac_arg'"
2364: ;;
2365: esac
2366: done
2367: done
2368: { ac_configure_args0=; unset ac_configure_args0;}
2369: { ac_configure_args1=; unset ac_configure_args1;}
1.1 bertrand 2370:
1.15 bertrand 2371: # When interrupted or exit'd, cleanup temporary files, and complete
2372: # config.log. We remove comments because anyway the quotes in there
2373: # would cause problems or look ugly.
2374: # WARNING: Use '\'' to represent an apostrophe within the trap.
2375: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2376: trap 'exit_status=$?
2377: # Save into config.log some information that might help in debugging.
2378: {
2379: echo
1.1 bertrand 2380:
1.36 bertrand 2381: $as_echo "## ---------------- ##
1.15 bertrand 2382: ## Cache variables. ##
1.36 bertrand 2383: ## ---------------- ##"
1.15 bertrand 2384: echo
2385: # The following way of writing the cache mishandles newlines in values,
2386: (
2387: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2388: eval ac_val=\$$ac_var
2389: case $ac_val in #(
2390: *${as_nl}*)
2391: case $ac_var in #(
2392: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2393: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2394: esac
2395: case $ac_var in #(
2396: _ | IFS | as_nl) ;; #(
2397: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2398: *) { eval $ac_var=; unset $ac_var;} ;;
2399: esac ;;
2400: esac
2401: done
2402: (set) 2>&1 |
2403: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2404: *${as_nl}ac_space=\ *)
2405: sed -n \
2406: "s/'\''/'\''\\\\'\'''\''/g;
2407: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2408: ;; #(
2409: *)
2410: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2411: ;;
2412: esac |
2413: sort
2414: )
2415: echo
1.1 bertrand 2416:
1.36 bertrand 2417: $as_echo "## ----------------- ##
1.15 bertrand 2418: ## Output variables. ##
1.36 bertrand 2419: ## ----------------- ##"
1.15 bertrand 2420: echo
2421: for ac_var in $ac_subst_vars
2422: do
2423: eval ac_val=\$$ac_var
2424: case $ac_val in
2425: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426: esac
2427: $as_echo "$ac_var='\''$ac_val'\''"
2428: done | sort
2429: echo
1.1 bertrand 2430:
1.15 bertrand 2431: if test -n "$ac_subst_files"; then
1.36 bertrand 2432: $as_echo "## ------------------- ##
1.15 bertrand 2433: ## File substitutions. ##
1.36 bertrand 2434: ## ------------------- ##"
1.15 bertrand 2435: echo
2436: for ac_var in $ac_subst_files
2437: do
2438: eval ac_val=\$$ac_var
2439: case $ac_val in
2440: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2441: esac
2442: $as_echo "$ac_var='\''$ac_val'\''"
2443: done | sort
2444: echo
1.14 bertrand 2445: fi
2446:
1.15 bertrand 2447: if test -s confdefs.h; then
1.36 bertrand 2448: $as_echo "## ----------- ##
1.15 bertrand 2449: ## confdefs.h. ##
1.36 bertrand 2450: ## ----------- ##"
1.15 bertrand 2451: echo
2452: cat confdefs.h
2453: echo
2454: fi
2455: test "$ac_signal" != 0 &&
2456: $as_echo "$as_me: caught signal $ac_signal"
2457: $as_echo "$as_me: exit $exit_status"
2458: } >&5
2459: rm -f core *.core core.conftest.* &&
2460: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2461: exit $exit_status
2462: ' 0
2463: for ac_signal in 1 2 13 15; do
2464: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2465: done
2466: ac_signal=0
1.14 bertrand 2467:
1.15 bertrand 2468: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2469: rm -f -r conftest* confdefs.h
1.14 bertrand 2470:
1.15 bertrand 2471: $as_echo "/* confdefs.h */" > confdefs.h
1.14 bertrand 2472:
1.15 bertrand 2473: # Predefined preprocessor variables.
1.14 bertrand 2474:
1.15 bertrand 2475: cat >>confdefs.h <<_ACEOF
2476: #define PACKAGE_NAME "$PACKAGE_NAME"
2477: _ACEOF
1.14 bertrand 2478:
1.15 bertrand 2479: cat >>confdefs.h <<_ACEOF
2480: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14 bertrand 2481: _ACEOF
2482:
1.15 bertrand 2483: cat >>confdefs.h <<_ACEOF
2484: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2485: _ACEOF
1.14 bertrand 2486:
1.15 bertrand 2487: cat >>confdefs.h <<_ACEOF
2488: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14 bertrand 2489: _ACEOF
2490:
1.15 bertrand 2491: cat >>confdefs.h <<_ACEOF
2492: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2493: _ACEOF
1.14 bertrand 2494:
1.15 bertrand 2495: cat >>confdefs.h <<_ACEOF
2496: #define PACKAGE_URL "$PACKAGE_URL"
2497: _ACEOF
1.14 bertrand 2498:
2499:
1.15 bertrand 2500: # Let the site file select an alternate cache file if it wants to.
2501: # Prefer an explicitly selected file to automatically selected ones.
2502: ac_site_file1=NONE
2503: ac_site_file2=NONE
2504: if test -n "$CONFIG_SITE"; then
1.36 bertrand 2505: # We do not want a PATH search for config.site.
2506: case $CONFIG_SITE in #((
2507: -*) ac_site_file1=./$CONFIG_SITE;;
2508: */*) ac_site_file1=$CONFIG_SITE;;
2509: *) ac_site_file1=./$CONFIG_SITE;;
2510: esac
1.15 bertrand 2511: elif test "x$prefix" != xNONE; then
2512: ac_site_file1=$prefix/share/config.site
2513: ac_site_file2=$prefix/etc/config.site
1.14 bertrand 2514: else
1.15 bertrand 2515: ac_site_file1=$ac_default_prefix/share/config.site
2516: ac_site_file2=$ac_default_prefix/etc/config.site
1.14 bertrand 2517: fi
1.15 bertrand 2518: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2519: do
2520: test "x$ac_site_file" = xNONE && continue
2521: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2522: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2523: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2524: sed 's/^/| /' "$ac_site_file" >&5
1.36 bertrand 2525: . "$ac_site_file" \
2526: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2527: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2528: as_fn_error $? "failed to load site script $ac_site_file
1.57 bertrand 2529: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 2530: fi
2531: done
1.14 bertrand 2532:
1.15 bertrand 2533: if test -r "$cache_file"; then
2534: # Some versions of bash will fail to source /dev/null (special files
2535: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2536: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2537: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2538: $as_echo "$as_me: loading cache $cache_file" >&6;}
2539: case $cache_file in
2540: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2541: *) . "./$cache_file";;
2542: esac
2543: fi
1.14 bertrand 2544: else
1.15 bertrand 2545: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2546: $as_echo "$as_me: creating cache $cache_file" >&6;}
2547: >$cache_file
1.14 bertrand 2548: fi
2549:
1.15 bertrand 2550: # Check that the precious variables saved in the cache have kept the same
2551: # value.
2552: ac_cache_corrupted=false
2553: for ac_var in $ac_precious_vars; do
2554: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2555: eval ac_new_set=\$ac_env_${ac_var}_set
2556: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2557: eval ac_new_val=\$ac_env_${ac_var}_value
2558: case $ac_old_set,$ac_new_set in
2559: set,)
2560: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2561: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2562: ac_cache_corrupted=: ;;
2563: ,set)
2564: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2565: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2566: ac_cache_corrupted=: ;;
2567: ,);;
2568: *)
2569: if test "x$ac_old_val" != "x$ac_new_val"; then
2570: # differences in whitespace do not lead to failure.
2571: ac_old_val_w=`echo x $ac_old_val`
2572: ac_new_val_w=`echo x $ac_new_val`
2573: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2574: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2575: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2576: ac_cache_corrupted=:
2577: else
2578: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2579: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2580: eval $ac_var=\$ac_old_val
2581: fi
2582: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2583: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2584: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2585: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2586: fi;;
2587: esac
2588: # Pass precious variables to config.status.
2589: if test "$ac_new_set" = set; then
2590: case $ac_new_val in
2591: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2592: *) ac_arg=$ac_var=$ac_new_val ;;
2593: esac
2594: case " $ac_configure_args " in
2595: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2596: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2597: esac
1.14 bertrand 2598: fi
2599: done
1.15 bertrand 2600: if $ac_cache_corrupted; then
2601: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2604: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36 bertrand 2605: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15 bertrand 2606: fi
2607: ## -------------------- ##
2608: ## Main body of script. ##
2609: ## -------------------- ##
1.14 bertrand 2610:
1.15 bertrand 2611: ac_ext=c
2612: ac_cpp='$CPP $CPPFLAGS'
2613: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2614: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2615: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14 bertrand 2616:
2617:
1.15 bertrand 2618: ac_aux_dir=
2619: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36 bertrand 2620: if test -f "$ac_dir/install-sh"; then
2621: ac_aux_dir=$ac_dir
2622: ac_install_sh="$ac_aux_dir/install-sh -c"
2623: break
2624: elif test -f "$ac_dir/install.sh"; then
2625: ac_aux_dir=$ac_dir
2626: ac_install_sh="$ac_aux_dir/install.sh -c"
2627: break
2628: elif test -f "$ac_dir/shtool"; then
2629: ac_aux_dir=$ac_dir
2630: ac_install_sh="$ac_aux_dir/shtool install -c"
2631: break
2632: fi
1.14 bertrand 2633: done
1.15 bertrand 2634: if test -z "$ac_aux_dir"; then
1.36 bertrand 2635: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15 bertrand 2636: fi
1.14 bertrand 2637:
1.15 bertrand 2638: # These three variables are undocumented and unsupported,
2639: # and are intended to be withdrawn in a future Autoconf release.
2640: # They can cause serious problems if a builder's source tree is in a directory
2641: # whose full name contains unusual characters.
2642: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2643: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2644: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1.14 bertrand 2645:
2646:
1.15 bertrand 2647: # Make sure we can run config.sub.
2648: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36 bertrand 2649: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14 bertrand 2650:
1.15 bertrand 2651: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2652: $as_echo_n "checking build system type... " >&6; }
1.57 bertrand 2653: if ${ac_cv_build+:} false; then :
1.15 bertrand 2654: $as_echo_n "(cached) " >&6
1.14 bertrand 2655: else
1.15 bertrand 2656: ac_build_alias=$build_alias
2657: test "x$ac_build_alias" = x &&
2658: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2659: test "x$ac_build_alias" = x &&
1.36 bertrand 2660: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15 bertrand 2661: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36 bertrand 2662: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14 bertrand 2663:
2664: fi
1.15 bertrand 2665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2666: $as_echo "$ac_cv_build" >&6; }
2667: case $ac_cv_build in
2668: *-*-*) ;;
1.57 bertrand 2669: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.15 bertrand 2670: esac
2671: build=$ac_cv_build
2672: ac_save_IFS=$IFS; IFS='-'
2673: set x $ac_cv_build
2674: shift
2675: build_cpu=$1
2676: build_vendor=$2
2677: shift; shift
2678: # Remember, the first character of IFS is used to create $*,
2679: # except with old shells:
2680: build_os=$*
2681: IFS=$ac_save_IFS
2682: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14 bertrand 2683:
2684:
1.15 bertrand 2685: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2686: $as_echo_n "checking host system type... " >&6; }
1.57 bertrand 2687: if ${ac_cv_host+:} false; then :
1.15 bertrand 2688: $as_echo_n "(cached) " >&6
1.14 bertrand 2689: else
1.15 bertrand 2690: if test "x$host_alias" = x; then
2691: ac_cv_host=$ac_cv_build
1.14 bertrand 2692: else
1.15 bertrand 2693: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36 bertrand 2694: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14 bertrand 2695: fi
2696:
2697: fi
1.15 bertrand 2698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2699: $as_echo "$ac_cv_host" >&6; }
2700: case $ac_cv_host in
2701: *-*-*) ;;
1.57 bertrand 2702: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.15 bertrand 2703: esac
2704: host=$ac_cv_host
2705: ac_save_IFS=$IFS; IFS='-'
2706: set x $ac_cv_host
2707: shift
2708: host_cpu=$1
2709: host_vendor=$2
2710: shift; shift
2711: # Remember, the first character of IFS is used to create $*,
2712: # except with old shells:
2713: host_os=$*
2714: IFS=$ac_save_IFS
2715: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14 bertrand 2716:
2717:
1.15 bertrand 2718: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2719: $as_echo_n "checking target system type... " >&6; }
1.57 bertrand 2720: if ${ac_cv_target+:} false; then :
1.15 bertrand 2721: $as_echo_n "(cached) " >&6
2722: else
2723: if test "x$target_alias" = x; then
2724: ac_cv_target=$ac_cv_host
1.14 bertrand 2725: else
1.15 bertrand 2726: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36 bertrand 2727: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15 bertrand 2728: fi
1.14 bertrand 2729:
2730: fi
1.15 bertrand 2731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2732: $as_echo "$ac_cv_target" >&6; }
2733: case $ac_cv_target in
2734: *-*-*) ;;
1.57 bertrand 2735: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.15 bertrand 2736: esac
2737: target=$ac_cv_target
2738: ac_save_IFS=$IFS; IFS='-'
2739: set x $ac_cv_target
2740: shift
2741: target_cpu=$1
2742: target_vendor=$2
2743: shift; shift
2744: # Remember, the first character of IFS is used to create $*,
2745: # except with old shells:
2746: target_os=$*
2747: IFS=$ac_save_IFS
2748: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2749:
1.14 bertrand 2750:
1.15 bertrand 2751: # The aliases save the names the user supplied, while $host etc.
2752: # will get canonicalized.
2753: test -n "$target_alias" &&
2754: test "$program_prefix$program_suffix$program_transform_name" = \
2755: NONENONEs,x,x, &&
2756: program_prefix=${target_alias}-
1.1 bertrand 2757:
1.15 bertrand 2758: am__api_version='1.11'
1.1 bertrand 2759:
1.14 bertrand 2760: # Find a good install program. We prefer a C program (faster),
2761: # so one script is as good as another. But avoid the broken or
2762: # incompatible versions:
2763: # SysV /etc/install, /usr/sbin/install
2764: # SunOS /usr/etc/install
2765: # IRIX /sbin/install
2766: # AIX /bin/install
2767: # AmigaOS /C/install, which installs bootblocks on floppy discs
2768: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2769: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2770: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2771: # OS/2's system install, which has a completely different semantic
2772: # ./install, which can be erroneously created by make from ./install.sh.
1.15 bertrand 2773: # Reject install programs that cannot install multiple files.
2774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2775: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14 bertrand 2776: if test -z "$INSTALL"; then
1.57 bertrand 2777: if ${ac_cv_path_install+:} false; then :
1.15 bertrand 2778: $as_echo_n "(cached) " >&6
1.14 bertrand 2779: else
2780: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781: for as_dir in $PATH
2782: do
2783: IFS=$as_save_IFS
2784: test -z "$as_dir" && as_dir=.
1.15 bertrand 2785: # Account for people who put trailing slashes in PATH elements.
2786: case $as_dir/ in #((
2787: ./ | .// | /[cC]/* | \
1.14 bertrand 2788: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15 bertrand 2789: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14 bertrand 2790: /usr/ucb/* ) ;;
2791: *)
2792: # OSF1 and SCO ODT 3.0 have their own names for install.
2793: # Don't use installbsd from OSF since it installs stuff as root
2794: # by default.
2795: for ac_prog in ginstall scoinst install; do
2796: for ac_exec_ext in '' $ac_executable_extensions; do
2797: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2798: if test $ac_prog = install &&
2799: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2800: # AIX install. It has an incompatible calling convention.
2801: :
2802: elif test $ac_prog = install &&
2803: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2804: # program-specific install script used by HP pwplus--don't use.
2805: :
2806: else
1.15 bertrand 2807: rm -rf conftest.one conftest.two conftest.dir
2808: echo one > conftest.one
2809: echo two > conftest.two
2810: mkdir conftest.dir
2811: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2812: test -s conftest.one && test -s conftest.two &&
2813: test -s conftest.dir/conftest.one &&
2814: test -s conftest.dir/conftest.two
2815: then
2816: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2817: break 3
2818: fi
1.14 bertrand 2819: fi
2820: fi
2821: done
2822: done
2823: ;;
2824: esac
1.15 bertrand 2825:
2826: done
1.14 bertrand 2827: IFS=$as_save_IFS
1.1 bertrand 2828:
1.15 bertrand 2829: rm -rf conftest.one conftest.two conftest.dir
1.1 bertrand 2830:
1.14 bertrand 2831: fi
2832: if test "${ac_cv_path_install+set}" = set; then
2833: INSTALL=$ac_cv_path_install
2834: else
2835: # As a last resort, use the slow shell script. Don't cache a
2836: # value for INSTALL within a source directory, because that will
2837: # break other packages using the cache if that directory is
2838: # removed, or if the value is a relative name.
2839: INSTALL=$ac_install_sh
2840: fi
2841: fi
1.15 bertrand 2842: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2843: $as_echo "$INSTALL" >&6; }
1.1 bertrand 2844:
1.14 bertrand 2845: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2846: # It thinks the first close brace ends the variable substitution.
2847: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1 bertrand 2848:
1.14 bertrand 2849: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 bertrand 2850:
1.14 bertrand 2851: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1 bertrand 2852:
1.15 bertrand 2853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2854: $as_echo_n "checking whether build environment is sane... " >&6; }
2855: # Just in case
2856: sleep 1
2857: echo timestamp > conftest.file
2858: # Reject unsafe characters in $srcdir or the absolute working directory
2859: # name. Accept space and tab only in the latter.
2860: am_lf='
2861: '
2862: case `pwd` in
2863: *[\\\"\#\$\&\'\`$am_lf]*)
1.57 bertrand 2864: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1.15 bertrand 2865: esac
2866: case $srcdir in
2867: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.57 bertrand 2868: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1.15 bertrand 2869: esac
2870:
2871: # Do `set' in a subshell so we don't clobber the current shell's
2872: # arguments. Must try -L first in case configure is actually a
2873: # symlink; some systems play weird games with the mod time of symlinks
2874: # (eg FreeBSD returns the mod time of the symlink's containing
2875: # directory).
2876: if (
2877: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2878: if test "$*" = "X"; then
2879: # -L didn't work.
2880: set X `ls -t "$srcdir/configure" conftest.file`
2881: fi
2882: rm -f conftest.file
2883: if test "$*" != "X $srcdir/configure conftest.file" \
2884: && test "$*" != "X conftest.file $srcdir/configure"; then
2885:
2886: # If neither matched, then we have a broken ls. This can happen
2887: # if, for instance, CONFIG_SHELL is bash and it inherits a
2888: # broken ls alias from the environment. This has actually
2889: # happened. Such a system could not be considered "sane".
1.36 bertrand 2890: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
1.15 bertrand 2891: alias in your environment" "$LINENO" 5
2892: fi
2893:
2894: test "$2" = conftest.file
2895: )
2896: then
2897: # Ok.
2898: :
1.14 bertrand 2899: else
1.36 bertrand 2900: as_fn_error $? "newly created file is older than distributed files!
1.15 bertrand 2901: Check your system clock" "$LINENO" 5
1.14 bertrand 2902: fi
1.15 bertrand 2903: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2904: $as_echo "yes" >&6; }
2905: test "$program_prefix" != NONE &&
2906: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2907: # Use a double $ so make ignores it.
2908: test "$program_suffix" != NONE &&
2909: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2910: # Double any \ or $.
2911: # By default was `s,x,x', remove it if useless.
2912: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2913: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2914:
2915: # expand $ac_aux_dir to an absolute path
2916: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1 bertrand 2917:
1.15 bertrand 2918: if test x"${MISSING+set}" != xset; then
2919: case $am_aux_dir in
2920: *\ * | *\ *)
2921: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14 bertrand 2922: *)
1.15 bertrand 2923: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2924: esac
1.14 bertrand 2925: fi
1.15 bertrand 2926: # Use eval to expand $SHELL
2927: if eval "$MISSING --run true"; then
2928: am_missing_run="$MISSING --run "
1.14 bertrand 2929: else
1.15 bertrand 2930: am_missing_run=
2931: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2932: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2933: fi
2934:
2935: if test x"${install_sh}" != xset; then
2936: case $am_aux_dir in
2937: *\ * | *\ *)
2938: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2939: *)
2940: install_sh="\${SHELL} $am_aux_dir/install-sh"
2941: esac
1.14 bertrand 2942: fi
1.15 bertrand 2943:
2944: # Installed binaries are usually stripped using `strip' when the user
2945: # run `make install-strip'. However `strip' might not be the right
2946: # tool to use in cross-compilation environments, therefore Automake
2947: # will honor the `STRIP' environment variable to overrule this program.
2948: if test "$cross_compiling" != no; then
2949: if test -n "$ac_tool_prefix"; then
2950: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2951: set dummy ${ac_tool_prefix}strip; ac_word=$2
2952: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 2954: if ${ac_cv_prog_STRIP+:} false; then :
1.15 bertrand 2955: $as_echo_n "(cached) " >&6
1.14 bertrand 2956: else
1.15 bertrand 2957: if test -n "$STRIP"; then
2958: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14 bertrand 2959: else
2960: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961: for as_dir in $PATH
2962: do
2963: IFS=$as_save_IFS
2964: test -z "$as_dir" && as_dir=.
1.15 bertrand 2965: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 2966: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 2967: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2968: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 2969: break 2
2970: fi
2971: done
1.15 bertrand 2972: done
1.14 bertrand 2973: IFS=$as_save_IFS
1.1 bertrand 2974:
1.14 bertrand 2975: fi
2976: fi
1.15 bertrand 2977: STRIP=$ac_cv_prog_STRIP
2978: if test -n "$STRIP"; then
2979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2980: $as_echo "$STRIP" >&6; }
1.14 bertrand 2981: else
1.15 bertrand 2982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983: $as_echo "no" >&6; }
1.14 bertrand 2984: fi
1.1 bertrand 2985:
2986:
1.14 bertrand 2987: fi
1.15 bertrand 2988: if test -z "$ac_cv_prog_STRIP"; then
2989: ac_ct_STRIP=$STRIP
2990: # Extract the first word of "strip", so it can be a program name with args.
2991: set dummy strip; ac_word=$2
2992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 2994: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.15 bertrand 2995: $as_echo_n "(cached) " >&6
1.14 bertrand 2996: else
1.15 bertrand 2997: if test -n "$ac_ct_STRIP"; then
2998: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 bertrand 2999: else
1.14 bertrand 3000: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001: for as_dir in $PATH
1.1 bertrand 3002: do
1.14 bertrand 3003: IFS=$as_save_IFS
3004: test -z "$as_dir" && as_dir=.
1.15 bertrand 3005: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 3006: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3007: ac_cv_prog_ac_ct_STRIP="strip"
3008: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 3009: break 2
1.1 bertrand 3010: fi
3011: done
1.15 bertrand 3012: done
1.14 bertrand 3013: IFS=$as_save_IFS
1.1 bertrand 3014:
1.14 bertrand 3015: fi
3016: fi
1.15 bertrand 3017: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3018: if test -n "$ac_ct_STRIP"; then
3019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3020: $as_echo "$ac_ct_STRIP" >&6; }
1.1 bertrand 3021: else
1.15 bertrand 3022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023: $as_echo "no" >&6; }
1.1 bertrand 3024: fi
3025:
1.15 bertrand 3026: if test "x$ac_ct_STRIP" = x; then
3027: STRIP=":"
1.14 bertrand 3028: else
3029: case $cross_compiling:$ac_tool_warned in
3030: yes:)
1.15 bertrand 3031: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14 bertrand 3033: ac_tool_warned=yes ;;
3034: esac
1.15 bertrand 3035: STRIP=$ac_ct_STRIP
1.1 bertrand 3036: fi
1.14 bertrand 3037: else
1.15 bertrand 3038: STRIP="$ac_cv_prog_STRIP"
1.1 bertrand 3039: fi
3040:
1.15 bertrand 3041: fi
3042: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1 bertrand 3043:
1.15 bertrand 3044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3045: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3046: if test -z "$MKDIR_P"; then
1.57 bertrand 3047: if ${ac_cv_path_mkdir+:} false; then :
1.15 bertrand 3048: $as_echo_n "(cached) " >&6
1.14 bertrand 3049: else
1.15 bertrand 3050: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14 bertrand 3052: do
3053: IFS=$as_save_IFS
3054: test -z "$as_dir" && as_dir=.
1.15 bertrand 3055: for ac_prog in mkdir gmkdir; do
3056: for ac_exec_ext in '' $ac_executable_extensions; do
3057: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3058: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3059: 'mkdir (GNU coreutils) '* | \
3060: 'mkdir (coreutils) '* | \
3061: 'mkdir (fileutils) '4.1*)
3062: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3063: break 3;;
3064: esac
3065: done
3066: done
3067: done
1.14 bertrand 3068: IFS=$as_save_IFS
1.1 bertrand 3069:
3070: fi
1.15 bertrand 3071:
3072: test -d ./--version && rmdir ./--version
3073: if test "${ac_cv_path_mkdir+set}" = set; then
3074: MKDIR_P="$ac_cv_path_mkdir -p"
3075: else
3076: # As a last resort, use the slow shell script. Don't cache a
3077: # value for MKDIR_P within a source directory, because that will
3078: # break other packages using the cache if that directory is
3079: # removed, or if the value is a relative name.
3080: MKDIR_P="$ac_install_sh -d"
3081: fi
1.14 bertrand 3082: fi
1.15 bertrand 3083: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3084: $as_echo "$MKDIR_P" >&6; }
1.1 bertrand 3085:
1.15 bertrand 3086: mkdir_p="$MKDIR_P"
3087: case $mkdir_p in
3088: [\\/$]* | ?:[\\/]*) ;;
3089: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3090: esac
1.1 bertrand 3091:
1.15 bertrand 3092: for ac_prog in gawk mawk nawk awk
3093: do
3094: # Extract the first word of "$ac_prog", so it can be a program name with args.
3095: set dummy $ac_prog; ac_word=$2
3096: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3097: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 3098: if ${ac_cv_prog_AWK+:} false; then :
1.15 bertrand 3099: $as_echo_n "(cached) " >&6
1.1 bertrand 3100: else
1.15 bertrand 3101: if test -n "$AWK"; then
3102: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1 bertrand 3103: else
1.14 bertrand 3104: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105: for as_dir in $PATH
3106: do
3107: IFS=$as_save_IFS
3108: test -z "$as_dir" && as_dir=.
1.15 bertrand 3109: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 3110: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3111: ac_cv_prog_AWK="$ac_prog"
3112: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 3113: break 2
3114: fi
3115: done
1.15 bertrand 3116: done
1.14 bertrand 3117: IFS=$as_save_IFS
3118:
3119: fi
1.1 bertrand 3120: fi
1.15 bertrand 3121: AWK=$ac_cv_prog_AWK
3122: if test -n "$AWK"; then
3123: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3124: $as_echo "$AWK" >&6; }
1.14 bertrand 3125: else
1.15 bertrand 3126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127: $as_echo "no" >&6; }
1.1 bertrand 3128: fi
3129:
3130:
1.15 bertrand 3131: test -n "$AWK" && break
3132: done
1.1 bertrand 3133:
1.15 bertrand 3134: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3135: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3136: set x ${MAKE-make}
3137: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57 bertrand 3138: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15 bertrand 3139: $as_echo_n "(cached) " >&6
1.14 bertrand 3140: else
1.15 bertrand 3141: cat >conftest.make <<\_ACEOF
3142: SHELL = /bin/sh
3143: all:
3144: @echo '@@@%%%=$(MAKE)=@@@%%%'
3145: _ACEOF
1.36 bertrand 3146: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 3147: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3148: *@@@%%%=?*=@@@%%%*)
3149: eval ac_cv_prog_make_${ac_make}_set=yes;;
3150: *)
3151: eval ac_cv_prog_make_${ac_make}_set=no;;
3152: esac
3153: rm -f conftest.make
3154: fi
3155: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3157: $as_echo "yes" >&6; }
3158: SET_MAKE=
1.1 bertrand 3159: else
1.15 bertrand 3160: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161: $as_echo "no" >&6; }
3162: SET_MAKE="MAKE=${MAKE-make}"
3163: fi
1.1 bertrand 3164:
1.15 bertrand 3165: rm -rf .tst 2>/dev/null
3166: mkdir .tst 2>/dev/null
3167: if test -d .tst; then
3168: am__leading_dot=.
3169: else
3170: am__leading_dot=_
1.14 bertrand 3171: fi
1.15 bertrand 3172: rmdir .tst 2>/dev/null
3173:
3174: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3175: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3176: # is not polluted with repeated "-I."
3177: am__isrc=' -I$(srcdir)'
3178: # test to see if srcdir already configured
3179: if test -f $srcdir/config.status; then
1.36 bertrand 3180: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15 bertrand 3181: fi
1.1 bertrand 3182: fi
1.15 bertrand 3183:
3184: # test whether we have cygpath
3185: if test -z "$CYGPATH_W"; then
3186: if (cygpath --version) >/dev/null 2>/dev/null; then
3187: CYGPATH_W='cygpath -w'
3188: else
3189: CYGPATH_W=echo
3190: fi
1.1 bertrand 3191: fi
3192:
3193:
1.15 bertrand 3194: # Define the identity of the package.
3195: PACKAGE='rpl'
1.63 bertrand 3196: VERSION='4.1.0'
1.15 bertrand 3197:
3198:
3199: cat >>confdefs.h <<_ACEOF
3200: #define PACKAGE "$PACKAGE"
3201: _ACEOF
3202:
3203:
3204: cat >>confdefs.h <<_ACEOF
3205: #define VERSION "$VERSION"
3206: _ACEOF
3207:
3208: # Some tools Automake needs.
3209:
3210: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3211:
3212:
3213: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3214:
3215:
3216: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3217:
3218:
3219: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3220:
3221:
3222: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3223:
3224: # We need awk for the "check" target. The system "awk" is bad on
3225: # some platforms.
3226: # Always define AMTAR for backward compatibility.
3227:
3228: AMTAR=${AMTAR-"${am_missing_run}tar"}
3229:
3230: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3231:
3232:
3233:
3234:
1.1 bertrand 3235:
3236:
1.15 bertrand 3237: ac_config_headers="$ac_config_headers rplconfig.h"
1.1 bertrand 3238:
3239:
1.54 bertrand 3240: NCURSES=ncurses-5.9
1.50 bertrand 3241: READLINE=readline-6.2
1.30 bertrand 3242: UNITS=units-1.88
1.57 bertrand 3243: GSL=gsl-1.15
1.15 bertrand 3244: GPP=gpp-2.24
1.52 bertrand 3245: GNUPLOT=gnuplot-4.4.3
1.15 bertrand 3246: FILE=file-5.03
3247: ICONV=libiconv-1.13.1
1.57 bertrand 3248: SQLITE=sqlite-3.7.6.3
1.50 bertrand 3249: OPENSSL=openssl-1.0.0d
1.14 bertrand 3250:
1.55 bertrand 3251: GMP=gmp-5.0.1
3252: MPFR=mpfr-3.0.1
1.56 bertrand 3253: NTL=ntl-5.5.2
3254: COCOA=CoCoALib-0.9943
3255: PARI=pari-2.3.5
1.61 bertrand 3256: GIAC=giac-0.9.1
1.55 bertrand 3257:
1.15 bertrand 3258: ac_ext=c
3259: ac_cpp='$CPP $CPPFLAGS'
3260: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3263: if test -n "$ac_tool_prefix"; then
1.23 bertrand 3264: for ac_prog in gcc
1.15 bertrand 3265: do
3266: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 3270: if ${ac_cv_prog_CC+:} false; then :
1.15 bertrand 3271: $as_echo_n "(cached) " >&6
1.1 bertrand 3272: else
1.15 bertrand 3273: if test -n "$CC"; then
3274: ac_cv_prog_CC="$CC" # Let the user override the test.
1.1 bertrand 3275: else
3276: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277: for as_dir in $PATH
3278: do
3279: IFS=$as_save_IFS
3280: test -z "$as_dir" && as_dir=.
1.15 bertrand 3281: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 bertrand 3282: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3283: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3284: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 bertrand 3285: break 2
3286: fi
3287: done
1.15 bertrand 3288: done
1.1 bertrand 3289: IFS=$as_save_IFS
3290:
3291: fi
3292: fi
1.15 bertrand 3293: CC=$ac_cv_prog_CC
3294: if test -n "$CC"; then
3295: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296: $as_echo "$CC" >&6; }
1.1 bertrand 3297: else
1.15 bertrand 3298: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299: $as_echo "no" >&6; }
1.1 bertrand 3300: fi
3301:
3302:
1.15 bertrand 3303: test -n "$CC" && break
3304: done
3305: fi
3306: if test -z "$CC"; then
3307: ac_ct_CC=$CC
1.23 bertrand 3308: for ac_prog in gcc
1.15 bertrand 3309: do
3310: # Extract the first word of "$ac_prog", so it can be a program name with args.
3311: set dummy $ac_prog; ac_word=$2
3312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 3314: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.15 bertrand 3315: $as_echo_n "(cached) " >&6
1.1 bertrand 3316: else
1.15 bertrand 3317: if test -n "$ac_ct_CC"; then
3318: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 bertrand 3319: else
3320: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321: for as_dir in $PATH
3322: do
3323: IFS=$as_save_IFS
3324: test -z "$as_dir" && as_dir=.
1.15 bertrand 3325: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 bertrand 3326: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3327: ac_cv_prog_ac_ct_CC="$ac_prog"
3328: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 bertrand 3329: break 2
3330: fi
3331: done
1.15 bertrand 3332: done
1.1 bertrand 3333: IFS=$as_save_IFS
3334:
3335: fi
3336: fi
1.15 bertrand 3337: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338: if test -n "$ac_ct_CC"; then
3339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3340: $as_echo "$ac_ct_CC" >&6; }
1.1 bertrand 3341: else
1.15 bertrand 3342: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343: $as_echo "no" >&6; }
1.1 bertrand 3344: fi
3345:
3346:
1.15 bertrand 3347: test -n "$ac_ct_CC" && break
3348: done
1.1 bertrand 3349:
1.15 bertrand 3350: if test "x$ac_ct_CC" = x; then
3351: CC=""
3352: else
3353: case $cross_compiling:$ac_tool_warned in
3354: yes:)
3355: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357: ac_tool_warned=yes ;;
3358: esac
3359: CC=$ac_ct_CC
1.1 bertrand 3360: fi
3361: fi
3362:
3363:
1.15 bertrand 3364: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3366: as_fn_error $? "no acceptable C compiler found in \$PATH
1.57 bertrand 3367: See \`config.log' for more details" "$LINENO" 5; }
1.1 bertrand 3368:
1.15 bertrand 3369: # Provide some information about the compiler.
3370: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3371: set X $ac_compile
3372: ac_compiler=$2
3373: for ac_option in --version -v -V -qversion; do
3374: { { ac_try="$ac_compiler $ac_option >&5"
3375: case "(($ac_try" in
3376: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377: *) ac_try_echo=$ac_try;;
3378: esac
3379: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380: $as_echo "$ac_try_echo"; } >&5
3381: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3382: ac_status=$?
3383: if test -s conftest.err; then
3384: sed '10a\
3385: ... rest of stderr output deleted ...
3386: 10q' conftest.err >conftest.er1
3387: cat conftest.er1 >&5
1.1 bertrand 3388: fi
1.15 bertrand 3389: rm -f conftest.er1 conftest.err
3390: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391: test $ac_status = 0; }
1.1 bertrand 3392: done
3393:
1.15 bertrand 3394: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395: /* end confdefs.h. */
3396:
3397: int
3398: main ()
3399: {
1.14 bertrand 3400:
1.15 bertrand 3401: ;
3402: return 0;
3403: }
3404: _ACEOF
3405: ac_clean_files_save=$ac_clean_files
3406: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3407: # Try to create an executable without -o first, disregard a.out.
3408: # It will help us diagnose broken compilers, and finding out an intuition
3409: # of exeext.
3410: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3411: $as_echo_n "checking whether the C compiler works... " >&6; }
3412: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14 bertrand 3413:
1.15 bertrand 3414: # The possible output files:
3415: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1 bertrand 3416:
1.15 bertrand 3417: ac_rmfiles=
3418: for ac_file in $ac_files
1.1 bertrand 3419: do
1.15 bertrand 3420: case $ac_file in
3421: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3422: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3423: esac
1.1 bertrand 3424: done
1.15 bertrand 3425: rm -f $ac_rmfiles
3426:
3427: if { { ac_try="$ac_link_default"
3428: case "(($ac_try" in
3429: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430: *) ac_try_echo=$ac_try;;
3431: esac
3432: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433: $as_echo "$ac_try_echo"; } >&5
3434: (eval "$ac_link_default") 2>&5
3435: ac_status=$?
3436: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437: test $ac_status = 0; }; then :
3438: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3439: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3440: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3441: # so that the user can short-circuit this test for compilers unknown to
3442: # Autoconf.
3443: for ac_file in $ac_files ''
3444: do
3445: test -f "$ac_file" || continue
3446: case $ac_file in
3447: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3448: ;;
3449: [ab].out )
3450: # We found the default executable, but exeext='' is most
3451: # certainly right.
3452: break;;
3453: *.* )
3454: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3455: then :; else
3456: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457: fi
3458: # We set ac_cv_exeext here because the later test for it is not
3459: # safe: cross compilers may not add the suffix if given an `-o'
3460: # argument, so we may need to know it at that point already.
3461: # Even if this section looks crufty: it has the advantage of
3462: # actually working.
3463: break;;
3464: * )
3465: break;;
3466: esac
1.14 bertrand 3467: done
1.15 bertrand 3468: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1 bertrand 3469:
1.14 bertrand 3470: else
1.15 bertrand 3471: ac_file=''
1.1 bertrand 3472: fi
1.15 bertrand 3473: if test -z "$ac_file"; then :
3474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475: $as_echo "no" >&6; }
3476: $as_echo "$as_me: failed program was:" >&5
3477: sed 's/^/| /' conftest.$ac_ext >&5
3478:
3479: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3481: as_fn_error 77 "C compiler cannot create executables
1.57 bertrand 3482: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 3483: else
3484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3485: $as_echo "yes" >&6; }
3486: fi
3487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3488: $as_echo_n "checking for C compiler default output file name... " >&6; }
3489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3490: $as_echo "$ac_file" >&6; }
3491: ac_exeext=$ac_cv_exeext
1.1 bertrand 3492:
1.15 bertrand 3493: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3494: ac_clean_files=$ac_clean_files_save
3495: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3496: $as_echo_n "checking for suffix of executables... " >&6; }
3497: if { { ac_try="$ac_link"
3498: case "(($ac_try" in
3499: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500: *) ac_try_echo=$ac_try;;
3501: esac
3502: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503: $as_echo "$ac_try_echo"; } >&5
3504: (eval "$ac_link") 2>&5
3505: ac_status=$?
3506: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507: test $ac_status = 0; }; then :
3508: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3509: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3510: # work properly (i.e., refer to `conftest.exe'), while it won't with
3511: # `rm'.
3512: for ac_file in conftest.exe conftest conftest.*; do
3513: test -f "$ac_file" || continue
3514: case $ac_file in
3515: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3516: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3517: break;;
3518: * ) break;;
3519: esac
3520: done
1.14 bertrand 3521: else
1.15 bertrand 3522: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3523: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3524: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.57 bertrand 3525: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 3526: fi
3527: rm -f conftest conftest$ac_cv_exeext
3528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3529: $as_echo "$ac_cv_exeext" >&6; }
3530:
3531: rm -f conftest.$ac_ext
3532: EXEEXT=$ac_cv_exeext
3533: ac_exeext=$EXEEXT
3534: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 3535: /* end confdefs.h. */
1.15 bertrand 3536: #include <stdio.h>
1.14 bertrand 3537: int
3538: main ()
3539: {
1.15 bertrand 3540: FILE *f = fopen ("conftest.out", "w");
3541: return ferror (f) || fclose (f) != 0;
3542:
1.14 bertrand 3543: ;
3544: return 0;
3545: }
3546: _ACEOF
1.15 bertrand 3547: ac_clean_files="$ac_clean_files conftest.out"
3548: # Check that the compiler produces executables we can run. If not, either
3549: # the compiler is broken, or we cross compile.
3550: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3551: $as_echo_n "checking whether we are cross compiling... " >&6; }
3552: if test "$cross_compiling" != yes; then
3553: { { ac_try="$ac_link"
1.1 bertrand 3554: case "(($ac_try" in
3555: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3556: *) ac_try_echo=$ac_try;;
3557: esac
1.15 bertrand 3558: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3559: $as_echo "$ac_try_echo"; } >&5
3560: (eval "$ac_link") 2>&5
3561: ac_status=$?
3562: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563: test $ac_status = 0; }
3564: if { ac_try='./conftest$ac_cv_exeext'
3565: { { case "(($ac_try" in
3566: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567: *) ac_try_echo=$ac_try;;
3568: esac
3569: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3570: $as_echo "$ac_try_echo"; } >&5
3571: (eval "$ac_try") 2>&5
1.1 bertrand 3572: ac_status=$?
1.15 bertrand 3573: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3574: test $ac_status = 0; }; }; then
3575: cross_compiling=no
3576: else
3577: if test "$cross_compiling" = maybe; then
3578: cross_compiling=yes
3579: else
3580: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3581: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3582: as_fn_error $? "cannot run C compiled programs.
1.15 bertrand 3583: If you meant to cross compile, use \`--host'.
1.57 bertrand 3584: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 3585: fi
3586: fi
1.14 bertrand 3587: fi
1.15 bertrand 3588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3589: $as_echo "$cross_compiling" >&6; }
1.14 bertrand 3590:
1.15 bertrand 3591: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3592: ac_clean_files=$ac_clean_files_save
3593: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3594: $as_echo_n "checking for suffix of object files... " >&6; }
1.57 bertrand 3595: if ${ac_cv_objext+:} false; then :
1.15 bertrand 3596: $as_echo_n "(cached) " >&6
1.14 bertrand 3597: else
1.15 bertrand 3598: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 3599: /* end confdefs.h. */
3600:
3601: int
3602: main ()
3603: {
1.15 bertrand 3604:
1.1 bertrand 3605: ;
3606: return 0;
3607: }
3608: _ACEOF
1.15 bertrand 3609: rm -f conftest.o conftest.obj
3610: if { { ac_try="$ac_compile"
1.1 bertrand 3611: case "(($ac_try" in
3612: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613: *) ac_try_echo=$ac_try;;
3614: esac
1.15 bertrand 3615: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616: $as_echo "$ac_try_echo"; } >&5
3617: (eval "$ac_compile") 2>&5
1.1 bertrand 3618: ac_status=$?
1.15 bertrand 3619: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620: test $ac_status = 0; }; then :
3621: for ac_file in conftest.o conftest.obj conftest.*; do
3622: test -f "$ac_file" || continue;
3623: case $ac_file in
3624: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3625: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3626: break;;
3627: esac
3628: done
1.14 bertrand 3629: else
1.15 bertrand 3630: $as_echo "$as_me: failed program was:" >&5
1.14 bertrand 3631: sed 's/^/| /' conftest.$ac_ext >&5
3632:
1.15 bertrand 3633: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3634: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3635: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.57 bertrand 3636: See \`config.log' for more details" "$LINENO" 5; }
1.14 bertrand 3637: fi
1.15 bertrand 3638: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3639: fi
3640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3641: $as_echo "$ac_cv_objext" >&6; }
3642: OBJEXT=$ac_cv_objext
3643: ac_objext=$OBJEXT
3644: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3645: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.57 bertrand 3646: if ${ac_cv_c_compiler_gnu+:} false; then :
1.15 bertrand 3647: $as_echo_n "(cached) " >&6
3648: else
3649: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650: /* end confdefs.h. */
3651:
3652: int
3653: main ()
3654: {
3655: #ifndef __GNUC__
3656: choke me
3657: #endif
1.14 bertrand 3658:
1.15 bertrand 3659: ;
3660: return 0;
3661: }
3662: _ACEOF
3663: if ac_fn_c_try_compile "$LINENO"; then :
3664: ac_compiler_gnu=yes
1.14 bertrand 3665: else
1.15 bertrand 3666: ac_compiler_gnu=no
1.14 bertrand 3667: fi
1.15 bertrand 3668: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14 bertrand 3670:
1.15 bertrand 3671: fi
3672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3673: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3674: if test $ac_compiler_gnu = yes; then
3675: GCC=yes
1.14 bertrand 3676: else
1.15 bertrand 3677: GCC=
1.14 bertrand 3678: fi
1.15 bertrand 3679: ac_test_CFLAGS=${CFLAGS+set}
3680: ac_save_CFLAGS=$CFLAGS
3681: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3682: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.57 bertrand 3683: if ${ac_cv_prog_cc_g+:} false; then :
1.15 bertrand 3684: $as_echo_n "(cached) " >&6
3685: else
3686: ac_save_c_werror_flag=$ac_c_werror_flag
3687: ac_c_werror_flag=yes
3688: ac_cv_prog_cc_g=no
3689: CFLAGS="-g"
3690: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691: /* end confdefs.h. */
1.14 bertrand 3692:
1.15 bertrand 3693: int
3694: main ()
3695: {
1.14 bertrand 3696:
1.15 bertrand 3697: ;
3698: return 0;
3699: }
3700: _ACEOF
3701: if ac_fn_c_try_compile "$LINENO"; then :
3702: ac_cv_prog_cc_g=yes
3703: else
3704: CFLAGS=""
3705: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706: /* end confdefs.h. */
1.14 bertrand 3707:
1.15 bertrand 3708: int
3709: main ()
3710: {
1.14 bertrand 3711:
1.15 bertrand 3712: ;
3713: return 0;
3714: }
3715: _ACEOF
3716: if ac_fn_c_try_compile "$LINENO"; then :
1.14 bertrand 3717:
1.15 bertrand 3718: else
3719: ac_c_werror_flag=$ac_save_c_werror_flag
3720: CFLAGS="-g"
3721: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722: /* end confdefs.h. */
1.14 bertrand 3723:
1.15 bertrand 3724: int
3725: main ()
3726: {
1.14 bertrand 3727:
1.15 bertrand 3728: ;
3729: return 0;
3730: }
3731: _ACEOF
3732: if ac_fn_c_try_compile "$LINENO"; then :
3733: ac_cv_prog_cc_g=yes
3734: fi
3735: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736: fi
3737: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738: fi
3739: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740: ac_c_werror_flag=$ac_save_c_werror_flag
3741: fi
3742: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3743: $as_echo "$ac_cv_prog_cc_g" >&6; }
3744: if test "$ac_test_CFLAGS" = set; then
3745: CFLAGS=$ac_save_CFLAGS
3746: elif test $ac_cv_prog_cc_g = yes; then
3747: if test "$GCC" = yes; then
3748: CFLAGS="-g -O2"
3749: else
3750: CFLAGS="-g"
3751: fi
3752: else
3753: if test "$GCC" = yes; then
3754: CFLAGS="-O2"
3755: else
3756: CFLAGS=
3757: fi
3758: fi
3759: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3760: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.57 bertrand 3761: if ${ac_cv_prog_cc_c89+:} false; then :
1.15 bertrand 3762: $as_echo_n "(cached) " >&6
1.1 bertrand 3763: else
1.15 bertrand 3764: ac_cv_prog_cc_c89=no
3765: ac_save_CC=$CC
3766: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 3767: /* end confdefs.h. */
1.15 bertrand 3768: #include <stdarg.h>
3769: #include <stdio.h>
3770: #include <sys/types.h>
3771: #include <sys/stat.h>
3772: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3773: struct buf { int x; };
3774: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3775: static char *e (p, i)
3776: char **p;
3777: int i;
3778: {
3779: return p[i];
3780: }
3781: static char *f (char * (*g) (char **, int), char **p, ...)
3782: {
3783: char *s;
3784: va_list v;
3785: va_start (v,p);
3786: s = g (p, va_arg (v,int));
3787: va_end (v);
3788: return s;
3789: }
3790:
3791: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3792: function prototypes and stuff, but not '\xHH' hex character constants.
3793: These don't provoke an error unfortunately, instead are silently treated
3794: as 'x'. The following induces an error, until -std is added to get
3795: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3796: array size at least. It's necessary to write '\x00'==0 to get something
3797: that's true only with -std. */
3798: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14 bertrand 3799:
1.15 bertrand 3800: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3801: inside strings and character constants. */
3802: #define FOO(x) 'x'
3803: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1 bertrand 3804:
1.15 bertrand 3805: int test (int i, double x);
3806: struct s1 {int (*f) (int a);};
3807: struct s2 {int (*f) (double a);};
3808: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3809: int argc;
3810: char **argv;
1.14 bertrand 3811: int
3812: main ()
3813: {
1.15 bertrand 3814: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.14 bertrand 3815: ;
3816: return 0;
3817: }
3818: _ACEOF
1.15 bertrand 3819: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3820: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3821: do
3822: CC="$ac_save_CC $ac_arg"
3823: if ac_fn_c_try_compile "$LINENO"; then :
3824: ac_cv_prog_cc_c89=$ac_arg
3825: fi
3826: rm -f core conftest.err conftest.$ac_objext
3827: test "x$ac_cv_prog_cc_c89" != "xno" && break
3828: done
3829: rm -f conftest.$ac_ext
3830: CC=$ac_save_CC
3831:
3832: fi
3833: # AC_CACHE_VAL
3834: case "x$ac_cv_prog_cc_c89" in
3835: x)
3836: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3837: $as_echo "none needed" >&6; } ;;
3838: xno)
3839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3840: $as_echo "unsupported" >&6; } ;;
3841: *)
3842: CC="$CC $ac_cv_prog_cc_c89"
3843: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3844: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1 bertrand 3845: esac
1.15 bertrand 3846: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14 bertrand 3847:
3848: fi
3849:
1.15 bertrand 3850: ac_ext=c
3851: ac_cpp='$CPP $CPPFLAGS'
3852: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3853: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3854: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855: DEPDIR="${am__leading_dot}deps"
3856:
3857: ac_config_commands="$ac_config_commands depfiles"
3858:
3859:
3860: am_make=${MAKE-make}
3861: cat > confinc << 'END'
3862: am__doit:
3863: @echo this is the am__doit target
3864: .PHONY: am__doit
3865: END
3866: # If we don't find an include directive, just comment out the code.
3867: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3868: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3869: am__include="#"
3870: am__quote=
3871: _am_result=none
3872: # First try GNU make style include.
3873: echo "include confinc" > confmf
3874: # Ignore all kinds of additional output from `make'.
3875: case `$am_make -s -f confmf 2> /dev/null` in #(
3876: *the\ am__doit\ target*)
3877: am__include=include
3878: am__quote=
3879: _am_result=GNU
3880: ;;
3881: esac
3882: # Now try BSD make style include.
3883: if test "$am__include" = "#"; then
3884: echo '.include "confinc"' > confmf
3885: case `$am_make -s -f confmf 2> /dev/null` in #(
3886: *the\ am__doit\ target*)
3887: am__include=.include
3888: am__quote="\""
3889: _am_result=BSD
3890: ;;
3891: esac
1.14 bertrand 3892: fi
3893:
3894:
1.15 bertrand 3895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3896: $as_echo "$_am_result" >&6; }
3897: rm -f confinc confmf
3898:
3899: # Check whether --enable-dependency-tracking was given.
3900: if test "${enable_dependency_tracking+set}" = set; then :
3901: enableval=$enable_dependency_tracking;
3902: fi
3903:
3904: if test "x$enable_dependency_tracking" != xno; then
3905: am_depcomp="$ac_aux_dir/depcomp"
3906: AMDEPBACKSLASH='\'
3907: fi
3908: if test "x$enable_dependency_tracking" != xno; then
3909: AMDEP_TRUE=
3910: AMDEP_FALSE='#'
1.1 bertrand 3911: else
1.15 bertrand 3912: AMDEP_TRUE='#'
3913: AMDEP_FALSE=
1.14 bertrand 3914: fi
1.1 bertrand 3915:
1.14 bertrand 3916:
3917:
1.15 bertrand 3918: depcc="$CC" am_compiler_list=
1.14 bertrand 3919:
1.15 bertrand 3920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3921: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57 bertrand 3922: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.15 bertrand 3923: $as_echo_n "(cached) " >&6
1.14 bertrand 3924: else
1.15 bertrand 3925: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3926: # We make a subdir and do the tests there. Otherwise we can end up
3927: # making bogus files that we don't know about and never remove. For
3928: # instance it was reported that on HP-UX the gcc test will end up
3929: # making a dummy file named `D' -- because `-MD' means `put the output
3930: # in D'.
3931: mkdir conftest.dir
3932: # Copy depcomp to subdir because otherwise we won't find it if we're
3933: # using a relative directory.
3934: cp "$am_depcomp" conftest.dir
3935: cd conftest.dir
3936: # We will build objects and dependencies in a subdirectory because
3937: # it helps to detect inapplicable dependency modes. For instance
3938: # both Tru64's cc and ICC support -MD to output dependencies as a
3939: # side effect of compilation, but ICC will put the dependencies in
3940: # the current directory while Tru64 will put them in the object
3941: # directory.
3942: mkdir sub
1.14 bertrand 3943:
1.15 bertrand 3944: am_cv_CC_dependencies_compiler_type=none
3945: if test "$am_compiler_list" = ""; then
3946: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3947: fi
3948: am__universal=false
3949: case " $depcc " in #(
3950: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3951: esac
1.14 bertrand 3952:
1.15 bertrand 3953: for depmode in $am_compiler_list; do
3954: # Setup a source with many dependencies, because some compilers
3955: # like to wrap large dependency lists on column 80 (with \), and
3956: # we should not choose a depcomp mode which is confused by this.
3957: #
3958: # We need to recreate these files for each test, as the compiler may
3959: # overwrite some of them when testing with obscure command lines.
3960: # This happens at least with the AIX C compiler.
3961: : > sub/conftest.c
3962: for i in 1 2 3 4 5 6; do
3963: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3964: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3965: # Solaris 8's {/usr,}/bin/sh.
3966: touch sub/conftst$i.h
3967: done
3968: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14 bertrand 3969:
1.15 bertrand 3970: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3971: # mode. It turns out that the SunPro C++ compiler does not properly
3972: # handle `-M -o', and we need to detect this. Also, some Intel
3973: # versions had trouble with output in subdirs
3974: am__obj=sub/conftest.${OBJEXT-o}
3975: am__minus_obj="-o $am__obj"
3976: case $depmode in
3977: gcc)
3978: # This depmode causes a compiler race in universal mode.
3979: test "$am__universal" = false || continue
3980: ;;
3981: nosideeffect)
3982: # after this tag, mechanisms are not by side-effect, so they'll
3983: # only be used when explicitly requested
3984: if test "x$enable_dependency_tracking" = xyes; then
3985: continue
3986: else
3987: break
3988: fi
3989: ;;
3990: msvisualcpp | msvcmsys)
3991: # This compiler won't grok `-c -o', but also, the minuso test has
3992: # not run yet. These depmodes are late enough in the game, and
3993: # so weak that their functioning should not be impacted.
3994: am__obj=conftest.${OBJEXT-o}
3995: am__minus_obj=
3996: ;;
3997: none) break ;;
3998: esac
3999: if depmode=$depmode \
4000: source=sub/conftest.c object=$am__obj \
4001: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4002: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4003: >/dev/null 2>conftest.err &&
4004: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4005: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4006: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4007: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4008: # icc doesn't choke on unknown options, it will just issue warnings
4009: # or remarks (even with -Werror). So we grep stderr for any message
4010: # that says an option was ignored or not supported.
4011: # When given -MP, icc 7.0 and 7.1 complain thusly:
4012: # icc: Command line warning: ignoring option '-M'; no argument required
4013: # The diagnosis changed in icc 8.0:
4014: # icc: Command line remark: option '-MP' not supported
4015: if (grep 'ignoring option' conftest.err ||
4016: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4017: am_cv_CC_dependencies_compiler_type=$depmode
4018: break
4019: fi
4020: fi
4021: done
1.14 bertrand 4022:
1.15 bertrand 4023: cd ..
4024: rm -rf conftest.dir
1.14 bertrand 4025: else
1.15 bertrand 4026: am_cv_CC_dependencies_compiler_type=none
1.1 bertrand 4027: fi
4028:
1.15 bertrand 4029: fi
4030: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4031: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4032: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14 bertrand 4033:
1.15 bertrand 4034: if
4035: test "x$enable_dependency_tracking" != xno \
4036: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4037: am__fastdepCC_TRUE=
4038: am__fastdepCC_FALSE='#'
1.1 bertrand 4039: else
1.15 bertrand 4040: am__fastdepCC_TRUE='#'
4041: am__fastdepCC_FALSE=
4042: fi
4043:
1.1 bertrand 4044:
4045:
1.30 bertrand 4046: EXT_SQL=
4047:
1.15 bertrand 4048: if test x"$CC" != x""; then
4049: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4050: awk -F. '{ printf("%s", $1);}'`
4051: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4052: awk -F. '{ printf("%s", $2);}'`
1.23 bertrand 4053: if test $GCC_VERSION_MAJEURE -ge 5; then
1.15 bertrand 4054: OPTIMISATION_C=-O3
4055: else
1.23 bertrand 4056: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
4057: then
1.15 bertrand 4058: OPTIMISATION_C=-O3
4059: else
1.23 bertrand 4060: if test $GCC_VERSION_MAJEURE -ge 2; then
4061: OPTIMISATION_C=-O2
4062: else
1.36 bertrand 4063: as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23 bertrand 4064: fi
1.15 bertrand 4065: fi
4066: fi
1.14 bertrand 4067: fi
4068:
1.15 bertrand 4069: if test "x$CC" != xcc; then
4070: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4071: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14 bertrand 4072: else
1.15 bertrand 4073: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4074: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1 bertrand 4075: fi
1.15 bertrand 4076: set dummy $CC; ac_cc=`$as_echo "$2" |
4077: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.57 bertrand 4078: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
1.15 bertrand 4079: $as_echo_n "(cached) " >&6
1.1 bertrand 4080: else
1.15 bertrand 4081: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 4082: /* end confdefs.h. */
4083:
4084: int
4085: main ()
4086: {
1.15 bertrand 4087:
1.1 bertrand 4088: ;
4089: return 0;
4090: }
4091: _ACEOF
1.15 bertrand 4092: # Make sure it works both with $CC and with simple cc.
4093: # We do the test twice because some compilers refuse to overwrite an
4094: # existing .o file with -o, though they will create one.
4095: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4096: rm -f conftest2.*
4097: if { { case "(($ac_try" in
4098: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099: *) ac_try_echo=$ac_try;;
4100: esac
4101: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4102: $as_echo "$ac_try_echo"; } >&5
4103: (eval "$ac_try") 2>&5
4104: ac_status=$?
4105: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4106: test $ac_status = 0; } &&
4107: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4108: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109: *) ac_try_echo=$ac_try;;
4110: esac
4111: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4112: $as_echo "$ac_try_echo"; } >&5
4113: (eval "$ac_try") 2>&5
4114: ac_status=$?
4115: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4116: test $ac_status = 0; };
4117: then
4118: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4119: if test "x$CC" != xcc; then
4120: # Test first that cc exists at all.
4121: if { ac_try='cc -c conftest.$ac_ext >&5'
4122: { { case "(($ac_try" in
4123: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124: *) ac_try_echo=$ac_try;;
4125: esac
4126: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4127: $as_echo "$ac_try_echo"; } >&5
4128: (eval "$ac_try") 2>&5
4129: ac_status=$?
4130: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131: test $ac_status = 0; }; }; then
4132: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4133: rm -f conftest2.*
4134: if { { case "(($ac_try" in
4135: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136: *) ac_try_echo=$ac_try;;
4137: esac
4138: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4139: $as_echo "$ac_try_echo"; } >&5
4140: (eval "$ac_try") 2>&5
4141: ac_status=$?
4142: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4143: test $ac_status = 0; } &&
4144: test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14 bertrand 4145: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4146: *) ac_try_echo=$ac_try;;
4147: esac
1.15 bertrand 4148: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4149: $as_echo "$ac_try_echo"; } >&5
4150: (eval "$ac_try") 2>&5
1.14 bertrand 4151: ac_status=$?
1.15 bertrand 4152: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153: test $ac_status = 0; };
4154: then
4155: # cc works too.
4156: :
4157: else
4158: # cc exists but doesn't like -o.
4159: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4160: fi
4161: fi
4162: fi
1.1 bertrand 4163: else
1.15 bertrand 4164: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4165: fi
4166: rm -f core conftest*
1.14 bertrand 4167:
1.1 bertrand 4168: fi
1.15 bertrand 4169: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4171: $as_echo "yes" >&6; }
4172: else
4173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174: $as_echo "no" >&6; }
4175:
4176: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1 bertrand 4177:
4178: fi
1.15 bertrand 4179:
4180: # FIXME: we rely on the cache variable name because
4181: # there is no other way.
4182: set dummy $CC
4183: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4184: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4185: if test "$am_t" != yes; then
4186: # Losing compiler, so override with the script.
4187: # FIXME: It is wrong to rewrite CC.
4188: # But if we don't then we get into trouble of one sort or another.
4189: # A longer-term fix would be to have automake use am__CC in this case,
4190: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4191: CC="$am_aux_dir/compile $CC"
1.1 bertrand 4192: fi
1.14 bertrand 4193:
4194:
1.15 bertrand 4195:
4196: if test "$GCC" != yes; then
1.36 bertrand 4197: as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15 bertrand 4198: fi
4199:
4200: ac_ext=cpp
4201: ac_cpp='$CXXCPP $CPPFLAGS'
4202: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4203: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4204: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4205: if test -z "$CXX"; then
4206: if test -n "$CCC"; then
4207: CXX=$CCC
4208: else
4209: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4210: for ac_prog in g++
1.15 bertrand 4211: do
4212: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4213: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4214: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4216: if ${ac_cv_prog_CXX+:} false; then :
1.15 bertrand 4217: $as_echo_n "(cached) " >&6
1.1 bertrand 4218: else
1.15 bertrand 4219: if test -n "$CXX"; then
4220: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14 bertrand 4221: else
1.15 bertrand 4222: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223: for as_dir in $PATH
4224: do
4225: IFS=$as_save_IFS
4226: test -z "$as_dir" && as_dir=.
4227: for ac_exec_ext in '' $ac_executable_extensions; do
4228: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4230: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231: break 2
4232: fi
4233: done
4234: done
4235: IFS=$as_save_IFS
1.14 bertrand 4236:
4237: fi
4238: fi
1.15 bertrand 4239: CXX=$ac_cv_prog_CXX
4240: if test -n "$CXX"; then
4241: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4242: $as_echo "$CXX" >&6; }
1.14 bertrand 4243: else
1.15 bertrand 4244: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245: $as_echo "no" >&6; }
1.14 bertrand 4246: fi
4247:
4248:
1.15 bertrand 4249: test -n "$CXX" && break
4250: done
4251: fi
4252: if test -z "$CXX"; then
4253: ac_ct_CXX=$CXX
1.23 bertrand 4254: for ac_prog in g++
1.15 bertrand 4255: do
4256: # Extract the first word of "$ac_prog", so it can be a program name with args.
4257: set dummy $ac_prog; ac_word=$2
4258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4260: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1.15 bertrand 4261: $as_echo_n "(cached) " >&6
4262: else
4263: if test -n "$ac_ct_CXX"; then
4264: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4265: else
4266: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267: for as_dir in $PATH
4268: do
4269: IFS=$as_save_IFS
4270: test -z "$as_dir" && as_dir=.
4271: for ac_exec_ext in '' $ac_executable_extensions; do
4272: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4273: ac_cv_prog_ac_ct_CXX="$ac_prog"
4274: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275: break 2
4276: fi
4277: done
4278: done
4279: IFS=$as_save_IFS
1.14 bertrand 4280:
1.15 bertrand 4281: fi
4282: fi
4283: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4284: if test -n "$ac_ct_CXX"; then
4285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4286: $as_echo "$ac_ct_CXX" >&6; }
1.1 bertrand 4287: else
1.15 bertrand 4288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289: $as_echo "no" >&6; }
1.14 bertrand 4290: fi
4291:
4292:
1.15 bertrand 4293: test -n "$ac_ct_CXX" && break
4294: done
1.14 bertrand 4295:
1.15 bertrand 4296: if test "x$ac_ct_CXX" = x; then
4297: CXX="g++"
4298: else
4299: case $cross_compiling:$ac_tool_warned in
4300: yes:)
4301: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4302: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4303: ac_tool_warned=yes ;;
4304: esac
4305: CXX=$ac_ct_CXX
4306: fi
4307: fi
1.1 bertrand 4308:
1.15 bertrand 4309: fi
4310: fi
4311: # Provide some information about the compiler.
4312: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4313: set X $ac_compile
4314: ac_compiler=$2
4315: for ac_option in --version -v -V -qversion; do
4316: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4317: case "(($ac_try" in
4318: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319: *) ac_try_echo=$ac_try;;
4320: esac
1.15 bertrand 4321: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4322: $as_echo "$ac_try_echo"; } >&5
4323: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4324: ac_status=$?
1.15 bertrand 4325: if test -s conftest.err; then
4326: sed '10a\
4327: ... rest of stderr output deleted ...
4328: 10q' conftest.err >conftest.er1
4329: cat conftest.er1 >&5
4330: fi
4331: rm -f conftest.er1 conftest.err
4332: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4333: test $ac_status = 0; }
4334: done
4335:
4336: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4337: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
1.57 bertrand 4338: if ${ac_cv_cxx_compiler_gnu+:} false; then :
1.15 bertrand 4339: $as_echo_n "(cached) " >&6
1.14 bertrand 4340: else
1.15 bertrand 4341: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342: /* end confdefs.h. */
1.1 bertrand 4343:
4344: int
4345: main ()
4346: {
1.15 bertrand 4347: #ifndef __GNUC__
4348: choke me
4349: #endif
1.1 bertrand 4350:
4351: ;
4352: return 0;
4353: }
4354: _ACEOF
1.15 bertrand 4355: if ac_fn_cxx_try_compile "$LINENO"; then :
4356: ac_compiler_gnu=yes
1.1 bertrand 4357: else
1.15 bertrand 4358: ac_compiler_gnu=no
1.1 bertrand 4359: fi
1.14 bertrand 4360: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 4361: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4362:
1.15 bertrand 4363: fi
4364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4365: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4366: if test $ac_compiler_gnu = yes; then
4367: GXX=yes
4368: else
4369: GXX=
4370: fi
4371: ac_test_CXXFLAGS=${CXXFLAGS+set}
4372: ac_save_CXXFLAGS=$CXXFLAGS
4373: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4374: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
1.57 bertrand 4375: if ${ac_cv_prog_cxx_g+:} false; then :
1.15 bertrand 4376: $as_echo_n "(cached) " >&6
4377: else
4378: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4379: ac_cxx_werror_flag=yes
4380: ac_cv_prog_cxx_g=no
4381: CXXFLAGS="-g"
4382: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 4383: /* end confdefs.h. */
1.15 bertrand 4384:
1.1 bertrand 4385: int
4386: main ()
4387: {
1.14 bertrand 4388:
1.1 bertrand 4389: ;
4390: return 0;
4391: }
4392: _ACEOF
1.15 bertrand 4393: if ac_fn_cxx_try_compile "$LINENO"; then :
4394: ac_cv_prog_cxx_g=yes
1.14 bertrand 4395: else
1.15 bertrand 4396: CXXFLAGS=""
4397: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398: /* end confdefs.h. */
1.1 bertrand 4399:
1.14 bertrand 4400: int
4401: main ()
4402: {
1.1 bertrand 4403:
1.14 bertrand 4404: ;
4405: return 0;
4406: }
4407: _ACEOF
1.15 bertrand 4408: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1 bertrand 4409:
4410: else
1.15 bertrand 4411: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4412: CXXFLAGS="-g"
4413: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4414: /* end confdefs.h. */
1.1 bertrand 4415:
1.14 bertrand 4416: int
4417: main ()
4418: {
1.1 bertrand 4419:
1.14 bertrand 4420: ;
4421: return 0;
4422: }
4423: _ACEOF
1.15 bertrand 4424: if ac_fn_cxx_try_compile "$LINENO"; then :
4425: ac_cv_prog_cxx_g=yes
4426: fi
4427: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4428: fi
4429: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430: fi
4431: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4433: fi
4434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4435: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4436: if test "$ac_test_CXXFLAGS" = set; then
4437: CXXFLAGS=$ac_save_CXXFLAGS
4438: elif test $ac_cv_prog_cxx_g = yes; then
4439: if test "$GXX" = yes; then
4440: CXXFLAGS="-g -O2"
4441: else
4442: CXXFLAGS="-g"
4443: fi
4444: else
4445: if test "$GXX" = yes; then
4446: CXXFLAGS="-O2"
4447: else
4448: CXXFLAGS=
4449: fi
4450: fi
4451: ac_ext=c
4452: ac_cpp='$CPP $CPPFLAGS'
4453: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456:
4457: depcc="$CXX" am_compiler_list=
4458:
4459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4460: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57 bertrand 4461: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
1.15 bertrand 4462: $as_echo_n "(cached) " >&6
4463: else
4464: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4465: # We make a subdir and do the tests there. Otherwise we can end up
4466: # making bogus files that we don't know about and never remove. For
4467: # instance it was reported that on HP-UX the gcc test will end up
4468: # making a dummy file named `D' -- because `-MD' means `put the output
4469: # in D'.
4470: mkdir conftest.dir
4471: # Copy depcomp to subdir because otherwise we won't find it if we're
4472: # using a relative directory.
4473: cp "$am_depcomp" conftest.dir
4474: cd conftest.dir
4475: # We will build objects and dependencies in a subdirectory because
4476: # it helps to detect inapplicable dependency modes. For instance
4477: # both Tru64's cc and ICC support -MD to output dependencies as a
4478: # side effect of compilation, but ICC will put the dependencies in
4479: # the current directory while Tru64 will put them in the object
4480: # directory.
4481: mkdir sub
4482:
4483: am_cv_CXX_dependencies_compiler_type=none
4484: if test "$am_compiler_list" = ""; then
4485: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4486: fi
4487: am__universal=false
4488: case " $depcc " in #(
4489: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4490: esac
4491:
4492: for depmode in $am_compiler_list; do
4493: # Setup a source with many dependencies, because some compilers
4494: # like to wrap large dependency lists on column 80 (with \), and
4495: # we should not choose a depcomp mode which is confused by this.
4496: #
4497: # We need to recreate these files for each test, as the compiler may
4498: # overwrite some of them when testing with obscure command lines.
4499: # This happens at least with the AIX C compiler.
4500: : > sub/conftest.c
4501: for i in 1 2 3 4 5 6; do
4502: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4503: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4504: # Solaris 8's {/usr,}/bin/sh.
4505: touch sub/conftst$i.h
4506: done
4507: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4508:
4509: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4510: # mode. It turns out that the SunPro C++ compiler does not properly
4511: # handle `-M -o', and we need to detect this. Also, some Intel
4512: # versions had trouble with output in subdirs
4513: am__obj=sub/conftest.${OBJEXT-o}
4514: am__minus_obj="-o $am__obj"
4515: case $depmode in
4516: gcc)
4517: # This depmode causes a compiler race in universal mode.
4518: test "$am__universal" = false || continue
4519: ;;
4520: nosideeffect)
4521: # after this tag, mechanisms are not by side-effect, so they'll
4522: # only be used when explicitly requested
4523: if test "x$enable_dependency_tracking" = xyes; then
4524: continue
4525: else
4526: break
4527: fi
4528: ;;
4529: msvisualcpp | msvcmsys)
4530: # This compiler won't grok `-c -o', but also, the minuso test has
4531: # not run yet. These depmodes are late enough in the game, and
4532: # so weak that their functioning should not be impacted.
4533: am__obj=conftest.${OBJEXT-o}
4534: am__minus_obj=
4535: ;;
4536: none) break ;;
4537: esac
4538: if depmode=$depmode \
4539: source=sub/conftest.c object=$am__obj \
4540: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4541: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4542: >/dev/null 2>conftest.err &&
4543: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4544: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4545: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4546: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4547: # icc doesn't choke on unknown options, it will just issue warnings
4548: # or remarks (even with -Werror). So we grep stderr for any message
4549: # that says an option was ignored or not supported.
4550: # When given -MP, icc 7.0 and 7.1 complain thusly:
4551: # icc: Command line warning: ignoring option '-M'; no argument required
4552: # The diagnosis changed in icc 8.0:
4553: # icc: Command line remark: option '-MP' not supported
4554: if (grep 'ignoring option' conftest.err ||
4555: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4556: am_cv_CXX_dependencies_compiler_type=$depmode
4557: break
4558: fi
4559: fi
4560: done
4561:
4562: cd ..
4563: rm -rf conftest.dir
4564: else
4565: am_cv_CXX_dependencies_compiler_type=none
4566: fi
4567:
4568: fi
4569: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4570: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4571: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4572:
4573: if
4574: test "x$enable_dependency_tracking" != xno \
4575: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4576: am__fastdepCXX_TRUE=
4577: am__fastdepCXX_FALSE='#'
4578: else
4579: am__fastdepCXX_TRUE='#'
4580: am__fastdepCXX_FALSE=
4581: fi
4582:
4583:
4584:
4585: if test "$GXX" != yes; then
1.36 bertrand 4586: as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15 bertrand 4587: fi
4588:
4589: ac_ext=f
4590: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4591: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4592: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4593: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4594: for ac_prog in gfortran
1.15 bertrand 4595: do
4596: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4597: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4598: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4599: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4600: if ${ac_cv_prog_F77+:} false; then :
1.15 bertrand 4601: $as_echo_n "(cached) " >&6
4602: else
4603: if test -n "$F77"; then
4604: ac_cv_prog_F77="$F77" # Let the user override the test.
4605: else
4606: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607: for as_dir in $PATH
4608: do
4609: IFS=$as_save_IFS
4610: test -z "$as_dir" && as_dir=.
4611: for ac_exec_ext in '' $ac_executable_extensions; do
4612: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4613: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4614: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4615: break 2
4616: fi
4617: done
4618: done
4619: IFS=$as_save_IFS
4620:
4621: fi
4622: fi
4623: F77=$ac_cv_prog_F77
4624: if test -n "$F77"; then
4625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4626: $as_echo "$F77" >&6; }
4627: else
4628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4629: $as_echo "no" >&6; }
4630: fi
4631:
4632:
4633: test -n "$F77" && break
4634: done
4635: fi
4636: if test -z "$F77"; then
4637: ac_ct_F77=$F77
1.23 bertrand 4638: for ac_prog in gfortran
1.15 bertrand 4639: do
4640: # Extract the first word of "$ac_prog", so it can be a program name with args.
4641: set dummy $ac_prog; ac_word=$2
4642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4643: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4644: if ${ac_cv_prog_ac_ct_F77+:} false; then :
1.15 bertrand 4645: $as_echo_n "(cached) " >&6
4646: else
4647: if test -n "$ac_ct_F77"; then
4648: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4649: else
4650: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651: for as_dir in $PATH
4652: do
4653: IFS=$as_save_IFS
4654: test -z "$as_dir" && as_dir=.
4655: for ac_exec_ext in '' $ac_executable_extensions; do
4656: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4657: ac_cv_prog_ac_ct_F77="$ac_prog"
4658: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4659: break 2
4660: fi
4661: done
4662: done
4663: IFS=$as_save_IFS
4664:
4665: fi
4666: fi
4667: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4668: if test -n "$ac_ct_F77"; then
4669: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4670: $as_echo "$ac_ct_F77" >&6; }
1.1 bertrand 4671: else
1.15 bertrand 4672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673: $as_echo "no" >&6; }
4674: fi
4675:
4676:
4677: test -n "$ac_ct_F77" && break
4678: done
1.1 bertrand 4679:
1.15 bertrand 4680: if test "x$ac_ct_F77" = x; then
4681: F77=""
4682: else
4683: case $cross_compiling:$ac_tool_warned in
4684: yes:)
4685: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4686: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4687: ac_tool_warned=yes ;;
4688: esac
4689: F77=$ac_ct_F77
4690: fi
1.14 bertrand 4691: fi
1.1 bertrand 4692:
4693:
1.15 bertrand 4694: # Provide some information about the compiler.
4695: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4696: set X $ac_compile
4697: ac_compiler=$2
4698: for ac_option in --version -v -V -qversion; do
4699: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4700: case "(($ac_try" in
4701: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4702: *) ac_try_echo=$ac_try;;
4703: esac
1.15 bertrand 4704: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4705: $as_echo "$ac_try_echo"; } >&5
4706: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4707: ac_status=$?
1.15 bertrand 4708: if test -s conftest.err; then
4709: sed '10a\
4710: ... rest of stderr output deleted ...
4711: 10q' conftest.err >conftest.er1
4712: cat conftest.er1 >&5
4713: fi
4714: rm -f conftest.er1 conftest.err
4715: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4716: test $ac_status = 0; }
4717: done
4718: rm -f a.out
4719:
4720: # If we don't use `.F' as extension, the preprocessor is not run on the
4721: # input file. (Note that this only needs to work for GNU compilers.)
4722: ac_save_ext=$ac_ext
4723: ac_ext=F
4724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4725: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
1.57 bertrand 4726: if ${ac_cv_f77_compiler_gnu+:} false; then :
1.15 bertrand 4727: $as_echo_n "(cached) " >&6
1.1 bertrand 4728: else
1.15 bertrand 4729: cat > conftest.$ac_ext <<_ACEOF
4730: program main
4731: #ifndef __GNUC__
4732: choke me
4733: #endif
1.14 bertrand 4734:
1.15 bertrand 4735: end
4736: _ACEOF
4737: if ac_fn_f77_try_compile "$LINENO"; then :
4738: ac_compiler_gnu=yes
4739: else
4740: ac_compiler_gnu=no
1.1 bertrand 4741: fi
1.15 bertrand 4742: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4744:
4745: fi
1.15 bertrand 4746: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4747: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4748: ac_ext=$ac_save_ext
4749: ac_test_FFLAGS=${FFLAGS+set}
4750: ac_save_FFLAGS=$FFLAGS
4751: FFLAGS=
4752: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4753: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
1.57 bertrand 4754: if ${ac_cv_prog_f77_g+:} false; then :
1.15 bertrand 4755: $as_echo_n "(cached) " >&6
4756: else
4757: FFLAGS=-g
4758: cat > conftest.$ac_ext <<_ACEOF
4759: program main
1.1 bertrand 4760:
1.15 bertrand 4761: end
1.14 bertrand 4762: _ACEOF
1.15 bertrand 4763: if ac_fn_f77_try_compile "$LINENO"; then :
4764: ac_cv_prog_f77_g=yes
1.1 bertrand 4765: else
1.15 bertrand 4766: ac_cv_prog_f77_g=no
1.1 bertrand 4767: fi
1.15 bertrand 4768: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 4769:
4770: fi
1.15 bertrand 4771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4772: $as_echo "$ac_cv_prog_f77_g" >&6; }
4773: if test "$ac_test_FFLAGS" = set; then
4774: FFLAGS=$ac_save_FFLAGS
4775: elif test $ac_cv_prog_f77_g = yes; then
4776: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4777: FFLAGS="-g -O2"
4778: else
4779: FFLAGS="-g"
4780: fi
4781: else
4782: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4783: FFLAGS="-O2"
4784: else
4785: FFLAGS=
4786: fi
1.1 bertrand 4787: fi
4788:
1.15 bertrand 4789: if test $ac_compiler_gnu = yes; then
4790: G77=yes
1.1 bertrand 4791: else
1.15 bertrand 4792: G77=
1.1 bertrand 4793: fi
1.15 bertrand 4794: ac_ext=c
4795: ac_cpp='$CPP $CPPFLAGS'
4796: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4797: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4798: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 bertrand 4799:
4800:
1.15 bertrand 4801: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
1.36 bertrand 4802: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.15 bertrand 4803: fi
1.14 bertrand 4804:
1.15 bertrand 4805: ac_ext=${ac_fc_srcext-f}
4806: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4807: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4808: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4809: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4810: for ac_prog in gfortran
1.15 bertrand 4811: do
4812: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4813: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4814: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4815: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4816: if ${ac_cv_prog_FC+:} false; then :
1.15 bertrand 4817: $as_echo_n "(cached) " >&6
4818: else
4819: if test -n "$FC"; then
4820: ac_cv_prog_FC="$FC" # Let the user override the test.
1.1 bertrand 4821: else
1.15 bertrand 4822: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823: for as_dir in $PATH
4824: do
4825: IFS=$as_save_IFS
4826: test -z "$as_dir" && as_dir=.
4827: for ac_exec_ext in '' $ac_executable_extensions; do
4828: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4830: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4831: break 2
4832: fi
4833: done
4834: done
4835: IFS=$as_save_IFS
1.1 bertrand 4836:
4837: fi
1.15 bertrand 4838: fi
4839: FC=$ac_cv_prog_FC
4840: if test -n "$FC"; then
4841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4842: $as_echo "$FC" >&6; }
1.14 bertrand 4843: else
1.15 bertrand 4844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4845: $as_echo "no" >&6; }
1.14 bertrand 4846: fi
4847:
1.1 bertrand 4848:
1.15 bertrand 4849: test -n "$FC" && break
4850: done
4851: fi
4852: if test -z "$FC"; then
4853: ac_ct_FC=$FC
1.23 bertrand 4854: for ac_prog in gfortran
1.15 bertrand 4855: do
4856: # Extract the first word of "$ac_prog", so it can be a program name with args.
4857: set dummy $ac_prog; ac_word=$2
4858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4860: if ${ac_cv_prog_ac_ct_FC+:} false; then :
1.15 bertrand 4861: $as_echo_n "(cached) " >&6
4862: else
4863: if test -n "$ac_ct_FC"; then
4864: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4865: else
4866: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867: for as_dir in $PATH
4868: do
4869: IFS=$as_save_IFS
4870: test -z "$as_dir" && as_dir=.
4871: for ac_exec_ext in '' $ac_executable_extensions; do
4872: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873: ac_cv_prog_ac_ct_FC="$ac_prog"
4874: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875: break 2
4876: fi
4877: done
4878: done
4879: IFS=$as_save_IFS
1.1 bertrand 4880:
1.15 bertrand 4881: fi
4882: fi
4883: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4884: if test -n "$ac_ct_FC"; then
4885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4886: $as_echo "$ac_ct_FC" >&6; }
1.1 bertrand 4887: else
1.15 bertrand 4888: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889: $as_echo "no" >&6; }
1.1 bertrand 4890: fi
1.14 bertrand 4891:
1.1 bertrand 4892:
1.15 bertrand 4893: test -n "$ac_ct_FC" && break
4894: done
1.1 bertrand 4895:
1.15 bertrand 4896: if test "x$ac_ct_FC" = x; then
4897: FC=""
4898: else
4899: case $cross_compiling:$ac_tool_warned in
4900: yes:)
4901: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903: ac_tool_warned=yes ;;
1.14 bertrand 4904: esac
1.15 bertrand 4905: FC=$ac_ct_FC
4906: fi
1.14 bertrand 4907: fi
4908:
4909:
1.15 bertrand 4910: # Provide some information about the compiler.
4911: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4912: set X $ac_compile
4913: ac_compiler=$2
4914: for ac_option in --version -v -V -qversion; do
4915: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4916: case "(($ac_try" in
4917: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918: *) ac_try_echo=$ac_try;;
4919: esac
1.15 bertrand 4920: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4921: $as_echo "$ac_try_echo"; } >&5
4922: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4923: ac_status=$?
1.15 bertrand 4924: if test -s conftest.err; then
4925: sed '10a\
4926: ... rest of stderr output deleted ...
4927: 10q' conftest.err >conftest.er1
4928: cat conftest.er1 >&5
4929: fi
4930: rm -f conftest.er1 conftest.err
4931: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4932: test $ac_status = 0; }
4933: done
4934: rm -f a.out
4935:
4936: # If we don't use `.F' as extension, the preprocessor is not run on the
4937: # input file. (Note that this only needs to work for GNU compilers.)
4938: ac_save_ext=$ac_ext
4939: ac_ext=F
4940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4941: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
1.57 bertrand 4942: if ${ac_cv_fc_compiler_gnu+:} false; then :
1.15 bertrand 4943: $as_echo_n "(cached) " >&6
1.14 bertrand 4944: else
1.15 bertrand 4945: cat > conftest.$ac_ext <<_ACEOF
4946: program main
4947: #ifndef __GNUC__
4948: choke me
4949: #endif
1.14 bertrand 4950:
1.15 bertrand 4951: end
4952: _ACEOF
4953: if ac_fn_fc_try_compile "$LINENO"; then :
4954: ac_compiler_gnu=yes
4955: else
4956: ac_compiler_gnu=no
1.14 bertrand 4957: fi
4958: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 4959: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4960:
1.15 bertrand 4961: fi
4962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4963: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4964: ac_ext=$ac_save_ext
4965: ac_test_FCFLAGS=${FCFLAGS+set}
4966: ac_save_FCFLAGS=$FCFLAGS
4967: FCFLAGS=
4968: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4969: $as_echo_n "checking whether $FC accepts -g... " >&6; }
1.57 bertrand 4970: if ${ac_cv_prog_fc_g+:} false; then :
1.15 bertrand 4971: $as_echo_n "(cached) " >&6
4972: else
4973: FCFLAGS=-g
4974: cat > conftest.$ac_ext <<_ACEOF
4975: program main
1.1 bertrand 4976:
1.15 bertrand 4977: end
1.1 bertrand 4978: _ACEOF
1.15 bertrand 4979: if ac_fn_fc_try_compile "$LINENO"; then :
4980: ac_cv_prog_fc_g=yes
1.1 bertrand 4981: else
1.15 bertrand 4982: ac_cv_prog_fc_g=no
1.1 bertrand 4983: fi
1.14 bertrand 4984: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 4985:
1.15 bertrand 4986: fi
4987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4988: $as_echo "$ac_cv_prog_fc_g" >&6; }
4989: if test "$ac_test_FCFLAGS" = set; then
4990: FCFLAGS=$ac_save_FCFLAGS
4991: elif test $ac_cv_prog_fc_g = yes; then
4992: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4993: FCFLAGS="-g -O2"
4994: else
4995: FCFLAGS="-g"
4996: fi
1.1 bertrand 4997: else
1.15 bertrand 4998: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4999: FCFLAGS="-O2"
5000: else
5001: FCFLAGS=
5002: fi
1.1 bertrand 5003: fi
5004:
1.15 bertrand 5005: ac_ext=c
5006: ac_cpp='$CPP $CPPFLAGS'
5007: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5008: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5009: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 bertrand 5010:
5011:
1.15 bertrand 5012: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
1.36 bertrand 5013: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1 bertrand 5014: fi
5015:
1.15 bertrand 5016: if test x"$FC" != x""; then
5017: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
5018: awk -F. '{ printf("%s", $1);}'`
5019: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
5020: awk -F. '{ printf("%s", $2);}'`
1.23 bertrand 5021: if test $GCC_VERSION_MAJEURE -ge 5; then
1.15 bertrand 5022: OPTIMISATION_F=-O3
5023: else
1.23 bertrand 5024: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15 bertrand 5025: OPTIMISATION_F=-O3
5026: else
1.23 bertrand 5027: if test $GCC_VERSION_MAJEURE -ge 3; then
5028: OPTIMISATION_F=-O2
5029: else
1.36 bertrand 5030: as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23 bertrand 5031: fi
1.14 bertrand 5032: fi
5033: fi
5034: fi
1.1 bertrand 5035:
5036:
1.15 bertrand 5037: ac_ext=c
5038: ac_cpp='$CPP $CPPFLAGS'
5039: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5042: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5043: $as_echo_n "checking how to run the C preprocessor... " >&6; }
5044: # On Suns, sometimes $CPP names a directory.
5045: if test -n "$CPP" && test -d "$CPP"; then
5046: CPP=
5047: fi
5048: if test -z "$CPP"; then
1.57 bertrand 5049: if ${ac_cv_prog_CPP+:} false; then :
1.15 bertrand 5050: $as_echo_n "(cached) " >&6
5051: else
5052: # Double quotes because CPP needs to be expanded
5053: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5054: do
5055: ac_preproc_ok=false
5056: for ac_c_preproc_warn_flag in '' yes
5057: do
5058: # Use a header file that comes with gcc, so configuring glibc
5059: # with a fresh cross-compiler works.
5060: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5061: # <limits.h> exists even on freestanding compilers.
5062: # On the NeXT, cc -E runs the code through the compiler's parser,
5063: # not just through cpp. "Syntax error" is here to catch this case.
5064: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5065: /* end confdefs.h. */
1.15 bertrand 5066: #ifdef __STDC__
5067: # include <limits.h>
5068: #else
5069: # include <assert.h>
5070: #endif
5071: Syntax error
1.1 bertrand 5072: _ACEOF
1.15 bertrand 5073: if ac_fn_c_try_cpp "$LINENO"; then :
5074:
1.1 bertrand 5075: else
1.15 bertrand 5076: # Broken: fails on valid input.
5077: continue
1.1 bertrand 5078: fi
1.36 bertrand 5079: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5080:
1.15 bertrand 5081: # OK, works on sane cases. Now check whether nonexistent headers
5082: # can be detected and how.
5083: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084: /* end confdefs.h. */
5085: #include <ac_nonexistent.h>
5086: _ACEOF
5087: if ac_fn_c_try_cpp "$LINENO"; then :
5088: # Broken: success on invalid input.
5089: continue
5090: else
5091: # Passes both tests.
5092: ac_preproc_ok=:
5093: break
1.1 bertrand 5094: fi
1.36 bertrand 5095: rm -f conftest.err conftest.i conftest.$ac_ext
1.14 bertrand 5096:
1.15 bertrand 5097: done
5098: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36 bertrand 5099: rm -f conftest.i conftest.err conftest.$ac_ext
1.15 bertrand 5100: if $ac_preproc_ok; then :
5101: break
1.1 bertrand 5102: fi
5103:
1.15 bertrand 5104: done
5105: ac_cv_prog_CPP=$CPP
1.14 bertrand 5106:
1.15 bertrand 5107: fi
5108: CPP=$ac_cv_prog_CPP
1.1 bertrand 5109: else
1.15 bertrand 5110: ac_cv_prog_CPP=$CPP
5111: fi
5112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5113: $as_echo "$CPP" >&6; }
5114: ac_preproc_ok=false
5115: for ac_c_preproc_warn_flag in '' yes
1.14 bertrand 5116: do
1.15 bertrand 5117: # Use a header file that comes with gcc, so configuring glibc
5118: # with a fresh cross-compiler works.
5119: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5120: # <limits.h> exists even on freestanding compilers.
5121: # On the NeXT, cc -E runs the code through the compiler's parser,
5122: # not just through cpp. "Syntax error" is here to catch this case.
5123: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124: /* end confdefs.h. */
5125: #ifdef __STDC__
5126: # include <limits.h>
5127: #else
5128: # include <assert.h>
5129: #endif
5130: Syntax error
5131: _ACEOF
5132: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 bertrand 5133:
1.15 bertrand 5134: else
5135: # Broken: fails on valid input.
5136: continue
5137: fi
1.36 bertrand 5138: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5139:
1.15 bertrand 5140: # OK, works on sane cases. Now check whether nonexistent headers
5141: # can be detected and how.
5142: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143: /* end confdefs.h. */
5144: #include <ac_nonexistent.h>
5145: _ACEOF
5146: if ac_fn_c_try_cpp "$LINENO"; then :
5147: # Broken: success on invalid input.
5148: continue
5149: else
5150: # Passes both tests.
5151: ac_preproc_ok=:
5152: break
5153: fi
1.36 bertrand 5154: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5155:
5156: done
1.15 bertrand 5157: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36 bertrand 5158: rm -f conftest.i conftest.err conftest.$ac_ext
1.15 bertrand 5159: if $ac_preproc_ok; then :
1.1 bertrand 5160:
1.15 bertrand 5161: else
5162: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5163: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 5164: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.57 bertrand 5165: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 5166: fi
1.14 bertrand 5167:
1.15 bertrand 5168: ac_ext=c
5169: ac_cpp='$CPP $CPPFLAGS'
5170: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5171: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5172: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14 bertrand 5173:
5174:
1.15 bertrand 5175: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5176: $as_echo_n "checking for X... " >&6; }
1.1 bertrand 5177:
5178:
1.15 bertrand 5179: # Check whether --with-x was given.
5180: if test "${with_x+set}" = set; then :
5181: withval=$with_x;
1.1 bertrand 5182: fi
1.14 bertrand 5183:
1.15 bertrand 5184: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5185: if test "x$with_x" = xno; then
5186: # The user explicitly disabled X.
5187: have_x=disabled
1.1 bertrand 5188: else
1.15 bertrand 5189: case $x_includes,$x_libraries in #(
1.57 bertrand 5190: *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5191: *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
1.15 bertrand 5192: $as_echo_n "(cached) " >&6
1.1 bertrand 5193: else
1.15 bertrand 5194: # One or both of the vars are not set, and there is no cached value.
5195: ac_x_includes=no ac_x_libraries=no
5196: rm -f -r conftest.dir
5197: if mkdir conftest.dir; then
5198: cd conftest.dir
5199: cat >Imakefile <<'_ACEOF'
5200: incroot:
5201: @echo incroot='${INCROOT}'
5202: usrlibdir:
5203: @echo usrlibdir='${USRLIBDIR}'
5204: libdir:
5205: @echo libdir='${LIBDIR}'
5206: _ACEOF
5207: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36 bertrand 5208: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 5209: for ac_var in incroot usrlibdir libdir; do
5210: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5211: done
5212: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5213: for ac_extension in a so sl dylib la dll; do
5214: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5215: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5216: ac_im_usrlibdir=$ac_im_libdir; break
5217: fi
5218: done
5219: # Screen out bogus values from the imake configuration. They are
5220: # bogus both because they are the default anyway, and because
5221: # using them would break gcc on systems where it needs fixed includes.
5222: case $ac_im_incroot in
5223: /usr/include) ac_x_includes= ;;
5224: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5225: esac
5226: case $ac_im_usrlibdir in
5227: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5228: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5229: esac
5230: fi
5231: cd ..
5232: rm -f -r conftest.dir
5233: fi
5234:
5235: # Standard set of common directories for X headers.
5236: # Check X11 before X11Rn because it is often a symlink to the current release.
5237: ac_x_header_dirs='
5238: /usr/X11/include
5239: /usr/X11R7/include
5240: /usr/X11R6/include
5241: /usr/X11R5/include
5242: /usr/X11R4/include
1.1 bertrand 5243:
1.15 bertrand 5244: /usr/include/X11
5245: /usr/include/X11R7
5246: /usr/include/X11R6
5247: /usr/include/X11R5
5248: /usr/include/X11R4
1.1 bertrand 5249:
1.15 bertrand 5250: /usr/local/X11/include
5251: /usr/local/X11R7/include
5252: /usr/local/X11R6/include
5253: /usr/local/X11R5/include
5254: /usr/local/X11R4/include
1.1 bertrand 5255:
1.15 bertrand 5256: /usr/local/include/X11
5257: /usr/local/include/X11R7
5258: /usr/local/include/X11R6
5259: /usr/local/include/X11R5
5260: /usr/local/include/X11R4
1.1 bertrand 5261:
1.15 bertrand 5262: /usr/X386/include
5263: /usr/x386/include
5264: /usr/XFree86/include/X11
1.1 bertrand 5265:
1.15 bertrand 5266: /usr/include
5267: /usr/local/include
5268: /usr/unsupported/include
5269: /usr/athena/include
5270: /usr/local/x11r5/include
5271: /usr/lpp/Xamples/include
1.1 bertrand 5272:
1.15 bertrand 5273: /usr/openwin/include
5274: /usr/openwin/share/include'
1.1 bertrand 5275:
1.15 bertrand 5276: if test "$ac_x_includes" = no; then
5277: # Guess where to find include files, by looking for Xlib.h.
5278: # First, try using that file with no special directory specified.
5279: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280: /* end confdefs.h. */
5281: #include <X11/Xlib.h>
5282: _ACEOF
5283: if ac_fn_c_try_cpp "$LINENO"; then :
5284: # We can compile using X headers with no special include directory.
5285: ac_x_includes=
1.1 bertrand 5286: else
1.15 bertrand 5287: for ac_dir in $ac_x_header_dirs; do
5288: if test -r "$ac_dir/X11/Xlib.h"; then
5289: ac_x_includes=$ac_dir
5290: break
5291: fi
5292: done
1.1 bertrand 5293: fi
1.36 bertrand 5294: rm -f conftest.err conftest.i conftest.$ac_ext
1.15 bertrand 5295: fi # $ac_x_includes = no
1.1 bertrand 5296:
1.15 bertrand 5297: if test "$ac_x_libraries" = no; then
5298: # Check for the libraries.
5299: # See if we find them without any special options.
5300: # Don't add to $LIBS permanently.
5301: ac_save_LIBS=$LIBS
5302: LIBS="-lX11 $LIBS"
5303: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5304: /* end confdefs.h. */
1.15 bertrand 5305: #include <X11/Xlib.h>
1.14 bertrand 5306: int
5307: main ()
5308: {
1.15 bertrand 5309: XrmInitialize ()
1.14 bertrand 5310: ;
5311: return 0;
5312: }
1.1 bertrand 5313: _ACEOF
1.15 bertrand 5314: if ac_fn_c_try_link "$LINENO"; then :
5315: LIBS=$ac_save_LIBS
5316: # We can link X programs with no special library path.
5317: ac_x_libraries=
1.1 bertrand 5318: else
1.15 bertrand 5319: LIBS=$ac_save_LIBS
5320: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5321: do
5322: # Don't even attempt the hair of trying to link an X program!
5323: for ac_extension in a so sl dylib la dll; do
5324: if test -r "$ac_dir/libX11.$ac_extension"; then
5325: ac_x_libraries=$ac_dir
5326: break 2
5327: fi
5328: done
5329: done
5330: fi
5331: rm -f core conftest.err conftest.$ac_objext \
5332: conftest$ac_exeext conftest.$ac_ext
5333: fi # $ac_x_libraries = no
1.1 bertrand 5334:
1.15 bertrand 5335: case $ac_x_includes,$ac_x_libraries in #(
5336: no,* | *,no | *\'*)
5337: # Didn't find X, or a directory has "'" in its name.
5338: ac_cv_have_x="have_x=no";; #(
5339: *)
5340: # Record where we found X for the cache.
5341: ac_cv_have_x="have_x=yes\
5342: ac_x_includes='$ac_x_includes'\
5343: ac_x_libraries='$ac_x_libraries'"
5344: esac
1.1 bertrand 5345: fi
1.15 bertrand 5346: ;; #(
5347: *) have_x=yes;;
5348: esac
5349: eval "$ac_cv_have_x"
5350: fi # $with_x != no
1.1 bertrand 5351:
1.15 bertrand 5352: if test "$have_x" != yes; then
5353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5354: $as_echo "$have_x" >&6; }
5355: no_x=yes
1.14 bertrand 5356: else
1.15 bertrand 5357: # If each of the values was on the command line, it overrides each guess.
5358: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5359: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5360: # Update the cache value to reflect the command line values.
5361: ac_cv_have_x="have_x=yes\
5362: ac_x_includes='$x_includes'\
5363: ac_x_libraries='$x_libraries'"
5364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5365: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14 bertrand 5366: fi
1.1 bertrand 5367:
1.15 bertrand 5368: if test "$no_x" = yes; then
5369: # Not all programs may use this symbol, but it does not hurt to define it.
1.1 bertrand 5370:
1.15 bertrand 5371: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14 bertrand 5372:
1.15 bertrand 5373: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1 bertrand 5374: else
1.15 bertrand 5375: if test -n "$x_includes"; then
5376: X_CFLAGS="$X_CFLAGS -I$x_includes"
5377: fi
5378:
5379: # It would also be nice to do this for all -L options, not just this one.
5380: if test -n "$x_libraries"; then
5381: X_LIBS="$X_LIBS -L$x_libraries"
5382: # For Solaris; some versions of Sun CC require a space after -R and
5383: # others require no space. Words are not sufficient . . . .
5384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5385: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5386: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5387: ac_xsave_c_werror_flag=$ac_c_werror_flag
5388: ac_c_werror_flag=yes
5389: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390: /* end confdefs.h. */
1.1 bertrand 5391:
1.15 bertrand 5392: int
5393: main ()
5394: {
1.1 bertrand 5395:
1.15 bertrand 5396: ;
5397: return 0;
5398: }
5399: _ACEOF
5400: if ac_fn_c_try_link "$LINENO"; then :
5401: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402: $as_echo "no" >&6; }
5403: X_LIBS="$X_LIBS -R$x_libraries"
1.1 bertrand 5404: else
1.15 bertrand 5405: LIBS="$ac_xsave_LIBS -R $x_libraries"
5406: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5407: /* end confdefs.h. */
1.1 bertrand 5408:
1.14 bertrand 5409: int
5410: main ()
5411: {
1.15 bertrand 5412:
5413: ;
1.14 bertrand 5414: return 0;
5415: }
5416: _ACEOF
1.15 bertrand 5417: if ac_fn_c_try_link "$LINENO"; then :
5418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5419: $as_echo "yes" >&6; }
5420: X_LIBS="$X_LIBS -R $x_libraries"
1.14 bertrand 5421: else
1.15 bertrand 5422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5423: $as_echo "neither works" >&6; }
1.14 bertrand 5424: fi
1.15 bertrand 5425: rm -f core conftest.err conftest.$ac_objext \
5426: conftest$ac_exeext conftest.$ac_ext
1.14 bertrand 5427: fi
1.15 bertrand 5428: rm -f core conftest.err conftest.$ac_objext \
5429: conftest$ac_exeext conftest.$ac_ext
5430: ac_c_werror_flag=$ac_xsave_c_werror_flag
5431: LIBS=$ac_xsave_LIBS
5432: fi
1.1 bertrand 5433:
1.15 bertrand 5434: # Check for system-dependent libraries X programs must link with.
5435: # Do this before checking for the system-independent R6 libraries
5436: # (-lICE), since we may need -lsocket or whatever for X linking.
1.1 bertrand 5437:
1.15 bertrand 5438: if test "$ISC" = yes; then
5439: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5440: else
5441: # Martyn Johnson says this is needed for Ultrix, if the X
5442: # libraries were built with DECnet support. And Karl Berry says
5443: # the Alpha needs dnet_stub (dnet does not exist).
5444: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5445: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446: /* end confdefs.h. */
1.1 bertrand 5447:
1.15 bertrand 5448: /* Override any GCC internal prototype to avoid an error.
5449: Use char because int might match the return type of a GCC
5450: builtin and then its argument prototype would still apply. */
5451: #ifdef __cplusplus
5452: extern "C"
5453: #endif
5454: char XOpenDisplay ();
5455: int
5456: main ()
5457: {
5458: return XOpenDisplay ();
5459: ;
5460: return 0;
5461: }
1.1 bertrand 5462: _ACEOF
1.15 bertrand 5463: if ac_fn_c_try_link "$LINENO"; then :
1.14 bertrand 5464:
5465: else
1.15 bertrand 5466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5467: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.57 bertrand 5468: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
1.15 bertrand 5469: $as_echo_n "(cached) " >&6
5470: else
5471: ac_check_lib_save_LIBS=$LIBS
5472: LIBS="-ldnet $LIBS"
5473: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5474: /* end confdefs.h. */
1.14 bertrand 5475:
1.15 bertrand 5476: /* Override any GCC internal prototype to avoid an error.
5477: Use char because int might match the return type of a GCC
5478: builtin and then its argument prototype would still apply. */
5479: #ifdef __cplusplus
5480: extern "C"
5481: #endif
5482: char dnet_ntoa ();
5483: int
5484: main ()
5485: {
5486: return dnet_ntoa ();
5487: ;
5488: return 0;
5489: }
1.1 bertrand 5490: _ACEOF
1.15 bertrand 5491: if ac_fn_c_try_link "$LINENO"; then :
5492: ac_cv_lib_dnet_dnet_ntoa=yes
1.1 bertrand 5493: else
1.15 bertrand 5494: ac_cv_lib_dnet_dnet_ntoa=no
1.14 bertrand 5495: fi
1.15 bertrand 5496: rm -f core conftest.err conftest.$ac_objext \
5497: conftest$ac_exeext conftest.$ac_ext
5498: LIBS=$ac_check_lib_save_LIBS
1.14 bertrand 5499: fi
1.15 bertrand 5500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5501: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.57 bertrand 5502: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
1.15 bertrand 5503: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14 bertrand 5504: fi
5505:
1.15 bertrand 5506: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5508: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.57 bertrand 5509: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
1.15 bertrand 5510: $as_echo_n "(cached) " >&6
1.14 bertrand 5511: else
1.15 bertrand 5512: ac_check_lib_save_LIBS=$LIBS
5513: LIBS="-ldnet_stub $LIBS"
5514: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5515: /* end confdefs.h. */
1.15 bertrand 5516:
5517: /* Override any GCC internal prototype to avoid an error.
5518: Use char because int might match the return type of a GCC
5519: builtin and then its argument prototype would still apply. */
5520: #ifdef __cplusplus
5521: extern "C"
5522: #endif
5523: char dnet_ntoa ();
1.1 bertrand 5524: int
5525: main ()
5526: {
1.15 bertrand 5527: return dnet_ntoa ();
1.1 bertrand 5528: ;
5529: return 0;
5530: }
5531: _ACEOF
1.15 bertrand 5532: if ac_fn_c_try_link "$LINENO"; then :
5533: ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14 bertrand 5534: else
1.15 bertrand 5535: ac_cv_lib_dnet_stub_dnet_ntoa=no
5536: fi
5537: rm -f core conftest.err conftest.$ac_objext \
5538: conftest$ac_exeext conftest.$ac_ext
5539: LIBS=$ac_check_lib_save_LIBS
5540: fi
5541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5542: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.57 bertrand 5543: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
1.15 bertrand 5544: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5545: fi
1.14 bertrand 5546:
1.15 bertrand 5547: fi
1.1 bertrand 5548: fi
1.15 bertrand 5549: rm -f core conftest.err conftest.$ac_objext \
5550: conftest$ac_exeext conftest.$ac_ext
5551: LIBS="$ac_xsave_LIBS"
5552:
5553: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5554: # to get the SysV transport functions.
5555: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5556: # needs -lnsl.
5557: # The nsl library prevents programs from opening the X display
5558: # on Irix 5.2, according to T.E. Dickey.
5559: # The functions gethostbyname, getservbyname, and inet_addr are
5560: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5561: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.57 bertrand 5562: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.1 bertrand 5563:
5564: fi
5565:
1.15 bertrand 5566: if test $ac_cv_func_gethostbyname = no; then
5567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5568: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.57 bertrand 5569: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.15 bertrand 5570: $as_echo_n "(cached) " >&6
1.1 bertrand 5571: else
1.15 bertrand 5572: ac_check_lib_save_LIBS=$LIBS
5573: LIBS="-lnsl $LIBS"
5574: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5575: /* end confdefs.h. */
1.15 bertrand 5576:
5577: /* Override any GCC internal prototype to avoid an error.
5578: Use char because int might match the return type of a GCC
5579: builtin and then its argument prototype would still apply. */
5580: #ifdef __cplusplus
5581: extern "C"
5582: #endif
5583: char gethostbyname ();
1.1 bertrand 5584: int
5585: main ()
5586: {
1.15 bertrand 5587: return gethostbyname ();
1.1 bertrand 5588: ;
5589: return 0;
5590: }
5591: _ACEOF
1.15 bertrand 5592: if ac_fn_c_try_link "$LINENO"; then :
5593: ac_cv_lib_nsl_gethostbyname=yes
5594: else
5595: ac_cv_lib_nsl_gethostbyname=no
5596: fi
5597: rm -f core conftest.err conftest.$ac_objext \
5598: conftest$ac_exeext conftest.$ac_ext
5599: LIBS=$ac_check_lib_save_LIBS
5600: fi
5601: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5602: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.57 bertrand 5603: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.15 bertrand 5604: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5605: fi
5606:
5607: if test $ac_cv_lib_nsl_gethostbyname = no; then
5608: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5609: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.57 bertrand 5610: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1.15 bertrand 5611: $as_echo_n "(cached) " >&6
5612: else
5613: ac_check_lib_save_LIBS=$LIBS
5614: LIBS="-lbsd $LIBS"
5615: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5616: /* end confdefs.h. */
1.15 bertrand 5617:
5618: /* Override any GCC internal prototype to avoid an error.
5619: Use char because int might match the return type of a GCC
5620: builtin and then its argument prototype would still apply. */
5621: #ifdef __cplusplus
5622: extern "C"
5623: #endif
5624: char gethostbyname ();
1.1 bertrand 5625: int
5626: main ()
5627: {
1.15 bertrand 5628: return gethostbyname ();
1.1 bertrand 5629: ;
5630: return 0;
5631: }
5632: _ACEOF
1.15 bertrand 5633: if ac_fn_c_try_link "$LINENO"; then :
5634: ac_cv_lib_bsd_gethostbyname=yes
1.1 bertrand 5635: else
1.15 bertrand 5636: ac_cv_lib_bsd_gethostbyname=no
5637: fi
5638: rm -f core conftest.err conftest.$ac_objext \
5639: conftest$ac_exeext conftest.$ac_ext
5640: LIBS=$ac_check_lib_save_LIBS
5641: fi
5642: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5643: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.57 bertrand 5644: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
1.15 bertrand 5645: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5646: fi
5647:
5648: fi
5649: fi
5650:
5651: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5652: # socket/setsockopt and other routines are undefined under SCO ODT
5653: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5654: # on later versions), says Simon Leinen: it contains gethostby*
5655: # variants that don't use the name server (or something). -lsocket
5656: # must be given before -lnsl if both are needed. We assume that
5657: # if connect needs -lnsl, so does gethostbyname.
5658: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1.57 bertrand 5659: if test "x$ac_cv_func_connect" = xyes; then :
1.14 bertrand 5660:
1.1 bertrand 5661: fi
5662:
1.15 bertrand 5663: if test $ac_cv_func_connect = no; then
5664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5665: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.57 bertrand 5666: if ${ac_cv_lib_socket_connect+:} false; then :
1.15 bertrand 5667: $as_echo_n "(cached) " >&6
1.14 bertrand 5668: else
1.15 bertrand 5669: ac_check_lib_save_LIBS=$LIBS
5670: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5671: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672: /* end confdefs.h. */
1.1 bertrand 5673:
1.15 bertrand 5674: /* Override any GCC internal prototype to avoid an error.
5675: Use char because int might match the return type of a GCC
5676: builtin and then its argument prototype would still apply. */
5677: #ifdef __cplusplus
5678: extern "C"
5679: #endif
5680: char connect ();
1.14 bertrand 5681: int
5682: main ()
5683: {
1.15 bertrand 5684: return connect ();
1.14 bertrand 5685: ;
5686: return 0;
5687: }
5688: _ACEOF
1.15 bertrand 5689: if ac_fn_c_try_link "$LINENO"; then :
5690: ac_cv_lib_socket_connect=yes
5691: else
5692: ac_cv_lib_socket_connect=no
5693: fi
5694: rm -f core conftest.err conftest.$ac_objext \
5695: conftest$ac_exeext conftest.$ac_ext
5696: LIBS=$ac_check_lib_save_LIBS
5697: fi
5698: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5699: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.57 bertrand 5700: if test "x$ac_cv_lib_socket_connect" = xyes; then :
1.15 bertrand 5701: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5702: fi
5703:
5704: fi
5705:
5706: # Guillermo Gomez says -lposix is necessary on A/UX.
5707: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
1.57 bertrand 5708: if test "x$ac_cv_func_remove" = xyes; then :
1.15 bertrand 5709:
5710: fi
5711:
5712: if test $ac_cv_func_remove = no; then
5713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5714: $as_echo_n "checking for remove in -lposix... " >&6; }
1.57 bertrand 5715: if ${ac_cv_lib_posix_remove+:} false; then :
1.15 bertrand 5716: $as_echo_n "(cached) " >&6
5717: else
5718: ac_check_lib_save_LIBS=$LIBS
5719: LIBS="-lposix $LIBS"
5720: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5721: /* end confdefs.h. */
1.15 bertrand 5722:
5723: /* Override any GCC internal prototype to avoid an error.
5724: Use char because int might match the return type of a GCC
5725: builtin and then its argument prototype would still apply. */
5726: #ifdef __cplusplus
5727: extern "C"
5728: #endif
5729: char remove ();
1.1 bertrand 5730: int
5731: main ()
5732: {
1.15 bertrand 5733: return remove ();
1.1 bertrand 5734: ;
5735: return 0;
5736: }
5737: _ACEOF
1.15 bertrand 5738: if ac_fn_c_try_link "$LINENO"; then :
5739: ac_cv_lib_posix_remove=yes
1.14 bertrand 5740: else
1.15 bertrand 5741: ac_cv_lib_posix_remove=no
5742: fi
5743: rm -f core conftest.err conftest.$ac_objext \
5744: conftest$ac_exeext conftest.$ac_ext
5745: LIBS=$ac_check_lib_save_LIBS
5746: fi
5747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5748: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.57 bertrand 5749: if test "x$ac_cv_lib_posix_remove" = xyes; then :
1.15 bertrand 5750: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14 bertrand 5751: fi
1.1 bertrand 5752:
1.15 bertrand 5753: fi
1.14 bertrand 5754:
1.15 bertrand 5755: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5756: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
1.57 bertrand 5757: if test "x$ac_cv_func_shmat" = xyes; then :
1.14 bertrand 5758:
5759: fi
5760:
1.15 bertrand 5761: if test $ac_cv_func_shmat = no; then
5762: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5763: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.57 bertrand 5764: if ${ac_cv_lib_ipc_shmat+:} false; then :
1.15 bertrand 5765: $as_echo_n "(cached) " >&6
5766: else
5767: ac_check_lib_save_LIBS=$LIBS
5768: LIBS="-lipc $LIBS"
5769: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5770: /* end confdefs.h. */
1.15 bertrand 5771:
5772: /* Override any GCC internal prototype to avoid an error.
5773: Use char because int might match the return type of a GCC
5774: builtin and then its argument prototype would still apply. */
5775: #ifdef __cplusplus
5776: extern "C"
5777: #endif
5778: char shmat ();
1.1 bertrand 5779: int
5780: main ()
5781: {
1.15 bertrand 5782: return shmat ();
1.1 bertrand 5783: ;
5784: return 0;
5785: }
5786: _ACEOF
1.15 bertrand 5787: if ac_fn_c_try_link "$LINENO"; then :
5788: ac_cv_lib_ipc_shmat=yes
1.1 bertrand 5789: else
1.15 bertrand 5790: ac_cv_lib_ipc_shmat=no
5791: fi
5792: rm -f core conftest.err conftest.$ac_objext \
5793: conftest$ac_exeext conftest.$ac_ext
5794: LIBS=$ac_check_lib_save_LIBS
5795: fi
5796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5797: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.57 bertrand 5798: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
1.15 bertrand 5799: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5800: fi
1.14 bertrand 5801:
1.15 bertrand 5802: fi
5803: fi
1.1 bertrand 5804:
1.15 bertrand 5805: # Check for libraries that X11R6 Xt/Xaw programs need.
5806: ac_save_LDFLAGS=$LDFLAGS
5807: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5808: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5809: # check for ICE first), but we must link in the order -lSM -lICE or
5810: # we get undefined symbols. So assume we have SM if we have ICE.
5811: # These have to be linked with before -lX11, unlike the other
5812: # libraries we check for below, so use a different variable.
5813: # John Interrante, Karl Berry
5814: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5815: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.57 bertrand 5816: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
1.15 bertrand 5817: $as_echo_n "(cached) " >&6
1.1 bertrand 5818: else
1.15 bertrand 5819: ac_check_lib_save_LIBS=$LIBS
5820: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5821: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5822: /* end confdefs.h. */
1.15 bertrand 5823:
5824: /* Override any GCC internal prototype to avoid an error.
5825: Use char because int might match the return type of a GCC
5826: builtin and then its argument prototype would still apply. */
5827: #ifdef __cplusplus
5828: extern "C"
5829: #endif
5830: char IceConnectionNumber ();
1.1 bertrand 5831: int
5832: main ()
5833: {
1.15 bertrand 5834: return IceConnectionNumber ();
1.1 bertrand 5835: ;
5836: return 0;
5837: }
5838: _ACEOF
1.15 bertrand 5839: if ac_fn_c_try_link "$LINENO"; then :
5840: ac_cv_lib_ICE_IceConnectionNumber=yes
1.1 bertrand 5841: else
1.15 bertrand 5842: ac_cv_lib_ICE_IceConnectionNumber=no
5843: fi
5844: rm -f core conftest.err conftest.$ac_objext \
5845: conftest$ac_exeext conftest.$ac_ext
5846: LIBS=$ac_check_lib_save_LIBS
5847: fi
5848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5849: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.57 bertrand 5850: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
1.15 bertrand 5851: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5852: fi
5853:
5854: LDFLAGS=$ac_save_LDFLAGS
5855:
5856: fi
5857:
1.14 bertrand 5858:
1.15 bertrand 5859: if test "$ac_x_includes" != "no"; then
5860: if test x"$ac_x_includes" != x; then
5861: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5862: includeX="-I$ac_x_includes"
5863: fi
1.1 bertrand 5864: fi
1.15 bertrand 5865: if test "$ac_x_libraries" != "no"; then
5866: if test x"$ac_x_libraries" != x; then
5867: X_LIBS="$X_LIBS -L$ac_x_libraries"
5868: fi
1.1 bertrand 5869: fi
1.15 bertrand 5870:
1.64 ! bertrand 5871:
! 5872: # Check whether --with-32bits was given.
! 5873: if test "${with_32bits+set}" = set; then :
! 5874: withval=$with_32bits;
! 5875: if test "$with-32bits-abi" = "no"; then
! 5876: CFLAGS=
! 5877: FFLAGS=
! 5878: CXXFLAGS=
! 5879: FCFLAGS=
! 5880: else
! 5881: CFLAGS="$CFLAGS -m32"
! 5882: FFLAGS="$FFLAGS -m32"
! 5883: FCFLAGS="$FCFLAGS -m32"
! 5884:
! 5885: else
! 5886:
! 5887: CFLAGS="$CFLAGS -m32"
! 5888: FFLAGS="$FFLAGS -m32"
! 5889: FCFLAGS="$FCFLAGS -m32"
! 5890:
! 5891:
! 5892: fi
! 5893:
! 5894:
1.15 bertrand 5895: # Check whether --enable-optimization was given.
5896: if test "${enable_optimization+set}" = set; then :
5897: enableval=$enable_optimization;
5898: if test "$enableval" = "no"; then
5899: CFLAGS=
5900: FFLAGS=
5901: CXXFLAGS=
5902: FCFLAGS=
5903: else
5904: CFLAGS="$CFLAGS $enable_optimization"
5905: FFLAGS="$FFLAGS $enable_optimization"
5906: FCFLAGS="$FCFLAGS $enable_optimization"
1.1 bertrand 5907: fi
1.15 bertrand 5908: else
1.14 bertrand 5909:
1.15 bertrand 5910: CFLAGS="$CFLAGS $OPTIMISATION_C"
5911: FFLAGS="$FFLAGS $OPTIMISATION_F"
5912: FCFLAGS="$FCFLAGS $OPTIMISATION_F"
1.1 bertrand 5913:
5914:
1.15 bertrand 5915: fi
1.1 bertrand 5916:
5917:
1.36 bertrand 5918: # Check whether --enable-sysv-semaphores was given.
5919: if test "${enable_sysv_semaphores+set}" = set; then :
5920: enableval=$enable_sysv_semaphores;
5921: if test "$enableval" = "no"; then
5922: IPCS_SYSV=no
5923: else
5924: IPCS_SYSV=yes
5925: fi
5926: else
5927: IPCS_SYSV=no
5928: fi
5929:
5930:
1.30 bertrand 5931: # Check whether --enable-full-static was given.
5932: if test "${enable_full_static+set}" = set; then :
5933: enableval=$enable_full_static;
5934: if test "$enableval" = "no"; then
5935: STATIC=no
5936: else
5937: STATIC=yes
5938: fi
5939: else
5940: STATIC=no
5941: fi
5942:
5943:
1.15 bertrand 5944: # Check whether --enable-final-encoding was given.
5945: if test "${enable_final_encoding+set}" = set; then :
5946: enableval=$enable_final_encoding;
5947: if test "$enableval" = "no"; then
5948: FINAL_ENCODING="\$(shell locale charmap | \
5949: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35 bertrand 5950: FORCED_FINAL_ENCODING=0
1.1 bertrand 5951: else
1.15 bertrand 5952: FINAL_ENCODING="$enable_final_encoding"
1.35 bertrand 5953: FORCED_FINAL_ENCODING=1
1.15 bertrand 5954: fi
1.1 bertrand 5955: else
1.35 bertrand 5956:
5957: FORCED_FINAL_ENCODING=0
5958: FINAL_ENCODING="\$(shell locale charmap | \
1.15 bertrand 5959: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
5960: fi
5961:
1.14 bertrand 5962:
1.15 bertrand 5963: # Check whether --enable-tex was given.
5964: if test "${enable_tex+set}" = set; then :
5965: enableval=$enable_tex;
5966: if test "$enableval" = "no"; then
5967: TEX_SUPPORT=no
5968: else
5969: TEX_SUPPORT=yes
1.1 bertrand 5970: fi
1.15 bertrand 5971: else
5972: TEX_SUPPORT=guessed
5973: fi
5974:
1.14 bertrand 5975:
1.15 bertrand 5976: # Check whether --enable-vim was given.
5977: if test "${enable_vim+set}" = set; then :
5978: enableval=$enable_vim;
5979: if test "$enableval" = "no"; then
5980: VIM_SUPPORT=no
5981: else
5982: VIM_SUPPORT=yes
5983: fi
5984: else
5985: VIM_SUPPORT=guessed
1.1 bertrand 5986: fi
5987:
1.15 bertrand 5988:
5989: # Check whether --enable-embedded-gnuplot was given.
5990: if test "${enable_embedded_gnuplot+set}" = set; then :
5991: enableval=$enable_embedded_gnuplot;
5992: if test "$enableval" = "no"; then
5993: MYGNUPLOT=no
5994: else
5995: MYGNUPLOT=yes
5996: fi
1.1 bertrand 5997: else
5998:
1.15 bertrand 5999: MYGNUPLOT=yes
6000: fi
6001:
1.14 bertrand 6002:
1.15 bertrand 6003: # Check whether --enable-gnuplot was given.
6004: if test "${enable_gnuplot+set}" = set; then :
6005: enableval=$enable_gnuplot;
6006: if test "$enableval" = "no"; then
6007: GNUPLOT_SUPPORT=no
6008: MYGNUPLOT=no
6009: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
6010: else
6011: GNUPLOT_SUPPORT=yes
6012: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
6013: fi
1.1 bertrand 6014: else
6015:
1.15 bertrand 6016: if test "$MYGNUPLOT" = "yes"; then
6017: GNUPLOT_SUPPORT=yes
6018: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
6019: else
6020: GNUPLOT_SUPPORT=guessed
6021: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
6022: fi
1.1 bertrand 6023: fi
6024:
1.15 bertrand 6025:
6026: # Check whether --enable-motif was given.
6027: if test "${enable_motif+set}" = set; then :
6028: enableval=$enable_motif;
6029: if test "$enableval" = "no"; then
6030: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6031: else
6032: CFLAGS_ORIG=$CFLAGS
6033: LIBS_ORIG=$LIBS
6034: CFLAGS="$CFLAGS $X_CFLAGS"
6035: LIBS="$LIB $X_LIBS"
6036: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
6037: $as_echo_n "checking for main in -lXm... " >&6; }
1.57 bertrand 6038: if ${ac_cv_lib_Xm_main+:} false; then :
1.15 bertrand 6039: $as_echo_n "(cached) " >&6
1.1 bertrand 6040: else
1.15 bertrand 6041: ac_check_lib_save_LIBS=$LIBS
6042: LIBS="-lXm $LIBS"
6043: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044: /* end confdefs.h. */
1.14 bertrand 6045:
6046:
1.1 bertrand 6047: int
6048: main ()
6049: {
1.15 bertrand 6050: return main ();
1.1 bertrand 6051: ;
6052: return 0;
6053: }
6054: _ACEOF
1.15 bertrand 6055: if ac_fn_c_try_link "$LINENO"; then :
6056: ac_cv_lib_Xm_main=yes
6057: else
6058: ac_cv_lib_Xm_main=no
6059: fi
6060: rm -f core conftest.err conftest.$ac_objext \
6061: conftest$ac_exeext conftest.$ac_ext
6062: LIBS=$ac_check_lib_save_LIBS
6063: fi
6064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6065: $as_echo "$ac_cv_lib_Xm_main" >&6; }
1.57 bertrand 6066: if test "x$ac_cv_lib_Xm_main" = xyes; then :
1.15 bertrand 6067: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1 bertrand 6068: else
1.15 bertrand 6069: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6070: fi
1.14 bertrand 6071:
1.15 bertrand 6072: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6073: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
6074: Motif flag is disabled.
6075: " >&5
6076: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
6077: Motif flag is disabled.
6078: " >&2;}
6079: fi
6080: LIBS=$LIBS_ORIG
6081: CFLAGS=$CFLAGS_ORIG
6082: fi
6083: else
6084: MOTIF_SUPPORT=guessed
1.1 bertrand 6085: fi
6086:
1.15 bertrand 6087:
6088: # Check whether --enable-experimental was given.
6089: if test "${enable_experimental+set}" = set; then :
6090: enableval=$enable_experimental;
6091: if test "$enableval" = "no"; then
6092: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6093: else
6094: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
6095: fi
1.14 bertrand 6096: else
1.15 bertrand 6097: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6098: fi
6099:
1.1 bertrand 6100:
1.15 bertrand 6101: # Check whether --enable-debug was given.
6102: if test "${enable_debug+set}" = set; then :
6103: enableval=$enable_debug;
6104: if test "$enableval" = "no"; then
1.24 bertrand 6105: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15 bertrand 6106: else
1.24 bertrand 6107: DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15 bertrand 6108: fi
6109: else
1.24 bertrand 6110: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14 bertrand 6111: fi
1.1 bertrand 6112:
1.15 bertrand 6113:
6114: # Check whether --enable-profile was given.
6115: if test "${enable_profile+set}" = set; then :
6116: enableval=$enable_profile;
6117: if test "$enableval" = "no"; then
6118: PROFILAGE=""
6119: else
6120: PROFILAGE="-pg"
6121: fi
6122: else
6123: PROFILAGE=""
1.1 bertrand 6124: fi
6125:
1.14 bertrand 6126:
6127:
1.15 bertrand 6128:
6129: if test ! -d tools; then
6130: mkdir tools
6131: fi
6132: if test ! -d "$srcdir"/tools/$NCURSES; then
6133: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6134: (cd "$srcdir/tools" && tar -xf -)
1.51 bertrand 6135: (cd "$srcdir/tools/"$NCURSES && \
6136: for i in ../$NCURSES*.patch.gz;
6137: do gunzip -c $i | patch -p1;
6138: done);
1.15 bertrand 6139: fi
6140: if test ! -d "$srcdir"/tools/$READLINE; then
6141: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6142: (cd "$srcdir/tools" && tar -xf -)
6143: fi
6144: if test ! -d "$srcdir"/tools/$UNITS; then
6145: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6146: (cd "$srcdir/tools" && tar -xf -)
6147: fi
6148: if test ! -d "$srcdir"/tools/$GSL; then
6149: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6150: (cd "$srcdir/tools" && tar -xf -)
1.33 bertrand 6151: if test $(uname) = "OS/2"; then
6152: (cd "$srcdir"/tools/$GSL; \
6153: TMP=$(mktemp tmp.XXXXXXXXXX); \
6154: sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
6155: \mv -f $TMP ltmain.sh)
6156: fi
1.15 bertrand 6157: fi
6158: if test ! -d "$srcdir"/tools/$GPP; then
6159: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6160: (cd "$srcdir/tools" && tar -xf -)
6161: fi
6162: if test ! -d "$srcdir"/tools/$FILE; then
6163: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
6164: (cd "$srcdir/tools" && tar -xf - )
6165: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
6166: fi
6167: if test ! -d "$srcdir"/tools/$ICONV; then
6168: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6169: (cd "$srcdir/tools" && tar -xf -)
6170: fi
6171: if test ! -d "$srcdir"/tools/$SQLITE; then
6172: gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
6173: (cd "$srcdir/tools" && tar -xf -)
6174: fi
6175: if test ! -d tools/$OPENSSL; then
6176: gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
6177: (cd tools && tar -xf -)
1.1 bertrand 6178: fi
1.55 bertrand 6179: if test ! -d rplcas; then
6180: mkdir rplcas
6181: fi
6182: if test ! -d "$srcdir"/rplcas/$GMP; then
6183: gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
6184: (cd "$srcdir/rplcas" && tar -xf -)
6185: fi
6186: if test ! -d "$srcdir"/rplcas/$MPFR; then
6187: gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
6188: (cd "$srcdir/rplcas" && tar -xf -)
6189: fi
1.56 bertrand 6190: if test ! -d rplcas/$NTL; then
6191: gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
6192: (cd rplcas && tar -xf -)
6193: fi
6194: if test ! -d rplcas/$COCOA; then
6195: gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
6196: (cd rplcas && tar -xf -)
6197: fi
6198: if test ! -d rplcas/$PARI; then
6199: gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
6200: (cd rplcas && tar -xf -)
6201: fi
6202: if test ! -d "$srcdir"/rplcas/$GIAC; then
6203: gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
6204: (cd "$srcdir/rplcas" && tar -xf -)
6205: fi
1.1 bertrand 6206:
6207:
6208:
1.15 bertrand 6209: # Check whether --enable-final-run-path was given.
6210: if test "${enable_final_run_path+set}" = set; then :
6211: enableval=$enable_final_run_path;
6212: if test "x$enable_final_run_path" = "x"; then
6213: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6214: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36 bertrand 6215: as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15 bertrand 6216: else
6217: RUNPATH="$enable_final_run_path"
6218: fi
1.1 bertrand 6219:
6220: else
1.15 bertrand 6221: RUNPATH="\${prefix}"
1.1 bertrand 6222:
6223: fi
6224:
1.15 bertrand 6225:
6226:
6227:
6228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6229: $as_echo_n "checking whether ln -s works... " >&6; }
6230: LN_S=$as_ln_s
6231: if test "$LN_S" = "ln -s"; then
6232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6233: $as_echo "yes" >&6; }
6234: else
6235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6236: $as_echo "no, using $LN_S" >&6; }
1.1 bertrand 6237: fi
6238:
1.15 bertrand 6239: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6240: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6241: set x ${MAKE-make}
6242: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57 bertrand 6243: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15 bertrand 6244: $as_echo_n "(cached) " >&6
1.1 bertrand 6245: else
1.15 bertrand 6246: cat >conftest.make <<\_ACEOF
6247: SHELL = /bin/sh
6248: all:
6249: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14 bertrand 6250: _ACEOF
1.36 bertrand 6251: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 6252: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6253: *@@@%%%=?*=@@@%%%*)
6254: eval ac_cv_prog_make_${ac_make}_set=yes;;
6255: *)
6256: eval ac_cv_prog_make_${ac_make}_set=no;;
1.14 bertrand 6257: esac
1.15 bertrand 6258: rm -f conftest.make
6259: fi
6260: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6262: $as_echo "yes" >&6; }
6263: SET_MAKE=
6264: else
6265: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6266: $as_echo "no" >&6; }
6267: SET_MAKE="MAKE=${MAKE-make}"
6268: fi
1.1 bertrand 6269:
1.15 bertrand 6270: if test -n "$ac_tool_prefix"; then
6271: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6272: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6273: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6274: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6275: if ${ac_cv_prog_RANLIB+:} false; then :
1.15 bertrand 6276: $as_echo_n "(cached) " >&6
6277: else
6278: if test -n "$RANLIB"; then
6279: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 bertrand 6280: else
1.15 bertrand 6281: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282: for as_dir in $PATH
6283: do
6284: IFS=$as_save_IFS
6285: test -z "$as_dir" && as_dir=.
6286: for ac_exec_ext in '' $ac_executable_extensions; do
6287: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6288: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6289: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6290: break 2
6291: fi
6292: done
6293: done
6294: IFS=$as_save_IFS
1.1 bertrand 6295:
6296: fi
1.15 bertrand 6297: fi
6298: RANLIB=$ac_cv_prog_RANLIB
6299: if test -n "$RANLIB"; then
6300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6301: $as_echo "$RANLIB" >&6; }
6302: else
6303: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6304: $as_echo "no" >&6; }
6305: fi
6306:
1.1 bertrand 6307:
1.15 bertrand 6308: fi
6309: if test -z "$ac_cv_prog_RANLIB"; then
6310: ac_ct_RANLIB=$RANLIB
6311: # Extract the first word of "ranlib", so it can be a program name with args.
6312: set dummy ranlib; ac_word=$2
6313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6315: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.15 bertrand 6316: $as_echo_n "(cached) " >&6
6317: else
6318: if test -n "$ac_ct_RANLIB"; then
6319: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6320: else
6321: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6322: for as_dir in $PATH
6323: do
6324: IFS=$as_save_IFS
6325: test -z "$as_dir" && as_dir=.
6326: for ac_exec_ext in '' $ac_executable_extensions; do
6327: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328: ac_cv_prog_ac_ct_RANLIB="ranlib"
6329: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6330: break 2
6331: fi
6332: done
1.14 bertrand 6333: done
1.15 bertrand 6334: IFS=$as_save_IFS
6335:
6336: fi
6337: fi
6338: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6339: if test -n "$ac_ct_RANLIB"; then
6340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6341: $as_echo "$ac_ct_RANLIB" >&6; }
6342: else
6343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344: $as_echo "no" >&6; }
6345: fi
6346:
6347: if test "x$ac_ct_RANLIB" = x; then
6348: RANLIB=":"
6349: else
6350: case $cross_compiling:$ac_tool_warned in
6351: yes:)
6352: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6353: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6354: ac_tool_warned=yes ;;
6355: esac
6356: RANLIB=$ac_ct_RANLIB
6357: fi
1.14 bertrand 6358: else
1.15 bertrand 6359: RANLIB="$ac_cv_prog_RANLIB"
6360: fi
1.1 bertrand 6361:
6362:
1.15 bertrand 6363: # Extract the first word of "nawk", so it can be a program name with args.
6364: set dummy nawk; ac_word=$2
6365: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6367: if ${ac_cv_prog_AWK+:} false; then :
1.15 bertrand 6368: $as_echo_n "(cached) " >&6
6369: else
6370: if test -n "$AWK"; then
6371: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6372: else
6373: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374: for as_dir in $PATH
6375: do
6376: IFS=$as_save_IFS
6377: test -z "$as_dir" && as_dir=.
6378: for ac_exec_ext in '' $ac_executable_extensions; do
6379: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6380: ac_cv_prog_AWK="yes"
6381: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382: break 2
6383: fi
6384: done
6385: done
6386: IFS=$as_save_IFS
1.1 bertrand 6387:
1.15 bertrand 6388: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6389: fi
6390: fi
6391: AWK=$ac_cv_prog_AWK
6392: if test -n "$AWK"; then
6393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6394: $as_echo "$AWK" >&6; }
1.1 bertrand 6395: else
1.15 bertrand 6396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397: $as_echo "no" >&6; }
6398: fi
6399:
1.1 bertrand 6400:
1.15 bertrand 6401: if test "$AWK" = no; then
1.39 bertrand 6402: # Extract the first word of "gawk", so it can be a program name with args.
6403: set dummy gawk; ac_word=$2
6404: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6405: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6406: if ${ac_cv_prog_AWK+:} false; then :
1.39 bertrand 6407: $as_echo_n "(cached) " >&6
6408: else
6409: if test -n "$AWK"; then
6410: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6411: else
6412: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413: for as_dir in $PATH
6414: do
6415: IFS=$as_save_IFS
6416: test -z "$as_dir" && as_dir=.
6417: for ac_exec_ext in '' $ac_executable_extensions; do
6418: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6419: ac_cv_prog_AWK="yes"
6420: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6421: break 2
6422: fi
6423: done
6424: done
6425: IFS=$as_save_IFS
6426:
6427: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6428: fi
6429: fi
6430: AWK=$ac_cv_prog_AWK
6431: if test -n "$AWK"; then
6432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6433: $as_echo "$AWK" >&6; }
6434: else
6435: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436: $as_echo "no" >&6; }
6437: fi
6438:
6439:
6440: if test "$AWK" = no; then
6441: as_fn_error $? "Can not find nawk !" "$LINENO" 5
6442: fi
1.1 bertrand 6443: fi
6444:
1.15 bertrand 6445: # Extract the first word of "sed", so it can be a program name with args.
6446: set dummy sed; ac_word=$2
6447: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6449: if ${ac_cv_prog_SED+:} false; then :
1.15 bertrand 6450: $as_echo_n "(cached) " >&6
6451: else
6452: if test -n "$SED"; then
6453: ac_cv_prog_SED="$SED" # Let the user override the test.
6454: else
6455: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456: for as_dir in $PATH
6457: do
6458: IFS=$as_save_IFS
6459: test -z "$as_dir" && as_dir=.
6460: for ac_exec_ext in '' $ac_executable_extensions; do
6461: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462: ac_cv_prog_SED="yes"
6463: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464: break 2
6465: fi
6466: done
1.14 bertrand 6467: done
1.15 bertrand 6468: IFS=$as_save_IFS
1.1 bertrand 6469:
1.15 bertrand 6470: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14 bertrand 6471: fi
1.15 bertrand 6472: fi
6473: SED=$ac_cv_prog_SED
6474: if test -n "$SED"; then
6475: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6476: $as_echo "$SED" >&6; }
6477: else
6478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479: $as_echo "no" >&6; }
1.14 bertrand 6480: fi
1.1 bertrand 6481:
6482:
1.15 bertrand 6483: if test "$SED" = no; then
1.36 bertrand 6484: as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15 bertrand 6485: fi
1.14 bertrand 6486:
1.15 bertrand 6487: if test "$TEX_SUPPORT" = guessed; then
6488: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1 bertrand 6489:
1.15 bertrand 6490: # Extract the first word of "tex", so it can be a program name with args.
6491: set dummy tex; ac_word=$2
6492: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6494: if ${ac_cv_prog_TEX+:} false; then :
1.15 bertrand 6495: $as_echo_n "(cached) " >&6
1.1 bertrand 6496: else
1.15 bertrand 6497: if test -n "$TEX"; then
6498: ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1 bertrand 6499: else
1.15 bertrand 6500: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501: for as_dir in $PATH
6502: do
6503: IFS=$as_save_IFS
6504: test -z "$as_dir" && as_dir=.
6505: for ac_exec_ext in '' $ac_executable_extensions; do
6506: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6507: ac_cv_prog_TEX="yes"
6508: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509: break 2
6510: fi
6511: done
6512: done
6513: IFS=$as_save_IFS
1.1 bertrand 6514:
1.15 bertrand 6515: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1 bertrand 6516: fi
6517: fi
1.15 bertrand 6518: TEX=$ac_cv_prog_TEX
6519: if test -n "$TEX"; then
6520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6521: $as_echo "$TEX" >&6; }
6522: else
6523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524: $as_echo "no" >&6; }
1.1 bertrand 6525: fi
1.14 bertrand 6526:
6527:
1.15 bertrand 6528: if test "$TEX" = no; then
6529: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6530: Download at http://tex.loria.fr/
6531: " >&5
6532: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6533: Download at http://tex.loria.fr/
6534: " >&2;}
6535: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6536: fi
1.14 bertrand 6537:
1.15 bertrand 6538: # Extract the first word of "latex", so it can be a program name with args.
6539: set dummy latex; ac_word=$2
6540: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6542: if ${ac_cv_prog_LATEX+:} false; then :
1.15 bertrand 6543: $as_echo_n "(cached) " >&6
1.1 bertrand 6544: else
1.15 bertrand 6545: if test -n "$LATEX"; then
6546: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1 bertrand 6547: else
1.15 bertrand 6548: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549: for as_dir in $PATH
6550: do
6551: IFS=$as_save_IFS
6552: test -z "$as_dir" && as_dir=.
6553: for ac_exec_ext in '' $ac_executable_extensions; do
6554: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555: ac_cv_prog_LATEX="yes"
6556: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557: break 2
6558: fi
6559: done
6560: done
6561: IFS=$as_save_IFS
1.1 bertrand 6562:
1.15 bertrand 6563: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1 bertrand 6564: fi
6565: fi
1.15 bertrand 6566: LATEX=$ac_cv_prog_LATEX
6567: if test -n "$LATEX"; then
6568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6569: $as_echo "$LATEX" >&6; }
6570: else
6571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572: $as_echo "no" >&6; }
6573: fi
1.14 bertrand 6574:
1.1 bertrand 6575:
1.15 bertrand 6576: if test "$LATEX" = no; then
6577: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6578: Download at http://tex.loria.fr/
6579: " >&5
6580: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6581: Download at http://tex.loria.fr/
6582: " >&2;}
6583: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6584: fi
1.1 bertrand 6585:
1.15 bertrand 6586: # Extract the first word of "dvips", so it can be a program name with args.
6587: set dummy dvips; ac_word=$2
6588: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6589: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6590: if ${ac_cv_prog_DVIPS+:} false; then :
1.15 bertrand 6591: $as_echo_n "(cached) " >&6
6592: else
6593: if test -n "$DVIPS"; then
6594: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6595: else
6596: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597: for as_dir in $PATH
6598: do
6599: IFS=$as_save_IFS
6600: test -z "$as_dir" && as_dir=.
6601: for ac_exec_ext in '' $ac_executable_extensions; do
6602: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6603: ac_cv_prog_DVIPS="yes"
6604: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6605: break 2
6606: fi
6607: done
6608: done
6609: IFS=$as_save_IFS
1.1 bertrand 6610:
1.15 bertrand 6611: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6612: fi
1.1 bertrand 6613: fi
1.15 bertrand 6614: DVIPS=$ac_cv_prog_DVIPS
6615: if test -n "$DVIPS"; then
6616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6617: $as_echo "$DVIPS" >&6; }
1.1 bertrand 6618: else
1.15 bertrand 6619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620: $as_echo "no" >&6; }
6621: fi
1.1 bertrand 6622:
6623:
1.15 bertrand 6624: if test "$DVIPS" = no; then
6625: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6626: Download at http://tex.loria.fr/
6627: " >&5
6628: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6629: Download at http://tex.loria.fr/
6630: " >&2;}
6631: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6632: fi
1.1 bertrand 6633:
1.15 bertrand 6634: # Extract the first word of "gs", so it can be a program name with args.
6635: set dummy gs; ac_word=$2
6636: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6638: if ${ac_cv_prog_GS+:} false; then :
1.15 bertrand 6639: $as_echo_n "(cached) " >&6
6640: else
6641: if test -n "$GS"; then
6642: ac_cv_prog_GS="$GS" # Let the user override the test.
1.1 bertrand 6643: else
1.15 bertrand 6644: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645: for as_dir in $PATH
6646: do
6647: IFS=$as_save_IFS
6648: test -z "$as_dir" && as_dir=.
6649: for ac_exec_ext in '' $ac_executable_extensions; do
6650: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651: ac_cv_prog_GS="yes"
6652: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653: break 2
6654: fi
6655: done
6656: done
6657: IFS=$as_save_IFS
1.1 bertrand 6658:
1.15 bertrand 6659: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6660: fi
6661: fi
6662: GS=$ac_cv_prog_GS
6663: if test -n "$GS"; then
6664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6665: $as_echo "$GS" >&6; }
6666: else
6667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668: $as_echo "no" >&6; }
1.1 bertrand 6669: fi
6670:
1.15 bertrand 6671:
6672: if test "$GS" = no; then
6673: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6674: Download at http://ftp.lip6.fr/
6675: " >&5
6676: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6677: Download at http://ftp.lip6.fr/
6678: " >&2;}
6679: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6680: fi
6681:
6682: # Extract the first word of "gv", so it can be a program name with args.
6683: set dummy gv; ac_word=$2
6684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6686: if ${ac_cv_prog_GV+:} false; then :
1.15 bertrand 6687: $as_echo_n "(cached) " >&6
6688: else
6689: if test -n "$GV"; then
6690: ac_cv_prog_GV="$GV" # Let the user override the test.
6691: else
6692: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693: for as_dir in $PATH
6694: do
6695: IFS=$as_save_IFS
6696: test -z "$as_dir" && as_dir=.
6697: for ac_exec_ext in '' $ac_executable_extensions; do
6698: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699: ac_cv_prog_GV="yes"
6700: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701: break 2
6702: fi
6703: done
1.14 bertrand 6704: done
1.15 bertrand 6705: IFS=$as_save_IFS
1.1 bertrand 6706:
1.15 bertrand 6707: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6708: fi
1.1 bertrand 6709: fi
1.15 bertrand 6710: GV=$ac_cv_prog_GV
6711: if test -n "$GV"; then
6712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6713: $as_echo "$GV" >&6; }
6714: else
6715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716: $as_echo "no" >&6; }
1.1 bertrand 6717: fi
1.14 bertrand 6718:
6719:
1.15 bertrand 6720: if test "$GV" = no; then
6721: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6722: Download at http://ftp.lip6.fr/
6723: " >&5
6724: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6725: Download at http://ftp.lip6.fr/
6726: " >&2;}
6727: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6728: fi
1.1 bertrand 6729: else
1.15 bertrand 6730: if test "$TEX_SUPPORT" = no; then
6731: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6732: else
6733: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6734: fi
1.1 bertrand 6735: fi
6736:
1.15 bertrand 6737: if test "$GNUPLOT_SUPPORT" = guessed; then
6738: # Extract the first word of "gnuplot", so it can be a program name with args.
6739: set dummy gnuplot; ac_word=$2
6740: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6742: if ${ac_cv_prog_GNUPLOT_P+:} false; then :
1.15 bertrand 6743: $as_echo_n "(cached) " >&6
1.14 bertrand 6744: else
1.15 bertrand 6745: if test -n "$GNUPLOT_P"; then
6746: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1 bertrand 6747: else
1.15 bertrand 6748: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749: for as_dir in $PATH
6750: do
6751: IFS=$as_save_IFS
6752: test -z "$as_dir" && as_dir=.
6753: for ac_exec_ext in '' $ac_executable_extensions; do
6754: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6755: ac_cv_prog_GNUPLOT_P="yes"
6756: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757: break 2
6758: fi
6759: done
6760: done
6761: IFS=$as_save_IFS
1.1 bertrand 6762:
1.15 bertrand 6763: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1 bertrand 6764: fi
6765: fi
1.15 bertrand 6766: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6767: if test -n "$GNUPLOT_P"; then
6768: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6769: $as_echo "$GNUPLOT_P" >&6; }
6770: else
6771: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772: $as_echo "no" >&6; }
1.1 bertrand 6773: fi
6774:
6775:
1.15 bertrand 6776: if test "$GNUPLOT_P" = no; then
6777: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6778: Download at http://www.gnuplot.vt.edu/
6779: " >&5
6780: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6781: Download at http://www.gnuplot.vt.edu/
6782: " >&2;}
6783: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6784: else
6785: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6786: fi
6787: else
6788: if test "$GNUPLOT_SUPPORT" = no; then
6789: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6790: else
6791: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6792: fi
6793: fi
1.1 bertrand 6794:
1.15 bertrand 6795: if test "$VIM_SUPPORT" = guessed; then
6796: # Extract the first word of "vim", so it can be a program name with args.
6797: set dummy vim; ac_word=$2
6798: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6800: if ${ac_cv_prog_VIM+:} false; then :
1.15 bertrand 6801: $as_echo_n "(cached) " >&6
1.1 bertrand 6802: else
1.15 bertrand 6803: if test -n "$VIM"; then
6804: ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1 bertrand 6805: else
1.15 bertrand 6806: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807: for as_dir in $PATH
6808: do
6809: IFS=$as_save_IFS
6810: test -z "$as_dir" && as_dir=.
6811: for ac_exec_ext in '' $ac_executable_extensions; do
6812: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6813: ac_cv_prog_VIM="yes"
6814: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815: break 2
6816: fi
6817: done
6818: done
6819: IFS=$as_save_IFS
1.1 bertrand 6820:
1.15 bertrand 6821: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1 bertrand 6822: fi
6823: fi
1.15 bertrand 6824: VIM=$ac_cv_prog_VIM
6825: if test -n "$VIM"; then
6826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6827: $as_echo "$VIM" >&6; }
1.1 bertrand 6828: else
1.15 bertrand 6829: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830: $as_echo "no" >&6; }
6831: fi
1.1 bertrand 6832:
6833:
1.15 bertrand 6834: if test "$VIM" = no; then
6835: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6836: Download at http://www.vim.org/
6837: " >&5
6838: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6839: Download at http://www.vim.org/
6840: " >&2;}
6841: VIM_SUPPORT="-UVIM_SUPPORT"
6842: else
6843: VIM_SUPPORT="-DVIM_SUPPORT"
6844: fi
1.1 bertrand 6845: else
1.15 bertrand 6846: if test "$VIM_SUPPORT" = no; then
6847: VIM_SUPPORT="-UVIM_SUPPORT"
6848: else
6849: VIM_SUPPORT="-DVIM_SUPPORT"
6850: fi
1.1 bertrand 6851: fi
6852:
1.15 bertrand 6853: if test "$MOTIF_SUPPORT" = guessed; then
6854: CFLAGS_ORIG=$CFLAGS
6855: LIBS_ORIG=$LIBS
6856: CFLAGS="$CFLAGS $X_CFLAGS"
6857: LIBS="$LIB $X_LIBS"
6858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
6859: $as_echo_n "checking for main in -lXm... " >&6; }
1.57 bertrand 6860: if ${ac_cv_lib_Xm_main+:} false; then :
1.15 bertrand 6861: $as_echo_n "(cached) " >&6
1.1 bertrand 6862: else
1.15 bertrand 6863: ac_check_lib_save_LIBS=$LIBS
6864: LIBS="-lXm $LIBS"
6865: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6866: /* end confdefs.h. */
1.1 bertrand 6867:
6868:
1.14 bertrand 6869: int
6870: main ()
6871: {
1.15 bertrand 6872: return main ();
1.14 bertrand 6873: ;
6874: return 0;
6875: }
6876: _ACEOF
1.15 bertrand 6877: if ac_fn_c_try_link "$LINENO"; then :
6878: ac_cv_lib_Xm_main=yes
1.1 bertrand 6879: else
1.15 bertrand 6880: ac_cv_lib_Xm_main=no
6881: fi
6882: rm -f core conftest.err conftest.$ac_objext \
6883: conftest$ac_exeext conftest.$ac_ext
6884: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 6885: fi
1.15 bertrand 6886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6887: $as_echo "$ac_cv_lib_Xm_main" >&6; }
1.57 bertrand 6888: if test "x$ac_cv_lib_Xm_main" = xyes; then :
1.15 bertrand 6889: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1 bertrand 6890: else
1.15 bertrand 6891: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1 bertrand 6892: fi
1.14 bertrand 6893:
1.15 bertrand 6894: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6895: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
6896: Motif flag is disabled.
6897: " >&5
6898: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
6899: Motif flag is disabled.
6900: " >&2;}
6901: fi
6902: LIBS=$LIBS_ORIG
6903: CFLAGS=$CFLAGS_ORIG
1.1 bertrand 6904: fi
6905:
1.15 bertrand 6906: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6907: CFLAGS_ORIG=$CFLAGS
6908: LIBS_ORIG=$LIBS
6909: CFLAGS="$CFLAGS $X_CFLAGS"
6910: LIBS="$LIB $X_LIBS"
6911: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
6912: $as_echo_n "checking for main in -lXpm... " >&6; }
1.57 bertrand 6913: if ${ac_cv_lib_Xpm_main+:} false; then :
1.15 bertrand 6914: $as_echo_n "(cached) " >&6
6915: else
6916: ac_check_lib_save_LIBS=$LIBS
6917: LIBS="-lXpm $LIBS"
6918: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 6919: /* end confdefs.h. */
6920:
1.1 bertrand 6921:
6922: int
6923: main ()
6924: {
1.15 bertrand 6925: return main ();
1.1 bertrand 6926: ;
6927: return 0;
6928: }
6929: _ACEOF
1.15 bertrand 6930: if ac_fn_c_try_link "$LINENO"; then :
6931: ac_cv_lib_Xpm_main=yes
1.1 bertrand 6932: else
1.15 bertrand 6933: ac_cv_lib_Xpm_main=no
6934: fi
6935: rm -f core conftest.err conftest.$ac_objext \
6936: conftest$ac_exeext conftest.$ac_ext
6937: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 6938: fi
1.15 bertrand 6939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
6940: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
1.57 bertrand 6941: if test "x$ac_cv_lib_Xpm_main" = xyes; then :
1.15 bertrand 6942: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6943: else
6944: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1 bertrand 6945: fi
1.15 bertrand 6946:
6947: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6948: libX="$X_LIBS -lXm -lXpm -lXt -lX11"
6949: else
6950: libX=""
6951: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
6952: Motif flag is disabled.
6953: " >&5
6954: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
6955: Motif flag is disabled.
6956: " >&2;}
6957: fi
6958: LIBS=$LIBS_ORIG
6959: CFLAGS=$CFLAGS_ORIG
6960: else
6961: libX=""
1.1 bertrand 6962: fi
1.14 bertrand 6963:
6964:
6965:
1.1 bertrand 6966:
6967:
1.15 bertrand 6968:
6969:
6970:
6971:
6972:
6973:
6974: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
6975:
6976:
6977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6978: $as_echo_n "checking for main in -lm... " >&6; }
1.57 bertrand 6979: if ${ac_cv_lib_m_main+:} false; then :
1.15 bertrand 6980: $as_echo_n "(cached) " >&6
1.1 bertrand 6981: else
1.15 bertrand 6982: ac_check_lib_save_LIBS=$LIBS
6983: LIBS="-lm $LIBS"
6984: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 6985: /* end confdefs.h. */
1.15 bertrand 6986:
6987:
1.1 bertrand 6988: int
6989: main ()
6990: {
1.15 bertrand 6991: return main ();
1.1 bertrand 6992: ;
6993: return 0;
6994: }
6995: _ACEOF
1.15 bertrand 6996: if ac_fn_c_try_link "$LINENO"; then :
6997: ac_cv_lib_m_main=yes
1.1 bertrand 6998: else
1.15 bertrand 6999: ac_cv_lib_m_main=no
7000: fi
7001: rm -f core conftest.err conftest.$ac_objext \
7002: conftest$ac_exeext conftest.$ac_ext
7003: LIBS=$ac_check_lib_save_LIBS
7004: fi
7005: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7006: $as_echo "$ac_cv_lib_m_main" >&6; }
1.57 bertrand 7007: if test "x$ac_cv_lib_m_main" = xyes; then :
1.15 bertrand 7008: cat >>confdefs.h <<_ACEOF
7009: #define HAVE_LIBM 1
7010: _ACEOF
1.14 bertrand 7011:
1.15 bertrand 7012: LIBS="-lm $LIBS"
1.1 bertrand 7013:
1.15 bertrand 7014: else
1.36 bertrand 7015: as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1 bertrand 7016: fi
7017:
1.15 bertrand 7018: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
7019: $as_echo_n "checking for main in -lpthread... " >&6; }
1.57 bertrand 7020: if ${ac_cv_lib_pthread_main+:} false; then :
1.15 bertrand 7021: $as_echo_n "(cached) " >&6
1.1 bertrand 7022: else
1.15 bertrand 7023: ac_check_lib_save_LIBS=$LIBS
7024: LIBS="-lpthread $LIBS"
7025: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7026: /* end confdefs.h. */
1.15 bertrand 7027:
7028:
1.14 bertrand 7029: int
7030: main ()
7031: {
1.15 bertrand 7032: return main ();
1.14 bertrand 7033: ;
7034: return 0;
7035: }
7036: _ACEOF
1.15 bertrand 7037: if ac_fn_c_try_link "$LINENO"; then :
7038: ac_cv_lib_pthread_main=yes
7039: else
7040: ac_cv_lib_pthread_main=no
7041: fi
7042: rm -f core conftest.err conftest.$ac_objext \
7043: conftest$ac_exeext conftest.$ac_ext
7044: LIBS=$ac_check_lib_save_LIBS
7045: fi
7046: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
7047: $as_echo "$ac_cv_lib_pthread_main" >&6; }
1.57 bertrand 7048: if test "x$ac_cv_lib_pthread_main" = xyes; then :
1.15 bertrand 7049: cat >>confdefs.h <<_ACEOF
7050: #define HAVE_LIBPTHREAD 1
1.14 bertrand 7051: _ACEOF
7052:
1.15 bertrand 7053: LIBS="-lpthread $LIBS"
7054:
1.1 bertrand 7055: else
1.36 bertrand 7056: as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15 bertrand 7057: fi
1.14 bertrand 7058:
1.1 bertrand 7059:
1.33 bertrand 7060: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
7061: #include <sys/sem.h>
7062:
7063: "
1.57 bertrand 7064: if test "x$ac_cv_type_union_semun" = xyes; then :
1.33 bertrand 7065: SEMUN=-DUNION_SEMUN
7066: else
7067: SEMUN=-UUNION_SEMUN
7068: fi
7069:
7070:
1.34 bertrand 7071: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35 bertrand 7072: #include <sys/types.h>
1.34 bertrand 7073: #include <netinet/in.h>
7074:
7075: "
1.57 bertrand 7076: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
1.34 bertrand 7077: IPV6=-DIPV6
7078: else
7079: IPV6=-UIPV6
7080: fi
7081:
7082:
1.15 bertrand 7083: if test "$CYGWIN" != yes; then
7084: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7085: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.57 bertrand 7086: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.15 bertrand 7087: $as_echo_n "(cached) " >&6
1.1 bertrand 7088: else
1.15 bertrand 7089: ac_check_lib_save_LIBS=$LIBS
7090: LIBS="-ldl $LIBS"
7091: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7092: /* end confdefs.h. */
7093:
1.15 bertrand 7094: /* Override any GCC internal prototype to avoid an error.
7095: Use char because int might match the return type of a GCC
7096: builtin and then its argument prototype would still apply. */
7097: #ifdef __cplusplus
7098: extern "C"
7099: #endif
7100: char dlopen ();
1.1 bertrand 7101: int
7102: main ()
7103: {
1.15 bertrand 7104: return dlopen ();
1.1 bertrand 7105: ;
7106: return 0;
7107: }
7108: _ACEOF
1.15 bertrand 7109: if ac_fn_c_try_link "$LINENO"; then :
7110: ac_cv_lib_dl_dlopen=yes
1.1 bertrand 7111: else
1.15 bertrand 7112: ac_cv_lib_dl_dlopen=no
7113: fi
7114: rm -f core conftest.err conftest.$ac_objext \
7115: conftest$ac_exeext conftest.$ac_ext
7116: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 7117: fi
1.15 bertrand 7118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7119: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.57 bertrand 7120: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.15 bertrand 7121: LIBS="$LIBS -ldl"
1.14 bertrand 7122: else
1.15 bertrand 7123: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7124: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1 bertrand 7125: fi
7126:
1.14 bertrand 7127: fi
1.1 bertrand 7128:
1.15 bertrand 7129: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7130: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
1.57 bertrand 7131: if ${ac_cv_lib_rt_nanosleep+:} false; then :
1.15 bertrand 7132: $as_echo_n "(cached) " >&6
7133: else
7134: ac_check_lib_save_LIBS=$LIBS
7135: LIBS="-lrt $LIBS"
7136: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7137: /* end confdefs.h. */
1.15 bertrand 7138:
7139: /* Override any GCC internal prototype to avoid an error.
7140: Use char because int might match the return type of a GCC
7141: builtin and then its argument prototype would still apply. */
7142: #ifdef __cplusplus
7143: extern "C"
7144: #endif
7145: char nanosleep ();
1.1 bertrand 7146: int
7147: main ()
7148: {
1.15 bertrand 7149: return nanosleep ();
1.1 bertrand 7150: ;
7151: return 0;
7152: }
7153: _ACEOF
1.15 bertrand 7154: if ac_fn_c_try_link "$LINENO"; then :
7155: ac_cv_lib_rt_nanosleep=yes
7156: else
7157: ac_cv_lib_rt_nanosleep=no
7158: fi
7159: rm -f core conftest.err conftest.$ac_objext \
7160: conftest$ac_exeext conftest.$ac_ext
7161: LIBS=$ac_check_lib_save_LIBS
7162: fi
7163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7164: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
1.57 bertrand 7165: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
1.15 bertrand 7166: LIBS="$LIBS -lrt"
1.1 bertrand 7167: else
1.15 bertrand 7168: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7169: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7170: fi
1.1 bertrand 7171:
7172:
1.15 bertrand 7173: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7174: $as_echo_n "checking for bind in -lsocket... " >&6; }
1.57 bertrand 7175: if ${ac_cv_lib_socket_bind+:} false; then :
1.15 bertrand 7176: $as_echo_n "(cached) " >&6
1.1 bertrand 7177: else
1.15 bertrand 7178: ac_check_lib_save_LIBS=$LIBS
7179: LIBS="-lsocket $LIBS"
7180: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7181: /* end confdefs.h. */
1.15 bertrand 7182:
7183: /* Override any GCC internal prototype to avoid an error.
7184: Use char because int might match the return type of a GCC
7185: builtin and then its argument prototype would still apply. */
7186: #ifdef __cplusplus
7187: extern "C"
7188: #endif
7189: char bind ();
1.1 bertrand 7190: int
7191: main ()
7192: {
1.15 bertrand 7193: return bind ();
1.1 bertrand 7194: ;
7195: return 0;
7196: }
7197: _ACEOF
1.15 bertrand 7198: if ac_fn_c_try_link "$LINENO"; then :
7199: ac_cv_lib_socket_bind=yes
1.1 bertrand 7200: else
1.15 bertrand 7201: ac_cv_lib_socket_bind=no
1.1 bertrand 7202: fi
1.15 bertrand 7203: rm -f core conftest.err conftest.$ac_objext \
7204: conftest$ac_exeext conftest.$ac_ext
7205: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 7206: fi
1.15 bertrand 7207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7208: $as_echo "$ac_cv_lib_socket_bind" >&6; }
1.57 bertrand 7209: if test "x$ac_cv_lib_socket_bind" = xyes; then :
1.15 bertrand 7210: LIBS="$LIBS -lsocket"
7211: else
7212: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7213: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1 bertrand 7214: fi
7215:
7216:
1.15 bertrand 7217: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7218:
7219: # Check whether --with-mysql was given.
7220: if test "${with_mysql+set}" = set; then :
7221: withval=$with_mysql;
7222: else
7223: with_mysql=check
7224: fi
1.14 bertrand 7225:
7226:
1.15 bertrand 7227: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7228: libMySQLinc="-I/usr/include"
1.30 bertrand 7229: libMySQLlib="/usr/lib"
1.14 bertrand 7230:
1.15 bertrand 7231: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7232: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7233: saved_CFLAGS="$CFLAGS"
1.30 bertrand 7234: CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15 bertrand 7235: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7236: /* end confdefs.h. */
1.15 bertrand 7237: #include "mysql.h"
1.1 bertrand 7238: int
7239: main ()
7240: {
1.15 bertrand 7241:
1.1 bertrand 7242: ;
7243: return 0;
7244: }
7245: _ACEOF
1.15 bertrand 7246: if ac_fn_c_try_compile "$LINENO"; then :
7247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7248: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7249: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7250: else
1.15 bertrand 7251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1 bertrand 7253: fi
1.14 bertrand 7254: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7255: CFLAGS=$saved_CFLAGS
1.1 bertrand 7256:
1.15 bertrand 7257: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7259: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7260: saved_CFLAGS="$CFLAGS"
7261: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7262: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7263: /* end confdefs.h. */
1.15 bertrand 7264: #include "mysql.h"
1.1 bertrand 7265: int
7266: main ()
7267: {
7268:
7269: ;
7270: return 0;
7271: }
7272: _ACEOF
1.15 bertrand 7273: if ac_fn_c_try_compile "$LINENO"; then :
7274: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7275: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7276: libMySQLinc=$libMySQLinc
7277: else
7278: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7280: fi
7281: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282: CFLAGS=$saved_CFLAGS
7283: libMySQLinc=$libMySQLinc/mysql
7284: fi
7285:
7286: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7287: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7288: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7289: saved_CFLAGS="$CFLAGS"
7290: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7291: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7292: /* end confdefs.h. */
1.15 bertrand 7293: #include "mysql.h"
1.1 bertrand 7294: int
7295: main ()
7296: {
7297:
7298: ;
7299: return 0;
7300: }
7301: _ACEOF
1.15 bertrand 7302: if ac_fn_c_try_compile "$LINENO"; then :
7303: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7304: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7305: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7306: else
1.15 bertrand 7307: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1 bertrand 7309: fi
7310: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7311: CFLAGS=$saved_CFLAGS
7312: libMySQLinc=$libMySQLinc/../local/include
7313: libMySQLlib=$libMySQLlib/../local/lib
7314: fi
1.1 bertrand 7315:
1.15 bertrand 7316: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7317: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7318: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7319: saved_CFLAGS="$CFLAGS"
7320: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7321: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7322: /* end confdefs.h. */
1.15 bertrand 7323: #include "mysql.h"
1.1 bertrand 7324: int
7325: main ()
7326: {
7327:
7328: ;
7329: return 0;
7330: }
7331: _ACEOF
1.15 bertrand 7332: if ac_fn_c_try_compile "$LINENO"; then :
7333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7334: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7335: libMySQLinc=$libMySQLinc/mysql
7336: else
7337: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7339: fi
7340: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7341: CFLAGS=$saved_CFLAGS
7342: libMySQLinc=$libMySQLinc/../local/include/mysql
7343: libMySQLlib=$libMySQLlib/../local/lib
7344: fi
7345: else
7346: if test "x$with_mysql" != xno; then
7347: libMySQLinc="-I$with_mysql/include"
1.30 bertrand 7348: libMySQLlib="$with_mysql/lib"
1.15 bertrand 7349:
7350: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7351: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7352: saved_CFLAGS="$CFLAGS"
7353: CFLAGS="$CFLAGS $libMySQLinc"
7354: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7355: /* end confdefs.h. */
1.15 bertrand 7356: #include "mysql.h"
1.1 bertrand 7357: int
7358: main ()
7359: {
7360:
7361: ;
7362: return 0;
7363: }
7364: _ACEOF
1.15 bertrand 7365: if ac_fn_c_try_compile "$LINENO"; then :
7366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7367: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7368: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7369: else
1.15 bertrand 7370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14 bertrand 7372: fi
7373: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7374: CFLAGS=$saved_CFLAGS
1.1 bertrand 7375:
1.15 bertrand 7376: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7377: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7378: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7379: saved_CFLAGS="$CFLAGS"
7380: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7381: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7382: /* end confdefs.h. */
1.15 bertrand 7383: #include "mysql.h"
1.1 bertrand 7384: int
7385: main ()
7386: {
7387:
7388: ;
7389: return 0;
7390: }
7391: _ACEOF
1.15 bertrand 7392: if ac_fn_c_try_compile "$LINENO"; then :
7393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7394: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7395: libMySQLinc=$libMySQLinc
1.1 bertrand 7396: else
1.15 bertrand 7397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7399: fi
7400: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401: CFLAGS=$saved_CFLAGS
7402: libMySQLinc=$libMySQLinc/mysql
7403: fi
7404: else
7405: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7406: fi
7407: fi
1.14 bertrand 7408:
1.15 bertrand 7409: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7410: MYSQL_LIB=no
1.14 bertrand 7411:
1.15 bertrand 7412: if test $MYSQL_LIB = no; then
7413: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7414: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7415: saved_LIBS="$LIBS"
1.30 bertrand 7416: if test $STATIC = no; then
7417: LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
7418: else
7419: LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
7420: fi
1.15 bertrand 7421: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7422: /* end confdefs.h. */
1.15 bertrand 7423: #include "mysql.h"
1.1 bertrand 7424: int
7425: main ()
7426: {
1.15 bertrand 7427: MYSQL mysql; mysql_init(&mysql);
1.1 bertrand 7428: ;
7429: return 0;
7430: }
7431: _ACEOF
1.15 bertrand 7432: if ac_fn_c_try_link "$LINENO"; then :
7433: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7434: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1 bertrand 7435: else
1.15 bertrand 7436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437: $as_echo "no" >&6; }; MYSQL_LIB="no"
7438: fi
7439: rm -f core conftest.err conftest.$ac_objext \
7440: conftest$ac_exeext conftest.$ac_ext
7441: LIBS=$saved_LIBS;
1.30 bertrand 7442: if test $STATIC = no; then
7443: libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
7444: else
7445: libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
7446: EXT_SQL="$EXT_SQL $libMySQLlib"
7447: fi
1.15 bertrand 7448: fi
1.14 bertrand 7449:
1.15 bertrand 7450: if test $MYSQL_LIB = no; then
7451: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7452: fi
1.14 bertrand 7453: fi
1.15 bertrand 7454:
7455: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7456: libMySQLinc=
7457: libMySQLlib=
1.1 bertrand 7458: fi
1.14 bertrand 7459:
7460:
7461:
1.1 bertrand 7462:
7463:
1.15 bertrand 7464: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7465:
7466: # Check whether --with-postgresql was given.
7467: if test "${with_postgresql+set}" = set; then :
7468: withval=$with_postgresql;
1.14 bertrand 7469: else
1.15 bertrand 7470: with_postgresql=check
7471: fi
7472:
7473:
7474: # with_postgresql : check [pas défini], yes [uniquement --with],
7475: # no [--without], valeur [--with=valeur].
7476:
7477: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7478: libPgSQLinc="-I/usr/include"
1.30 bertrand 7479: libPgSQLlib="/usr/lib"
1.15 bertrand 7480:
7481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7482: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7483: saved_CFLAGS="$CFLAGS"
7484: CFLAGS="$CFLAGS $libPgSQLinc"
7485: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7486: /* end confdefs.h. */
1.15 bertrand 7487: #include "libpq-fe.h"
1.1 bertrand 7488: int
7489: main ()
7490: {
1.15 bertrand 7491:
1.1 bertrand 7492: ;
7493: return 0;
7494: }
7495: _ACEOF
1.15 bertrand 7496: if ac_fn_c_try_compile "$LINENO"; then :
7497: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7498: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7499: else
1.15 bertrand 7500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7501: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7502: fi
1.14 bertrand 7503: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7504: CFLAGS=$saved_CFLAGS
1.1 bertrand 7505:
1.15 bertrand 7506: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7508: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7509: saved_CFLAGS="$CFLAGS"
7510: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7511: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7512: /* end confdefs.h. */
1.15 bertrand 7513: #include "libpq-fe.h"
1.1 bertrand 7514: int
7515: main ()
7516: {
7517:
7518: ;
7519: return 0;
7520: }
7521: _ACEOF
1.15 bertrand 7522: if ac_fn_c_try_compile "$LINENO"; then :
7523: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7524: $as_echo "yes" >&6; };
7525: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7526: else
7527: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528: $as_echo "no" >&6; };
7529: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7530: fi
7531: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532: CFLAGS=$saved_CFLAGS
7533: libPgSQLinc=$libPgSQLinc/postgresql
7534: fi
7535:
7536: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7537: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7538: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7539: saved_CFLAGS="$CFLAGS"
7540: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7541: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7542: /* end confdefs.h. */
1.15 bertrand 7543: #include "libpq-fe.h"
1.1 bertrand 7544: int
7545: main ()
7546: {
7547:
7548: ;
7549: return 0;
7550: }
7551: _ACEOF
1.15 bertrand 7552: if ac_fn_c_try_compile "$LINENO"; then :
7553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7554: $as_echo "yes" >&6; };
7555: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7556: else
1.15 bertrand 7557: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558: $as_echo "no" >&6; };
7559: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7560: fi
7561: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7562: CFLAGS=$saved_CFLAGS
7563: libPgSQLinc=$libPgSQLinc/pgsql
7564: fi
1.1 bertrand 7565:
1.15 bertrand 7566: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7568: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7569: saved_CFLAGS="$CFLAGS"
7570: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7571: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7572: /* end confdefs.h. */
1.15 bertrand 7573: #include "libpq-fe.h"
1.1 bertrand 7574: int
7575: main ()
7576: {
7577:
7578: ;
7579: return 0;
7580: }
7581: _ACEOF
1.15 bertrand 7582: if ac_fn_c_try_compile "$LINENO"; then :
7583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7584: $as_echo "yes" >&6; };
7585: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7586: else
7587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7588: $as_echo "no" >&6; };
7589: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7590: fi
7591: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592: CFLAGS=$saved_CFLAGS
7593: libPgSQLinc=$libPgSQLinc/../local/include
7594: libPgSQLlib=$libPgSQLlib/../local/lib
7595: fi
7596:
7597: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7598: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7599: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7600: saved_CFLAGS="$CFLAGS"
7601: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7602: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7603: /* end confdefs.h. */
1.15 bertrand 7604: #include "libpq-fe.h"
1.1 bertrand 7605: int
7606: main ()
7607: {
7608:
7609: ;
7610: return 0;
7611: }
7612: _ACEOF
1.15 bertrand 7613: if ac_fn_c_try_compile "$LINENO"; then :
7614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7615: $as_echo "yes" >&6; };
7616: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14 bertrand 7617: else
1.15 bertrand 7618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619: $as_echo "no" >&6; };
7620: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14 bertrand 7621: fi
7622: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7623: CFLAGS=$saved_CFLAGS
7624: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7625: libPgSQLlib=$libPgSQLlib/../local/lib
7626: fi
1.14 bertrand 7627:
1.15 bertrand 7628: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7629: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7630: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7631: saved_CFLAGS="$CFLAGS"
7632: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7633: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7634: /* end confdefs.h. */
1.15 bertrand 7635: #include "libpq-fe.h"
1.1 bertrand 7636: int
7637: main ()
7638: {
7639:
7640: ;
7641: return 0;
7642: }
7643: _ACEOF
1.15 bertrand 7644: if ac_fn_c_try_compile "$LINENO"; then :
7645: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7646: $as_echo "yes" >&6; };
7647: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7648: else
1.15 bertrand 7649: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650: $as_echo "no" >&6; };
7651: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7652: fi
7653: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7654: CFLAGS=$saved_CFLAGS
7655: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7656: libPgSQLlib=$libPgSQLlib/../local/lib
7657: fi
1.14 bertrand 7658: else
1.15 bertrand 7659: if test "x$with_postgresql" != xno; then
7660: libPgSQLinc="-I$with_postgresql/include"
1.30 bertrand 7661: libPgSQLlib="$with_postgresql/lib"
1.15 bertrand 7662:
7663: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7664: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7665: saved_CFLAGS="$CFLAGS"
7666: CFLAGS="$CFLAGS $libPgSQLinc"
7667: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7668: /* end confdefs.h. */
1.15 bertrand 7669: #include "libpq-fe.h"
1.1 bertrand 7670: int
7671: main ()
7672: {
7673:
7674: ;
7675: return 0;
7676: }
7677: _ACEOF
1.15 bertrand 7678: if ac_fn_c_try_compile "$LINENO"; then :
7679: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7680: $as_echo "yes" >&6; };
7681: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7682: else
1.15 bertrand 7683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684: $as_echo "no" >&6; };
7685: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14 bertrand 7686: fi
1.15 bertrand 7687: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7688: CFLAGS=$saved_CFLAGS
1.14 bertrand 7689:
1.15 bertrand 7690: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7691: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7692: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7693: saved_CFLAGS="$CFLAGS"
7694: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7695: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 7696: /* end confdefs.h. */
1.15 bertrand 7697: #include "libpq-fe.h"
1.1 bertrand 7698: int
7699: main ()
7700: {
1.15 bertrand 7701:
1.1 bertrand 7702: ;
7703: return 0;
7704: }
7705: _ACEOF
1.15 bertrand 7706: if ac_fn_c_try_compile "$LINENO"; then :
7707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7708: $as_echo "yes" >&6; };
7709: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7710: else
1.15 bertrand 7711: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712: $as_echo "no" >&6; };
7713: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7714: fi
7715: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7716: CFLAGS=$saved_CFLAGS
7717: libPgSQLinc=$libPgSQLinc/postgresql
7718: fi
1.14 bertrand 7719:
1.15 bertrand 7720: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7721: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7722: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7723: saved_CFLAGS="$CFLAGS"
7724: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7725: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7726: /* end confdefs.h. */
1.15 bertrand 7727: #include "libpq-fe.h"
1.1 bertrand 7728: int
7729: main ()
7730: {
1.15 bertrand 7731:
1.1 bertrand 7732: ;
7733: return 0;
7734: }
7735: _ACEOF
1.15 bertrand 7736: if ac_fn_c_try_compile "$LINENO"; then :
7737: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7738: $as_echo "yes" >&6; };
7739: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7740: else
1.15 bertrand 7741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742: $as_echo "no" >&6; };
7743: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7744: fi
1.15 bertrand 7745: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746: CFLAGS=$saved_CFLAGS
7747: libPgSQLinc=$libPgSQLinc/pgsql
7748: fi
7749: else
7750: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7751: fi
1.1 bertrand 7752: fi
7753:
1.15 bertrand 7754: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7755: POSTGRESQL_LIB=no
1.1 bertrand 7756:
1.15 bertrand 7757: if test $POSTGRESQL_LIB = no; then
7758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7759: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7760: saved_LIBS="$LIBS"
1.30 bertrand 7761: if test $STATIC = no; then
7762: LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
7763: else
7764: LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
7765: fi
1.15 bertrand 7766: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7767: /* end confdefs.h. */
1.15 bertrand 7768: #include "libpq-fe.h"
1.1 bertrand 7769: int
7770: main ()
7771: {
1.15 bertrand 7772: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7773: PQconnectdb(conninfo);
1.1 bertrand 7774: ;
7775: return 0;
7776: }
7777: _ACEOF
1.15 bertrand 7778: if ac_fn_c_try_link "$LINENO"; then :
7779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7780: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1 bertrand 7781: else
1.15 bertrand 7782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7784: fi
7785: rm -f core conftest.err conftest.$ac_objext \
7786: conftest$ac_exeext conftest.$ac_ext
7787: LIBS=$saved_LIBS;
1.30 bertrand 7788: if test $STATIC = no; then
7789: libPgSQLlib="-L/$libPgSQLlib -lpq"
7790: else
7791: libPgSQLlib="$libPgSQLlib/libpq.a"
7792: EXT_SQL="$EXT_SQL $libPgSQLlib"
7793: fi
1.15 bertrand 7794: fi
7795: fi
7796:
7797: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7798: libPgSQLinc=
7799: libPgSQLlib=
7800: fi
7801:
7802:
7803:
7804:
1.14 bertrand 7805:
1.40 bertrand 7806: # with_postgresql : check [pas défini], yes [uniquement --with],
7807: # no [--without], valeur [--with=valeur].
7808:
7809: # Check whether --with-bourne_shell was given.
7810: if test "${with_bourne_shell+set}" = set; then :
7811: withval=$with_bourne_shell;
7812: else
7813: with_bourne_shell=no
7814: fi
7815:
7816:
7817: if test "x$with_bourne_shell" = xyes; then
7818: as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
7819: fi
7820:
7821: if test "x$with_bourne_shell" = xno; then
7822: if test $(uname) = "OS/2"; then
7823: as_fn_error $? "With OS/2 or eComstation, you have to specify a valide shell path !" "$LINENO" 5
7824: fi
7825:
7826: BSH_PATH=
7827: else
7828: if test ! -x $with_bourne_shell; then
7829: as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
7830: fi
7831:
7832: if test $(uname) = "OS/2"; then
1.41 bertrand 7833: with_os2_bourne_shell=$(echo $with_bourne_shell | \
7834: sed -e '1,$s/\//\\\\\\\\/g')
7835: BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40 bertrand 7836: else
7837: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
7838: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
7839: BSH_PATH=
7840: fi
7841: fi
7842:
1.15 bertrand 7843: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7844: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.57 bertrand 7845: if ${ac_cv_path_GREP+:} false; then :
1.15 bertrand 7846: $as_echo_n "(cached) " >&6
7847: else
7848: if test -z "$GREP"; then
7849: ac_path_GREP_found=false
7850: # Loop through the user's path and test for each of PROGNAME-LIST
7851: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7853: do
7854: IFS=$as_save_IFS
7855: test -z "$as_dir" && as_dir=.
7856: for ac_prog in grep ggrep; do
7857: for ac_exec_ext in '' $ac_executable_extensions; do
7858: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7859: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7860: # Check for GNU ac_path_GREP and select it if it is found.
7861: # Check for GNU $ac_path_GREP
7862: case `"$ac_path_GREP" --version 2>&1` in
7863: *GNU*)
7864: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7865: *)
7866: ac_count=0
7867: $as_echo_n 0123456789 >"conftest.in"
7868: while :
7869: do
7870: cat "conftest.in" "conftest.in" >"conftest.tmp"
7871: mv "conftest.tmp" "conftest.in"
7872: cp "conftest.in" "conftest.nl"
7873: $as_echo 'GREP' >> "conftest.nl"
7874: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7875: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7876: as_fn_arith $ac_count + 1 && ac_count=$as_val
7877: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7878: # Best one so far, save it but keep looking for a better one
7879: ac_cv_path_GREP="$ac_path_GREP"
7880: ac_path_GREP_max=$ac_count
7881: fi
7882: # 10*(2^10) chars as input seems more than enough
7883: test $ac_count -gt 10 && break
7884: done
7885: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7886: esac
1.14 bertrand 7887:
1.15 bertrand 7888: $ac_path_GREP_found && break 3
7889: done
7890: done
7891: done
7892: IFS=$as_save_IFS
7893: if test -z "$ac_cv_path_GREP"; then
1.36 bertrand 7894: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15 bertrand 7895: fi
7896: else
7897: ac_cv_path_GREP=$GREP
1.1 bertrand 7898: fi
7899:
7900: fi
1.15 bertrand 7901: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7902: $as_echo "$ac_cv_path_GREP" >&6; }
7903: GREP="$ac_cv_path_GREP"
7904:
7905:
7906: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7907: $as_echo_n "checking for egrep... " >&6; }
1.57 bertrand 7908: if ${ac_cv_path_EGREP+:} false; then :
1.15 bertrand 7909: $as_echo_n "(cached) " >&6
7910: else
7911: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7912: then ac_cv_path_EGREP="$GREP -E"
7913: else
7914: if test -z "$EGREP"; then
7915: ac_path_EGREP_found=false
7916: # Loop through the user's path and test for each of PROGNAME-LIST
7917: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7919: do
7920: IFS=$as_save_IFS
7921: test -z "$as_dir" && as_dir=.
7922: for ac_prog in egrep; do
7923: for ac_exec_ext in '' $ac_executable_extensions; do
7924: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7925: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7926: # Check for GNU ac_path_EGREP and select it if it is found.
7927: # Check for GNU $ac_path_EGREP
7928: case `"$ac_path_EGREP" --version 2>&1` in
7929: *GNU*)
7930: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7931: *)
7932: ac_count=0
7933: $as_echo_n 0123456789 >"conftest.in"
7934: while :
7935: do
7936: cat "conftest.in" "conftest.in" >"conftest.tmp"
7937: mv "conftest.tmp" "conftest.in"
7938: cp "conftest.in" "conftest.nl"
7939: $as_echo 'EGREP' >> "conftest.nl"
7940: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7941: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7942: as_fn_arith $ac_count + 1 && ac_count=$as_val
7943: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7944: # Best one so far, save it but keep looking for a better one
7945: ac_cv_path_EGREP="$ac_path_EGREP"
7946: ac_path_EGREP_max=$ac_count
7947: fi
7948: # 10*(2^10) chars as input seems more than enough
7949: test $ac_count -gt 10 && break
7950: done
7951: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7952: esac
7953:
7954: $ac_path_EGREP_found && break 3
7955: done
7956: done
7957: done
7958: IFS=$as_save_IFS
7959: if test -z "$ac_cv_path_EGREP"; then
1.36 bertrand 7960: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15 bertrand 7961: fi
1.1 bertrand 7962: else
1.15 bertrand 7963: ac_cv_path_EGREP=$EGREP
1.1 bertrand 7964: fi
7965:
1.15 bertrand 7966: fi
1.1 bertrand 7967: fi
1.15 bertrand 7968: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7969: $as_echo "$ac_cv_path_EGREP" >&6; }
7970: EGREP="$ac_cv_path_EGREP"
1.1 bertrand 7971:
7972:
1.15 bertrand 7973: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7974: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57 bertrand 7975: if ${ac_cv_header_stdc+:} false; then :
1.15 bertrand 7976: $as_echo_n "(cached) " >&6
1.1 bertrand 7977: else
1.15 bertrand 7978: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7979: /* end confdefs.h. */
7980: #include <stdlib.h>
7981: #include <stdarg.h>
7982: #include <string.h>
7983: #include <float.h>
7984:
7985: int
7986: main ()
7987: {
7988:
7989: ;
7990: return 0;
7991: }
7992: _ACEOF
1.15 bertrand 7993: if ac_fn_c_try_compile "$LINENO"; then :
1.1 bertrand 7994: ac_cv_header_stdc=yes
7995: else
1.15 bertrand 7996: ac_cv_header_stdc=no
1.1 bertrand 7997: fi
7998: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999:
8000: if test $ac_cv_header_stdc = yes; then
8001: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15 bertrand 8002: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8003: /* end confdefs.h. */
8004: #include <string.h>
8005:
8006: _ACEOF
8007: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15 bertrand 8008: $EGREP "memchr" >/dev/null 2>&1; then :
8009:
1.1 bertrand 8010: else
8011: ac_cv_header_stdc=no
8012: fi
8013: rm -f conftest*
8014:
8015: fi
8016:
8017: if test $ac_cv_header_stdc = yes; then
8018: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15 bertrand 8019: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8020: /* end confdefs.h. */
8021: #include <stdlib.h>
8022:
8023: _ACEOF
8024: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15 bertrand 8025: $EGREP "free" >/dev/null 2>&1; then :
8026:
1.1 bertrand 8027: else
8028: ac_cv_header_stdc=no
8029: fi
8030: rm -f conftest*
8031:
8032: fi
8033:
8034: if test $ac_cv_header_stdc = yes; then
8035: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15 bertrand 8036: if test "$cross_compiling" = yes; then :
1.1 bertrand 8037: :
8038: else
1.15 bertrand 8039: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8040: /* end confdefs.h. */
8041: #include <ctype.h>
8042: #include <stdlib.h>
8043: #if ((' ' & 0x0FF) == 0x020)
8044: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8045: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8046: #else
8047: # define ISLOWER(c) \
8048: (('a' <= (c) && (c) <= 'i') \
8049: || ('j' <= (c) && (c) <= 'r') \
8050: || ('s' <= (c) && (c) <= 'z'))
8051: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8052: #endif
8053:
8054: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8055: int
8056: main ()
8057: {
8058: int i;
8059: for (i = 0; i < 256; i++)
8060: if (XOR (islower (i), ISLOWER (i))
8061: || toupper (i) != TOUPPER (i))
8062: return 2;
8063: return 0;
8064: }
8065: _ACEOF
1.15 bertrand 8066: if ac_fn_c_try_run "$LINENO"; then :
8067:
1.14 bertrand 8068: else
1.15 bertrand 8069: ac_cv_header_stdc=no
8070: fi
8071: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8072: conftest.$ac_objext conftest.beam conftest.$ac_ext
8073: fi
1.1 bertrand 8074:
8075: fi
8076: fi
1.15 bertrand 8077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8078: $as_echo "$ac_cv_header_stdc" >&6; }
8079: if test $ac_cv_header_stdc = yes; then
1.1 bertrand 8080:
1.15 bertrand 8081: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14 bertrand 8082:
1.1 bertrand 8083: fi
8084:
1.15 bertrand 8085: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8086: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8087: inttypes.h stdint.h unistd.h
8088: do :
8089: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8090: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8091: "
1.36 bertrand 8092: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8093: cat >>confdefs.h <<_ACEOF
8094: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14 bertrand 8095: _ACEOF
1.1 bertrand 8096:
8097: fi
8098:
1.15 bertrand 8099: done
8100:
8101:
8102: # The cast to long int works around a bug in the HP C Compiler
8103: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8104: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8105: # This bug is HP SR number 8606223364.
8106: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8107: $as_echo_n "checking size of void *... " >&6; }
1.57 bertrand 8108: if ${ac_cv_sizeof_void_p+:} false; then :
1.15 bertrand 8109: $as_echo_n "(cached) " >&6
8110: else
8111: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
1.14 bertrand 8112:
8113: else
1.15 bertrand 8114: if test "$ac_cv_type_void_p" = yes; then
8115: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8116: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8117: as_fn_error 77 "cannot compute sizeof (void *)
1.57 bertrand 8118: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8119: else
8120: ac_cv_sizeof_void_p=0
8121: fi
8122: fi
1.1 bertrand 8123:
8124: fi
1.15 bertrand 8125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8126: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8127:
1.1 bertrand 8128:
8129:
1.15 bertrand 8130: cat >>confdefs.h <<_ACEOF
8131: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14 bertrand 8132: _ACEOF
1.1 bertrand 8133:
1.15 bertrand 8134:
8135: # The cast to long int works around a bug in the HP C Compiler
8136: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8137: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8138: # This bug is HP SR number 8606223364.
8139: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8140: $as_echo_n "checking size of char... " >&6; }
1.57 bertrand 8141: if ${ac_cv_sizeof_char+:} false; then :
1.15 bertrand 8142: $as_echo_n "(cached) " >&6
8143: else
8144: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8145:
8146: else
8147: if test "$ac_cv_type_char" = yes; then
8148: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8149: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8150: as_fn_error 77 "cannot compute sizeof (char)
1.57 bertrand 8151: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8152: else
8153: ac_cv_sizeof_char=0
8154: fi
8155: fi
8156:
1.1 bertrand 8157: fi
1.15 bertrand 8158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8159: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1 bertrand 8160:
8161:
8162:
1.15 bertrand 8163: cat >>confdefs.h <<_ACEOF
8164: #define SIZEOF_CHAR $ac_cv_sizeof_char
8165: _ACEOF
1.1 bertrand 8166:
8167:
1.15 bertrand 8168: # The cast to long int works around a bug in the HP C Compiler
8169: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8170: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8171: # This bug is HP SR number 8606223364.
8172: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8173: $as_echo_n "checking size of short int... " >&6; }
1.57 bertrand 8174: if ${ac_cv_sizeof_short_int+:} false; then :
1.15 bertrand 8175: $as_echo_n "(cached) " >&6
8176: else
8177: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
1.1 bertrand 8178:
1.15 bertrand 8179: else
8180: if test "$ac_cv_type_short_int" = yes; then
8181: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8182: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8183: as_fn_error 77 "cannot compute sizeof (short int)
1.57 bertrand 8184: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8185: else
8186: ac_cv_sizeof_short_int=0
8187: fi
8188: fi
1.1 bertrand 8189:
1.15 bertrand 8190: fi
8191: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8192: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1 bertrand 8193:
8194:
8195:
1.15 bertrand 8196: cat >>confdefs.h <<_ACEOF
8197: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8198: _ACEOF
1.1 bertrand 8199:
8200:
1.15 bertrand 8201: # The cast to long int works around a bug in the HP C Compiler
8202: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8203: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8204: # This bug is HP SR number 8606223364.
8205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8206: $as_echo_n "checking size of int... " >&6; }
1.57 bertrand 8207: if ${ac_cv_sizeof_int+:} false; then :
1.15 bertrand 8208: $as_echo_n "(cached) " >&6
8209: else
8210: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
1.1 bertrand 8211:
1.15 bertrand 8212: else
8213: if test "$ac_cv_type_int" = yes; then
8214: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8215: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8216: as_fn_error 77 "cannot compute sizeof (int)
1.57 bertrand 8217: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8218: else
8219: ac_cv_sizeof_int=0
8220: fi
8221: fi
1.1 bertrand 8222:
1.15 bertrand 8223: fi
8224: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8225: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1 bertrand 8226:
8227:
8228:
1.15 bertrand 8229: cat >>confdefs.h <<_ACEOF
8230: #define SIZEOF_INT $ac_cv_sizeof_int
8231: _ACEOF
1.1 bertrand 8232:
8233:
1.15 bertrand 8234: # The cast to long int works around a bug in the HP C Compiler
8235: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8236: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8237: # This bug is HP SR number 8606223364.
8238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8239: $as_echo_n "checking size of long int... " >&6; }
1.57 bertrand 8240: if ${ac_cv_sizeof_long_int+:} false; then :
1.15 bertrand 8241: $as_echo_n "(cached) " >&6
8242: else
8243: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
1.1 bertrand 8244:
1.14 bertrand 8245: else
1.15 bertrand 8246: if test "$ac_cv_type_long_int" = yes; then
8247: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8248: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8249: as_fn_error 77 "cannot compute sizeof (long int)
1.57 bertrand 8250: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8251: else
8252: ac_cv_sizeof_long_int=0
8253: fi
8254: fi
1.1 bertrand 8255:
8256: fi
1.15 bertrand 8257: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8258: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8259:
1.1 bertrand 8260:
8261:
1.15 bertrand 8262: cat >>confdefs.h <<_ACEOF
8263: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14 bertrand 8264: _ACEOF
1.15 bertrand 8265:
8266:
8267: # The cast to long int works around a bug in the HP C Compiler
8268: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8269: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8270: # This bug is HP SR number 8606223364.
8271: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8272: $as_echo_n "checking size of long long int... " >&6; }
1.57 bertrand 8273: if ${ac_cv_sizeof_long_long_int+:} false; then :
1.15 bertrand 8274: $as_echo_n "(cached) " >&6
8275: else
8276: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8277:
1.14 bertrand 8278: else
1.15 bertrand 8279: if test "$ac_cv_type_long_long_int" = yes; then
8280: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8281: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8282: as_fn_error 77 "cannot compute sizeof (long long int)
1.57 bertrand 8283: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8284: else
8285: ac_cv_sizeof_long_long_int=0
8286: fi
8287: fi
1.1 bertrand 8288:
1.14 bertrand 8289: fi
1.15 bertrand 8290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8291: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8292:
8293:
8294:
8295: cat >>confdefs.h <<_ACEOF
8296: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8297: _ACEOF
1.1 bertrand 8298:
8299:
1.15 bertrand 8300: # The cast to long int works around a bug in the HP C Compiler
8301: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8302: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8303: # This bug is HP SR number 8606223364.
8304: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8305: $as_echo_n "checking size of float... " >&6; }
1.57 bertrand 8306: if ${ac_cv_sizeof_float+:} false; then :
1.15 bertrand 8307: $as_echo_n "(cached) " >&6
8308: else
8309: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
1.1 bertrand 8310:
8311: else
1.15 bertrand 8312: if test "$ac_cv_type_float" = yes; then
8313: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8314: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8315: as_fn_error 77 "cannot compute sizeof (float)
1.57 bertrand 8316: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8317: else
8318: ac_cv_sizeof_float=0
8319: fi
1.14 bertrand 8320: fi
8321:
1.1 bertrand 8322: fi
1.15 bertrand 8323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8324: $as_echo "$ac_cv_sizeof_float" >&6; }
8325:
8326:
8327:
8328: cat >>confdefs.h <<_ACEOF
8329: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14 bertrand 8330: _ACEOF
1.1 bertrand 8331:
8332:
1.15 bertrand 8333: # The cast to long int works around a bug in the HP C Compiler
8334: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8335: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8336: # This bug is HP SR number 8606223364.
8337: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8338: $as_echo_n "checking size of double... " >&6; }
1.57 bertrand 8339: if ${ac_cv_sizeof_double+:} false; then :
1.15 bertrand 8340: $as_echo_n "(cached) " >&6
8341: else
8342: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
1.1 bertrand 8343:
1.15 bertrand 8344: else
8345: if test "$ac_cv_type_double" = yes; then
8346: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8347: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8348: as_fn_error 77 "cannot compute sizeof (double)
1.57 bertrand 8349: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8350: else
8351: ac_cv_sizeof_double=0
8352: fi
8353: fi
1.1 bertrand 8354:
1.15 bertrand 8355: fi
8356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8357: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14 bertrand 8358:
1.1 bertrand 8359:
8360:
1.15 bertrand 8361: cat >>confdefs.h <<_ACEOF
8362: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14 bertrand 8363: _ACEOF
1.15 bertrand 8364:
8365:
8366: # The cast to long int works around a bug in the HP C Compiler
8367: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8368: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8369: # This bug is HP SR number 8606223364.
8370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8371: $as_echo_n "checking size of long double... " >&6; }
1.57 bertrand 8372: if ${ac_cv_sizeof_long_double+:} false; then :
1.15 bertrand 8373: $as_echo_n "(cached) " >&6
8374: else
8375: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8376:
1.14 bertrand 8377: else
1.15 bertrand 8378: if test "$ac_cv_type_long_double" = yes; then
8379: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8380: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8381: as_fn_error 77 "cannot compute sizeof (long double)
1.57 bertrand 8382: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8383: else
8384: ac_cv_sizeof_long_double=0
8385: fi
8386: fi
1.1 bertrand 8387:
8388: fi
1.15 bertrand 8389: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8390: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8391:
1.1 bertrand 8392:
8393:
1.15 bertrand 8394: cat >>confdefs.h <<_ACEOF
8395: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1 bertrand 8396: _ACEOF
8397:
8398:
1.15 bertrand 8399:
8400: ac_header_dirent=no
8401: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8402: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8403: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8404: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.57 bertrand 8405: if eval \${$as_ac_Header+:} false; then :
1.15 bertrand 8406: $as_echo_n "(cached) " >&6
1.1 bertrand 8407: else
1.15 bertrand 8408: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 8409: /* end confdefs.h. */
8410: #include <sys/types.h>
1.15 bertrand 8411: #include <$ac_hdr>
1.1 bertrand 8412:
1.15 bertrand 8413: int
8414: main ()
8415: {
8416: if ((DIR *) 0)
8417: return 0;
8418: ;
8419: return 0;
8420: }
1.1 bertrand 8421: _ACEOF
1.15 bertrand 8422: if ac_fn_c_try_compile "$LINENO"; then :
8423: eval "$as_ac_Header=yes"
1.1 bertrand 8424: else
1.15 bertrand 8425: eval "$as_ac_Header=no"
8426: fi
8427: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8428: fi
1.15 bertrand 8429: eval ac_res=\$$as_ac_Header
8430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8431: $as_echo "$ac_res" >&6; }
1.36 bertrand 8432: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8433: cat >>confdefs.h <<_ACEOF
8434: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8435: _ACEOF
1.1 bertrand 8436:
1.15 bertrand 8437: ac_header_dirent=$ac_hdr; break
1.1 bertrand 8438: fi
8439:
1.15 bertrand 8440: done
8441: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8442: if test $ac_header_dirent = dirent.h; then
8443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8444: $as_echo_n "checking for library containing opendir... " >&6; }
1.57 bertrand 8445: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8446: $as_echo_n "(cached) " >&6
8447: else
8448: ac_func_search_save_LIBS=$LIBS
8449: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8450: /* end confdefs.h. */
8451:
8452: /* Override any GCC internal prototype to avoid an error.
8453: Use char because int might match the return type of a GCC
8454: builtin and then its argument prototype would still apply. */
8455: #ifdef __cplusplus
8456: extern "C"
8457: #endif
8458: char opendir ();
8459: int
8460: main ()
8461: {
8462: return opendir ();
8463: ;
8464: return 0;
8465: }
1.14 bertrand 8466: _ACEOF
1.15 bertrand 8467: for ac_lib in '' dir; do
8468: if test -z "$ac_lib"; then
8469: ac_res="none required"
8470: else
8471: ac_res=-l$ac_lib
8472: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8473: fi
8474: if ac_fn_c_try_link "$LINENO"; then :
8475: ac_cv_search_opendir=$ac_res
8476: fi
8477: rm -f core conftest.err conftest.$ac_objext \
8478: conftest$ac_exeext
1.57 bertrand 8479: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8480: break
8481: fi
8482: done
1.57 bertrand 8483: if ${ac_cv_search_opendir+:} false; then :
1.1 bertrand 8484:
1.15 bertrand 8485: else
8486: ac_cv_search_opendir=no
8487: fi
8488: rm conftest.$ac_ext
8489: LIBS=$ac_func_search_save_LIBS
8490: fi
8491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8492: $as_echo "$ac_cv_search_opendir" >&6; }
8493: ac_res=$ac_cv_search_opendir
8494: if test "$ac_res" != no; then :
8495: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 bertrand 8496:
1.14 bertrand 8497: fi
1.1 bertrand 8498:
8499: else
1.15 bertrand 8500: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8501: $as_echo_n "checking for library containing opendir... " >&6; }
1.57 bertrand 8502: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8503: $as_echo_n "(cached) " >&6
8504: else
8505: ac_func_search_save_LIBS=$LIBS
8506: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8507: /* end confdefs.h. */
1.15 bertrand 8508:
8509: /* Override any GCC internal prototype to avoid an error.
8510: Use char because int might match the return type of a GCC
8511: builtin and then its argument prototype would still apply. */
8512: #ifdef __cplusplus
8513: extern "C"
8514: #endif
8515: char opendir ();
1.1 bertrand 8516: int
8517: main ()
8518: {
1.15 bertrand 8519: return opendir ();
1.1 bertrand 8520: ;
8521: return 0;
8522: }
8523: _ACEOF
1.15 bertrand 8524: for ac_lib in '' x; do
8525: if test -z "$ac_lib"; then
8526: ac_res="none required"
8527: else
8528: ac_res=-l$ac_lib
8529: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8530: fi
8531: if ac_fn_c_try_link "$LINENO"; then :
8532: ac_cv_search_opendir=$ac_res
8533: fi
8534: rm -f core conftest.err conftest.$ac_objext \
8535: conftest$ac_exeext
1.57 bertrand 8536: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8537: break
8538: fi
8539: done
1.57 bertrand 8540: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8541:
1.1 bertrand 8542: else
1.15 bertrand 8543: ac_cv_search_opendir=no
8544: fi
8545: rm conftest.$ac_ext
8546: LIBS=$ac_func_search_save_LIBS
1.1 bertrand 8547: fi
1.15 bertrand 8548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8549: $as_echo "$ac_cv_search_opendir" >&6; }
8550: ac_res=$ac_cv_search_opendir
8551: if test "$ac_res" != no; then :
8552: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14 bertrand 8553:
1.1 bertrand 8554: fi
8555:
8556: fi
8557:
1.15 bertrand 8558: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8559: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57 bertrand 8560: if ${ac_cv_header_stdc+:} false; then :
1.15 bertrand 8561: $as_echo_n "(cached) " >&6
1.1 bertrand 8562: else
1.15 bertrand 8563: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8564: /* end confdefs.h. */
1.15 bertrand 8565: #include <stdlib.h>
8566: #include <stdarg.h>
8567: #include <string.h>
8568: #include <float.h>
8569:
1.1 bertrand 8570: int
8571: main ()
8572: {
1.15 bertrand 8573:
1.1 bertrand 8574: ;
8575: return 0;
8576: }
8577: _ACEOF
1.15 bertrand 8578: if ac_fn_c_try_compile "$LINENO"; then :
8579: ac_cv_header_stdc=yes
1.14 bertrand 8580: else
1.15 bertrand 8581: ac_cv_header_stdc=no
8582: fi
8583: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8584:
8585: if test $ac_cv_header_stdc = yes; then
8586: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8587: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8588: /* end confdefs.h. */
8589: #include <string.h>
8590:
8591: _ACEOF
8592: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8593: $EGREP "memchr" >/dev/null 2>&1; then :
1.14 bertrand 8594:
1.15 bertrand 8595: else
8596: ac_cv_header_stdc=no
1.1 bertrand 8597: fi
1.15 bertrand 8598: rm -f conftest*
1.14 bertrand 8599:
1.1 bertrand 8600: fi
8601:
1.15 bertrand 8602: if test $ac_cv_header_stdc = yes; then
8603: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8604: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605: /* end confdefs.h. */
8606: #include <stdlib.h>
8607:
1.14 bertrand 8608: _ACEOF
1.15 bertrand 8609: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8610: $EGREP "free" >/dev/null 2>&1; then :
8611:
8612: else
8613: ac_cv_header_stdc=no
8614: fi
8615: rm -f conftest*
1.1 bertrand 8616:
8617: fi
8618:
1.15 bertrand 8619: if test $ac_cv_header_stdc = yes; then
8620: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8621: if test "$cross_compiling" = yes; then :
8622: :
1.1 bertrand 8623: else
1.15 bertrand 8624: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8625: /* end confdefs.h. */
1.15 bertrand 8626: #include <ctype.h>
8627: #include <stdlib.h>
8628: #if ((' ' & 0x0FF) == 0x020)
8629: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8630: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8631: #else
8632: # define ISLOWER(c) \
8633: (('a' <= (c) && (c) <= 'i') \
8634: || ('j' <= (c) && (c) <= 'r') \
8635: || ('s' <= (c) && (c) <= 'z'))
8636: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8637: #endif
1.1 bertrand 8638:
1.15 bertrand 8639: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1 bertrand 8640: int
8641: main ()
8642: {
1.15 bertrand 8643: int i;
8644: for (i = 0; i < 256; i++)
8645: if (XOR (islower (i), ISLOWER (i))
8646: || toupper (i) != TOUPPER (i))
8647: return 2;
1.1 bertrand 8648: return 0;
8649: }
8650: _ACEOF
1.15 bertrand 8651: if ac_fn_c_try_run "$LINENO"; then :
8652:
1.14 bertrand 8653: else
1.15 bertrand 8654: ac_cv_header_stdc=no
8655: fi
8656: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8657: conftest.$ac_objext conftest.beam conftest.$ac_ext
8658: fi
1.14 bertrand 8659:
1.1 bertrand 8660: fi
8661: fi
1.15 bertrand 8662: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8663: $as_echo "$ac_cv_header_stdc" >&6; }
8664: if test $ac_cv_header_stdc = yes; then
1.1 bertrand 8665:
1.15 bertrand 8666: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1 bertrand 8667:
8668: fi
8669:
1.15 bertrand 8670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8671: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
1.57 bertrand 8672: if ${ac_cv_header_sys_wait_h+:} false; then :
1.15 bertrand 8673: $as_echo_n "(cached) " >&6
1.1 bertrand 8674: else
1.15 bertrand 8675: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8676: /* end confdefs.h. */
1.14 bertrand 8677: #include <sys/types.h>
1.15 bertrand 8678: #include <sys/wait.h>
8679: #ifndef WEXITSTATUS
8680: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8681: #endif
8682: #ifndef WIFEXITED
8683: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8684: #endif
1.1 bertrand 8685:
8686: int
8687: main ()
8688: {
1.15 bertrand 8689: int s;
8690: wait (&s);
8691: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1 bertrand 8692: ;
8693: return 0;
8694: }
8695: _ACEOF
1.15 bertrand 8696: if ac_fn_c_try_compile "$LINENO"; then :
8697: ac_cv_header_sys_wait_h=yes
1.1 bertrand 8698: else
1.15 bertrand 8699: ac_cv_header_sys_wait_h=no
8700: fi
8701: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702: fi
8703: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8704: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8705: if test $ac_cv_header_sys_wait_h = yes; then
1.1 bertrand 8706:
1.15 bertrand 8707: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1 bertrand 8708:
8709: fi
8710:
1.15 bertrand 8711: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8712: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8713: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8714: do :
8715: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8716: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36 bertrand 8717: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8718: cat >>confdefs.h <<_ACEOF
8719: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 bertrand 8720: _ACEOF
8721:
8722: fi
8723:
1.15 bertrand 8724: done
8725:
1.1 bertrand 8726:
1.15 bertrand 8727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8728: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1.57 bertrand 8729: if ${ac_cv_c_const+:} false; then :
1.15 bertrand 8730: $as_echo_n "(cached) " >&6
1.1 bertrand 8731: else
1.15 bertrand 8732: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8733: /* end confdefs.h. */
8734:
8735: int
8736: main ()
8737: {
1.15 bertrand 8738: /* FIXME: Include the comments suggested by Paul. */
8739: #ifndef __cplusplus
8740: /* Ultrix mips cc rejects this. */
8741: typedef int charset[2];
8742: const charset cs;
8743: /* SunOS 4.1.1 cc rejects this. */
8744: char const *const *pcpcc;
8745: char **ppc;
8746: /* NEC SVR4.0.2 mips cc rejects this. */
8747: struct point {int x, y;};
8748: static struct point const zero = {0,0};
8749: /* AIX XL C 1.02.0.0 rejects this.
8750: It does not let you subtract one const X* pointer from another in
8751: an arm of an if-expression whose if-part is not a constant
8752: expression */
8753: const char *g = "string";
8754: pcpcc = &g + (g ? g-g : 0);
8755: /* HPUX 7.0 cc rejects these. */
8756: ++pcpcc;
8757: ppc = (char**) pcpcc;
8758: pcpcc = (char const *const *) ppc;
8759: { /* SCO 3.2v4 cc rejects this. */
8760: char *t;
8761: char const *s = 0 ? (char *) 0 : (char const *) 0;
8762:
8763: *t++ = 0;
8764: if (s) return 0;
8765: }
8766: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8767: int x[] = {25, 17};
8768: const int *foo = &x[0];
8769: ++foo;
8770: }
8771: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8772: typedef const int *iptr;
8773: iptr p = 0;
8774: ++p;
8775: }
8776: { /* AIX XL C 1.02.0.0 rejects this saying
8777: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8778: struct s { int j; const int *ap[3]; };
8779: struct s *b; b->j = 5;
8780: }
8781: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8782: const int foo = 10;
8783: if (!foo) return 0;
8784: }
8785: return !cs[0] && !zero.x;
8786: #endif
8787:
1.14 bertrand 8788: ;
1.1 bertrand 8789: return 0;
8790: }
8791: _ACEOF
1.15 bertrand 8792: if ac_fn_c_try_compile "$LINENO"; then :
8793: ac_cv_c_const=yes
1.14 bertrand 8794: else
1.15 bertrand 8795: ac_cv_c_const=no
1.1 bertrand 8796: fi
1.14 bertrand 8797: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8798: fi
1.15 bertrand 8799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8800: $as_echo "$ac_cv_c_const" >&6; }
8801: if test $ac_cv_c_const = no; then
1.1 bertrand 8802:
1.15 bertrand 8803: $as_echo "#define const /**/" >>confdefs.h
1.1 bertrand 8804:
1.15 bertrand 8805: fi
1.1 bertrand 8806:
1.15 bertrand 8807: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8808: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
1.57 bertrand 8809: if ${ac_cv_type_uid_t+:} false; then :
1.15 bertrand 8810: $as_echo_n "(cached) " >&6
1.1 bertrand 8811: else
1.15 bertrand 8812: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8813: /* end confdefs.h. */
1.15 bertrand 8814: #include <sys/types.h>
8815:
1.1 bertrand 8816: _ACEOF
1.15 bertrand 8817: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8818: $EGREP "uid_t" >/dev/null 2>&1; then :
8819: ac_cv_type_uid_t=yes
1.1 bertrand 8820: else
1.15 bertrand 8821: ac_cv_type_uid_t=no
8822: fi
8823: rm -f conftest*
1.14 bertrand 8824:
1.1 bertrand 8825: fi
1.15 bertrand 8826: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8827: $as_echo "$ac_cv_type_uid_t" >&6; }
8828: if test $ac_cv_type_uid_t = no; then
1.1 bertrand 8829:
1.15 bertrand 8830: $as_echo "#define uid_t int" >>confdefs.h
1.1 bertrand 8831:
8832:
1.15 bertrand 8833: $as_echo "#define gid_t int" >>confdefs.h
1.1 bertrand 8834:
8835: fi
8836:
1.15 bertrand 8837: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
1.57 bertrand 8838: if test "x$ac_cv_type_pid_t" = xyes; then :
1.1 bertrand 8839:
8840: else
1.15 bertrand 8841:
8842: cat >>confdefs.h <<_ACEOF
8843: #define pid_t int
1.14 bertrand 8844: _ACEOF
8845:
1.15 bertrand 8846: fi
1.14 bertrand 8847:
1.15 bertrand 8848: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.57 bertrand 8849: if test "x$ac_cv_type_size_t" = xyes; then :
1.14 bertrand 8850:
1.15 bertrand 8851: else
1.1 bertrand 8852:
1.15 bertrand 8853: cat >>confdefs.h <<_ACEOF
8854: #define size_t unsigned int
1.1 bertrand 8855: _ACEOF
1.14 bertrand 8856:
1.1 bertrand 8857: fi
8858:
1.15 bertrand 8859: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8860: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
1.57 bertrand 8861: if ${ac_cv_header_time+:} false; then :
1.15 bertrand 8862: $as_echo_n "(cached) " >&6
1.1 bertrand 8863: else
1.15 bertrand 8864: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8865: /* end confdefs.h. */
1.15 bertrand 8866: #include <sys/types.h>
8867: #include <sys/time.h>
8868: #include <time.h>
1.1 bertrand 8869:
1.14 bertrand 8870: int
8871: main ()
8872: {
1.15 bertrand 8873: if ((struct tm *) 0)
8874: return 0;
1.14 bertrand 8875: ;
8876: return 0;
8877: }
1.1 bertrand 8878: _ACEOF
1.15 bertrand 8879: if ac_fn_c_try_compile "$LINENO"; then :
8880: ac_cv_header_time=yes
1.1 bertrand 8881: else
1.15 bertrand 8882: ac_cv_header_time=no
1.1 bertrand 8883: fi
1.15 bertrand 8884: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8885: fi
1.15 bertrand 8886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8887: $as_echo "$ac_cv_header_time" >&6; }
8888: if test $ac_cv_header_time = yes; then
1.1 bertrand 8889:
1.15 bertrand 8890: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1 bertrand 8891:
8892: fi
8893:
1.15 bertrand 8894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8895: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1.57 bertrand 8896: if ${ac_cv_struct_tm+:} false; then :
1.15 bertrand 8897: $as_echo_n "(cached) " >&6
1.1 bertrand 8898: else
1.15 bertrand 8899: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 8900: /* end confdefs.h. */
1.15 bertrand 8901: #include <sys/types.h>
8902: #include <time.h>
1.1 bertrand 8903:
8904: int
8905: main ()
8906: {
1.15 bertrand 8907: struct tm tm;
8908: int *p = &tm.tm_sec;
8909: return !p;
1.1 bertrand 8910: ;
8911: return 0;
8912: }
8913: _ACEOF
1.15 bertrand 8914: if ac_fn_c_try_compile "$LINENO"; then :
8915: ac_cv_struct_tm=time.h
1.1 bertrand 8916: else
1.15 bertrand 8917: ac_cv_struct_tm=sys/time.h
8918: fi
8919: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8920: fi
8921: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8922: $as_echo "$ac_cv_struct_tm" >&6; }
8923: if test $ac_cv_struct_tm = sys/time.h; then
8924:
8925: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14 bertrand 8926:
1.1 bertrand 8927: fi
8928:
8929:
1.15 bertrand 8930: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8931: $as_echo_n "checking return type of signal handlers... " >&6; }
1.57 bertrand 8932: if ${ac_cv_type_signal+:} false; then :
1.15 bertrand 8933: $as_echo_n "(cached) " >&6
1.1 bertrand 8934: else
1.15 bertrand 8935: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8936: /* end confdefs.h. */
1.15 bertrand 8937: #include <sys/types.h>
8938: #include <signal.h>
1.1 bertrand 8939:
8940: int
8941: main ()
8942: {
1.15 bertrand 8943: return *(signal (0, 0)) (0) == 1;
1.1 bertrand 8944: ;
8945: return 0;
8946: }
8947: _ACEOF
1.15 bertrand 8948: if ac_fn_c_try_compile "$LINENO"; then :
8949: ac_cv_type_signal=int
1.1 bertrand 8950: else
1.15 bertrand 8951: ac_cv_type_signal=void
1.1 bertrand 8952: fi
1.15 bertrand 8953: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8954: fi
1.15 bertrand 8955: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8956: $as_echo "$ac_cv_type_signal" >&6; }
1.14 bertrand 8957:
1.15 bertrand 8958: cat >>confdefs.h <<_ACEOF
8959: #define RETSIGTYPE $ac_cv_type_signal
1.14 bertrand 8960: _ACEOF
1.1 bertrand 8961:
1.15 bertrand 8962:
1.35 bertrand 8963: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken siginfo->si_pid" >&5
8964: $as_echo_n "checking for broken siginfo->si_pid... " >&6; }
8965: if test "$cross_compiling" = yes; then :
8966: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8967: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8968: as_fn_error $? "cannot run test program while cross compiling
1.57 bertrand 8969: See \`config.log' for more details" "$LINENO" 5; }
1.35 bertrand 8970: else
8971: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972: /* end confdefs.h. */
8973: #include <unistd.h>
8974: #include <signal.h>
8975: int flag;
8976: void handler(int signal, siginfo_t *siginfo, void *context)
1.39 bertrand 8977: { flag = ((*siginfo).si_pid == getpid()) ? 0 : 1; }
1.35 bertrand 8978: int
8979: main ()
8980: {
8981: struct sigaction action;
8982: action.sa_sigaction = handler;
8983: action.sa_flags = SA_SIGINFO;
8984: sigaction(SIGUSR1, &action, NULL);
8985: raise(SIGUSR1);
8986: return(flag);
8987: ;
8988: return 0;
8989: }
8990: _ACEOF
8991: if ac_fn_c_try_run "$LINENO"; then :
8992: BROKEN_SIGINFO=-U_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8993: $as_echo "no" >&6; }
8994: else
8995: BROKEN_SIGINFO=-D_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8996: $as_echo "yes" >&6; }
8997: fi
8998: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8999: conftest.$ac_objext conftest.beam conftest.$ac_ext
9000: fi
9001:
9002:
1.15 bertrand 9003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
9004: $as_echo_n "checking for working strcoll... " >&6; }
1.57 bertrand 9005: if ${ac_cv_func_strcoll_works+:} false; then :
1.15 bertrand 9006: $as_echo_n "(cached) " >&6
9007: else
9008: if test "$cross_compiling" = yes; then :
9009: ac_cv_func_strcoll_works=no
9010: else
9011: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9012: /* end confdefs.h. */
9013: $ac_includes_default
9014: int
9015: main ()
9016: {
9017: return (strcoll ("abc", "def") >= 0 ||
9018: strcoll ("ABC", "DEF") >= 0 ||
9019: strcoll ("123", "456") >= 0)
9020: ;
9021: return 0;
9022: }
9023: _ACEOF
9024: if ac_fn_c_try_run "$LINENO"; then :
9025: ac_cv_func_strcoll_works=yes
9026: else
9027: ac_cv_func_strcoll_works=no
9028: fi
9029: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9030: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14 bertrand 9031: fi
1.1 bertrand 9032:
9033: fi
1.15 bertrand 9034: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9035: $as_echo "$ac_cv_func_strcoll_works" >&6; }
9036: if test $ac_cv_func_strcoll_works = yes; then
1.14 bertrand 9037:
1.15 bertrand 9038: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1 bertrand 9039:
1.15 bertrand 9040: fi
1.1 bertrand 9041:
1.15 bertrand 9042: for ac_func in strftime
9043: do :
9044: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
1.57 bertrand 9045: if test "x$ac_cv_func_strftime" = xyes; then :
1.15 bertrand 9046: cat >>confdefs.h <<_ACEOF
9047: #define HAVE_STRFTIME 1
9048: _ACEOF
1.1 bertrand 9049:
9050: else
1.15 bertrand 9051: # strftime is in -lintl on SCO UNIX.
9052: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9053: $as_echo_n "checking for strftime in -lintl... " >&6; }
1.57 bertrand 9054: if ${ac_cv_lib_intl_strftime+:} false; then :
1.15 bertrand 9055: $as_echo_n "(cached) " >&6
9056: else
9057: ac_check_lib_save_LIBS=$LIBS
9058: LIBS="-lintl $LIBS"
9059: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 9060: /* end confdefs.h. */
9061:
9062: /* Override any GCC internal prototype to avoid an error.
9063: Use char because int might match the return type of a GCC
9064: builtin and then its argument prototype would still apply. */
9065: #ifdef __cplusplus
9066: extern "C"
9067: #endif
1.15 bertrand 9068: char strftime ();
1.1 bertrand 9069: int
9070: main ()
9071: {
1.15 bertrand 9072: return strftime ();
1.1 bertrand 9073: ;
9074: return 0;
9075: }
9076: _ACEOF
1.15 bertrand 9077: if ac_fn_c_try_link "$LINENO"; then :
9078: ac_cv_lib_intl_strftime=yes
1.1 bertrand 9079: else
1.15 bertrand 9080: ac_cv_lib_intl_strftime=no
9081: fi
9082: rm -f core conftest.err conftest.$ac_objext \
9083: conftest$ac_exeext conftest.$ac_ext
9084: LIBS=$ac_check_lib_save_LIBS
9085: fi
9086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9087: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
1.57 bertrand 9088: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
1.15 bertrand 9089: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9090:
9091: LIBS="-lintl $LIBS"
9092: fi
9093:
9094: fi
9095: done
9096:
9097: for ac_func in vprintf
9098: do :
9099: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
1.57 bertrand 9100: if test "x$ac_cv_func_vprintf" = xyes; then :
1.15 bertrand 9101: cat >>confdefs.h <<_ACEOF
9102: #define HAVE_VPRINTF 1
9103: _ACEOF
9104:
9105: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
1.57 bertrand 9106: if test "x$ac_cv_func__doprnt" = xyes; then :
1.15 bertrand 9107:
9108: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1 bertrand 9109:
9110: fi
9111:
9112: fi
1.15 bertrand 9113: done
9114:
9115:
9116: for ac_func in ftime getcwd putenv select strcspn strdup \
9117: strerror strspn strstr strtod
9118: do :
9119: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9120: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36 bertrand 9121: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1 bertrand 9122: cat >>confdefs.h <<_ACEOF
1.15 bertrand 9123: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 bertrand 9124: _ACEOF
9125:
9126: fi
9127: done
9128:
9129:
1.15 bertrand 9130:
9131: # Check whether --with-openssl_arch was given.
9132: if test "${with_openssl_arch+set}" = set; then :
9133: withval=$with_openssl_arch;
9134: else
9135: with_openssl_arch=none
9136: fi
9137:
9138:
1.31 bertrand 9139: if test $(uname) = "OS/2"; then
1.34 bertrand 9140: bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15 bertrand 9141: else
1.31 bertrand 9142: if test "x$with_openssl_arch" = xnone; then
9143: (cd tools/$OPENSSL && ./config)
9144: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
9145: (cd tools/$OPENSSL && ./Configure)
1.36 bertrand 9146: as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31 bertrand 9147: elif test "x$with_openssl_arch" = xlist; then
9148: (cd tools/$OPENSSL && ./Configure)
1.36 bertrand 9149: as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31 bertrand 9150: else
9151: (cd tools/$OPENSSL && ./Configure $with_openssl_arch)
9152: fi
1.15 bertrand 9153: fi
1.1 bertrand 9154:
1.34 bertrand 9155:
9156:
9157: subdirs="$subdirs tools/$NCURSES"
9158:
9159: subdirs="$subdirs tools/$READLINE"
9160:
9161: subdirs="$subdirs tools/$GSL"
9162:
9163: subdirs="$subdirs tools/$GPP"
9164:
9165: subdirs="$subdirs tools/$FILE"
9166:
9167: subdirs="$subdirs tools/$ICONV"
9168:
9169: subdirs="$subdirs tools/$SQLITE"
9170:
9171: subdirs="$subdirs tools/$UNITS"
9172:
9173:
1.1 bertrand 9174: if test "$MYGNUPLOT" = "yes"; then
9175: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9176: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9177: (cd "$srcdir/tools" && tar -xf -)
9178: fi
9179: subdirs="$subdirs tools/$GNUPLOT"
9180:
9181: GNUPLOT_COMPILATION=$GNUPLOT
9182: else
9183: GNUPLOT_COMPILATION=
9184: fi
9185:
9186:
9187:
9188: case $host_cpu in
9189:
9190: i?86)
9191: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9192: -Wno-pointer-sign"
9193: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9194: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9195: break ;;
9196:
9197: x86_64*)
9198: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9199: -Wno-pointer-sign"
9200: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9201: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9202: break ;;
9203:
9204: alpha*)
9205: CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
9206: -Wno-pointer-sign"
9207: FFLAGS="$FFLAGS -mieee -Wall"
9208: FCFLAGS="$FCFLAGS -mieee -Wall"
9209: break ;;
9210:
9211: sparc*)
9212: CFLAGS="$CFLAGS -Wall -funsigned-char \
9213: -Wno-pointer-sign"
9214: FFLAGS="$FFLAGS -Wall"
9215: FCFLAGS="$FCFLAGS -Wall"
9216: break ;;
9217:
9218: esac
9219:
1.8 bertrand 9220: case $host_os in
9221:
9222: cygwin*)
9223: OS=Cygwin
9224: break ;;
9225:
9226: interix*)
9227: OS=Interix
9228: break ;;
9229:
9230: *)
9231: OS=$(uname)
9232: break ;;
9233:
9234: esac
9235:
9236:
9237:
1.1 bertrand 9238: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9239: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.49 bertrand 9240: MALLOC=
1.1 bertrand 9241:
1.22 bertrand 9242: case $OS in
1.17 bertrand 9243:
9244: Darwin)
1.31 bertrand 9245: EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17 bertrand 9246: NESTED_FUNCTIONS=-fnested-functions
9247: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36 bertrand 9248: IPCS_SYSV=-UIPCS_SYSV
1.23 bertrand 9249: CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31 bertrand 9250: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49 bertrand 9251: --disable-shared --enable-static --enable-threads"
1.33 bertrand 9252: C_STANDARD=-std=gnu99
1.17 bertrand 9253: break ;;
9254:
1.31 bertrand 9255: Cygwin)
9256: EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17 bertrand 9257: NESTED_FUNCTIONS=
9258: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9259: IPCS_SYSV=-UIPCS_SYSV
1.31 bertrand 9260: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49 bertrand 9261: --disable-shared --enable-static --enable-threads"
1.33 bertrand 9262: C_STANDARD=-std=gnu99
1.17 bertrand 9263: break ;;
9264:
1.34 bertrand 9265: Interix)
9266: EXPORT_DYNAMIC=-Wl,--export-all-symbols
9267: NESTED_FUNCTIONS=
9268: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9269: IPCS_SYSV=-UIPCS_SYSV
1.34 bertrand 9270: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49 bertrand 9271: --disable-shared --enable-static --enable-threads"
1.34 bertrand 9272: C_STANDARD=-std=gnu99
9273: break;;
9274:
1.31 bertrand 9275: AIX)
9276: EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18 bertrand 9277: NESTED_FUNCTIONS=
9278: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36 bertrand 9279: IPCS_SYSV=-UIPCS_SYSV
1.31 bertrand 9280: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49 bertrand 9281: --disable-shared --enable-static --enable-threads"
1.33 bertrand 9282: C_STANDARD=-std=gnu99
1.18 bertrand 9283: break ;;
9284:
1.31 bertrand 9285: OS/2)
1.37 bertrand 9286: if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35 bertrand 9287: FINAL_ENCODING=CP850; \
9288: fi;
1.31 bertrand 9289: OS=OS2
9290: NESTED_FUNCTIONS=
9291: EXPORT_DYNAMIC=-Zmap
9292: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9293: IPCS_SYSV=-DIPCS_SYSV
1.31 bertrand 9294: ac_configure_args="$ac_configure_args --without-readline \
1.49 bertrand 9295: --without-cairo --disable-shared --enable-static \
9296: --enable-threads"
1.33 bertrand 9297: C_STANDARD=
1.31 bertrand 9298: break;;
9299:
1.35 bertrand 9300: OpenBSD)
1.37 bertrand 9301: if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35 bertrand 9302: FINAL_ENCODING=UTF-8; \
9303: fi;
9304: EXPORT_DYNAMIC=-Wl,--export-dynamic
9305: NESTED_FUNCTIONS=
9306: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9307: IPCS_SYSV=-DIPCS_SYSV
1.35 bertrand 9308: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49 bertrand 9309: --disable-shared --enable-static --enable-threads"
1.35 bertrand 9310: C_STANDARD=-std=gnu99
9311: break;;
9312:
1.49 bertrand 9313: SunOS)
9314: EXPORT_DYNAMIC=-Wl,--export-dynamic
9315: NESTED_FUNCTIONS=
9316: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
9317:
9318: if test $IPCS_SYSV = no; then
9319: IPCS_SYSV=-UIPCS_SYSV
9320: else
9321: IPCS_SYSV=-DIPCS_SYSV
9322: fi
9323:
9324: ac_configure_args="$ac_configure_args --with-readline=builtin \
9325: --disable-shared --enable-static --enable-threads"
9326: C_STANDARD=-std=gnu99
9327: MALLOC=-lumem
9328: break ;;
9329:
1.17 bertrand 9330: *)
1.31 bertrand 9331: EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17 bertrand 9332: NESTED_FUNCTIONS=
9333: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9334:
9335: if test $IPCS_SYSV = no; then
9336: IPCS_SYSV=-UIPCS_SYSV
9337: else
9338: IPCS_SYSV=-DIPCS_SYSV
9339: fi
9340:
1.31 bertrand 9341: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.49 bertrand 9342: --disable-shared --enable-static --enable-threads"
1.33 bertrand 9343: C_STANDARD=-std=gnu99
1.17 bertrand 9344: break ;;
9345:
9346: esac
9347:
9348:
9349:
9350:
1.1 bertrand 9351:
9352:
9353:
9354:
9355:
9356:
9357:
9358:
9359:
9360:
9361:
9362:
9363:
9364:
9365:
9366:
9367:
9368:
9369:
1.9 bertrand 9370:
1.24 bertrand 9371:
1.30 bertrand 9372:
1.33 bertrand 9373:
9374:
9375:
1.34 bertrand 9376:
1.35 bertrand 9377:
1.49 bertrand 9378:
1.55 bertrand 9379:
9380:
1.56 bertrand 9381:
9382:
9383:
9384:
1.1 bertrand 9385: ac_config_files="$ac_config_files Makefile"
9386:
9387: ac_config_files="$ac_config_files COPYING"
9388:
9389: ac_config_files="$ac_config_files tools/Makefile"
9390:
9391: ac_config_files="$ac_config_files src/Makefile"
9392:
9393: ac_config_files="$ac_config_files man/Makefile"
9394:
9395: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9396:
9397: ac_config_files="$ac_config_files doc/Makefile"
9398:
9399: ac_config_files="$ac_config_files scripts/Makefile"
9400:
9401: ac_config_files="$ac_config_files scripts/mkrplso"
9402:
9403: ac_config_files="$ac_config_files scripts/rplcc"
9404:
9405: ac_config_files="$ac_config_files scripts/rpllink"
9406:
9407: ac_config_files="$ac_config_files rpltags/Makefile"
9408:
9409: ac_config_files="$ac_config_files rpliconv/Makefile"
9410:
1.9 bertrand 9411: ac_config_files="$ac_config_files rplsums/Makefile"
9412:
1.55 bertrand 9413: ac_config_files="$ac_config_files rplcas/Makefile"
9414:
1.39 bertrand 9415: ac_config_files="$ac_config_files rplawk/Makefile"
9416:
1.1 bertrand 9417: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9418:
9419: ac_config_files="$ac_config_files lapack/blas/Makefile"
9420:
9421:
9422: ac_config_files="$ac_config_files man/rpl.1"
9423:
9424: ac_config_files="$ac_config_files man/rplcc.1"
9425:
9426: ac_config_files="$ac_config_files man/rpllink.1"
9427:
9428: ac_config_files="$ac_config_files man/rpltags.1"
9429:
9430: ac_config_files="$ac_config_files man/mkrplso.1"
9431:
9432: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9433:
9434: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9435:
9436: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9437:
9438: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9439:
9440: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9441:
9442:
9443: cat >confcache <<\_ACEOF
9444: # This file is a shell script that caches the results of configure
9445: # tests run on this system so they can be shared between configure
9446: # scripts and configure runs, see configure's option --config-cache.
9447: # It is not useful on other systems. If it contains results you don't
9448: # want to keep, you may remove or edit it.
9449: #
9450: # config.status only pays attention to the cache file if you give it
9451: # the --recheck option to rerun configure.
9452: #
9453: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9454: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9455: # following values.
9456:
9457: _ACEOF
9458:
9459: # The following way of writing the cache mishandles newlines in values,
9460: # but we know of no workaround that is simple, portable, and efficient.
9461: # So, we kill variables containing newlines.
9462: # Ultrix sh set writes to stderr and can't be redirected directly,
9463: # and sets the high bit in the cache file unless we assign to the vars.
9464: (
9465: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9466: eval ac_val=\$$ac_var
9467: case $ac_val in #(
9468: *${as_nl}*)
9469: case $ac_var in #(
1.15 bertrand 9470: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9471: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 bertrand 9472: esac
9473: case $ac_var in #(
9474: _ | IFS | as_nl) ;; #(
1.15 bertrand 9475: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9476: *) { eval $ac_var=; unset $ac_var;} ;;
1.1 bertrand 9477: esac ;;
9478: esac
9479: done
9480:
9481: (set) 2>&1 |
9482: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9483: *${as_nl}ac_space=\ *)
1.15 bertrand 9484: # `set' does not quote correctly, so add quotes: double-quote
9485: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1 bertrand 9486: sed -n \
9487: "s/'/'\\\\''/g;
9488: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9489: ;; #(
9490: *)
9491: # `set' quotes correctly as required by POSIX, so do not add quotes.
9492: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9493: ;;
9494: esac |
9495: sort
9496: ) |
9497: sed '
9498: /^ac_cv_env_/b end
9499: t clear
9500: :clear
9501: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9502: t end
9503: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9504: :end' >>confcache
9505: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9506: if test -w "$cache_file"; then
1.57 bertrand 9507: if test "x$cache_file" != "x/dev/null"; then
1.15 bertrand 9508: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9509: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.57 bertrand 9510: if test ! -f "$cache_file" || test -h "$cache_file"; then
9511: cat confcache >"$cache_file"
9512: else
9513: case $cache_file in #(
9514: */* | ?:*)
9515: mv -f confcache "$cache_file"$$ &&
9516: mv -f "$cache_file"$$ "$cache_file" ;; #(
9517: *)
9518: mv -f confcache "$cache_file" ;;
9519: esac
9520: fi
9521: fi
1.1 bertrand 9522: else
1.15 bertrand 9523: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9524: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 bertrand 9525: fi
9526: fi
9527: rm -f confcache
9528:
9529: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9530: # Let make expand exec_prefix.
9531: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9532:
9533: DEFS=-DHAVE_CONFIG_H
9534:
9535: ac_libobjs=
9536: ac_ltlibobjs=
1.36 bertrand 9537: U=
1.1 bertrand 9538: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9539: # 1. Remove the extension, and $U if already installed.
9540: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15 bertrand 9541: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1 bertrand 9542: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9543: # will be set to the directory where LIBOBJS objects are built.
1.15 bertrand 9544: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9545: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1 bertrand 9546: done
9547: LIBOBJS=$ac_libobjs
9548:
9549: LTLIBOBJS=$ac_ltlibobjs
9550:
9551:
1.15 bertrand 9552: if test -n "$EXEEXT"; then
9553: am__EXEEXT_TRUE=
9554: am__EXEEXT_FALSE='#'
9555: else
9556: am__EXEEXT_TRUE='#'
9557: am__EXEEXT_FALSE=
9558: fi
9559:
1.1 bertrand 9560: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36 bertrand 9561: as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15 bertrand 9562: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9563: fi
9564: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36 bertrand 9565: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15 bertrand 9566: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9567: fi
9568: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36 bertrand 9569: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15 bertrand 9570: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9571: fi
9572:
1.57 bertrand 9573: : "${CONFIG_STATUS=./config.status}"
1.15 bertrand 9574: ac_write_fail=0
1.1 bertrand 9575: ac_clean_files_save=$ac_clean_files
9576: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15 bertrand 9577: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9578: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9579: as_write_fail=0
9580: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1 bertrand 9581: #! $SHELL
9582: # Generated by $as_me.
9583: # Run this file to recreate the current configuration.
9584: # Compiler output produced by configure, useful for debugging
9585: # configure, is in config.log if it exists.
9586:
9587: debug=false
9588: ac_cs_recheck=false
9589: ac_cs_silent=false
1.15 bertrand 9590:
1.14 bertrand 9591: SHELL=\${CONFIG_SHELL-$SHELL}
1.15 bertrand 9592: export SHELL
9593: _ASEOF
9594: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9595: ## -------------------- ##
9596: ## M4sh Initialization. ##
9597: ## -------------------- ##
1.1 bertrand 9598:
9599: # Be more Bourne compatible
9600: DUALCASE=1; export DUALCASE # for MKS sh
1.15 bertrand 9601: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 bertrand 9602: emulate sh
9603: NULLCMD=:
1.15 bertrand 9604: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1 bertrand 9605: # is contrary to our usage. Disable this feature.
9606: alias -g '${1+"$@"}'='"$@"'
9607: setopt NO_GLOB_SUBST
9608: else
1.15 bertrand 9609: case `(set -o) 2>/dev/null` in #(
9610: *posix*) :
9611: set -o posix ;; #(
9612: *) :
9613: ;;
1.1 bertrand 9614: esac
9615: fi
9616:
9617:
1.15 bertrand 9618: as_nl='
9619: '
9620: export as_nl
9621: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9622: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9623: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9624: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9625: # Prefer a ksh shell builtin over an external printf program on Solaris,
9626: # but without wasting forks for bash or zsh.
9627: if test -z "$BASH_VERSION$ZSH_VERSION" \
9628: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9629: as_echo='print -r --'
9630: as_echo_n='print -rn --'
9631: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9632: as_echo='printf %s\n'
9633: as_echo_n='printf %s'
9634: else
9635: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9636: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9637: as_echo_n='/usr/ucb/echo -n'
9638: else
9639: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9640: as_echo_n_body='eval
9641: arg=$1;
9642: case $arg in #(
9643: *"$as_nl"*)
9644: expr "X$arg" : "X\\(.*\\)$as_nl";
9645: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9646: esac;
9647: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9648: '
9649: export as_echo_n_body
9650: as_echo_n='sh -c $as_echo_n_body as_echo'
9651: fi
9652: export as_echo_body
9653: as_echo='sh -c $as_echo_body as_echo'
9654: fi
1.14 bertrand 9655:
9656: # The user is always right.
9657: if test "${PATH_SEPARATOR+set}" != set; then
1.15 bertrand 9658: PATH_SEPARATOR=:
9659: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9660: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9661: PATH_SEPARATOR=';'
9662: }
1.1 bertrand 9663: fi
9664:
9665:
9666: # IFS
9667: # We need space, tab and new line, in precisely that order. Quoting is
9668: # there to prevent editors from complaining about space-tab.
9669: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9670: # splitting by setting IFS to empty value.)
9671: IFS=" "" $as_nl"
9672:
9673: # Find who we are. Look in the path if we contain no directory separator.
1.57 bertrand 9674: as_myself=
1.15 bertrand 9675: case $0 in #((
1.1 bertrand 9676: *[\\/]* ) as_myself=$0 ;;
9677: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678: for as_dir in $PATH
9679: do
9680: IFS=$as_save_IFS
9681: test -z "$as_dir" && as_dir=.
1.15 bertrand 9682: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9683: done
1.1 bertrand 9684: IFS=$as_save_IFS
9685:
9686: ;;
9687: esac
9688: # We did not find ourselves, most probably we were run as `sh COMMAND'
9689: # in which case we are not to be found in the path.
9690: if test "x$as_myself" = x; then
9691: as_myself=$0
9692: fi
9693: if test ! -f "$as_myself"; then
1.15 bertrand 9694: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9695: exit 1
1.1 bertrand 9696: fi
9697:
1.15 bertrand 9698: # Unset variables that we do not need and which cause bugs (e.g. in
9699: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9700: # suppresses any "Segmentation fault" message there. '((' could
9701: # trigger a bug in pdksh 5.2.14.
9702: for as_var in BASH_ENV ENV MAIL MAILPATH
9703: do eval test x\${$as_var+set} = xset \
9704: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1 bertrand 9705: done
9706: PS1='$ '
9707: PS2='> '
9708: PS4='+ '
9709:
9710: # NLS nuisances.
1.15 bertrand 9711: LC_ALL=C
9712: export LC_ALL
9713: LANGUAGE=C
9714: export LANGUAGE
9715:
9716: # CDPATH.
9717: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9718:
9719:
1.36 bertrand 9720: # as_fn_error STATUS ERROR [LINENO LOG_FD]
9721: # ----------------------------------------
1.15 bertrand 9722: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9723: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36 bertrand 9724: # script with STATUS, using 1 if that was 0.
1.15 bertrand 9725: as_fn_error ()
9726: {
1.36 bertrand 9727: as_status=$1; test $as_status -eq 0 && as_status=1
9728: if test "$4"; then
9729: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9730: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15 bertrand 9731: fi
1.36 bertrand 9732: $as_echo "$as_me: error: $2" >&2
1.15 bertrand 9733: as_fn_exit $as_status
9734: } # as_fn_error
9735:
9736:
9737: # as_fn_set_status STATUS
9738: # -----------------------
9739: # Set $? to STATUS, without forking.
9740: as_fn_set_status ()
9741: {
9742: return $1
9743: } # as_fn_set_status
9744:
9745: # as_fn_exit STATUS
9746: # -----------------
9747: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9748: as_fn_exit ()
9749: {
9750: set +e
9751: as_fn_set_status $1
9752: exit $1
9753: } # as_fn_exit
9754:
9755: # as_fn_unset VAR
9756: # ---------------
9757: # Portably unset VAR.
9758: as_fn_unset ()
9759: {
9760: { eval $1=; unset $1;}
9761: }
9762: as_unset=as_fn_unset
9763: # as_fn_append VAR VALUE
9764: # ----------------------
9765: # Append the text in VALUE to the end of the definition contained in VAR. Take
9766: # advantage of any shell optimizations that allow amortized linear growth over
9767: # repeated appends, instead of the typical quadratic growth present in naive
9768: # implementations.
9769: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9770: eval 'as_fn_append ()
9771: {
9772: eval $1+=\$2
9773: }'
9774: else
9775: as_fn_append ()
9776: {
9777: eval $1=\$$1\$2
9778: }
9779: fi # as_fn_append
9780:
9781: # as_fn_arith ARG...
9782: # ------------------
9783: # Perform arithmetic evaluation on the ARGs, and store the result in the
9784: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9785: # must be portable across $(()) and expr.
9786: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9787: eval 'as_fn_arith ()
9788: {
9789: as_val=$(( $* ))
9790: }'
9791: else
9792: as_fn_arith ()
9793: {
9794: as_val=`expr "$@" || test $? -eq 1`
9795: }
9796: fi # as_fn_arith
9797:
1.1 bertrand 9798:
9799: if expr a : '\(a\)' >/dev/null 2>&1 &&
9800: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9801: as_expr=expr
9802: else
9803: as_expr=false
9804: fi
9805:
9806: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9807: as_basename=basename
9808: else
9809: as_basename=false
9810: fi
9811:
1.15 bertrand 9812: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9813: as_dirname=dirname
9814: else
9815: as_dirname=false
9816: fi
1.1 bertrand 9817:
9818: as_me=`$as_basename -- "$0" ||
9819: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9820: X"$0" : 'X\(//\)$' \| \
9821: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 9822: $as_echo X/"$0" |
1.1 bertrand 9823: sed '/^.*\/\([^/][^/]*\)\/*$/{
9824: s//\1/
9825: q
9826: }
9827: /^X\/\(\/\/\)$/{
9828: s//\1/
9829: q
9830: }
9831: /^X\/\(\/\).*/{
9832: s//\1/
9833: q
9834: }
1.14 bertrand 9835: s/.*/./; q'`
9836:
1.15 bertrand 9837: # Avoid depending upon Character Ranges.
9838: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9839: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9840: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9841: as_cr_digits='0123456789'
9842: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 bertrand 9843:
9844: ECHO_C= ECHO_N= ECHO_T=
1.15 bertrand 9845: case `echo -n x` in #(((((
1.1 bertrand 9846: -n*)
1.15 bertrand 9847: case `echo 'xy\c'` in
1.1 bertrand 9848: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.15 bertrand 9849: xy) ECHO_C='\c';;
9850: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9851: ECHO_T=' ';;
1.1 bertrand 9852: esac;;
9853: *)
9854: ECHO_N='-n';;
9855: esac
9856:
9857: rm -f conf$$ conf$$.exe conf$$.file
9858: if test -d conf$$.dir; then
9859: rm -f conf$$.dir/conf$$.file
9860: else
9861: rm -f conf$$.dir
1.15 bertrand 9862: mkdir conf$$.dir 2>/dev/null
1.1 bertrand 9863: fi
1.15 bertrand 9864: if (echo >conf$$.file) 2>/dev/null; then
9865: if ln -s conf$$.file conf$$ 2>/dev/null; then
9866: as_ln_s='ln -s'
9867: # ... but there are two gotchas:
9868: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9869: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9870: # In both cases, we have to default to `cp -p'.
9871: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9872: as_ln_s='cp -p'
9873: elif ln conf$$.file conf$$ 2>/dev/null; then
9874: as_ln_s=ln
9875: else
1.1 bertrand 9876: as_ln_s='cp -p'
1.15 bertrand 9877: fi
1.1 bertrand 9878: else
9879: as_ln_s='cp -p'
9880: fi
9881: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9882: rmdir conf$$.dir 2>/dev/null
9883:
1.15 bertrand 9884:
9885: # as_fn_mkdir_p
9886: # -------------
9887: # Create "$as_dir" as a directory, including parents if necessary.
9888: as_fn_mkdir_p ()
9889: {
9890:
9891: case $as_dir in #(
9892: -*) as_dir=./$as_dir;;
9893: esac
9894: test -d "$as_dir" || eval $as_mkdir_p || {
9895: as_dirs=
9896: while :; do
9897: case $as_dir in #(
9898: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9899: *) as_qdir=$as_dir;;
9900: esac
9901: as_dirs="'$as_qdir' $as_dirs"
9902: as_dir=`$as_dirname -- "$as_dir" ||
9903: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9904: X"$as_dir" : 'X\(//\)[^/]' \| \
9905: X"$as_dir" : 'X\(//\)$' \| \
9906: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9907: $as_echo X"$as_dir" |
9908: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9909: s//\1/
9910: q
9911: }
9912: /^X\(\/\/\)[^/].*/{
9913: s//\1/
9914: q
9915: }
9916: /^X\(\/\/\)$/{
9917: s//\1/
9918: q
9919: }
9920: /^X\(\/\).*/{
9921: s//\1/
9922: q
9923: }
9924: s/.*/./; q'`
9925: test -d "$as_dir" && break
9926: done
9927: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36 bertrand 9928: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15 bertrand 9929:
9930:
9931: } # as_fn_mkdir_p
1.1 bertrand 9932: if mkdir -p . 2>/dev/null; then
1.15 bertrand 9933: as_mkdir_p='mkdir -p "$as_dir"'
1.1 bertrand 9934: else
9935: test -d ./-p && rmdir ./-p
9936: as_mkdir_p=false
9937: fi
9938:
9939: if test -x / >/dev/null 2>&1; then
9940: as_test_x='test -x'
9941: else
9942: if ls -dL / >/dev/null 2>&1; then
9943: as_ls_L_option=L
9944: else
9945: as_ls_L_option=
9946: fi
9947: as_test_x='
9948: eval sh -c '\''
9949: if test -d "$1"; then
1.15 bertrand 9950: test -d "$1/.";
1.1 bertrand 9951: else
1.15 bertrand 9952: case $1 in #(
9953: -*)set "./$1";;
1.1 bertrand 9954: esac;
1.15 bertrand 9955: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1 bertrand 9956: ???[sx]*):;;*)false;;esac;fi
9957: '\'' sh
9958: '
9959: fi
9960: as_executable_p=$as_test_x
9961:
9962: # Sed expression to map a string onto a valid CPP name.
9963: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9964:
9965: # Sed expression to map a string onto a valid variable name.
9966: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9967:
9968:
9969: exec 6>&1
1.15 bertrand 9970: ## ----------------------------------- ##
9971: ## Main body of $CONFIG_STATUS script. ##
9972: ## ----------------------------------- ##
9973: _ASEOF
9974: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1 bertrand 9975:
1.15 bertrand 9976: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9977: # Save the log message, to keep $0 and so on meaningful, and to
1.1 bertrand 9978: # report actual input values of CONFIG_FILES etc. instead of their
9979: # values after options handling.
9980: ac_log="
1.63 bertrand 9981: This file was extended by rpl $as_me 4.1.0, which was
1.57 bertrand 9982: generated by GNU Autoconf 2.68. Invocation command line was
1.1 bertrand 9983:
9984: CONFIG_FILES = $CONFIG_FILES
9985: CONFIG_HEADERS = $CONFIG_HEADERS
9986: CONFIG_LINKS = $CONFIG_LINKS
9987: CONFIG_COMMANDS = $CONFIG_COMMANDS
9988: $ $0 $@
9989:
9990: on `(hostname || uname -n) 2>/dev/null | sed 1q`
9991: "
9992:
9993: _ACEOF
9994:
1.15 bertrand 9995: case $ac_config_files in *"
9996: "*) set x $ac_config_files; shift; ac_config_files=$*;;
9997: esac
9998:
9999: case $ac_config_headers in *"
10000: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10001: esac
10002:
10003:
10004: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10005: # Files that config.status was made for.
10006: config_files="$ac_config_files"
10007: config_headers="$ac_config_headers"
10008: config_commands="$ac_config_commands"
10009:
10010: _ACEOF
10011:
1.15 bertrand 10012: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10013: ac_cs_usage="\
1.15 bertrand 10014: \`$as_me' instantiates files and other configuration actions
10015: from templates according to the current configuration. Unless the files
10016: and actions are specified as TAGs, all are instantiated by default.
1.1 bertrand 10017:
1.15 bertrand 10018: Usage: $0 [OPTION]... [TAG]...
1.1 bertrand 10019:
10020: -h, --help print this help, then exit
10021: -V, --version print version number and configuration settings, then exit
1.15 bertrand 10022: --config print configuration, then exit
10023: -q, --quiet, --silent
10024: do not print progress messages
1.1 bertrand 10025: -d, --debug don't remove temporary files
10026: --recheck update $as_me by reconfiguring in the same conditions
1.15 bertrand 10027: --file=FILE[:TEMPLATE]
10028: instantiate the configuration file FILE
10029: --header=FILE[:TEMPLATE]
10030: instantiate the configuration header FILE
1.1 bertrand 10031:
10032: Configuration files:
10033: $config_files
10034:
10035: Configuration headers:
10036: $config_headers
10037:
10038: Configuration commands:
10039: $config_commands
10040:
1.15 bertrand 10041: Report bugs to the package provider."
1.1 bertrand 10042:
10043: _ACEOF
1.15 bertrand 10044: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10045: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1 bertrand 10046: ac_cs_version="\\
1.63 bertrand 10047: rpl config.status 4.1.0
1.57 bertrand 10048: configured by $0, generated by GNU Autoconf 2.68,
1.15 bertrand 10049: with options \\"\$ac_cs_config\\"
1.1 bertrand 10050:
1.36 bertrand 10051: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 bertrand 10052: This config.status script is free software; the Free Software Foundation
10053: gives unlimited permission to copy, distribute and modify it."
10054:
10055: ac_pwd='$ac_pwd'
10056: srcdir='$srcdir'
10057: INSTALL='$INSTALL'
10058: MKDIR_P='$MKDIR_P'
1.15 bertrand 10059: AWK='$AWK'
10060: test -n "\$AWK" || AWK=awk
1.1 bertrand 10061: _ACEOF
10062:
1.15 bertrand 10063: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10064: # The default lists apply if the user does not specify any file.
1.1 bertrand 10065: ac_need_defaults=:
10066: while test $# != 0
10067: do
10068: case $1 in
1.36 bertrand 10069: --*=?*)
1.1 bertrand 10070: ac_option=`expr "X$1" : 'X\([^=]*\)='`
10071: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10072: ac_shift=:
10073: ;;
1.36 bertrand 10074: --*=)
10075: ac_option=`expr "X$1" : 'X\([^=]*\)='`
10076: ac_optarg=
10077: ac_shift=:
10078: ;;
1.1 bertrand 10079: *)
10080: ac_option=$1
10081: ac_optarg=$2
10082: ac_shift=shift
10083: ;;
10084: esac
10085:
10086: case $ac_option in
10087: # Handling of the options.
10088: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10089: ac_cs_recheck=: ;;
10090: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15 bertrand 10091: $as_echo "$ac_cs_version"; exit ;;
10092: --config | --confi | --conf | --con | --co | --c )
10093: $as_echo "$ac_cs_config"; exit ;;
1.1 bertrand 10094: --debug | --debu | --deb | --de | --d | -d )
10095: debug=: ;;
10096: --file | --fil | --fi | --f )
10097: $ac_shift
1.15 bertrand 10098: case $ac_optarg in
10099: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36 bertrand 10100: '') as_fn_error $? "missing file argument" ;;
1.15 bertrand 10101: esac
10102: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1 bertrand 10103: ac_need_defaults=false;;
10104: --header | --heade | --head | --hea )
10105: $ac_shift
1.15 bertrand 10106: case $ac_optarg in
10107: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10108: esac
10109: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1 bertrand 10110: ac_need_defaults=false;;
10111: --he | --h)
10112: # Conflict between --help and --header
1.36 bertrand 10113: as_fn_error $? "ambiguous option: \`$1'
1.15 bertrand 10114: Try \`$0 --help' for more information.";;
1.1 bertrand 10115: --help | --hel | -h )
1.15 bertrand 10116: $as_echo "$ac_cs_usage"; exit ;;
1.1 bertrand 10117: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10118: | -silent | --silent | --silen | --sile | --sil | --si | --s)
10119: ac_cs_silent=: ;;
10120:
10121: # This is an error.
1.36 bertrand 10122: -*) as_fn_error $? "unrecognized option: \`$1'
1.15 bertrand 10123: Try \`$0 --help' for more information." ;;
1.1 bertrand 10124:
1.15 bertrand 10125: *) as_fn_append ac_config_targets " $1"
1.1 bertrand 10126: ac_need_defaults=false ;;
10127:
10128: esac
10129: shift
10130: done
10131:
10132: ac_configure_extra_args=
10133:
10134: if $ac_cs_silent; then
10135: exec 6>/dev/null
10136: ac_configure_extra_args="$ac_configure_extra_args --silent"
10137: fi
10138:
10139: _ACEOF
1.15 bertrand 10140: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10141: if \$ac_cs_recheck; then
1.15 bertrand 10142: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10143: shift
10144: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10145: CONFIG_SHELL='$SHELL'
1.1 bertrand 10146: export CONFIG_SHELL
1.15 bertrand 10147: exec "\$@"
1.1 bertrand 10148: fi
10149:
10150: _ACEOF
1.15 bertrand 10151: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10152: exec 5>>config.log
10153: {
10154: echo
10155: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10156: ## Running $as_me. ##
10157: _ASBOX
1.15 bertrand 10158: $as_echo "$ac_log"
1.1 bertrand 10159: } >&5
10160:
10161: _ACEOF
1.15 bertrand 10162: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10163: #
10164: # INIT-COMMANDS
10165: #
10166: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10167:
10168: _ACEOF
10169:
1.15 bertrand 10170: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10171:
10172: # Handling of arguments.
10173: for ac_config_target in $ac_config_targets
10174: do
10175: case $ac_config_target in
10176: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
10177: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10178: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10179: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
10180: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10181: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10182: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10183: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
10184: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10185: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
10186: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
10187: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
10188: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
10189: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
10190: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9 bertrand 10191: "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.55 bertrand 10192: "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
1.39 bertrand 10193: "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1 bertrand 10194: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
10195: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
10196: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
10197: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
10198: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
10199: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
10200: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
10201: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
10202: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
10203: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
10204: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
10205: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
10206:
1.57 bertrand 10207: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 bertrand 10208: esac
10209: done
10210:
10211:
10212: # If the user did not use the arguments to specify the items to instantiate,
10213: # then the envvar interface is used. Set only those that are not.
10214: # We use the long form for the default assignment because of an extremely
10215: # bizarre bug on SunOS 4.1.3.
10216: if $ac_need_defaults; then
10217: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10218: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10219: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10220: fi
10221:
10222: # Have a temporary directory for convenience. Make it in the build tree
10223: # simply because there is no reason against having it here, and in addition,
10224: # creating and moving files from /tmp can sometimes cause problems.
10225: # Hook for its removal unless debugging.
10226: # Note that there is a small window in which the directory will not be cleaned:
10227: # after its creation but before its name has been assigned to `$tmp'.
10228: $debug ||
10229: {
1.57 bertrand 10230: tmp= ac_tmp=
1.1 bertrand 10231: trap 'exit_status=$?
1.57 bertrand 10232: : "${ac_tmp:=$tmp}"
10233: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1 bertrand 10234: ' 0
1.15 bertrand 10235: trap 'as_fn_exit 1' 1 2 13 15
1.1 bertrand 10236: }
10237: # Create a (secure) tmp directory for tmp files.
10238:
10239: {
10240: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.57 bertrand 10241: test -d "$tmp"
1.1 bertrand 10242: } ||
10243: {
10244: tmp=./conf$$-$RANDOM
10245: (umask 077 && mkdir "$tmp")
1.36 bertrand 10246: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.57 bertrand 10247: ac_tmp=$tmp
1.15 bertrand 10248:
10249: # Set up the scripts for CONFIG_FILES section.
10250: # No need to generate them if there are no CONFIG_FILES.
10251: # This happens for instance with `./config.status config.h'.
10252: if test -n "$CONFIG_FILES"; then
1.14 bertrand 10253:
1.1 bertrand 10254:
1.15 bertrand 10255: ac_cr=`echo X | tr X '\015'`
10256: # On cygwin, bash can eat \r inside `` if the user requested igncr.
10257: # But we know of no other shell where ac_cr would be empty at this
10258: # point, so we can use a bashism as a fallback.
10259: if test "x$ac_cr" = x; then
10260: eval ac_cr=\$\'\\r\'
10261: fi
10262: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10263: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36 bertrand 10264: ac_cs_awk_cr='\\r'
1.15 bertrand 10265: else
10266: ac_cs_awk_cr=$ac_cr
10267: fi
1.1 bertrand 10268:
1.57 bertrand 10269: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.14 bertrand 10270: _ACEOF
10271:
10272:
1.15 bertrand 10273: {
10274: echo "cat >conf$$subs.awk <<_ACEOF" &&
10275: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10276: echo "_ACEOF"
10277: } >conf$$subs.sh ||
1.36 bertrand 10278: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10279: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14 bertrand 10280: ac_delim='%!_!# '
10281: for ac_last_try in false false false false false :; do
1.15 bertrand 10282: . ./conf$$subs.sh ||
1.36 bertrand 10283: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 bertrand 10284:
1.15 bertrand 10285: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10286: if test $ac_delim_n = $ac_delim_num; then
1.14 bertrand 10287: break
10288: elif $ac_last_try; then
1.36 bertrand 10289: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 bertrand 10290: else
10291: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10292: fi
10293: done
1.15 bertrand 10294: rm -f conf$$subs.sh
1.1 bertrand 10295:
1.15 bertrand 10296: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.57 bertrand 10297: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.15 bertrand 10298: _ACEOF
10299: sed -n '
10300: h
10301: s/^/S["/; s/!.*/"]=/
10302: p
10303: g
10304: s/^[^!]*!//
10305: :repl
10306: t repl
10307: s/'"$ac_delim"'$//
10308: t delim
10309: :nl
10310: h
10311: s/\(.\{148\}\)..*/\1/
10312: t more1
10313: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10314: p
10315: n
10316: b repl
10317: :more1
10318: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10319: p
10320: g
10321: s/.\{148\}//
10322: t nl
10323: :delim
10324: h
10325: s/\(.\{148\}\)..*/\1/
10326: t more2
10327: s/["\\]/\\&/g; s/^/"/; s/$/"/
10328: p
10329: b
10330: :more2
10331: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10332: p
10333: g
10334: s/.\{148\}//
10335: t delim
10336: ' <conf$$subs.awk | sed '
10337: /^[^""]/{
10338: N
10339: s/\n//
10340: }
10341: ' >>$CONFIG_STATUS || ac_write_fail=1
10342: rm -f conf$$subs.awk
10343: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10344: _ACAWK
1.57 bertrand 10345: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.15 bertrand 10346: for (key in S) S_is_set[key] = 1
10347: FS = ""
1.1 bertrand 10348:
1.15 bertrand 10349: }
10350: {
10351: line = $ 0
10352: nfields = split(line, field, "@")
10353: substed = 0
10354: len = length(field[1])
10355: for (i = 2; i < nfields; i++) {
10356: key = field[i]
10357: keylen = length(key)
10358: if (S_is_set[key]) {
10359: value = S[key]
10360: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10361: len += length(value) + length(field[++i])
10362: substed = 1
10363: } else
10364: len += 1 + keylen
10365: }
1.1 bertrand 10366:
1.15 bertrand 10367: print line
10368: }
1.1 bertrand 10369:
1.15 bertrand 10370: _ACAWK
1.14 bertrand 10371: _ACEOF
1.15 bertrand 10372: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10373: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10374: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10375: else
10376: cat
1.57 bertrand 10377: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.36 bertrand 10378: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1 bertrand 10379: _ACEOF
10380:
1.36 bertrand 10381: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10382: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1 bertrand 10383: # trailing colons and then remove the whole line if VPATH becomes empty
10384: # (actually we leave an empty line to preserve line numbers).
10385: if test "x$srcdir" = x.; then
1.36 bertrand 10386: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10387: h
10388: s///
10389: s/^/:/
10390: s/[ ]*$/:/
10391: s/:\$(srcdir):/:/g
10392: s/:\${srcdir}:/:/g
10393: s/:@srcdir@:/:/g
10394: s/^:*//
1.1 bertrand 10395: s/:*$//
1.36 bertrand 10396: x
10397: s/\(=[ ]*\).*/\1/
10398: G
10399: s/\n//
1.1 bertrand 10400: s/^[^=]*=[ ]*$//
10401: }'
10402: fi
10403:
1.15 bertrand 10404: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10405: fi # test -n "$CONFIG_FILES"
10406:
1.15 bertrand 10407: # Set up the scripts for CONFIG_HEADERS section.
10408: # No need to generate them if there are no CONFIG_HEADERS.
10409: # This happens for instance with `./config.status Makefile'.
10410: if test -n "$CONFIG_HEADERS"; then
1.57 bertrand 10411: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.15 bertrand 10412: BEGIN {
10413: _ACEOF
10414:
10415: # Transform confdefs.h into an awk script `defines.awk', embedded as
10416: # here-document in config.status, that substitutes the proper values into
10417: # config.h.in to produce config.h.
10418:
10419: # Create a delimiter string that does not exist in confdefs.h, to ease
10420: # handling of long lines.
10421: ac_delim='%!_!# '
10422: for ac_last_try in false false :; do
1.57 bertrand 10423: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10424: if test -z "$ac_tt"; then
1.15 bertrand 10425: break
10426: elif $ac_last_try; then
1.36 bertrand 10427: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15 bertrand 10428: else
10429: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10430: fi
10431: done
10432:
10433: # For the awk script, D is an array of macro values keyed by name,
10434: # likewise P contains macro parameters if any. Preserve backslash
10435: # newline sequences.
10436:
10437: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10438: sed -n '
10439: s/.\{148\}/&'"$ac_delim"'/g
10440: t rset
10441: :rset
10442: s/^[ ]*#[ ]*define[ ][ ]*/ /
10443: t def
10444: d
10445: :def
10446: s/\\$//
10447: t bsnl
10448: s/["\\]/\\&/g
10449: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10450: D["\1"]=" \3"/p
10451: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10452: d
10453: :bsnl
10454: s/["\\]/\\&/g
10455: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10456: D["\1"]=" \3\\\\\\n"\\/p
10457: t cont
10458: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10459: t cont
10460: d
10461: :cont
10462: n
10463: s/.\{148\}/&'"$ac_delim"'/g
10464: t clear
10465: :clear
10466: s/\\$//
10467: t bsnlc
10468: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10469: d
10470: :bsnlc
10471: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10472: b cont
10473: ' <confdefs.h | sed '
10474: s/'"$ac_delim"'/"\\\
10475: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10476:
10477: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10478: for (key in D) D_is_set[key] = 1
10479: FS = ""
10480: }
10481: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10482: line = \$ 0
10483: split(line, arg, " ")
10484: if (arg[1] == "#") {
10485: defundef = arg[2]
10486: mac1 = arg[3]
10487: } else {
10488: defundef = substr(arg[1], 2)
10489: mac1 = arg[2]
10490: }
10491: split(mac1, mac2, "(") #)
10492: macro = mac2[1]
10493: prefix = substr(line, 1, index(line, defundef) - 1)
10494: if (D_is_set[macro]) {
10495: # Preserve the white space surrounding the "#".
10496: print prefix "define", macro P[macro] D[macro]
10497: next
10498: } else {
10499: # Replace #undef with comments. This is necessary, for example,
10500: # in the case of _POSIX_SOURCE, which is predefined and required
10501: # on some systems where configure will not decide to define it.
10502: if (defundef == "undef") {
10503: print "/*", prefix defundef, macro, "*/"
10504: next
10505: }
10506: }
10507: }
10508: { print }
10509: _ACAWK
10510: _ACEOF
10511: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36 bertrand 10512: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15 bertrand 10513: fi # test -n "$CONFIG_HEADERS"
10514:
1.1 bertrand 10515:
1.15 bertrand 10516: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10517: shift
10518: for ac_tag
1.1 bertrand 10519: do
10520: case $ac_tag in
10521: :[FHLC]) ac_mode=$ac_tag; continue;;
10522: esac
10523: case $ac_mode$ac_tag in
10524: :[FHL]*:*);;
1.57 bertrand 10525: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1 bertrand 10526: :[FH]-) ac_tag=-:-;;
10527: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10528: esac
10529: ac_save_IFS=$IFS
10530: IFS=:
10531: set x $ac_tag
10532: IFS=$ac_save_IFS
10533: shift
10534: ac_file=$1
10535: shift
10536:
10537: case $ac_mode in
10538: :L) ac_source=$1;;
10539: :[FH])
10540: ac_file_inputs=
10541: for ac_f
10542: do
10543: case $ac_f in
1.57 bertrand 10544: -) ac_f="$ac_tmp/stdin";;
1.1 bertrand 10545: *) # Look for the file first in the build tree, then in the source tree
10546: # (if the path is not absolute). The absolute path cannot be DOS-style,
10547: # because $ac_f cannot contain `:'.
10548: test -f "$ac_f" ||
10549: case $ac_f in
10550: [\\/$]*) false;;
10551: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10552: esac ||
1.57 bertrand 10553: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1 bertrand 10554: esac
1.15 bertrand 10555: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10556: as_fn_append ac_file_inputs " '$ac_f'"
1.1 bertrand 10557: done
10558:
10559: # Let's still pretend it is `configure' which instantiates (i.e., don't
10560: # use $as_me), people would be surprised to read:
10561: # /* config.h. Generated by config.status. */
1.15 bertrand 10562: configure_input='Generated from '`
10563: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10564: `' by configure.'
1.1 bertrand 10565: if test x"$ac_file" != x-; then
10566: configure_input="$ac_file. $configure_input"
1.15 bertrand 10567: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10568: $as_echo "$as_me: creating $ac_file" >&6;}
1.1 bertrand 10569: fi
1.15 bertrand 10570: # Neutralize special characters interpreted by sed in replacement strings.
10571: case $configure_input in #(
10572: *\&* | *\|* | *\\* )
10573: ac_sed_conf_input=`$as_echo "$configure_input" |
10574: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10575: *) ac_sed_conf_input=$configure_input;;
10576: esac
1.1 bertrand 10577:
10578: case $ac_tag in
1.57 bertrand 10579: *:-:* | *:-) cat >"$ac_tmp/stdin" \
10580: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1 bertrand 10581: esac
10582: ;;
10583: esac
10584:
10585: ac_dir=`$as_dirname -- "$ac_file" ||
10586: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10587: X"$ac_file" : 'X\(//\)[^/]' \| \
10588: X"$ac_file" : 'X\(//\)$' \| \
10589: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10590: $as_echo X"$ac_file" |
1.1 bertrand 10591: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10592: s//\1/
10593: q
10594: }
10595: /^X\(\/\/\)[^/].*/{
10596: s//\1/
10597: q
10598: }
10599: /^X\(\/\/\)$/{
10600: s//\1/
10601: q
10602: }
10603: /^X\(\/\).*/{
10604: s//\1/
10605: q
10606: }
10607: s/.*/./; q'`
1.15 bertrand 10608: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 bertrand 10609: ac_builddir=.
10610:
10611: case "$ac_dir" in
10612: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10613: *)
1.15 bertrand 10614: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 10615: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 10616: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 10617: case $ac_top_builddir_sub in
10618: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10619: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10620: esac ;;
10621: esac
10622: ac_abs_top_builddir=$ac_pwd
10623: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10624: # for backward compatibility:
10625: ac_top_builddir=$ac_top_build_prefix
10626:
10627: case $srcdir in
10628: .) # We are building in place.
10629: ac_srcdir=.
10630: ac_top_srcdir=$ac_top_builddir_sub
10631: ac_abs_top_srcdir=$ac_pwd ;;
10632: [\\/]* | ?:[\\/]* ) # Absolute name.
10633: ac_srcdir=$srcdir$ac_dir_suffix;
10634: ac_top_srcdir=$srcdir
10635: ac_abs_top_srcdir=$srcdir ;;
10636: *) # Relative name.
10637: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10638: ac_top_srcdir=$ac_top_build_prefix$srcdir
10639: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10640: esac
10641: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10642:
10643:
10644: case $ac_mode in
10645: :F)
10646: #
10647: # CONFIG_FILE
10648: #
10649:
10650: case $INSTALL in
10651: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10652: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10653: esac
10654: ac_MKDIR_P=$MKDIR_P
10655: case $MKDIR_P in
10656: [\\/$]* | ?:[\\/]* ) ;;
10657: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10658: esac
10659: _ACEOF
10660:
1.15 bertrand 10661: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10662: # If the template does not know about datarootdir, expand it.
10663: # FIXME: This hack should be removed a few years after 2.60.
10664: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15 bertrand 10665: ac_sed_dataroot='
10666: /datarootdir/ {
1.1 bertrand 10667: p
10668: q
10669: }
10670: /@datadir@/p
10671: /@docdir@/p
10672: /@infodir@/p
10673: /@localedir@/p
1.15 bertrand 10674: /@mandir@/p'
10675: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1 bertrand 10676: *datarootdir*) ac_datarootdir_seen=yes;;
10677: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15 bertrand 10678: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10679: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 bertrand 10680: _ACEOF
1.15 bertrand 10681: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10682: ac_datarootdir_hack='
10683: s&@datadir@&$datadir&g
10684: s&@docdir@&$docdir&g
10685: s&@infodir@&$infodir&g
10686: s&@localedir@&$localedir&g
10687: s&@mandir@&$mandir&g
1.15 bertrand 10688: s&\\\${datarootdir}&$datarootdir&g' ;;
1.1 bertrand 10689: esac
10690: _ACEOF
10691:
10692: # Neutralize VPATH when `$srcdir' = `.'.
10693: # Shell code in configure.ac might set extrasub.
10694: # FIXME: do we really want to maintain this feature?
1.15 bertrand 10695: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10696: ac_sed_extra="$ac_vpsub
1.1 bertrand 10697: $extrasub
10698: _ACEOF
1.15 bertrand 10699: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10700: :t
10701: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15 bertrand 10702: s|@configure_input@|$ac_sed_conf_input|;t t
1.1 bertrand 10703: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15 bertrand 10704: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1 bertrand 10705: s&@srcdir@&$ac_srcdir&;t t
10706: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10707: s&@top_srcdir@&$ac_top_srcdir&;t t
10708: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10709: s&@builddir@&$ac_builddir&;t t
10710: s&@abs_builddir@&$ac_abs_builddir&;t t
10711: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10712: s&@INSTALL@&$ac_INSTALL&;t t
10713: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10714: $ac_datarootdir_hack
1.15 bertrand 10715: "
1.57 bertrand 10716: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10717: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10718:
10719: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.57 bertrand 10720: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10721: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10722: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.15 bertrand 10723: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36 bertrand 10724: which seems to be undefined. Please make sure it is defined" >&5
1.15 bertrand 10725: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36 bertrand 10726: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 bertrand 10727:
1.57 bertrand 10728: rm -f "$ac_tmp/stdin"
1.1 bertrand 10729: case $ac_file in
1.57 bertrand 10730: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10731: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.15 bertrand 10732: esac \
1.36 bertrand 10733: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10734: ;;
10735: :H)
10736: #
10737: # CONFIG_HEADER
10738: #
10739: if test x"$ac_file" != x-; then
1.15 bertrand 10740: {
10741: $as_echo "/* $configure_input */" \
1.57 bertrand 10742: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10743: } >"$ac_tmp/config.h" \
1.36 bertrand 10744: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.57 bertrand 10745: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.15 bertrand 10746: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10747: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1 bertrand 10748: else
1.15 bertrand 10749: rm -f "$ac_file"
1.57 bertrand 10750: mv "$ac_tmp/config.h" "$ac_file" \
1.36 bertrand 10751: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10752: fi
10753: else
1.15 bertrand 10754: $as_echo "/* $configure_input */" \
1.57 bertrand 10755: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1.36 bertrand 10756: || as_fn_error $? "could not create -" "$LINENO" 5
1.1 bertrand 10757: fi
1.15 bertrand 10758: # Compute "$ac_file"'s index in $config_headers.
10759: _am_arg="$ac_file"
1.1 bertrand 10760: _am_stamp_count=1
10761: for _am_header in $config_headers :; do
10762: case $_am_header in
10763: $_am_arg | $_am_arg:* )
10764: break ;;
10765: * )
10766: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10767: esac
10768: done
10769: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10770: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10771: X"$_am_arg" : 'X\(//\)[^/]' \| \
10772: X"$_am_arg" : 'X\(//\)$' \| \
10773: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10774: $as_echo X"$_am_arg" |
1.1 bertrand 10775: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10776: s//\1/
10777: q
10778: }
10779: /^X\(\/\/\)[^/].*/{
10780: s//\1/
10781: q
10782: }
10783: /^X\(\/\/\)$/{
10784: s//\1/
10785: q
10786: }
10787: /^X\(\/\).*/{
10788: s//\1/
10789: q
10790: }
10791: s/.*/./; q'`/stamp-h$_am_stamp_count
10792: ;;
10793:
1.15 bertrand 10794: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10795: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1 bertrand 10796: ;;
10797: esac
10798:
10799:
10800: case $ac_file$ac_mode in
1.15 bertrand 10801: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10802: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10803: # are listed without --file. Let's play safe and only enable the eval
10804: # if we detect the quoting.
10805: case $CONFIG_FILES in
10806: *\'*) eval set x "$CONFIG_FILES" ;;
10807: *) set x $CONFIG_FILES ;;
10808: esac
10809: shift
10810: for mf
10811: do
10812: # Strip MF so we end up with the name of the file.
10813: mf=`echo "$mf" | sed -e 's/:.*$//'`
10814: # Check whether this is an Automake generated Makefile or not.
10815: # We used to match only the files named `Makefile.in', but
10816: # some people rename them; so instead we look at the file content.
10817: # Grep'ing the first line is not enough: some people post-process
10818: # each Makefile.in and add a new line on top of each file to say so.
10819: # Grep'ing the whole file is not good either: AIX grep has a line
10820: # limit of 2048, but all sed's we know have understand at least 4000.
10821: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10822: dirpart=`$as_dirname -- "$mf" ||
1.1 bertrand 10823: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10824: X"$mf" : 'X\(//\)[^/]' \| \
10825: X"$mf" : 'X\(//\)$' \| \
10826: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10827: $as_echo X"$mf" |
1.1 bertrand 10828: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10829: s//\1/
10830: q
10831: }
10832: /^X\(\/\/\)[^/].*/{
10833: s//\1/
10834: q
10835: }
10836: /^X\(\/\/\)$/{
10837: s//\1/
10838: q
10839: }
10840: /^X\(\/\).*/{
10841: s//\1/
10842: q
10843: }
10844: s/.*/./; q'`
1.15 bertrand 10845: else
10846: continue
10847: fi
10848: # Extract the definition of DEPDIR, am__include, and am__quote
10849: # from the Makefile without running `make'.
10850: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10851: test -z "$DEPDIR" && continue
10852: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10853: test -z "am__include" && continue
10854: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10855: # When using ansi2knr, U may be empty or an underscore; expand it
10856: U=`sed -n 's/^U = //p' < "$mf"`
10857: # Find all dependency output files, they are included files with
10858: # $(DEPDIR) in their names. We invoke sed twice because it is the
10859: # simplest approach to changing $(DEPDIR) to its actual value in the
10860: # expansion.
10861: for file in `sed -n "
10862: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10863: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10864: # Make sure the directory exists.
10865: test -f "$dirpart/$file" && continue
10866: fdir=`$as_dirname -- "$file" ||
1.1 bertrand 10867: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10868: X"$file" : 'X\(//\)[^/]' \| \
10869: X"$file" : 'X\(//\)$' \| \
10870: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10871: $as_echo X"$file" |
1.1 bertrand 10872: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10873: s//\1/
10874: q
10875: }
10876: /^X\(\/\/\)[^/].*/{
10877: s//\1/
10878: q
10879: }
10880: /^X\(\/\/\)$/{
10881: s//\1/
10882: q
10883: }
10884: /^X\(\/\).*/{
10885: s//\1/
10886: q
10887: }
10888: s/.*/./; q'`
1.15 bertrand 10889: as_dir=$dirpart/$fdir; as_fn_mkdir_p
10890: # echo "creating $dirpart/$file"
10891: echo '# dummy' > "$dirpart/$file"
1.1 bertrand 10892: done
10893: done
1.15 bertrand 10894: }
1.1 bertrand 10895: ;;
10896:
10897: esac
10898: done # for ac_tag
10899:
10900:
1.15 bertrand 10901: as_fn_exit 0
1.1 bertrand 10902: _ACEOF
10903: ac_clean_files=$ac_clean_files_save
10904:
1.15 bertrand 10905: test $ac_write_fail = 0 ||
1.36 bertrand 10906: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15 bertrand 10907:
1.1 bertrand 10908:
10909: # configure is writing to config.log, and then calls config.status.
10910: # config.status does its own redirection, appending to config.log.
10911: # Unfortunately, on DOS this fails, as config.log is still kept open
10912: # by configure, so config.status won't be able to write to it; its
10913: # output is simply discarded. So we exec the FD to /dev/null,
10914: # effectively closing config.log, so it can be properly (re)opened and
10915: # appended to by config.status. When coming back to configure, we
10916: # need to make the FD available again.
10917: if test "$no_create" != yes; then
10918: ac_cs_success=:
10919: ac_config_status_args=
10920: test "$silent" = yes &&
10921: ac_config_status_args="$ac_config_status_args --quiet"
10922: exec 5>/dev/null
10923: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10924: exec 5>>config.log
10925: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10926: # would make configure fail if this is the last instruction.
1.36 bertrand 10927: $ac_cs_success || as_fn_exit 1
1.1 bertrand 10928: fi
10929:
10930: #
10931: # CONFIG_SUBDIRS section.
10932: #
10933: if test "$no_recursion" != yes; then
10934:
1.15 bertrand 10935: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10936: # so they do not pile up.
1.1 bertrand 10937: ac_sub_configure_args=
10938: ac_prev=
10939: eval "set x $ac_configure_args"
10940: shift
10941: for ac_arg
10942: do
10943: if test -n "$ac_prev"; then
10944: ac_prev=
10945: continue
10946: fi
10947: case $ac_arg in
10948: -cache-file | --cache-file | --cache-fil | --cache-fi \
10949: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10950: ac_prev=cache_file ;;
10951: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10952: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10953: | --c=*)
10954: ;;
10955: --config-cache | -C)
10956: ;;
10957: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10958: ac_prev=srcdir ;;
10959: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10960: ;;
10961: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10962: ac_prev=prefix ;;
10963: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10964: ;;
1.15 bertrand 10965: --disable-option-checking)
10966: ;;
1.1 bertrand 10967: *)
10968: case $ac_arg in
1.15 bertrand 10969: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 bertrand 10970: esac
1.15 bertrand 10971: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 bertrand 10972: esac
10973: done
10974:
10975: # Always prepend --prefix to ensure using the same prefix
10976: # in subdir configurations.
10977: ac_arg="--prefix=$prefix"
10978: case $ac_arg in
1.15 bertrand 10979: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 bertrand 10980: esac
10981: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10982:
10983: # Pass --silent
10984: if test "$silent" = yes; then
10985: ac_sub_configure_args="--silent $ac_sub_configure_args"
10986: fi
10987:
1.15 bertrand 10988: # Always prepend --disable-option-checking to silence warnings, since
10989: # different subdirs can have different --enable and --with options.
10990: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10991:
1.1 bertrand 10992: ac_popdir=`pwd`
10993: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10994:
10995: # Do not complain, so a configure script can configure whichever
10996: # parts of a large source tree are present.
10997: test -d "$srcdir/$ac_dir" || continue
10998:
10999: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15 bertrand 11000: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11001: $as_echo "$ac_msg" >&6
11002: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 bertrand 11003: ac_builddir=.
11004:
11005: case "$ac_dir" in
11006: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11007: *)
1.15 bertrand 11008: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 11009: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 11010: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 11011: case $ac_top_builddir_sub in
11012: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11013: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11014: esac ;;
11015: esac
11016: ac_abs_top_builddir=$ac_pwd
11017: ac_abs_builddir=$ac_pwd$ac_dir_suffix
11018: # for backward compatibility:
11019: ac_top_builddir=$ac_top_build_prefix
11020:
11021: case $srcdir in
11022: .) # We are building in place.
11023: ac_srcdir=.
11024: ac_top_srcdir=$ac_top_builddir_sub
11025: ac_abs_top_srcdir=$ac_pwd ;;
11026: [\\/]* | ?:[\\/]* ) # Absolute name.
11027: ac_srcdir=$srcdir$ac_dir_suffix;
11028: ac_top_srcdir=$srcdir
11029: ac_abs_top_srcdir=$srcdir ;;
11030: *) # Relative name.
11031: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11032: ac_top_srcdir=$ac_top_build_prefix$srcdir
11033: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11034: esac
11035: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11036:
11037:
11038: cd "$ac_dir"
11039:
11040: # Check for guested configure; otherwise get Cygnus style configure.
11041: if test -f "$ac_srcdir/configure.gnu"; then
11042: ac_sub_configure=$ac_srcdir/configure.gnu
11043: elif test -f "$ac_srcdir/configure"; then
11044: ac_sub_configure=$ac_srcdir/configure
11045: elif test -f "$ac_srcdir/configure.in"; then
11046: # This should be Cygnus configure.
11047: ac_sub_configure=$ac_aux_dir/configure
11048: else
1.15 bertrand 11049: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11050: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 bertrand 11051: ac_sub_configure=
11052: fi
11053:
11054: # The recursion is here.
11055: if test -n "$ac_sub_configure"; then
11056: # Make the cache file name correct relative to the subdirectory.
11057: case $cache_file in
11058: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11059: *) # Relative name.
11060: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11061: esac
11062:
1.15 bertrand 11063: { $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
11064: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
1.1 bertrand 11065: # The eval makes quoting arguments work.
11066: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11067: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36 bertrand 11068: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 bertrand 11069: fi
11070:
11071: cd "$ac_popdir"
11072: done
11073: fi
1.15 bertrand 11074: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11075: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11076: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11077: fi
1.1 bertrand 11078:
CVSweb interface <joel.bertrand@systella.fr>