Annotation of rpl/configure, revision 1.87
1.1 bertrand 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.86 bertrand 3: # Generated by GNU Autoconf 2.68 for rpl 4.1.4.
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.86 bertrand 560: PACKAGE_VERSION='4.1.4'
561: PACKAGE_STRING='rpl 4.1.4'
1.1 bertrand 562: PACKAGE_BUGREPORT=''
1.15 bertrand 563: PACKAGE_URL=''
1.1 bertrand 564:
1.80 bertrand 565: enable_option_checking=no
1.1 bertrand 566: ac_default_prefix=/usr/local
567: # Factoring default headers for most tests.
568: ac_includes_default="\
569: #include <stdio.h>
570: #ifdef HAVE_SYS_TYPES_H
571: # include <sys/types.h>
572: #endif
573: #ifdef HAVE_SYS_STAT_H
574: # include <sys/stat.h>
575: #endif
576: #ifdef STDC_HEADERS
577: # include <stdlib.h>
578: # include <stddef.h>
579: #else
580: # ifdef HAVE_STDLIB_H
581: # include <stdlib.h>
582: # endif
583: #endif
584: #ifdef HAVE_STRING_H
585: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586: # include <memory.h>
587: # endif
588: # include <string.h>
589: #endif
590: #ifdef HAVE_STRINGS_H
591: # include <strings.h>
592: #endif
593: #ifdef HAVE_INTTYPES_H
594: # include <inttypes.h>
595: #endif
596: #ifdef HAVE_STDINT_H
597: # include <stdint.h>
598: #endif
599: #ifdef HAVE_UNISTD_H
600: # include <unistd.h>
601: #endif"
602:
1.15 bertrand 603: ac_subst_vars='am__EXEEXT_FALSE
604: am__EXEEXT_TRUE
605: LTLIBOBJS
606: LIBOBJS
1.80 bertrand 607: LIBMOTIF
608: INCMOTIF
1.56 bertrand 609: GIAC
610: PARI
611: COCOA
612: NTL
1.55 bertrand 613: MPFR
614: GMP
1.49 bertrand 615: MALLOC
1.30 bertrand 616: EXT_SQL
1.15 bertrand 617: DATE_FR
618: FINAL_ENCODING
1.76 bertrand 619: SIGSEGV
1.80 bertrand 620: BUILD_OPENMOTIF
1.78 bertrand 621: OPENMOTIF
1.82 bertrand 622: LIBXPM
1.15 bertrand 623: OPENSSL
624: SQLITE
625: ICONV
626: FILE
627: GNUPLOT
628: GPP
629: GSL
630: UNITS
631: READLINE
632: NCURSES
1.75 bertrand 633: ELF
1.40 bertrand 634: BSH_PATH
1.34 bertrand 635: IPV6
1.33 bertrand 636: SEMUN
1.36 bertrand 637: IPCS_SYSV
1.17 bertrand 638: SEMAPHORES_NOMMES
639: NESTED_FUNCTIONS
640: EXPORT_DYNAMIC
1.33 bertrand 641: C_STANDARD
1.15 bertrand 642: OS
1.69 bertrand 643: HOST
1.15 bertrand 644: GNUPLOT_COMPILATION
645: EGREP
646: GREP
647: libPgSQLlib
648: libPgSQLinc
649: POSTGRESQL_SUPPORT
650: libMySQLlib
651: libMySQLinc
652: MYSQL_SUPPORT
653: DATE
654: includeX
655: libX
656: MOTIF_SUPPORT
657: DEBUG
658: EXPERIMENTAL_CODE
659: VIM_SUPPORT
660: POSTSCRIPT_SUPPORT
661: FORCE_GNUPLOT_PATH
662: GNUPLOT_SUPPORT
663: VIM
664: GNUPLOT_P
665: GV
666: GS
667: DVIPS
668: LATEX
669: TEX
670: SED
671: RANLIB
672: LN_S
673: RUNPATH
674: PROFILAGE
1.80 bertrand 675: subdirs
1.67 bertrand 676: LIBRPLCAS
677: RPLCAS
1.66 bertrand 678: ABI
1.15 bertrand 679: X_EXTRA_LIBS
680: X_LIBS
681: X_PRE_LIBS
682: X_CFLAGS
683: CPP
684: XMKMF
685: ac_ct_FC
686: FCFLAGS
687: FC
688: ac_ct_F77
689: FFLAGS
690: F77
691: am__fastdepCXX_FALSE
692: am__fastdepCXX_TRUE
693: CXXDEPMODE
694: ac_ct_CXX
695: CXXFLAGS
696: CXX
697: am__fastdepCC_FALSE
698: am__fastdepCC_TRUE
699: CCDEPMODE
700: AMDEPBACKSLASH
701: AMDEP_FALSE
702: AMDEP_TRUE
703: am__quote
704: am__include
705: DEPDIR
706: OBJEXT
707: EXEEXT
708: ac_ct_CC
709: CPPFLAGS
710: LDFLAGS
711: CFLAGS
712: CC
713: am__untar
714: am__tar
715: AMTAR
716: am__leading_dot
717: SET_MAKE
718: AWK
719: mkdir_p
720: MKDIR_P
721: INSTALL_STRIP_PROGRAM
722: STRIP
723: install_sh
724: MAKEINFO
725: AUTOHEADER
726: AUTOMAKE
727: AUTOCONF
728: ACLOCAL
729: VERSION
730: PACKAGE
731: CYGPATH_W
732: am__isrc
733: INSTALL_DATA
734: INSTALL_SCRIPT
735: INSTALL_PROGRAM
736: target_os
737: target_vendor
738: target_cpu
739: target
740: host_os
741: host_vendor
742: host_cpu
743: host
744: build_os
745: build_vendor
746: build_cpu
747: build
748: target_alias
749: host_alias
750: build_alias
751: LIBS
752: ECHO_T
753: ECHO_N
754: ECHO_C
755: DEFS
756: mandir
757: localedir
758: libdir
759: psdir
760: pdfdir
761: dvidir
762: htmldir
763: infodir
764: docdir
765: oldincludedir
766: includedir
767: localstatedir
768: sharedstatedir
769: sysconfdir
770: datadir
771: datarootdir
772: libexecdir
773: sbindir
774: bindir
775: program_transform_name
776: prefix
777: exec_prefix
778: PACKAGE_URL
779: PACKAGE_BUGREPORT
780: PACKAGE_STRING
781: PACKAGE_VERSION
782: PACKAGE_TARNAME
783: PACKAGE_NAME
1.14 bertrand 784: PATH_SEPARATOR
1.15 bertrand 785: SHELL'
786: ac_subst_files=''
787: ac_user_opts='
788: enable_option_checking
789: enable_dependency_tracking
790: with_x
1.69 bertrand 791: with_32bits_abi
792: with_64bits_abi
1.67 bertrand 793: with_rplcas
1.15 bertrand 794: enable_optimization
1.87 ! bertrand 795: enable_sysv_ipcs
1.30 bertrand 796: enable_full_static
1.15 bertrand 797: enable_final_encoding
798: enable_tex
799: enable_vim
800: enable_embedded_gnuplot
801: enable_gnuplot
802: enable_motif
803: enable_experimental
804: enable_debug
805: enable_profile
806: enable_final_run_path
807: with_mysql
808: with_postgresql
1.40 bertrand 809: with_bourne_shell
1.15 bertrand 810: with_openssl_arch
811: '
812: ac_precious_vars='build_alias
1.1 bertrand 813: host_alias
814: target_alias
815: CC
816: CFLAGS
817: LDFLAGS
1.15 bertrand 818: LIBS
1.1 bertrand 819: CPPFLAGS
820: CXX
821: CXXFLAGS
1.15 bertrand 822: CCC
1.1 bertrand 823: F77
824: FFLAGS
825: FC
826: FCFLAGS
827: XMKMF
828: CPP'
1.80 bertrand 829: ac_subdirs_all='tools/$LIBXPM
830: tools/$OPENMOTIF
831: tools/$GNUPLOT
1.69 bertrand 832: tools/$NCURSES
1.1 bertrand 833: tools/$READLINE
834: tools/$GSL
835: tools/$GPP
836: tools/$FILE
837: tools/$ICONV
1.9 bertrand 838: tools/$SQLITE
1.76 bertrand 839: tools/$UNITS
840: tools/$SIGSEGV'
1.1 bertrand 841:
842: # Initialize some variables set by options.
843: ac_init_help=
844: ac_init_version=false
1.15 bertrand 845: ac_unrecognized_opts=
846: ac_unrecognized_sep=
1.1 bertrand 847: # The variables have the same names as the options, with
848: # dashes changed to underlines.
849: cache_file=/dev/null
850: exec_prefix=NONE
851: no_create=
852: no_recursion=
853: prefix=NONE
854: program_prefix=NONE
855: program_suffix=NONE
856: program_transform_name=s,x,x,
857: silent=
858: site=
859: srcdir=
860: verbose=
861: x_includes=NONE
862: x_libraries=NONE
863:
864: # Installation directory options.
865: # These are left unexpanded so users can "make install exec_prefix=/foo"
866: # and all the variables that are supposed to be based on exec_prefix
867: # by default will actually change.
868: # Use braces instead of parens because sh, perl, etc. also accept them.
869: # (The list follows the same order as the GNU Coding Standards.)
870: bindir='${exec_prefix}/bin'
871: sbindir='${exec_prefix}/sbin'
872: libexecdir='${exec_prefix}/libexec'
873: datarootdir='${prefix}/share'
874: datadir='${datarootdir}'
875: sysconfdir='${prefix}/etc'
876: sharedstatedir='${prefix}/com'
877: localstatedir='${prefix}/var'
878: includedir='${prefix}/include'
879: oldincludedir='/usr/include'
880: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
881: infodir='${datarootdir}/info'
882: htmldir='${docdir}'
883: dvidir='${docdir}'
884: pdfdir='${docdir}'
885: psdir='${docdir}'
886: libdir='${exec_prefix}/lib'
887: localedir='${datarootdir}/locale'
888: mandir='${datarootdir}/man'
889:
890: ac_prev=
891: ac_dashdash=
892: for ac_option
893: do
894: # If the previous option needs an argument, assign it.
895: if test -n "$ac_prev"; then
896: eval $ac_prev=\$ac_option
897: ac_prev=
898: continue
899: fi
900:
901: case $ac_option in
1.36 bertrand 902: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903: *=) ac_optarg= ;;
904: *) ac_optarg=yes ;;
1.1 bertrand 905: esac
906:
907: # Accept the important Cygnus configure options, so we can diagnose typos.
908:
909: case $ac_dashdash$ac_option in
910: --)
911: ac_dashdash=yes ;;
912:
913: -bindir | --bindir | --bindi | --bind | --bin | --bi)
914: ac_prev=bindir ;;
915: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
916: bindir=$ac_optarg ;;
917:
918: -build | --build | --buil | --bui | --bu)
919: ac_prev=build_alias ;;
920: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
921: build_alias=$ac_optarg ;;
922:
923: -cache-file | --cache-file | --cache-fil | --cache-fi \
924: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925: ac_prev=cache_file ;;
926: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
928: cache_file=$ac_optarg ;;
929:
930: --config-cache | -C)
931: cache_file=config.cache ;;
932:
933: -datadir | --datadir | --datadi | --datad)
934: ac_prev=datadir ;;
935: -datadir=* | --datadir=* | --datadi=* | --datad=*)
936: datadir=$ac_optarg ;;
937:
938: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939: | --dataroo | --dataro | --datar)
940: ac_prev=datarootdir ;;
941: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943: datarootdir=$ac_optarg ;;
944:
945: -disable-* | --disable-*)
1.15 bertrand 946: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 bertrand 947: # Reject names that are not valid shell variable names.
1.15 bertrand 948: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 949: as_fn_error $? "invalid feature name: $ac_useropt"
1.15 bertrand 950: ac_useropt_orig=$ac_useropt
951: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952: case $ac_user_opts in
953: *"
954: "enable_$ac_useropt"
955: "*) ;;
956: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957: ac_unrecognized_sep=', ';;
958: esac
959: eval enable_$ac_useropt=no ;;
1.1 bertrand 960:
961: -docdir | --docdir | --docdi | --doc | --do)
962: ac_prev=docdir ;;
963: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964: docdir=$ac_optarg ;;
965:
966: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967: ac_prev=dvidir ;;
968: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969: dvidir=$ac_optarg ;;
970:
971: -enable-* | --enable-*)
1.15 bertrand 972: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 bertrand 973: # Reject names that are not valid shell variable names.
1.15 bertrand 974: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 975: as_fn_error $? "invalid feature name: $ac_useropt"
1.15 bertrand 976: ac_useropt_orig=$ac_useropt
977: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978: case $ac_user_opts in
979: *"
980: "enable_$ac_useropt"
981: "*) ;;
982: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983: ac_unrecognized_sep=', ';;
984: esac
985: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 bertrand 986:
987: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989: | --exec | --exe | --ex)
990: ac_prev=exec_prefix ;;
991: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993: | --exec=* | --exe=* | --ex=*)
994: exec_prefix=$ac_optarg ;;
995:
996: -gas | --gas | --ga | --g)
997: # Obsolete; use --with-gas.
998: with_gas=yes ;;
999:
1000: -help | --help | --hel | --he | -h)
1001: ac_init_help=long ;;
1002: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003: ac_init_help=recursive ;;
1004: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005: ac_init_help=short ;;
1006:
1007: -host | --host | --hos | --ho)
1008: ac_prev=host_alias ;;
1009: -host=* | --host=* | --hos=* | --ho=*)
1010: host_alias=$ac_optarg ;;
1011:
1012: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013: ac_prev=htmldir ;;
1014: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015: | --ht=*)
1016: htmldir=$ac_optarg ;;
1017:
1018: -includedir | --includedir | --includedi | --included | --include \
1019: | --includ | --inclu | --incl | --inc)
1020: ac_prev=includedir ;;
1021: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022: | --includ=* | --inclu=* | --incl=* | --inc=*)
1023: includedir=$ac_optarg ;;
1024:
1025: -infodir | --infodir | --infodi | --infod | --info | --inf)
1026: ac_prev=infodir ;;
1027: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028: infodir=$ac_optarg ;;
1029:
1030: -libdir | --libdir | --libdi | --libd)
1031: ac_prev=libdir ;;
1032: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033: libdir=$ac_optarg ;;
1034:
1035: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036: | --libexe | --libex | --libe)
1037: ac_prev=libexecdir ;;
1038: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039: | --libexe=* | --libex=* | --libe=*)
1040: libexecdir=$ac_optarg ;;
1041:
1042: -localedir | --localedir | --localedi | --localed | --locale)
1043: ac_prev=localedir ;;
1044: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045: localedir=$ac_optarg ;;
1046:
1047: -localstatedir | --localstatedir | --localstatedi | --localstated \
1048: | --localstate | --localstat | --localsta | --localst | --locals)
1049: ac_prev=localstatedir ;;
1050: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052: localstatedir=$ac_optarg ;;
1053:
1054: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055: ac_prev=mandir ;;
1056: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057: mandir=$ac_optarg ;;
1058:
1059: -nfp | --nfp | --nf)
1060: # Obsolete; use --without-fp.
1061: with_fp=no ;;
1062:
1063: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064: | --no-cr | --no-c | -n)
1065: no_create=yes ;;
1066:
1067: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069: no_recursion=yes ;;
1070:
1071: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073: | --oldin | --oldi | --old | --ol | --o)
1074: ac_prev=oldincludedir ;;
1075: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078: oldincludedir=$ac_optarg ;;
1079:
1080: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081: ac_prev=prefix ;;
1082: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083: prefix=$ac_optarg ;;
1084:
1085: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086: | --program-pre | --program-pr | --program-p)
1087: ac_prev=program_prefix ;;
1088: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090: program_prefix=$ac_optarg ;;
1091:
1092: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093: | --program-suf | --program-su | --program-s)
1094: ac_prev=program_suffix ;;
1095: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097: program_suffix=$ac_optarg ;;
1098:
1099: -program-transform-name | --program-transform-name \
1100: | --program-transform-nam | --program-transform-na \
1101: | --program-transform-n | --program-transform- \
1102: | --program-transform | --program-transfor \
1103: | --program-transfo | --program-transf \
1104: | --program-trans | --program-tran \
1105: | --progr-tra | --program-tr | --program-t)
1106: ac_prev=program_transform_name ;;
1107: -program-transform-name=* | --program-transform-name=* \
1108: | --program-transform-nam=* | --program-transform-na=* \
1109: | --program-transform-n=* | --program-transform-=* \
1110: | --program-transform=* | --program-transfor=* \
1111: | --program-transfo=* | --program-transf=* \
1112: | --program-trans=* | --program-tran=* \
1113: | --progr-tra=* | --program-tr=* | --program-t=*)
1114: program_transform_name=$ac_optarg ;;
1115:
1116: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117: ac_prev=pdfdir ;;
1118: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119: pdfdir=$ac_optarg ;;
1120:
1121: -psdir | --psdir | --psdi | --psd | --ps)
1122: ac_prev=psdir ;;
1123: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124: psdir=$ac_optarg ;;
1125:
1126: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127: | -silent | --silent | --silen | --sile | --sil)
1128: silent=yes ;;
1129:
1130: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131: ac_prev=sbindir ;;
1132: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133: | --sbi=* | --sb=*)
1134: sbindir=$ac_optarg ;;
1135:
1136: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138: | --sharedst | --shareds | --shared | --share | --shar \
1139: | --sha | --sh)
1140: ac_prev=sharedstatedir ;;
1141: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144: | --sha=* | --sh=*)
1145: sharedstatedir=$ac_optarg ;;
1146:
1147: -site | --site | --sit)
1148: ac_prev=site ;;
1149: -site=* | --site=* | --sit=*)
1150: site=$ac_optarg ;;
1151:
1152: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153: ac_prev=srcdir ;;
1154: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155: srcdir=$ac_optarg ;;
1156:
1157: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158: | --syscon | --sysco | --sysc | --sys | --sy)
1159: ac_prev=sysconfdir ;;
1160: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162: sysconfdir=$ac_optarg ;;
1163:
1164: -target | --target | --targe | --targ | --tar | --ta | --t)
1165: ac_prev=target_alias ;;
1166: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167: target_alias=$ac_optarg ;;
1168:
1169: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170: verbose=yes ;;
1171:
1172: -version | --version | --versio | --versi | --vers | -V)
1173: ac_init_version=: ;;
1174:
1175: -with-* | --with-*)
1.15 bertrand 1176: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 bertrand 1177: # Reject names that are not valid shell variable names.
1.15 bertrand 1178: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 1179: as_fn_error $? "invalid package name: $ac_useropt"
1.15 bertrand 1180: ac_useropt_orig=$ac_useropt
1181: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182: case $ac_user_opts in
1183: *"
1184: "with_$ac_useropt"
1185: "*) ;;
1186: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187: ac_unrecognized_sep=', ';;
1188: esac
1189: eval with_$ac_useropt=\$ac_optarg ;;
1.1 bertrand 1190:
1191: -without-* | --without-*)
1.15 bertrand 1192: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 bertrand 1193: # Reject names that are not valid shell variable names.
1.15 bertrand 1194: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 1195: as_fn_error $? "invalid package name: $ac_useropt"
1.15 bertrand 1196: ac_useropt_orig=$ac_useropt
1197: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198: case $ac_user_opts in
1199: *"
1200: "with_$ac_useropt"
1201: "*) ;;
1202: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203: ac_unrecognized_sep=', ';;
1204: esac
1205: eval with_$ac_useropt=no ;;
1.1 bertrand 1206:
1207: --x)
1208: # Obsolete; use --with-x.
1209: with_x=yes ;;
1210:
1211: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212: | --x-incl | --x-inc | --x-in | --x-i)
1213: ac_prev=x_includes ;;
1214: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1216: x_includes=$ac_optarg ;;
1217:
1218: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220: ac_prev=x_libraries ;;
1221: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1223: x_libraries=$ac_optarg ;;
1224:
1.36 bertrand 1225: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1226: Try \`$0 --help' for more information"
1.1 bertrand 1227: ;;
1228:
1229: *=*)
1230: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231: # Reject names that are not valid shell variable names.
1.15 bertrand 1232: case $ac_envvar in #(
1233: '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36 bertrand 1234: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15 bertrand 1235: esac
1.1 bertrand 1236: eval $ac_envvar=\$ac_optarg
1237: export $ac_envvar ;;
1238:
1239: *)
1240: # FIXME: should be removed in autoconf 3.0.
1.15 bertrand 1241: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 bertrand 1242: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15 bertrand 1243: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.57 bertrand 1244: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1.1 bertrand 1245: ;;
1246:
1247: esac
1248: done
1249:
1250: if test -n "$ac_prev"; then
1251: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36 bertrand 1252: as_fn_error $? "missing argument to $ac_option"
1.15 bertrand 1253: fi
1254:
1255: if test -n "$ac_unrecognized_opts"; then
1256: case $enable_option_checking in
1257: no) ;;
1.36 bertrand 1258: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15 bertrand 1259: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260: esac
1.1 bertrand 1261: fi
1262:
1.15 bertrand 1263: # Check all directory arguments for consistency.
1.1 bertrand 1264: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265: datadir sysconfdir sharedstatedir localstatedir includedir \
1266: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267: libdir localedir mandir
1268: do
1269: eval ac_val=\$$ac_var
1.15 bertrand 1270: # Remove trailing slashes.
1271: case $ac_val in
1272: */ )
1273: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274: eval $ac_var=\$ac_val;;
1275: esac
1276: # Be sure to have absolute directory names.
1.1 bertrand 1277: case $ac_val in
1278: [\\/$]* | ?:[\\/]* ) continue;;
1279: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280: esac
1.36 bertrand 1281: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 bertrand 1282: done
1283:
1284: # There might be people who depend on the old broken behavior: `$host'
1285: # used to hold the argument of --host etc.
1286: # FIXME: To remove some day.
1287: build=$build_alias
1288: host=$host_alias
1289: target=$target_alias
1290:
1291: # FIXME: To remove some day.
1292: if test "x$host_alias" != x; then
1293: if test "x$build_alias" = x; then
1294: cross_compiling=maybe
1.36 bertrand 1295: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1296: If a cross compiler is detected then cross compile mode will be used" >&2
1.1 bertrand 1297: elif test "x$build_alias" != "x$host_alias"; then
1298: cross_compiling=yes
1299: fi
1300: fi
1301:
1302: ac_tool_prefix=
1303: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304:
1305: test "$silent" = yes && exec 6>/dev/null
1306:
1307:
1308: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309: ac_ls_di=`ls -di .` &&
1310: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36 bertrand 1311: as_fn_error $? "working directory cannot be determined"
1.1 bertrand 1312: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36 bertrand 1313: as_fn_error $? "pwd does not report name of working directory"
1.1 bertrand 1314:
1315:
1316: # Find the source files, if location was not specified.
1317: if test -z "$srcdir"; then
1318: ac_srcdir_defaulted=yes
1319: # Try the directory containing this script, then the parent directory.
1.15 bertrand 1320: ac_confdir=`$as_dirname -- "$as_myself" ||
1321: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322: X"$as_myself" : 'X\(//\)[^/]' \| \
1323: X"$as_myself" : 'X\(//\)$' \| \
1324: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325: $as_echo X"$as_myself" |
1.1 bertrand 1326: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327: s//\1/
1328: q
1329: }
1330: /^X\(\/\/\)[^/].*/{
1331: s//\1/
1332: q
1333: }
1334: /^X\(\/\/\)$/{
1335: s//\1/
1336: q
1337: }
1338: /^X\(\/\).*/{
1339: s//\1/
1340: q
1341: }
1342: s/.*/./; q'`
1343: srcdir=$ac_confdir
1344: if test ! -r "$srcdir/$ac_unique_file"; then
1345: srcdir=..
1346: fi
1347: else
1348: ac_srcdir_defaulted=no
1349: fi
1350: if test ! -r "$srcdir/$ac_unique_file"; then
1351: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36 bertrand 1352: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1 bertrand 1353: fi
1354: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355: ac_abs_confdir=`(
1.36 bertrand 1356: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1 bertrand 1357: pwd)`
1358: # When building in place, set srcdir=.
1359: if test "$ac_abs_confdir" = "$ac_pwd"; then
1360: srcdir=.
1361: fi
1362: # Remove unnecessary trailing slashes from srcdir.
1363: # Double slashes in file names in object file debugging info
1364: # mess up M-x gdb in Emacs.
1365: case $srcdir in
1366: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367: esac
1368: for ac_var in $ac_precious_vars; do
1369: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370: eval ac_env_${ac_var}_value=\$${ac_var}
1371: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373: done
1374:
1375: #
1376: # Report the --help message.
1377: #
1378: if test "$ac_init_help" = "long"; then
1379: # Omit some internal or obsolete options to make the list less imposing.
1380: # This message is too long to be a string in the A/UX 3.1 sh.
1381: cat <<_ACEOF
1.86 bertrand 1382: \`configure' configures rpl 4.1.4 to adapt to many kinds of systems.
1.1 bertrand 1383:
1384: Usage: $0 [OPTION]... [VAR=VALUE]...
1385:
1386: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387: VAR=VALUE. See below for descriptions of some of the useful variables.
1388:
1389: Defaults for the options are specified in brackets.
1390:
1391: Configuration:
1392: -h, --help display this help and exit
1393: --help=short display options specific to this package
1394: --help=recursive display the short help of all the included packages
1395: -V, --version display version information and exit
1.36 bertrand 1396: -q, --quiet, --silent do not print \`checking ...' messages
1.1 bertrand 1397: --cache-file=FILE cache test results in FILE [disabled]
1398: -C, --config-cache alias for \`--cache-file=config.cache'
1399: -n, --no-create do not create output files
1400: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401:
1402: Installation directories:
1403: --prefix=PREFIX install architecture-independent files in PREFIX
1.15 bertrand 1404: [$ac_default_prefix]
1.1 bertrand 1405: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.15 bertrand 1406: [PREFIX]
1.1 bertrand 1407:
1408: By default, \`make install' will install all the files in
1409: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411: for instance \`--prefix=\$HOME'.
1412:
1413: For better control, use the options below.
1414:
1415: Fine tuning of the installation directories:
1.15 bertrand 1416: --bindir=DIR user executables [EPREFIX/bin]
1417: --sbindir=DIR system admin executables [EPREFIX/sbin]
1418: --libexecdir=DIR program executables [EPREFIX/libexec]
1419: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422: --libdir=DIR object code libraries [EPREFIX/lib]
1423: --includedir=DIR C header files [PREFIX/include]
1424: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427: --infodir=DIR info documentation [DATAROOTDIR/info]
1428: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429: --mandir=DIR man documentation [DATAROOTDIR/man]
1430: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1431: --htmldir=DIR html documentation [DOCDIR]
1432: --dvidir=DIR dvi documentation [DOCDIR]
1433: --pdfdir=DIR pdf documentation [DOCDIR]
1434: --psdir=DIR ps documentation [DOCDIR]
1.1 bertrand 1435: _ACEOF
1436:
1437: cat <<\_ACEOF
1438:
1439: Program names:
1440: --program-prefix=PREFIX prepend PREFIX to installed program names
1441: --program-suffix=SUFFIX append SUFFIX to installed program names
1442: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1443:
1444: X features:
1445: --x-includes=DIR X include files are in DIR
1446: --x-libraries=DIR X library files are in DIR
1447:
1448: System types:
1449: --build=BUILD configure for building on BUILD [guessed]
1450: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451: --target=TARGET configure for building compilers for TARGET [HOST]
1452: _ACEOF
1453: fi
1454:
1455: if test -n "$ac_init_help"; then
1456: case $ac_init_help in
1.86 bertrand 1457: short | recursive ) echo "Configuration of rpl 4.1.4:";;
1.1 bertrand 1458: esac
1459: cat <<\_ACEOF
1460:
1461: Optional Features:
1.15 bertrand 1462: --disable-option-checking ignore unrecognized --enable/--with options
1.1 bertrand 1463: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1464: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1465: --disable-dependency-tracking speeds up one-time build
1466: --enable-dependency-tracking do not reject slow dependency extractors
1467: --enable-optimization set compiler flags [default=environment variables -O3]
1.81 bertrand 1468: --enable-sysv-ipcs use SystemV IPC functions [default=guessed]
1.30 bertrand 1469: --enable-full-static build static RPL/2 engine [default=shared]
1.1 bertrand 1470: --enable-final-encoding force final encoding [default=guessed]
1471: --enable-tex provide the TeX support [default=guessed]
1472: --enable-vim provide the vim support [default=guessed]
1473: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1474: --enable-gnuplot provide the GnuPlot support [default=guessed]
1475: --enable-motif provide the Motif support [default=guessed]
1476: --enable-experimental enable experimental code [default=no]
1477: --enable-debug enable debug code [default=no]
1478: --enable-profile enable profile code [default=no]
1479: --enable-final-run-path=PATH enable another final run path than PREFIX
1480:
1481: Optional Packages:
1482: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484: --with-x use the X Window System
1.64 bertrand 1485: --with-32bits-abi force 32bits ABI (multilib)
1.67 bertrand 1486: --with-64bits-abi force 64bits ABI (multilib)
1487: --with-rplcas compile rplcas (default=no)
1.1 bertrand 1488: --with-mysql=PATH specify directory for installed mysql
1489: --with-postgresql=PATH specify directory for installed postgresql
1.40 bertrand 1490: --with-bourne-shell=PATH specify path for OS/2 bourne shell
1.15 bertrand 1491: --with-openssl-arch=ARCH specify os and compiler for openssl (ARCH or list)
1.1 bertrand 1492:
1493: Some influential environment variables:
1494: CC C compiler command
1495: CFLAGS C compiler flags
1496: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497: nonstandard directory <lib dir>
1498: LIBS libraries to pass to the linker, e.g. -l<library>
1.15 bertrand 1499: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1 bertrand 1500: you have headers in a nonstandard directory <include dir>
1501: CXX C++ compiler command
1502: CXXFLAGS C++ compiler flags
1503: F77 Fortran 77 compiler command
1504: FFLAGS Fortran 77 compiler flags
1505: FC Fortran compiler command
1506: FCFLAGS Fortran compiler flags
1507: XMKMF Path to xmkmf, Makefile generator for X Window System
1508: CPP C preprocessor
1509:
1510: Use these variables to override the choices made by `configure' or to help
1511: it to find libraries and programs with nonstandard names/locations.
1512:
1.15 bertrand 1513: Report bugs to the package provider.
1.1 bertrand 1514: _ACEOF
1515: ac_status=$?
1516: fi
1517:
1518: if test "$ac_init_help" = "recursive"; then
1519: # If there are subdirs, report their specific --help.
1520: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15 bertrand 1521: test -d "$ac_dir" ||
1522: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523: continue
1.1 bertrand 1524: ac_builddir=.
1525:
1526: case "$ac_dir" in
1527: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528: *)
1.15 bertrand 1529: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 1530: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 1531: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 1532: case $ac_top_builddir_sub in
1533: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535: esac ;;
1536: esac
1537: ac_abs_top_builddir=$ac_pwd
1538: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539: # for backward compatibility:
1540: ac_top_builddir=$ac_top_build_prefix
1541:
1542: case $srcdir in
1543: .) # We are building in place.
1544: ac_srcdir=.
1545: ac_top_srcdir=$ac_top_builddir_sub
1546: ac_abs_top_srcdir=$ac_pwd ;;
1547: [\\/]* | ?:[\\/]* ) # Absolute name.
1548: ac_srcdir=$srcdir$ac_dir_suffix;
1549: ac_top_srcdir=$srcdir
1550: ac_abs_top_srcdir=$srcdir ;;
1551: *) # Relative name.
1552: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553: ac_top_srcdir=$ac_top_build_prefix$srcdir
1554: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555: esac
1556: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1557:
1558: cd "$ac_dir" || { ac_status=$?; continue; }
1559: # Check for guested configure.
1560: if test -f "$ac_srcdir/configure.gnu"; then
1561: echo &&
1562: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563: elif test -f "$ac_srcdir/configure"; then
1564: echo &&
1565: $SHELL "$ac_srcdir/configure" --help=recursive
1566: else
1.15 bertrand 1567: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1 bertrand 1568: fi || ac_status=$?
1569: cd "$ac_pwd" || { ac_status=$?; break; }
1570: done
1571: fi
1572:
1573: test -n "$ac_init_help" && exit $ac_status
1574: if $ac_init_version; then
1575: cat <<\_ACEOF
1.86 bertrand 1576: rpl configure 4.1.4
1.57 bertrand 1577: generated by GNU Autoconf 2.68
1.1 bertrand 1578:
1.36 bertrand 1579: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 bertrand 1580: This configure script is free software; the Free Software Foundation
1581: gives unlimited permission to copy, distribute and modify it.
1582: _ACEOF
1583: exit
1584: fi
1585:
1.15 bertrand 1586: ## ------------------------ ##
1587: ## Autoconf initialization. ##
1588: ## ------------------------ ##
1589:
1590: # ac_fn_c_try_compile LINENO
1591: # --------------------------
1592: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593: ac_fn_c_try_compile ()
1594: {
1595: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596: rm -f conftest.$ac_objext
1597: if { { ac_try="$ac_compile"
1598: case "(($ac_try" in
1599: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600: *) ac_try_echo=$ac_try;;
1601: esac
1602: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603: $as_echo "$ac_try_echo"; } >&5
1604: (eval "$ac_compile") 2>conftest.err
1605: ac_status=$?
1606: if test -s conftest.err; then
1607: grep -v '^ *+' conftest.err >conftest.er1
1608: cat conftest.er1 >&5
1609: mv -f conftest.er1 conftest.err
1610: fi
1611: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612: test $ac_status = 0; } && {
1613: test -z "$ac_c_werror_flag" ||
1614: test ! -s conftest.err
1615: } && test -s conftest.$ac_objext; then :
1616: ac_retval=0
1617: else
1618: $as_echo "$as_me: failed program was:" >&5
1619: sed 's/^/| /' conftest.$ac_ext >&5
1620:
1621: ac_retval=1
1622: fi
1.57 bertrand 1623: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1624: as_fn_set_status $ac_retval
1.1 bertrand 1625:
1.15 bertrand 1626: } # ac_fn_c_try_compile
1.1 bertrand 1627:
1.15 bertrand 1628: # ac_fn_cxx_try_compile LINENO
1629: # ----------------------------
1630: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1631: ac_fn_cxx_try_compile ()
1.1 bertrand 1632: {
1.15 bertrand 1633: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634: rm -f conftest.$ac_objext
1635: if { { ac_try="$ac_compile"
1636: case "(($ac_try" in
1637: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638: *) ac_try_echo=$ac_try;;
1639: esac
1640: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641: $as_echo "$ac_try_echo"; } >&5
1642: (eval "$ac_compile") 2>conftest.err
1643: ac_status=$?
1644: if test -s conftest.err; then
1645: grep -v '^ *+' conftest.err >conftest.er1
1646: cat conftest.er1 >&5
1647: mv -f conftest.er1 conftest.err
1648: fi
1649: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650: test $ac_status = 0; } && {
1651: test -z "$ac_cxx_werror_flag" ||
1652: test ! -s conftest.err
1653: } && test -s conftest.$ac_objext; then :
1654: ac_retval=0
1655: else
1656: $as_echo "$as_me: failed program was:" >&5
1657: sed 's/^/| /' conftest.$ac_ext >&5
1658:
1659: ac_retval=1
1660: fi
1.57 bertrand 1661: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1662: as_fn_set_status $ac_retval
1.1 bertrand 1663:
1.15 bertrand 1664: } # ac_fn_cxx_try_compile
1.1 bertrand 1665:
1.15 bertrand 1666: # ac_fn_f77_try_compile LINENO
1667: # ----------------------------
1668: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1669: ac_fn_f77_try_compile ()
1670: {
1671: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672: rm -f conftest.$ac_objext
1673: if { { ac_try="$ac_compile"
1674: case "(($ac_try" in
1675: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676: *) ac_try_echo=$ac_try;;
1677: esac
1678: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679: $as_echo "$ac_try_echo"; } >&5
1680: (eval "$ac_compile") 2>conftest.err
1681: ac_status=$?
1682: if test -s conftest.err; then
1683: grep -v '^ *+' conftest.err >conftest.er1
1684: cat conftest.er1 >&5
1685: mv -f conftest.er1 conftest.err
1686: fi
1687: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688: test $ac_status = 0; } && {
1689: test -z "$ac_f77_werror_flag" ||
1690: test ! -s conftest.err
1691: } && test -s conftest.$ac_objext; then :
1692: ac_retval=0
1693: else
1694: $as_echo "$as_me: failed program was:" >&5
1695: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1696:
1.15 bertrand 1697: ac_retval=1
1698: fi
1.57 bertrand 1699: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1700: as_fn_set_status $ac_retval
1.1 bertrand 1701:
1.15 bertrand 1702: } # ac_fn_f77_try_compile
1.1 bertrand 1703:
1.15 bertrand 1704: # ac_fn_fc_try_compile LINENO
1705: # ---------------------------
1706: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1707: ac_fn_fc_try_compile ()
1708: {
1709: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710: rm -f conftest.$ac_objext
1711: if { { ac_try="$ac_compile"
1712: case "(($ac_try" in
1713: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714: *) ac_try_echo=$ac_try;;
1715: esac
1716: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717: $as_echo "$ac_try_echo"; } >&5
1718: (eval "$ac_compile") 2>conftest.err
1719: ac_status=$?
1720: if test -s conftest.err; then
1721: grep -v '^ *+' conftest.err >conftest.er1
1722: cat conftest.er1 >&5
1723: mv -f conftest.er1 conftest.err
1724: fi
1725: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726: test $ac_status = 0; } && {
1727: test -z "$ac_fc_werror_flag" ||
1728: test ! -s conftest.err
1729: } && test -s conftest.$ac_objext; then :
1730: ac_retval=0
1731: else
1732: $as_echo "$as_me: failed program was:" >&5
1733: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1734:
1.15 bertrand 1735: ac_retval=1
1736: fi
1.57 bertrand 1737: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1738: as_fn_set_status $ac_retval
1.1 bertrand 1739:
1.15 bertrand 1740: } # ac_fn_fc_try_compile
1.1 bertrand 1741:
1.15 bertrand 1742: # ac_fn_c_try_cpp LINENO
1743: # ----------------------
1744: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1745: ac_fn_c_try_cpp ()
1746: {
1747: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748: if { { ac_try="$ac_cpp conftest.$ac_ext"
1749: case "(($ac_try" in
1750: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751: *) ac_try_echo=$ac_try;;
1752: esac
1753: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754: $as_echo "$ac_try_echo"; } >&5
1755: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1756: ac_status=$?
1757: if test -s conftest.err; then
1758: grep -v '^ *+' conftest.err >conftest.er1
1759: cat conftest.er1 >&5
1760: mv -f conftest.er1 conftest.err
1761: fi
1762: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36 bertrand 1763: test $ac_status = 0; } > conftest.i && {
1.15 bertrand 1764: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1765: test ! -s conftest.err
1766: }; then :
1767: ac_retval=0
1768: else
1769: $as_echo "$as_me: failed program was:" >&5
1770: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1771:
1.15 bertrand 1772: ac_retval=1
1773: fi
1.57 bertrand 1774: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1775: as_fn_set_status $ac_retval
1.1 bertrand 1776:
1.15 bertrand 1777: } # ac_fn_c_try_cpp
1.1 bertrand 1778:
1.15 bertrand 1779: # ac_fn_c_try_link LINENO
1780: # -----------------------
1781: # Try to link conftest.$ac_ext, and return whether this succeeded.
1782: ac_fn_c_try_link ()
1783: {
1784: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785: rm -f conftest.$ac_objext conftest$ac_exeext
1786: if { { ac_try="$ac_link"
1787: case "(($ac_try" in
1788: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789: *) ac_try_echo=$ac_try;;
1790: esac
1791: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792: $as_echo "$ac_try_echo"; } >&5
1793: (eval "$ac_link") 2>conftest.err
1794: ac_status=$?
1795: if test -s conftest.err; then
1796: grep -v '^ *+' conftest.err >conftest.er1
1797: cat conftest.er1 >&5
1798: mv -f conftest.er1 conftest.err
1799: fi
1800: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801: test $ac_status = 0; } && {
1802: test -z "$ac_c_werror_flag" ||
1803: test ! -s conftest.err
1804: } && test -s conftest$ac_exeext && {
1805: test "$cross_compiling" = yes ||
1806: $as_test_x conftest$ac_exeext
1807: }; then :
1808: ac_retval=0
1809: else
1810: $as_echo "$as_me: failed program was:" >&5
1811: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1812:
1.15 bertrand 1813: ac_retval=1
1814: fi
1815: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817: # interfere with the next link command; also delete a directory that is
1818: # left behind by Apple's compiler. We do this before executing the actions.
1819: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1.57 bertrand 1820: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 1821: as_fn_set_status $ac_retval
1.1 bertrand 1822:
1.15 bertrand 1823: } # ac_fn_c_try_link
1.1 bertrand 1824:
1.15 bertrand 1825: # ac_fn_c_check_func LINENO FUNC VAR
1826: # ----------------------------------
1827: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1828: ac_fn_c_check_func ()
1829: {
1830: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 1833: if eval \${$3+:} false; then :
1.15 bertrand 1834: $as_echo_n "(cached) " >&6
1835: else
1836: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837: /* end confdefs.h. */
1838: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840: #define $2 innocuous_$2
1.1 bertrand 1841:
1.15 bertrand 1842: /* System header to define __stub macros and hopefully few prototypes,
1843: which can conflict with char $2 (); below.
1844: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845: <limits.h> exists even on freestanding compilers. */
1.1 bertrand 1846:
1.15 bertrand 1847: #ifdef __STDC__
1848: # include <limits.h>
1849: #else
1850: # include <assert.h>
1851: #endif
1.1 bertrand 1852:
1.15 bertrand 1853: #undef $2
1.1 bertrand 1854:
1.15 bertrand 1855: /* Override any GCC internal prototype to avoid an error.
1856: Use char because int might match the return type of a GCC
1857: builtin and then its argument prototype would still apply. */
1858: #ifdef __cplusplus
1859: extern "C"
1860: #endif
1861: char $2 ();
1862: /* The GNU C library defines this for functions which it implements
1863: to always fail with ENOSYS. Some functions are actually named
1864: something starting with __ and the normal name is an alias. */
1865: #if defined __stub_$2 || defined __stub___$2
1866: choke me
1867: #endif
1.1 bertrand 1868:
1.15 bertrand 1869: int
1870: main ()
1871: {
1872: return $2 ();
1873: ;
1874: return 0;
1875: }
1.1 bertrand 1876: _ACEOF
1.15 bertrand 1877: if ac_fn_c_try_link "$LINENO"; then :
1878: eval "$3=yes"
1879: else
1880: eval "$3=no"
1881: fi
1882: rm -f core conftest.err conftest.$ac_objext \
1883: conftest$ac_exeext conftest.$ac_ext
1884: fi
1885: eval ac_res=\$$3
1886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887: $as_echo "$ac_res" >&6; }
1.57 bertrand 1888: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 bertrand 1889:
1.15 bertrand 1890: } # ac_fn_c_check_func
1.1 bertrand 1891:
1.83 bertrand 1892: # ac_fn_c_try_run LINENO
1893: # ----------------------
1894: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1895: # that executables *can* be run.
1896: ac_fn_c_try_run ()
1897: {
1898: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899: if { { ac_try="$ac_link"
1900: case "(($ac_try" in
1901: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902: *) ac_try_echo=$ac_try;;
1903: esac
1904: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905: $as_echo "$ac_try_echo"; } >&5
1906: (eval "$ac_link") 2>&5
1907: ac_status=$?
1908: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1910: { { case "(($ac_try" in
1911: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912: *) ac_try_echo=$ac_try;;
1913: esac
1914: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915: $as_echo "$ac_try_echo"; } >&5
1916: (eval "$ac_try") 2>&5
1917: ac_status=$?
1918: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919: test $ac_status = 0; }; }; then :
1920: ac_retval=0
1921: else
1922: $as_echo "$as_me: program exited with status $ac_status" >&5
1923: $as_echo "$as_me: failed program was:" >&5
1924: sed 's/^/| /' conftest.$ac_ext >&5
1925:
1926: ac_retval=$ac_status
1927: fi
1928: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1929: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930: as_fn_set_status $ac_retval
1931:
1932: } # ac_fn_c_try_run
1933:
1.33 bertrand 1934: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1935: # -------------------------------------------
1936: # Tests whether TYPE exists after having included INCLUDES, setting cache
1937: # variable VAR accordingly.
1938: ac_fn_c_check_type ()
1939: {
1940: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 1943: if eval \${$3+:} false; then :
1.33 bertrand 1944: $as_echo_n "(cached) " >&6
1945: else
1946: eval "$3=no"
1947: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948: /* end confdefs.h. */
1949: $4
1950: int
1951: main ()
1952: {
1953: if (sizeof ($2))
1954: return 0;
1955: ;
1956: return 0;
1957: }
1958: _ACEOF
1959: if ac_fn_c_try_compile "$LINENO"; then :
1960: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1961: /* end confdefs.h. */
1962: $4
1963: int
1964: main ()
1965: {
1966: if (sizeof (($2)))
1967: return 0;
1968: ;
1969: return 0;
1970: }
1971: _ACEOF
1972: if ac_fn_c_try_compile "$LINENO"; then :
1973:
1974: else
1975: eval "$3=yes"
1976: fi
1977: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978: fi
1979: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980: fi
1981: eval ac_res=\$$3
1982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983: $as_echo "$ac_res" >&6; }
1.57 bertrand 1984: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.33 bertrand 1985:
1986: } # ac_fn_c_check_type
1987:
1.15 bertrand 1988: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1989: # --------------------------------------------
1990: # Tries to find the compile-time value of EXPR in a program that includes
1991: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1992: # computed
1993: ac_fn_c_compute_int ()
1994: {
1995: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996: if test "$cross_compiling" = yes; then
1997: # Depending upon the size, compute the lo and hi bounds.
1998: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999: /* end confdefs.h. */
2000: $4
2001: int
2002: main ()
2003: {
2004: static int test_array [1 - 2 * !(($2) >= 0)];
2005: test_array [0] = 0
1.1 bertrand 2006:
1.15 bertrand 2007: ;
2008: return 0;
2009: }
1.1 bertrand 2010: _ACEOF
1.15 bertrand 2011: if ac_fn_c_try_compile "$LINENO"; then :
2012: ac_lo=0 ac_mid=0
2013: while :; do
2014: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015: /* end confdefs.h. */
2016: $4
2017: int
2018: main ()
2019: {
2020: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2021: test_array [0] = 0
1.1 bertrand 2022:
1.15 bertrand 2023: ;
2024: return 0;
2025: }
2026: _ACEOF
2027: if ac_fn_c_try_compile "$LINENO"; then :
2028: ac_hi=$ac_mid; break
2029: else
2030: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2031: if test $ac_lo -le $ac_mid; then
2032: ac_lo= ac_hi=
2033: break
2034: fi
2035: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2036: fi
2037: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2038: done
2039: else
2040: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041: /* end confdefs.h. */
2042: $4
2043: int
2044: main ()
2045: {
2046: static int test_array [1 - 2 * !(($2) < 0)];
2047: test_array [0] = 0
1.1 bertrand 2048:
1.15 bertrand 2049: ;
2050: return 0;
2051: }
1.1 bertrand 2052: _ACEOF
1.15 bertrand 2053: if ac_fn_c_try_compile "$LINENO"; then :
2054: ac_hi=-1 ac_mid=-1
2055: while :; do
2056: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057: /* end confdefs.h. */
2058: $4
2059: int
2060: main ()
2061: {
2062: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2063: test_array [0] = 0
1.1 bertrand 2064:
1.15 bertrand 2065: ;
2066: return 0;
2067: }
2068: _ACEOF
2069: if ac_fn_c_try_compile "$LINENO"; then :
2070: ac_lo=$ac_mid; break
2071: else
2072: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2073: if test $ac_mid -le $ac_hi; then
2074: ac_lo= ac_hi=
2075: break
2076: fi
2077: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2078: fi
2079: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080: done
1.1 bertrand 2081: else
1.15 bertrand 2082: ac_lo= ac_hi=
2083: fi
2084: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 2085: fi
1.15 bertrand 2086: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087: # Binary search between lo and hi bounds.
2088: while test "x$ac_lo" != "x$ac_hi"; do
2089: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2090: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091: /* end confdefs.h. */
2092: $4
2093: int
2094: main ()
2095: {
2096: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2097: test_array [0] = 0
1.1 bertrand 2098:
1.15 bertrand 2099: ;
2100: return 0;
2101: }
2102: _ACEOF
2103: if ac_fn_c_try_compile "$LINENO"; then :
2104: ac_hi=$ac_mid
1.1 bertrand 2105: else
1.15 bertrand 2106: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1 bertrand 2107: fi
1.15 bertrand 2108: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109: done
2110: case $ac_lo in #((
2111: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2112: '') ac_retval=1 ;;
2113: esac
2114: else
2115: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116: /* end confdefs.h. */
2117: $4
2118: static long int longval () { return $2; }
2119: static unsigned long int ulongval () { return $2; }
2120: #include <stdio.h>
2121: #include <stdlib.h>
2122: int
2123: main ()
2124: {
1.1 bertrand 2125:
1.15 bertrand 2126: FILE *f = fopen ("conftest.val", "w");
2127: if (! f)
2128: return 1;
2129: if (($2) < 0)
2130: {
2131: long int i = longval ();
2132: if (i != ($2))
2133: return 1;
2134: fprintf (f, "%ld", i);
2135: }
2136: else
2137: {
2138: unsigned long int i = ulongval ();
2139: if (i != ($2))
2140: return 1;
2141: fprintf (f, "%lu", i);
2142: }
2143: /* Do not output a trailing newline, as this causes \r\n confusion
2144: on some platforms. */
2145: return ferror (f) || fclose (f) != 0;
2146:
2147: ;
2148: return 0;
2149: }
2150: _ACEOF
2151: if ac_fn_c_try_run "$LINENO"; then :
2152: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2153: else
2154: ac_retval=1
1.14 bertrand 2155: fi
1.15 bertrand 2156: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2157: conftest.$ac_objext conftest.beam conftest.$ac_ext
2158: rm -f conftest.val
1.14 bertrand 2159:
1.15 bertrand 2160: fi
1.57 bertrand 2161: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.15 bertrand 2162: as_fn_set_status $ac_retval
1.14 bertrand 2163:
1.15 bertrand 2164: } # ac_fn_c_compute_int
1.1 bertrand 2165:
1.15 bertrand 2166: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2167: # -------------------------------------------------------
2168: # Tests whether HEADER exists and can be compiled using the include files in
2169: # INCLUDES, setting the cache variable VAR accordingly.
2170: ac_fn_c_check_header_compile ()
2171: {
2172: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 2175: if eval \${$3+:} false; then :
1.15 bertrand 2176: $as_echo_n "(cached) " >&6
2177: else
2178: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179: /* end confdefs.h. */
2180: $4
2181: #include <$2>
2182: _ACEOF
2183: if ac_fn_c_try_compile "$LINENO"; then :
2184: eval "$3=yes"
2185: else
2186: eval "$3=no"
2187: fi
2188: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189: fi
2190: eval ac_res=\$$3
2191: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2192: $as_echo "$ac_res" >&6; }
1.57 bertrand 2193: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 bertrand 2194:
1.15 bertrand 2195: } # ac_fn_c_check_header_compile
1.1 bertrand 2196:
1.15 bertrand 2197: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2198: # -------------------------------------------------------
2199: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2200: # the include files in INCLUDES and setting the cache variable VAR
2201: # accordingly.
2202: ac_fn_c_check_header_mongrel ()
2203: {
2204: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.57 bertrand 2205: if eval \${$3+:} false; then :
1.15 bertrand 2206: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2207: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 2208: if eval \${$3+:} false; then :
1.15 bertrand 2209: $as_echo_n "(cached) " >&6
2210: fi
2211: eval ac_res=\$$3
2212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213: $as_echo "$ac_res" >&6; }
2214: else
2215: # Is the header compilable?
2216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2217: $as_echo_n "checking $2 usability... " >&6; }
2218: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219: /* end confdefs.h. */
2220: $4
2221: #include <$2>
2222: _ACEOF
2223: if ac_fn_c_try_compile "$LINENO"; then :
2224: ac_header_compiler=yes
2225: else
2226: ac_header_compiler=no
2227: fi
2228: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2230: $as_echo "$ac_header_compiler" >&6; }
1.1 bertrand 2231:
1.15 bertrand 2232: # Is the header present?
2233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2234: $as_echo_n "checking $2 presence... " >&6; }
2235: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236: /* end confdefs.h. */
2237: #include <$2>
2238: _ACEOF
2239: if ac_fn_c_try_cpp "$LINENO"; then :
2240: ac_header_preproc=yes
2241: else
2242: ac_header_preproc=no
2243: fi
1.36 bertrand 2244: rm -f conftest.err conftest.i conftest.$ac_ext
1.15 bertrand 2245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2246: $as_echo "$ac_header_preproc" >&6; }
1.1 bertrand 2247:
1.15 bertrand 2248: # So? What about this header?
2249: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2250: yes:no: )
2251: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2252: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2253: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2254: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2255: ;;
2256: no:yes:* )
2257: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2258: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2259: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2260: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2261: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2262: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2263: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2264: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2265: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2266: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2267: ;;
2268: esac
2269: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270: $as_echo_n "checking for $2... " >&6; }
1.57 bertrand 2271: if eval \${$3+:} false; then :
1.15 bertrand 2272: $as_echo_n "(cached) " >&6
2273: else
2274: eval "$3=\$ac_header_compiler"
2275: fi
2276: eval ac_res=\$$3
2277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278: $as_echo "$ac_res" >&6; }
2279: fi
1.57 bertrand 2280: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1.1 bertrand 2281:
1.15 bertrand 2282: } # ac_fn_c_check_header_mongrel
2283: cat >config.log <<_ACEOF
2284: This file contains any messages produced by compilers while
2285: running configure, to aid debugging if configure makes a mistake.
1.1 bertrand 2286:
1.86 bertrand 2287: It was created by rpl $as_me 4.1.4, which was
1.57 bertrand 2288: generated by GNU Autoconf 2.68. Invocation command line was
1.1 bertrand 2289:
1.15 bertrand 2290: $ $0 $@
1.1 bertrand 2291:
1.15 bertrand 2292: _ACEOF
2293: exec 5>>config.log
2294: {
2295: cat <<_ASUNAME
2296: ## --------- ##
2297: ## Platform. ##
2298: ## --------- ##
1.1 bertrand 2299:
1.15 bertrand 2300: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2301: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2302: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2303: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2304: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1 bertrand 2305:
1.15 bertrand 2306: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2307: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.1 bertrand 2308:
1.15 bertrand 2309: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2310: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2311: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2312: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2313: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2314: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2315: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1.1 bertrand 2316:
1.15 bertrand 2317: _ASUNAME
1.1 bertrand 2318:
1.15 bertrand 2319: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320: for as_dir in $PATH
2321: do
2322: IFS=$as_save_IFS
2323: test -z "$as_dir" && as_dir=.
2324: $as_echo "PATH: $as_dir"
2325: done
2326: IFS=$as_save_IFS
1.1 bertrand 2327:
1.15 bertrand 2328: } >&5
1.1 bertrand 2329:
1.15 bertrand 2330: cat >&5 <<_ACEOF
1.1 bertrand 2331:
2332:
1.15 bertrand 2333: ## ----------- ##
2334: ## Core tests. ##
2335: ## ----------- ##
1.1 bertrand 2336:
1.15 bertrand 2337: _ACEOF
1.1 bertrand 2338:
2339:
1.15 bertrand 2340: # Keep a trace of the command line.
2341: # Strip out --no-create and --no-recursion so they do not pile up.
2342: # Strip out --silent because we don't want to record it for future runs.
2343: # Also quote any args containing shell meta-characters.
2344: # Make two passes to allow for proper duplicate-argument suppression.
2345: ac_configure_args=
2346: ac_configure_args0=
2347: ac_configure_args1=
2348: ac_must_keep_next=false
2349: for ac_pass in 1 2
2350: do
2351: for ac_arg
2352: do
2353: case $ac_arg in
2354: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2355: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2356: | -silent | --silent | --silen | --sile | --sil)
2357: continue ;;
2358: *\'*)
2359: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2360: esac
2361: case $ac_pass in
2362: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2363: 2)
2364: as_fn_append ac_configure_args1 " '$ac_arg'"
2365: if test $ac_must_keep_next = true; then
2366: ac_must_keep_next=false # Got value, back to normal.
2367: else
2368: case $ac_arg in
2369: *=* | --config-cache | -C | -disable-* | --disable-* \
2370: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2371: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2372: | -with-* | --with-* | -without-* | --without-* | --x)
2373: case "$ac_configure_args0 " in
2374: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2375: esac
2376: ;;
2377: -* ) ac_must_keep_next=true ;;
2378: esac
2379: fi
2380: as_fn_append ac_configure_args " '$ac_arg'"
2381: ;;
2382: esac
2383: done
2384: done
2385: { ac_configure_args0=; unset ac_configure_args0;}
2386: { ac_configure_args1=; unset ac_configure_args1;}
1.1 bertrand 2387:
1.15 bertrand 2388: # When interrupted or exit'd, cleanup temporary files, and complete
2389: # config.log. We remove comments because anyway the quotes in there
2390: # would cause problems or look ugly.
2391: # WARNING: Use '\'' to represent an apostrophe within the trap.
2392: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2393: trap 'exit_status=$?
2394: # Save into config.log some information that might help in debugging.
2395: {
2396: echo
1.1 bertrand 2397:
1.36 bertrand 2398: $as_echo "## ---------------- ##
1.15 bertrand 2399: ## Cache variables. ##
1.36 bertrand 2400: ## ---------------- ##"
1.15 bertrand 2401: echo
2402: # The following way of writing the cache mishandles newlines in values,
2403: (
2404: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2405: eval ac_val=\$$ac_var
2406: case $ac_val in #(
2407: *${as_nl}*)
2408: case $ac_var in #(
2409: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2410: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2411: esac
2412: case $ac_var in #(
2413: _ | IFS | as_nl) ;; #(
2414: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2415: *) { eval $ac_var=; unset $ac_var;} ;;
2416: esac ;;
2417: esac
2418: done
2419: (set) 2>&1 |
2420: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2421: *${as_nl}ac_space=\ *)
2422: sed -n \
2423: "s/'\''/'\''\\\\'\'''\''/g;
2424: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2425: ;; #(
2426: *)
2427: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2428: ;;
2429: esac |
2430: sort
2431: )
2432: echo
1.1 bertrand 2433:
1.36 bertrand 2434: $as_echo "## ----------------- ##
1.15 bertrand 2435: ## Output variables. ##
1.36 bertrand 2436: ## ----------------- ##"
1.15 bertrand 2437: echo
2438: for ac_var in $ac_subst_vars
2439: do
2440: eval ac_val=\$$ac_var
2441: case $ac_val in
2442: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2443: esac
2444: $as_echo "$ac_var='\''$ac_val'\''"
2445: done | sort
2446: echo
1.1 bertrand 2447:
1.15 bertrand 2448: if test -n "$ac_subst_files"; then
1.36 bertrand 2449: $as_echo "## ------------------- ##
1.15 bertrand 2450: ## File substitutions. ##
1.36 bertrand 2451: ## ------------------- ##"
1.15 bertrand 2452: echo
2453: for ac_var in $ac_subst_files
2454: do
2455: eval ac_val=\$$ac_var
2456: case $ac_val in
2457: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2458: esac
2459: $as_echo "$ac_var='\''$ac_val'\''"
2460: done | sort
2461: echo
1.14 bertrand 2462: fi
2463:
1.15 bertrand 2464: if test -s confdefs.h; then
1.36 bertrand 2465: $as_echo "## ----------- ##
1.15 bertrand 2466: ## confdefs.h. ##
1.36 bertrand 2467: ## ----------- ##"
1.15 bertrand 2468: echo
2469: cat confdefs.h
2470: echo
2471: fi
2472: test "$ac_signal" != 0 &&
2473: $as_echo "$as_me: caught signal $ac_signal"
2474: $as_echo "$as_me: exit $exit_status"
2475: } >&5
2476: rm -f core *.core core.conftest.* &&
2477: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2478: exit $exit_status
2479: ' 0
2480: for ac_signal in 1 2 13 15; do
2481: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2482: done
2483: ac_signal=0
1.14 bertrand 2484:
1.15 bertrand 2485: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2486: rm -f -r conftest* confdefs.h
1.14 bertrand 2487:
1.15 bertrand 2488: $as_echo "/* confdefs.h */" > confdefs.h
1.14 bertrand 2489:
1.15 bertrand 2490: # Predefined preprocessor variables.
1.14 bertrand 2491:
1.15 bertrand 2492: cat >>confdefs.h <<_ACEOF
2493: #define PACKAGE_NAME "$PACKAGE_NAME"
2494: _ACEOF
1.14 bertrand 2495:
1.15 bertrand 2496: cat >>confdefs.h <<_ACEOF
2497: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14 bertrand 2498: _ACEOF
2499:
1.15 bertrand 2500: cat >>confdefs.h <<_ACEOF
2501: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2502: _ACEOF
1.14 bertrand 2503:
1.15 bertrand 2504: cat >>confdefs.h <<_ACEOF
2505: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14 bertrand 2506: _ACEOF
2507:
1.15 bertrand 2508: cat >>confdefs.h <<_ACEOF
2509: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2510: _ACEOF
1.14 bertrand 2511:
1.15 bertrand 2512: cat >>confdefs.h <<_ACEOF
2513: #define PACKAGE_URL "$PACKAGE_URL"
2514: _ACEOF
1.14 bertrand 2515:
2516:
1.15 bertrand 2517: # Let the site file select an alternate cache file if it wants to.
2518: # Prefer an explicitly selected file to automatically selected ones.
2519: ac_site_file1=NONE
2520: ac_site_file2=NONE
2521: if test -n "$CONFIG_SITE"; then
1.36 bertrand 2522: # We do not want a PATH search for config.site.
2523: case $CONFIG_SITE in #((
2524: -*) ac_site_file1=./$CONFIG_SITE;;
2525: */*) ac_site_file1=$CONFIG_SITE;;
2526: *) ac_site_file1=./$CONFIG_SITE;;
2527: esac
1.15 bertrand 2528: elif test "x$prefix" != xNONE; then
2529: ac_site_file1=$prefix/share/config.site
2530: ac_site_file2=$prefix/etc/config.site
1.14 bertrand 2531: else
1.15 bertrand 2532: ac_site_file1=$ac_default_prefix/share/config.site
2533: ac_site_file2=$ac_default_prefix/etc/config.site
1.14 bertrand 2534: fi
1.15 bertrand 2535: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2536: do
2537: test "x$ac_site_file" = xNONE && continue
2538: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2539: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2540: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2541: sed 's/^/| /' "$ac_site_file" >&5
1.36 bertrand 2542: . "$ac_site_file" \
2543: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2544: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2545: as_fn_error $? "failed to load site script $ac_site_file
1.57 bertrand 2546: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 2547: fi
2548: done
1.14 bertrand 2549:
1.15 bertrand 2550: if test -r "$cache_file"; then
2551: # Some versions of bash will fail to source /dev/null (special files
2552: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2553: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2554: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2555: $as_echo "$as_me: loading cache $cache_file" >&6;}
2556: case $cache_file in
2557: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2558: *) . "./$cache_file";;
2559: esac
2560: fi
1.14 bertrand 2561: else
1.15 bertrand 2562: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2563: $as_echo "$as_me: creating cache $cache_file" >&6;}
2564: >$cache_file
1.14 bertrand 2565: fi
2566:
1.15 bertrand 2567: # Check that the precious variables saved in the cache have kept the same
2568: # value.
2569: ac_cache_corrupted=false
2570: for ac_var in $ac_precious_vars; do
2571: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2572: eval ac_new_set=\$ac_env_${ac_var}_set
2573: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2574: eval ac_new_val=\$ac_env_${ac_var}_value
2575: case $ac_old_set,$ac_new_set in
2576: set,)
2577: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2578: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2579: ac_cache_corrupted=: ;;
2580: ,set)
2581: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2582: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2583: ac_cache_corrupted=: ;;
2584: ,);;
2585: *)
2586: if test "x$ac_old_val" != "x$ac_new_val"; then
2587: # differences in whitespace do not lead to failure.
2588: ac_old_val_w=`echo x $ac_old_val`
2589: ac_new_val_w=`echo x $ac_new_val`
2590: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2591: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2592: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2593: ac_cache_corrupted=:
2594: else
2595: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2596: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2597: eval $ac_var=\$ac_old_val
2598: fi
2599: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2600: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2601: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2602: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2603: fi;;
2604: esac
2605: # Pass precious variables to config.status.
2606: if test "$ac_new_set" = set; then
2607: case $ac_new_val in
2608: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2609: *) ac_arg=$ac_var=$ac_new_val ;;
2610: esac
2611: case " $ac_configure_args " in
2612: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2613: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2614: esac
1.14 bertrand 2615: fi
2616: done
1.15 bertrand 2617: if $ac_cache_corrupted; then
2618: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2619: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2621: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36 bertrand 2622: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15 bertrand 2623: fi
2624: ## -------------------- ##
2625: ## Main body of script. ##
2626: ## -------------------- ##
1.14 bertrand 2627:
1.15 bertrand 2628: ac_ext=c
2629: ac_cpp='$CPP $CPPFLAGS'
2630: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2631: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2632: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14 bertrand 2633:
2634:
1.15 bertrand 2635: ac_aux_dir=
2636: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36 bertrand 2637: if test -f "$ac_dir/install-sh"; then
2638: ac_aux_dir=$ac_dir
2639: ac_install_sh="$ac_aux_dir/install-sh -c"
2640: break
2641: elif test -f "$ac_dir/install.sh"; then
2642: ac_aux_dir=$ac_dir
2643: ac_install_sh="$ac_aux_dir/install.sh -c"
2644: break
2645: elif test -f "$ac_dir/shtool"; then
2646: ac_aux_dir=$ac_dir
2647: ac_install_sh="$ac_aux_dir/shtool install -c"
2648: break
2649: fi
1.14 bertrand 2650: done
1.15 bertrand 2651: if test -z "$ac_aux_dir"; then
1.36 bertrand 2652: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15 bertrand 2653: fi
1.14 bertrand 2654:
1.15 bertrand 2655: # These three variables are undocumented and unsupported,
2656: # and are intended to be withdrawn in a future Autoconf release.
2657: # They can cause serious problems if a builder's source tree is in a directory
2658: # whose full name contains unusual characters.
2659: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2660: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2661: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1.14 bertrand 2662:
2663:
1.15 bertrand 2664: # Make sure we can run config.sub.
2665: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36 bertrand 2666: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14 bertrand 2667:
1.15 bertrand 2668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2669: $as_echo_n "checking build system type... " >&6; }
1.57 bertrand 2670: if ${ac_cv_build+:} false; then :
1.15 bertrand 2671: $as_echo_n "(cached) " >&6
1.14 bertrand 2672: else
1.15 bertrand 2673: ac_build_alias=$build_alias
2674: test "x$ac_build_alias" = x &&
2675: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2676: test "x$ac_build_alias" = x &&
1.36 bertrand 2677: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15 bertrand 2678: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36 bertrand 2679: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14 bertrand 2680:
2681: fi
1.15 bertrand 2682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2683: $as_echo "$ac_cv_build" >&6; }
2684: case $ac_cv_build in
2685: *-*-*) ;;
1.57 bertrand 2686: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1.15 bertrand 2687: esac
2688: build=$ac_cv_build
2689: ac_save_IFS=$IFS; IFS='-'
2690: set x $ac_cv_build
2691: shift
2692: build_cpu=$1
2693: build_vendor=$2
2694: shift; shift
2695: # Remember, the first character of IFS is used to create $*,
2696: # except with old shells:
2697: build_os=$*
2698: IFS=$ac_save_IFS
2699: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14 bertrand 2700:
2701:
1.15 bertrand 2702: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2703: $as_echo_n "checking host system type... " >&6; }
1.57 bertrand 2704: if ${ac_cv_host+:} false; then :
1.15 bertrand 2705: $as_echo_n "(cached) " >&6
1.14 bertrand 2706: else
1.15 bertrand 2707: if test "x$host_alias" = x; then
2708: ac_cv_host=$ac_cv_build
1.14 bertrand 2709: else
1.15 bertrand 2710: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36 bertrand 2711: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14 bertrand 2712: fi
2713:
2714: fi
1.15 bertrand 2715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2716: $as_echo "$ac_cv_host" >&6; }
2717: case $ac_cv_host in
2718: *-*-*) ;;
1.57 bertrand 2719: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1.15 bertrand 2720: esac
2721: host=$ac_cv_host
2722: ac_save_IFS=$IFS; IFS='-'
2723: set x $ac_cv_host
2724: shift
2725: host_cpu=$1
2726: host_vendor=$2
2727: shift; shift
2728: # Remember, the first character of IFS is used to create $*,
2729: # except with old shells:
2730: host_os=$*
2731: IFS=$ac_save_IFS
2732: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14 bertrand 2733:
2734:
1.15 bertrand 2735: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2736: $as_echo_n "checking target system type... " >&6; }
1.57 bertrand 2737: if ${ac_cv_target+:} false; then :
1.15 bertrand 2738: $as_echo_n "(cached) " >&6
2739: else
2740: if test "x$target_alias" = x; then
2741: ac_cv_target=$ac_cv_host
1.14 bertrand 2742: else
1.15 bertrand 2743: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36 bertrand 2744: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15 bertrand 2745: fi
1.14 bertrand 2746:
2747: fi
1.15 bertrand 2748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2749: $as_echo "$ac_cv_target" >&6; }
2750: case $ac_cv_target in
2751: *-*-*) ;;
1.57 bertrand 2752: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
1.15 bertrand 2753: esac
2754: target=$ac_cv_target
2755: ac_save_IFS=$IFS; IFS='-'
2756: set x $ac_cv_target
2757: shift
2758: target_cpu=$1
2759: target_vendor=$2
2760: shift; shift
2761: # Remember, the first character of IFS is used to create $*,
2762: # except with old shells:
2763: target_os=$*
2764: IFS=$ac_save_IFS
2765: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2766:
1.14 bertrand 2767:
1.15 bertrand 2768: # The aliases save the names the user supplied, while $host etc.
2769: # will get canonicalized.
2770: test -n "$target_alias" &&
2771: test "$program_prefix$program_suffix$program_transform_name" = \
2772: NONENONEs,x,x, &&
2773: program_prefix=${target_alias}-
1.1 bertrand 2774:
1.15 bertrand 2775: am__api_version='1.11'
1.1 bertrand 2776:
1.14 bertrand 2777: # Find a good install program. We prefer a C program (faster),
2778: # so one script is as good as another. But avoid the broken or
2779: # incompatible versions:
2780: # SysV /etc/install, /usr/sbin/install
2781: # SunOS /usr/etc/install
2782: # IRIX /sbin/install
2783: # AIX /bin/install
2784: # AmigaOS /C/install, which installs bootblocks on floppy discs
2785: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2786: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2787: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2788: # OS/2's system install, which has a completely different semantic
2789: # ./install, which can be erroneously created by make from ./install.sh.
1.15 bertrand 2790: # Reject install programs that cannot install multiple files.
2791: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2792: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14 bertrand 2793: if test -z "$INSTALL"; then
1.57 bertrand 2794: if ${ac_cv_path_install+:} false; then :
1.15 bertrand 2795: $as_echo_n "(cached) " >&6
1.14 bertrand 2796: else
2797: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798: for as_dir in $PATH
2799: do
2800: IFS=$as_save_IFS
2801: test -z "$as_dir" && as_dir=.
1.15 bertrand 2802: # Account for people who put trailing slashes in PATH elements.
2803: case $as_dir/ in #((
2804: ./ | .// | /[cC]/* | \
1.14 bertrand 2805: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15 bertrand 2806: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14 bertrand 2807: /usr/ucb/* ) ;;
2808: *)
2809: # OSF1 and SCO ODT 3.0 have their own names for install.
2810: # Don't use installbsd from OSF since it installs stuff as root
2811: # by default.
2812: for ac_prog in ginstall scoinst install; do
2813: for ac_exec_ext in '' $ac_executable_extensions; do
2814: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2815: if test $ac_prog = install &&
2816: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2817: # AIX install. It has an incompatible calling convention.
2818: :
2819: elif test $ac_prog = install &&
2820: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2821: # program-specific install script used by HP pwplus--don't use.
2822: :
2823: else
1.15 bertrand 2824: rm -rf conftest.one conftest.two conftest.dir
2825: echo one > conftest.one
2826: echo two > conftest.two
2827: mkdir conftest.dir
2828: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2829: test -s conftest.one && test -s conftest.two &&
2830: test -s conftest.dir/conftest.one &&
2831: test -s conftest.dir/conftest.two
2832: then
2833: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2834: break 3
2835: fi
1.14 bertrand 2836: fi
2837: fi
2838: done
2839: done
2840: ;;
2841: esac
1.15 bertrand 2842:
2843: done
1.14 bertrand 2844: IFS=$as_save_IFS
1.1 bertrand 2845:
1.15 bertrand 2846: rm -rf conftest.one conftest.two conftest.dir
1.1 bertrand 2847:
1.14 bertrand 2848: fi
2849: if test "${ac_cv_path_install+set}" = set; then
2850: INSTALL=$ac_cv_path_install
2851: else
2852: # As a last resort, use the slow shell script. Don't cache a
2853: # value for INSTALL within a source directory, because that will
2854: # break other packages using the cache if that directory is
2855: # removed, or if the value is a relative name.
2856: INSTALL=$ac_install_sh
2857: fi
2858: fi
1.15 bertrand 2859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2860: $as_echo "$INSTALL" >&6; }
1.1 bertrand 2861:
1.14 bertrand 2862: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2863: # It thinks the first close brace ends the variable substitution.
2864: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1 bertrand 2865:
1.14 bertrand 2866: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 bertrand 2867:
1.14 bertrand 2868: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1 bertrand 2869:
1.15 bertrand 2870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2871: $as_echo_n "checking whether build environment is sane... " >&6; }
2872: # Just in case
2873: sleep 1
2874: echo timestamp > conftest.file
2875: # Reject unsafe characters in $srcdir or the absolute working directory
2876: # name. Accept space and tab only in the latter.
2877: am_lf='
2878: '
2879: case `pwd` in
2880: *[\\\"\#\$\&\'\`$am_lf]*)
1.57 bertrand 2881: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
1.15 bertrand 2882: esac
2883: case $srcdir in
2884: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.57 bertrand 2885: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1.15 bertrand 2886: esac
2887:
2888: # Do `set' in a subshell so we don't clobber the current shell's
2889: # arguments. Must try -L first in case configure is actually a
2890: # symlink; some systems play weird games with the mod time of symlinks
2891: # (eg FreeBSD returns the mod time of the symlink's containing
2892: # directory).
2893: if (
2894: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2895: if test "$*" = "X"; then
2896: # -L didn't work.
2897: set X `ls -t "$srcdir/configure" conftest.file`
2898: fi
2899: rm -f conftest.file
2900: if test "$*" != "X $srcdir/configure conftest.file" \
2901: && test "$*" != "X conftest.file $srcdir/configure"; then
2902:
2903: # If neither matched, then we have a broken ls. This can happen
2904: # if, for instance, CONFIG_SHELL is bash and it inherits a
2905: # broken ls alias from the environment. This has actually
2906: # happened. Such a system could not be considered "sane".
1.36 bertrand 2907: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
1.15 bertrand 2908: alias in your environment" "$LINENO" 5
2909: fi
2910:
2911: test "$2" = conftest.file
2912: )
2913: then
2914: # Ok.
2915: :
1.14 bertrand 2916: else
1.36 bertrand 2917: as_fn_error $? "newly created file is older than distributed files!
1.15 bertrand 2918: Check your system clock" "$LINENO" 5
1.14 bertrand 2919: fi
1.15 bertrand 2920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2921: $as_echo "yes" >&6; }
2922: test "$program_prefix" != NONE &&
2923: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2924: # Use a double $ so make ignores it.
2925: test "$program_suffix" != NONE &&
2926: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2927: # Double any \ or $.
2928: # By default was `s,x,x', remove it if useless.
2929: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2930: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2931:
2932: # expand $ac_aux_dir to an absolute path
2933: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1 bertrand 2934:
1.15 bertrand 2935: if test x"${MISSING+set}" != xset; then
2936: case $am_aux_dir in
2937: *\ * | *\ *)
2938: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14 bertrand 2939: *)
1.15 bertrand 2940: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2941: esac
1.14 bertrand 2942: fi
1.15 bertrand 2943: # Use eval to expand $SHELL
2944: if eval "$MISSING --run true"; then
2945: am_missing_run="$MISSING --run "
1.14 bertrand 2946: else
1.15 bertrand 2947: am_missing_run=
2948: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2949: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2950: fi
2951:
2952: if test x"${install_sh}" != xset; then
2953: case $am_aux_dir in
2954: *\ * | *\ *)
2955: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2956: *)
2957: install_sh="\${SHELL} $am_aux_dir/install-sh"
2958: esac
1.14 bertrand 2959: fi
1.15 bertrand 2960:
2961: # Installed binaries are usually stripped using `strip' when the user
2962: # run `make install-strip'. However `strip' might not be the right
2963: # tool to use in cross-compilation environments, therefore Automake
2964: # will honor the `STRIP' environment variable to overrule this program.
2965: if test "$cross_compiling" != no; then
2966: if test -n "$ac_tool_prefix"; then
2967: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2968: set dummy ${ac_tool_prefix}strip; ac_word=$2
2969: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 2971: if ${ac_cv_prog_STRIP+:} false; then :
1.15 bertrand 2972: $as_echo_n "(cached) " >&6
1.14 bertrand 2973: else
1.15 bertrand 2974: if test -n "$STRIP"; then
2975: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14 bertrand 2976: else
2977: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978: for as_dir in $PATH
2979: do
2980: IFS=$as_save_IFS
2981: test -z "$as_dir" && as_dir=.
1.15 bertrand 2982: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 2983: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 2984: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2985: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 2986: break 2
2987: fi
2988: done
1.15 bertrand 2989: done
1.14 bertrand 2990: IFS=$as_save_IFS
1.1 bertrand 2991:
1.14 bertrand 2992: fi
2993: fi
1.15 bertrand 2994: STRIP=$ac_cv_prog_STRIP
2995: if test -n "$STRIP"; then
2996: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2997: $as_echo "$STRIP" >&6; }
1.14 bertrand 2998: else
1.15 bertrand 2999: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000: $as_echo "no" >&6; }
1.14 bertrand 3001: fi
1.1 bertrand 3002:
3003:
1.14 bertrand 3004: fi
1.15 bertrand 3005: if test -z "$ac_cv_prog_STRIP"; then
3006: ac_ct_STRIP=$STRIP
3007: # Extract the first word of "strip", so it can be a program name with args.
3008: set dummy strip; ac_word=$2
3009: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 3011: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
1.15 bertrand 3012: $as_echo_n "(cached) " >&6
1.14 bertrand 3013: else
1.15 bertrand 3014: if test -n "$ac_ct_STRIP"; then
3015: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 bertrand 3016: else
1.14 bertrand 3017: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3018: for as_dir in $PATH
1.1 bertrand 3019: do
1.14 bertrand 3020: IFS=$as_save_IFS
3021: test -z "$as_dir" && as_dir=.
1.15 bertrand 3022: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 3023: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3024: ac_cv_prog_ac_ct_STRIP="strip"
3025: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 3026: break 2
1.1 bertrand 3027: fi
3028: done
1.15 bertrand 3029: done
1.14 bertrand 3030: IFS=$as_save_IFS
1.1 bertrand 3031:
1.14 bertrand 3032: fi
3033: fi
1.15 bertrand 3034: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3035: if test -n "$ac_ct_STRIP"; then
3036: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3037: $as_echo "$ac_ct_STRIP" >&6; }
1.1 bertrand 3038: else
1.15 bertrand 3039: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040: $as_echo "no" >&6; }
1.1 bertrand 3041: fi
3042:
1.15 bertrand 3043: if test "x$ac_ct_STRIP" = x; then
3044: STRIP=":"
1.14 bertrand 3045: else
3046: case $cross_compiling:$ac_tool_warned in
3047: yes:)
1.15 bertrand 3048: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3049: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14 bertrand 3050: ac_tool_warned=yes ;;
3051: esac
1.15 bertrand 3052: STRIP=$ac_ct_STRIP
1.1 bertrand 3053: fi
1.14 bertrand 3054: else
1.15 bertrand 3055: STRIP="$ac_cv_prog_STRIP"
1.1 bertrand 3056: fi
3057:
1.15 bertrand 3058: fi
3059: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1 bertrand 3060:
1.15 bertrand 3061: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3062: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3063: if test -z "$MKDIR_P"; then
1.57 bertrand 3064: if ${ac_cv_path_mkdir+:} false; then :
1.15 bertrand 3065: $as_echo_n "(cached) " >&6
1.14 bertrand 3066: else
1.15 bertrand 3067: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14 bertrand 3069: do
3070: IFS=$as_save_IFS
3071: test -z "$as_dir" && as_dir=.
1.15 bertrand 3072: for ac_prog in mkdir gmkdir; do
3073: for ac_exec_ext in '' $ac_executable_extensions; do
3074: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3075: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3076: 'mkdir (GNU coreutils) '* | \
3077: 'mkdir (coreutils) '* | \
3078: 'mkdir (fileutils) '4.1*)
3079: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3080: break 3;;
3081: esac
3082: done
3083: done
3084: done
1.14 bertrand 3085: IFS=$as_save_IFS
1.1 bertrand 3086:
3087: fi
1.15 bertrand 3088:
3089: test -d ./--version && rmdir ./--version
3090: if test "${ac_cv_path_mkdir+set}" = set; then
3091: MKDIR_P="$ac_cv_path_mkdir -p"
3092: else
3093: # As a last resort, use the slow shell script. Don't cache a
3094: # value for MKDIR_P within a source directory, because that will
3095: # break other packages using the cache if that directory is
3096: # removed, or if the value is a relative name.
3097: MKDIR_P="$ac_install_sh -d"
3098: fi
1.14 bertrand 3099: fi
1.15 bertrand 3100: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3101: $as_echo "$MKDIR_P" >&6; }
1.1 bertrand 3102:
1.15 bertrand 3103: mkdir_p="$MKDIR_P"
3104: case $mkdir_p in
3105: [\\/$]* | ?:[\\/]*) ;;
3106: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3107: esac
1.1 bertrand 3108:
1.15 bertrand 3109: for ac_prog in gawk mawk nawk awk
3110: do
3111: # Extract the first word of "$ac_prog", so it can be a program name with args.
3112: set dummy $ac_prog; ac_word=$2
3113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 3115: if ${ac_cv_prog_AWK+:} false; then :
1.15 bertrand 3116: $as_echo_n "(cached) " >&6
1.1 bertrand 3117: else
1.15 bertrand 3118: if test -n "$AWK"; then
3119: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1 bertrand 3120: else
1.14 bertrand 3121: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122: for as_dir in $PATH
3123: do
3124: IFS=$as_save_IFS
3125: test -z "$as_dir" && as_dir=.
1.15 bertrand 3126: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 3127: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3128: ac_cv_prog_AWK="$ac_prog"
3129: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 3130: break 2
3131: fi
3132: done
1.15 bertrand 3133: done
1.14 bertrand 3134: IFS=$as_save_IFS
3135:
3136: fi
1.1 bertrand 3137: fi
1.15 bertrand 3138: AWK=$ac_cv_prog_AWK
3139: if test -n "$AWK"; then
3140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3141: $as_echo "$AWK" >&6; }
1.14 bertrand 3142: else
1.15 bertrand 3143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144: $as_echo "no" >&6; }
1.1 bertrand 3145: fi
3146:
3147:
1.15 bertrand 3148: test -n "$AWK" && break
3149: done
1.1 bertrand 3150:
1.15 bertrand 3151: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3152: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3153: set x ${MAKE-make}
3154: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57 bertrand 3155: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15 bertrand 3156: $as_echo_n "(cached) " >&6
1.14 bertrand 3157: else
1.15 bertrand 3158: cat >conftest.make <<\_ACEOF
3159: SHELL = /bin/sh
3160: all:
3161: @echo '@@@%%%=$(MAKE)=@@@%%%'
3162: _ACEOF
1.36 bertrand 3163: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 3164: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3165: *@@@%%%=?*=@@@%%%*)
3166: eval ac_cv_prog_make_${ac_make}_set=yes;;
3167: *)
3168: eval ac_cv_prog_make_${ac_make}_set=no;;
3169: esac
3170: rm -f conftest.make
3171: fi
3172: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3174: $as_echo "yes" >&6; }
3175: SET_MAKE=
1.1 bertrand 3176: else
1.15 bertrand 3177: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178: $as_echo "no" >&6; }
3179: SET_MAKE="MAKE=${MAKE-make}"
3180: fi
1.1 bertrand 3181:
1.15 bertrand 3182: rm -rf .tst 2>/dev/null
3183: mkdir .tst 2>/dev/null
3184: if test -d .tst; then
3185: am__leading_dot=.
3186: else
3187: am__leading_dot=_
1.14 bertrand 3188: fi
1.15 bertrand 3189: rmdir .tst 2>/dev/null
3190:
3191: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3192: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3193: # is not polluted with repeated "-I."
3194: am__isrc=' -I$(srcdir)'
3195: # test to see if srcdir already configured
3196: if test -f $srcdir/config.status; then
1.36 bertrand 3197: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15 bertrand 3198: fi
1.1 bertrand 3199: fi
1.15 bertrand 3200:
3201: # test whether we have cygpath
3202: if test -z "$CYGPATH_W"; then
3203: if (cygpath --version) >/dev/null 2>/dev/null; then
3204: CYGPATH_W='cygpath -w'
3205: else
3206: CYGPATH_W=echo
3207: fi
1.1 bertrand 3208: fi
3209:
3210:
1.15 bertrand 3211: # Define the identity of the package.
3212: PACKAGE='rpl'
1.86 bertrand 3213: VERSION='4.1.4'
1.15 bertrand 3214:
3215:
3216: cat >>confdefs.h <<_ACEOF
3217: #define PACKAGE "$PACKAGE"
3218: _ACEOF
3219:
3220:
3221: cat >>confdefs.h <<_ACEOF
3222: #define VERSION "$VERSION"
3223: _ACEOF
3224:
3225: # Some tools Automake needs.
3226:
3227: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3228:
3229:
3230: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3231:
3232:
3233: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3234:
3235:
3236: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3237:
3238:
3239: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3240:
3241: # We need awk for the "check" target. The system "awk" is bad on
3242: # some platforms.
3243: # Always define AMTAR for backward compatibility.
3244:
3245: AMTAR=${AMTAR-"${am_missing_run}tar"}
3246:
3247: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3248:
3249:
3250:
3251:
1.1 bertrand 3252:
3253:
1.15 bertrand 3254: ac_config_headers="$ac_config_headers rplconfig.h"
1.1 bertrand 3255:
3256:
1.54 bertrand 3257: NCURSES=ncurses-5.9
1.50 bertrand 3258: READLINE=readline-6.2
1.30 bertrand 3259: UNITS=units-1.88
1.57 bertrand 3260: GSL=gsl-1.15
1.72 bertrand 3261: GPP=gpp-3.0
1.52 bertrand 3262: GNUPLOT=gnuplot-4.4.3
1.15 bertrand 3263: FILE=file-5.03
3264: ICONV=libiconv-1.13.1
1.87 ! bertrand 3265: SQLITE=sqlite-3.7.8
1.74 bertrand 3266: OPENSSL=openssl-1.0.0e
1.79 bertrand 3267: OPENMOTIF=openmotif-2.3.3
1.80 bertrand 3268: LIBXPM=libXpm-3.5.9
1.76 bertrand 3269: SIGSEGV=libsigsegv-2.6
1.14 bertrand 3270:
1.75 bertrand 3271: GMP=gmp-5.0.2
1.55 bertrand 3272: MPFR=mpfr-3.0.1
1.56 bertrand 3273: NTL=ntl-5.5.2
3274: COCOA=CoCoALib-0.9943
1.76 bertrand 3275: PARI=pari-2.5.0
1.67 bertrand 3276: GIAC=giac-0.9.3
1.55 bertrand 3277:
1.15 bertrand 3278: ac_ext=c
3279: ac_cpp='$CPP $CPPFLAGS'
3280: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3283: if test -n "$ac_tool_prefix"; then
1.23 bertrand 3284: for ac_prog in gcc
1.15 bertrand 3285: do
3286: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3287: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3288: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3289: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 3290: if ${ac_cv_prog_CC+:} false; then :
1.15 bertrand 3291: $as_echo_n "(cached) " >&6
1.1 bertrand 3292: else
1.15 bertrand 3293: if test -n "$CC"; then
3294: ac_cv_prog_CC="$CC" # Let the user override the test.
1.1 bertrand 3295: else
3296: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297: for as_dir in $PATH
3298: do
3299: IFS=$as_save_IFS
3300: test -z "$as_dir" && as_dir=.
1.15 bertrand 3301: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 bertrand 3302: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3303: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3304: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 bertrand 3305: break 2
3306: fi
3307: done
1.15 bertrand 3308: done
1.1 bertrand 3309: IFS=$as_save_IFS
3310:
3311: fi
3312: fi
1.15 bertrand 3313: CC=$ac_cv_prog_CC
3314: if test -n "$CC"; then
3315: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3316: $as_echo "$CC" >&6; }
1.1 bertrand 3317: else
1.15 bertrand 3318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319: $as_echo "no" >&6; }
1.1 bertrand 3320: fi
3321:
3322:
1.15 bertrand 3323: test -n "$CC" && break
3324: done
3325: fi
3326: if test -z "$CC"; then
3327: ac_ct_CC=$CC
1.23 bertrand 3328: for ac_prog in gcc
1.15 bertrand 3329: do
3330: # Extract the first word of "$ac_prog", so it can be a program name with args.
3331: set dummy $ac_prog; ac_word=$2
3332: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 3334: if ${ac_cv_prog_ac_ct_CC+:} false; then :
1.15 bertrand 3335: $as_echo_n "(cached) " >&6
1.1 bertrand 3336: else
1.15 bertrand 3337: if test -n "$ac_ct_CC"; then
3338: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 bertrand 3339: else
3340: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341: for as_dir in $PATH
3342: do
3343: IFS=$as_save_IFS
3344: test -z "$as_dir" && as_dir=.
1.15 bertrand 3345: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 bertrand 3346: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3347: ac_cv_prog_ac_ct_CC="$ac_prog"
3348: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 bertrand 3349: break 2
3350: fi
3351: done
1.15 bertrand 3352: done
1.1 bertrand 3353: IFS=$as_save_IFS
3354:
3355: fi
3356: fi
1.15 bertrand 3357: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3358: if test -n "$ac_ct_CC"; then
3359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3360: $as_echo "$ac_ct_CC" >&6; }
1.1 bertrand 3361: else
1.15 bertrand 3362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363: $as_echo "no" >&6; }
1.1 bertrand 3364: fi
3365:
3366:
1.15 bertrand 3367: test -n "$ac_ct_CC" && break
3368: done
1.1 bertrand 3369:
1.15 bertrand 3370: if test "x$ac_ct_CC" = x; then
3371: CC=""
3372: else
3373: case $cross_compiling:$ac_tool_warned in
3374: yes:)
3375: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3376: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3377: ac_tool_warned=yes ;;
3378: esac
3379: CC=$ac_ct_CC
1.1 bertrand 3380: fi
3381: fi
3382:
3383:
1.15 bertrand 3384: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3386: as_fn_error $? "no acceptable C compiler found in \$PATH
1.57 bertrand 3387: See \`config.log' for more details" "$LINENO" 5; }
1.1 bertrand 3388:
1.15 bertrand 3389: # Provide some information about the compiler.
3390: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3391: set X $ac_compile
3392: ac_compiler=$2
3393: for ac_option in --version -v -V -qversion; do
3394: { { ac_try="$ac_compiler $ac_option >&5"
3395: case "(($ac_try" in
3396: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397: *) ac_try_echo=$ac_try;;
3398: esac
3399: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3400: $as_echo "$ac_try_echo"; } >&5
3401: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3402: ac_status=$?
3403: if test -s conftest.err; then
3404: sed '10a\
3405: ... rest of stderr output deleted ...
3406: 10q' conftest.err >conftest.er1
3407: cat conftest.er1 >&5
1.1 bertrand 3408: fi
1.15 bertrand 3409: rm -f conftest.er1 conftest.err
3410: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411: test $ac_status = 0; }
1.1 bertrand 3412: done
3413:
1.15 bertrand 3414: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415: /* end confdefs.h. */
3416:
3417: int
3418: main ()
3419: {
1.14 bertrand 3420:
1.15 bertrand 3421: ;
3422: return 0;
3423: }
3424: _ACEOF
3425: ac_clean_files_save=$ac_clean_files
3426: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3427: # Try to create an executable without -o first, disregard a.out.
3428: # It will help us diagnose broken compilers, and finding out an intuition
3429: # of exeext.
3430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3431: $as_echo_n "checking whether the C compiler works... " >&6; }
3432: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14 bertrand 3433:
1.15 bertrand 3434: # The possible output files:
3435: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1 bertrand 3436:
1.15 bertrand 3437: ac_rmfiles=
3438: for ac_file in $ac_files
1.1 bertrand 3439: do
1.15 bertrand 3440: case $ac_file in
3441: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3442: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3443: esac
1.1 bertrand 3444: done
1.15 bertrand 3445: rm -f $ac_rmfiles
3446:
3447: if { { ac_try="$ac_link_default"
3448: case "(($ac_try" in
3449: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450: *) ac_try_echo=$ac_try;;
3451: esac
3452: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453: $as_echo "$ac_try_echo"; } >&5
3454: (eval "$ac_link_default") 2>&5
3455: ac_status=$?
3456: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457: test $ac_status = 0; }; then :
3458: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3459: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3460: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3461: # so that the user can short-circuit this test for compilers unknown to
3462: # Autoconf.
3463: for ac_file in $ac_files ''
3464: do
3465: test -f "$ac_file" || continue
3466: case $ac_file in
3467: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3468: ;;
3469: [ab].out )
3470: # We found the default executable, but exeext='' is most
3471: # certainly right.
3472: break;;
3473: *.* )
3474: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3475: then :; else
3476: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3477: fi
3478: # We set ac_cv_exeext here because the later test for it is not
3479: # safe: cross compilers may not add the suffix if given an `-o'
3480: # argument, so we may need to know it at that point already.
3481: # Even if this section looks crufty: it has the advantage of
3482: # actually working.
3483: break;;
3484: * )
3485: break;;
3486: esac
1.14 bertrand 3487: done
1.15 bertrand 3488: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1 bertrand 3489:
1.14 bertrand 3490: else
1.15 bertrand 3491: ac_file=''
1.1 bertrand 3492: fi
1.15 bertrand 3493: if test -z "$ac_file"; then :
3494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495: $as_echo "no" >&6; }
3496: $as_echo "$as_me: failed program was:" >&5
3497: sed 's/^/| /' conftest.$ac_ext >&5
3498:
3499: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3500: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3501: as_fn_error 77 "C compiler cannot create executables
1.57 bertrand 3502: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 3503: else
3504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3505: $as_echo "yes" >&6; }
3506: fi
3507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3508: $as_echo_n "checking for C compiler default output file name... " >&6; }
3509: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3510: $as_echo "$ac_file" >&6; }
3511: ac_exeext=$ac_cv_exeext
1.1 bertrand 3512:
1.15 bertrand 3513: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3514: ac_clean_files=$ac_clean_files_save
3515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3516: $as_echo_n "checking for suffix of executables... " >&6; }
3517: if { { ac_try="$ac_link"
3518: case "(($ac_try" in
3519: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520: *) ac_try_echo=$ac_try;;
3521: esac
3522: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3523: $as_echo "$ac_try_echo"; } >&5
3524: (eval "$ac_link") 2>&5
3525: ac_status=$?
3526: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3527: test $ac_status = 0; }; then :
3528: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3529: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3530: # work properly (i.e., refer to `conftest.exe'), while it won't with
3531: # `rm'.
3532: for ac_file in conftest.exe conftest conftest.*; do
3533: test -f "$ac_file" || continue
3534: case $ac_file in
3535: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3536: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3537: break;;
3538: * ) break;;
3539: esac
3540: done
1.14 bertrand 3541: else
1.15 bertrand 3542: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3543: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3544: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1.57 bertrand 3545: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 3546: fi
3547: rm -f conftest conftest$ac_cv_exeext
3548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3549: $as_echo "$ac_cv_exeext" >&6; }
3550:
3551: rm -f conftest.$ac_ext
3552: EXEEXT=$ac_cv_exeext
3553: ac_exeext=$EXEEXT
3554: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 3555: /* end confdefs.h. */
1.15 bertrand 3556: #include <stdio.h>
1.14 bertrand 3557: int
3558: main ()
3559: {
1.15 bertrand 3560: FILE *f = fopen ("conftest.out", "w");
3561: return ferror (f) || fclose (f) != 0;
3562:
1.14 bertrand 3563: ;
3564: return 0;
3565: }
3566: _ACEOF
1.15 bertrand 3567: ac_clean_files="$ac_clean_files conftest.out"
3568: # Check that the compiler produces executables we can run. If not, either
3569: # the compiler is broken, or we cross compile.
3570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3571: $as_echo_n "checking whether we are cross compiling... " >&6; }
3572: if test "$cross_compiling" != yes; then
3573: { { ac_try="$ac_link"
1.1 bertrand 3574: case "(($ac_try" in
3575: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576: *) ac_try_echo=$ac_try;;
3577: esac
1.15 bertrand 3578: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579: $as_echo "$ac_try_echo"; } >&5
3580: (eval "$ac_link") 2>&5
3581: ac_status=$?
3582: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583: test $ac_status = 0; }
3584: if { ac_try='./conftest$ac_cv_exeext'
3585: { { case "(($ac_try" in
3586: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587: *) ac_try_echo=$ac_try;;
3588: esac
3589: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590: $as_echo "$ac_try_echo"; } >&5
3591: (eval "$ac_try") 2>&5
1.1 bertrand 3592: ac_status=$?
1.15 bertrand 3593: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594: test $ac_status = 0; }; }; then
3595: cross_compiling=no
3596: else
3597: if test "$cross_compiling" = maybe; then
3598: cross_compiling=yes
3599: else
3600: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3601: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3602: as_fn_error $? "cannot run C compiled programs.
1.15 bertrand 3603: If you meant to cross compile, use \`--host'.
1.57 bertrand 3604: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 3605: fi
3606: fi
1.14 bertrand 3607: fi
1.15 bertrand 3608: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3609: $as_echo "$cross_compiling" >&6; }
1.14 bertrand 3610:
1.15 bertrand 3611: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3612: ac_clean_files=$ac_clean_files_save
3613: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3614: $as_echo_n "checking for suffix of object files... " >&6; }
1.57 bertrand 3615: if ${ac_cv_objext+:} false; then :
1.15 bertrand 3616: $as_echo_n "(cached) " >&6
1.14 bertrand 3617: else
1.15 bertrand 3618: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 3619: /* end confdefs.h. */
3620:
3621: int
3622: main ()
3623: {
1.15 bertrand 3624:
1.1 bertrand 3625: ;
3626: return 0;
3627: }
3628: _ACEOF
1.15 bertrand 3629: rm -f conftest.o conftest.obj
3630: if { { ac_try="$ac_compile"
1.1 bertrand 3631: case "(($ac_try" in
3632: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633: *) ac_try_echo=$ac_try;;
3634: esac
1.15 bertrand 3635: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636: $as_echo "$ac_try_echo"; } >&5
3637: (eval "$ac_compile") 2>&5
1.1 bertrand 3638: ac_status=$?
1.15 bertrand 3639: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640: test $ac_status = 0; }; then :
3641: for ac_file in conftest.o conftest.obj conftest.*; do
3642: test -f "$ac_file" || continue;
3643: case $ac_file in
3644: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3645: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3646: break;;
3647: esac
3648: done
1.14 bertrand 3649: else
1.15 bertrand 3650: $as_echo "$as_me: failed program was:" >&5
1.14 bertrand 3651: sed 's/^/| /' conftest.$ac_ext >&5
3652:
1.15 bertrand 3653: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3654: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3655: as_fn_error $? "cannot compute suffix of object files: cannot compile
1.57 bertrand 3656: See \`config.log' for more details" "$LINENO" 5; }
1.14 bertrand 3657: fi
1.15 bertrand 3658: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3659: fi
3660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3661: $as_echo "$ac_cv_objext" >&6; }
3662: OBJEXT=$ac_cv_objext
3663: ac_objext=$OBJEXT
3664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3665: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
1.57 bertrand 3666: if ${ac_cv_c_compiler_gnu+:} false; then :
1.15 bertrand 3667: $as_echo_n "(cached) " >&6
3668: else
3669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3670: /* end confdefs.h. */
3671:
3672: int
3673: main ()
3674: {
3675: #ifndef __GNUC__
3676: choke me
3677: #endif
1.14 bertrand 3678:
1.15 bertrand 3679: ;
3680: return 0;
3681: }
3682: _ACEOF
3683: if ac_fn_c_try_compile "$LINENO"; then :
3684: ac_compiler_gnu=yes
1.14 bertrand 3685: else
1.15 bertrand 3686: ac_compiler_gnu=no
1.14 bertrand 3687: fi
1.15 bertrand 3688: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14 bertrand 3690:
1.15 bertrand 3691: fi
3692: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3693: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3694: if test $ac_compiler_gnu = yes; then
3695: GCC=yes
1.14 bertrand 3696: else
1.15 bertrand 3697: GCC=
1.14 bertrand 3698: fi
1.15 bertrand 3699: ac_test_CFLAGS=${CFLAGS+set}
3700: ac_save_CFLAGS=$CFLAGS
3701: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3702: $as_echo_n "checking whether $CC accepts -g... " >&6; }
1.57 bertrand 3703: if ${ac_cv_prog_cc_g+:} false; then :
1.15 bertrand 3704: $as_echo_n "(cached) " >&6
3705: else
3706: ac_save_c_werror_flag=$ac_c_werror_flag
3707: ac_c_werror_flag=yes
3708: ac_cv_prog_cc_g=no
3709: CFLAGS="-g"
3710: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711: /* end confdefs.h. */
1.14 bertrand 3712:
1.15 bertrand 3713: int
3714: main ()
3715: {
1.14 bertrand 3716:
1.15 bertrand 3717: ;
3718: return 0;
3719: }
3720: _ACEOF
3721: if ac_fn_c_try_compile "$LINENO"; then :
3722: ac_cv_prog_cc_g=yes
3723: else
3724: CFLAGS=""
3725: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726: /* end confdefs.h. */
1.14 bertrand 3727:
1.15 bertrand 3728: int
3729: main ()
3730: {
1.14 bertrand 3731:
1.15 bertrand 3732: ;
3733: return 0;
3734: }
3735: _ACEOF
3736: if ac_fn_c_try_compile "$LINENO"; then :
1.14 bertrand 3737:
1.15 bertrand 3738: else
3739: ac_c_werror_flag=$ac_save_c_werror_flag
3740: CFLAGS="-g"
3741: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742: /* end confdefs.h. */
1.14 bertrand 3743:
1.15 bertrand 3744: int
3745: main ()
3746: {
1.14 bertrand 3747:
1.15 bertrand 3748: ;
3749: return 0;
3750: }
3751: _ACEOF
3752: if ac_fn_c_try_compile "$LINENO"; then :
3753: ac_cv_prog_cc_g=yes
3754: fi
3755: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756: fi
3757: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758: fi
3759: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3760: ac_c_werror_flag=$ac_save_c_werror_flag
3761: fi
3762: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3763: $as_echo "$ac_cv_prog_cc_g" >&6; }
3764: if test "$ac_test_CFLAGS" = set; then
3765: CFLAGS=$ac_save_CFLAGS
3766: elif test $ac_cv_prog_cc_g = yes; then
3767: if test "$GCC" = yes; then
3768: CFLAGS="-g -O2"
3769: else
3770: CFLAGS="-g"
3771: fi
3772: else
3773: if test "$GCC" = yes; then
3774: CFLAGS="-O2"
3775: else
3776: CFLAGS=
3777: fi
3778: fi
3779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3780: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
1.57 bertrand 3781: if ${ac_cv_prog_cc_c89+:} false; then :
1.15 bertrand 3782: $as_echo_n "(cached) " >&6
1.1 bertrand 3783: else
1.15 bertrand 3784: ac_cv_prog_cc_c89=no
3785: ac_save_CC=$CC
3786: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 3787: /* end confdefs.h. */
1.15 bertrand 3788: #include <stdarg.h>
3789: #include <stdio.h>
3790: #include <sys/types.h>
3791: #include <sys/stat.h>
3792: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3793: struct buf { int x; };
3794: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3795: static char *e (p, i)
3796: char **p;
3797: int i;
3798: {
3799: return p[i];
3800: }
3801: static char *f (char * (*g) (char **, int), char **p, ...)
3802: {
3803: char *s;
3804: va_list v;
3805: va_start (v,p);
3806: s = g (p, va_arg (v,int));
3807: va_end (v);
3808: return s;
3809: }
3810:
3811: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3812: function prototypes and stuff, but not '\xHH' hex character constants.
3813: These don't provoke an error unfortunately, instead are silently treated
3814: as 'x'. The following induces an error, until -std is added to get
3815: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3816: array size at least. It's necessary to write '\x00'==0 to get something
3817: that's true only with -std. */
3818: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14 bertrand 3819:
1.15 bertrand 3820: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3821: inside strings and character constants. */
3822: #define FOO(x) 'x'
3823: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1 bertrand 3824:
1.15 bertrand 3825: int test (int i, double x);
3826: struct s1 {int (*f) (int a);};
3827: struct s2 {int (*f) (double a);};
3828: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3829: int argc;
3830: char **argv;
1.14 bertrand 3831: int
3832: main ()
3833: {
1.15 bertrand 3834: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.14 bertrand 3835: ;
3836: return 0;
3837: }
3838: _ACEOF
1.15 bertrand 3839: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3840: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3841: do
3842: CC="$ac_save_CC $ac_arg"
3843: if ac_fn_c_try_compile "$LINENO"; then :
3844: ac_cv_prog_cc_c89=$ac_arg
3845: fi
3846: rm -f core conftest.err conftest.$ac_objext
3847: test "x$ac_cv_prog_cc_c89" != "xno" && break
3848: done
3849: rm -f conftest.$ac_ext
3850: CC=$ac_save_CC
3851:
3852: fi
3853: # AC_CACHE_VAL
3854: case "x$ac_cv_prog_cc_c89" in
3855: x)
3856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3857: $as_echo "none needed" >&6; } ;;
3858: xno)
3859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3860: $as_echo "unsupported" >&6; } ;;
3861: *)
3862: CC="$CC $ac_cv_prog_cc_c89"
3863: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3864: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1 bertrand 3865: esac
1.15 bertrand 3866: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14 bertrand 3867:
3868: fi
3869:
1.15 bertrand 3870: ac_ext=c
3871: ac_cpp='$CPP $CPPFLAGS'
3872: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3875: DEPDIR="${am__leading_dot}deps"
3876:
3877: ac_config_commands="$ac_config_commands depfiles"
3878:
3879:
3880: am_make=${MAKE-make}
3881: cat > confinc << 'END'
3882: am__doit:
3883: @echo this is the am__doit target
3884: .PHONY: am__doit
3885: END
3886: # If we don't find an include directive, just comment out the code.
3887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3888: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3889: am__include="#"
3890: am__quote=
3891: _am_result=none
3892: # First try GNU make style include.
3893: echo "include confinc" > confmf
3894: # Ignore all kinds of additional output from `make'.
3895: case `$am_make -s -f confmf 2> /dev/null` in #(
3896: *the\ am__doit\ target*)
3897: am__include=include
3898: am__quote=
3899: _am_result=GNU
3900: ;;
3901: esac
3902: # Now try BSD make style include.
3903: if test "$am__include" = "#"; then
3904: echo '.include "confinc"' > confmf
3905: case `$am_make -s -f confmf 2> /dev/null` in #(
3906: *the\ am__doit\ target*)
3907: am__include=.include
3908: am__quote="\""
3909: _am_result=BSD
3910: ;;
3911: esac
1.14 bertrand 3912: fi
3913:
3914:
1.15 bertrand 3915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3916: $as_echo "$_am_result" >&6; }
3917: rm -f confinc confmf
3918:
3919: # Check whether --enable-dependency-tracking was given.
3920: if test "${enable_dependency_tracking+set}" = set; then :
3921: enableval=$enable_dependency_tracking;
3922: fi
3923:
3924: if test "x$enable_dependency_tracking" != xno; then
3925: am_depcomp="$ac_aux_dir/depcomp"
3926: AMDEPBACKSLASH='\'
3927: fi
3928: if test "x$enable_dependency_tracking" != xno; then
3929: AMDEP_TRUE=
3930: AMDEP_FALSE='#'
1.1 bertrand 3931: else
1.15 bertrand 3932: AMDEP_TRUE='#'
3933: AMDEP_FALSE=
1.14 bertrand 3934: fi
1.1 bertrand 3935:
1.14 bertrand 3936:
3937:
1.15 bertrand 3938: depcc="$CC" am_compiler_list=
1.14 bertrand 3939:
1.15 bertrand 3940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3941: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57 bertrand 3942: if ${am_cv_CC_dependencies_compiler_type+:} false; then :
1.15 bertrand 3943: $as_echo_n "(cached) " >&6
1.14 bertrand 3944: else
1.15 bertrand 3945: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3946: # We make a subdir and do the tests there. Otherwise we can end up
3947: # making bogus files that we don't know about and never remove. For
3948: # instance it was reported that on HP-UX the gcc test will end up
3949: # making a dummy file named `D' -- because `-MD' means `put the output
3950: # in D'.
3951: mkdir conftest.dir
3952: # Copy depcomp to subdir because otherwise we won't find it if we're
3953: # using a relative directory.
3954: cp "$am_depcomp" conftest.dir
3955: cd conftest.dir
3956: # We will build objects and dependencies in a subdirectory because
3957: # it helps to detect inapplicable dependency modes. For instance
3958: # both Tru64's cc and ICC support -MD to output dependencies as a
3959: # side effect of compilation, but ICC will put the dependencies in
3960: # the current directory while Tru64 will put them in the object
3961: # directory.
3962: mkdir sub
1.14 bertrand 3963:
1.15 bertrand 3964: am_cv_CC_dependencies_compiler_type=none
3965: if test "$am_compiler_list" = ""; then
3966: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3967: fi
3968: am__universal=false
3969: case " $depcc " in #(
3970: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3971: esac
1.14 bertrand 3972:
1.15 bertrand 3973: for depmode in $am_compiler_list; do
3974: # Setup a source with many dependencies, because some compilers
3975: # like to wrap large dependency lists on column 80 (with \), and
3976: # we should not choose a depcomp mode which is confused by this.
3977: #
3978: # We need to recreate these files for each test, as the compiler may
3979: # overwrite some of them when testing with obscure command lines.
3980: # This happens at least with the AIX C compiler.
3981: : > sub/conftest.c
3982: for i in 1 2 3 4 5 6; do
3983: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3984: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3985: # Solaris 8's {/usr,}/bin/sh.
3986: touch sub/conftst$i.h
3987: done
3988: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14 bertrand 3989:
1.15 bertrand 3990: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3991: # mode. It turns out that the SunPro C++ compiler does not properly
3992: # handle `-M -o', and we need to detect this. Also, some Intel
3993: # versions had trouble with output in subdirs
3994: am__obj=sub/conftest.${OBJEXT-o}
3995: am__minus_obj="-o $am__obj"
3996: case $depmode in
3997: gcc)
3998: # This depmode causes a compiler race in universal mode.
3999: test "$am__universal" = false || continue
4000: ;;
4001: nosideeffect)
4002: # after this tag, mechanisms are not by side-effect, so they'll
4003: # only be used when explicitly requested
4004: if test "x$enable_dependency_tracking" = xyes; then
4005: continue
4006: else
4007: break
4008: fi
4009: ;;
4010: msvisualcpp | msvcmsys)
4011: # This compiler won't grok `-c -o', but also, the minuso test has
4012: # not run yet. These depmodes are late enough in the game, and
4013: # so weak that their functioning should not be impacted.
4014: am__obj=conftest.${OBJEXT-o}
4015: am__minus_obj=
4016: ;;
4017: none) break ;;
4018: esac
4019: if depmode=$depmode \
4020: source=sub/conftest.c object=$am__obj \
4021: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4022: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4023: >/dev/null 2>conftest.err &&
4024: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4025: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4026: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4027: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4028: # icc doesn't choke on unknown options, it will just issue warnings
4029: # or remarks (even with -Werror). So we grep stderr for any message
4030: # that says an option was ignored or not supported.
4031: # When given -MP, icc 7.0 and 7.1 complain thusly:
4032: # icc: Command line warning: ignoring option '-M'; no argument required
4033: # The diagnosis changed in icc 8.0:
4034: # icc: Command line remark: option '-MP' not supported
4035: if (grep 'ignoring option' conftest.err ||
4036: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4037: am_cv_CC_dependencies_compiler_type=$depmode
4038: break
4039: fi
4040: fi
4041: done
1.14 bertrand 4042:
1.15 bertrand 4043: cd ..
4044: rm -rf conftest.dir
1.14 bertrand 4045: else
1.15 bertrand 4046: am_cv_CC_dependencies_compiler_type=none
1.1 bertrand 4047: fi
4048:
1.15 bertrand 4049: fi
4050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4051: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4052: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14 bertrand 4053:
1.15 bertrand 4054: if
4055: test "x$enable_dependency_tracking" != xno \
4056: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4057: am__fastdepCC_TRUE=
4058: am__fastdepCC_FALSE='#'
1.1 bertrand 4059: else
1.15 bertrand 4060: am__fastdepCC_TRUE='#'
4061: am__fastdepCC_FALSE=
4062: fi
4063:
1.1 bertrand 4064:
4065:
1.30 bertrand 4066: EXT_SQL=
4067:
1.15 bertrand 4068: if test x"$CC" != x""; then
4069: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4070: awk -F. '{ printf("%s", $1);}'`
4071: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4072: awk -F. '{ printf("%s", $2);}'`
1.23 bertrand 4073: if test $GCC_VERSION_MAJEURE -ge 5; then
1.15 bertrand 4074: OPTIMISATION_C=-O3
4075: else
1.23 bertrand 4076: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
4077: then
1.15 bertrand 4078: OPTIMISATION_C=-O3
4079: else
1.23 bertrand 4080: if test $GCC_VERSION_MAJEURE -ge 2; then
4081: OPTIMISATION_C=-O2
4082: else
1.36 bertrand 4083: as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23 bertrand 4084: fi
1.15 bertrand 4085: fi
4086: fi
1.14 bertrand 4087: fi
4088:
1.15 bertrand 4089: if test "x$CC" != xcc; then
4090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4091: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14 bertrand 4092: else
1.15 bertrand 4093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4094: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1 bertrand 4095: fi
1.15 bertrand 4096: set dummy $CC; ac_cc=`$as_echo "$2" |
4097: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.57 bertrand 4098: if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
1.15 bertrand 4099: $as_echo_n "(cached) " >&6
1.1 bertrand 4100: else
1.15 bertrand 4101: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 4102: /* end confdefs.h. */
4103:
4104: int
4105: main ()
4106: {
1.15 bertrand 4107:
1.1 bertrand 4108: ;
4109: return 0;
4110: }
4111: _ACEOF
1.15 bertrand 4112: # Make sure it works both with $CC and with simple cc.
4113: # We do the test twice because some compilers refuse to overwrite an
4114: # existing .o file with -o, though they will create one.
4115: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4116: rm -f conftest2.*
4117: if { { case "(($ac_try" in
4118: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4119: *) ac_try_echo=$ac_try;;
4120: esac
4121: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4122: $as_echo "$ac_try_echo"; } >&5
4123: (eval "$ac_try") 2>&5
4124: ac_status=$?
4125: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4126: test $ac_status = 0; } &&
4127: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4128: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129: *) ac_try_echo=$ac_try;;
4130: esac
4131: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4132: $as_echo "$ac_try_echo"; } >&5
4133: (eval "$ac_try") 2>&5
4134: ac_status=$?
4135: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4136: test $ac_status = 0; };
4137: then
4138: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4139: if test "x$CC" != xcc; then
4140: # Test first that cc exists at all.
4141: if { ac_try='cc -c conftest.$ac_ext >&5'
4142: { { case "(($ac_try" in
4143: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144: *) ac_try_echo=$ac_try;;
4145: esac
4146: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147: $as_echo "$ac_try_echo"; } >&5
4148: (eval "$ac_try") 2>&5
4149: ac_status=$?
4150: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151: test $ac_status = 0; }; }; then
4152: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4153: rm -f conftest2.*
4154: if { { case "(($ac_try" in
4155: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156: *) ac_try_echo=$ac_try;;
4157: esac
4158: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4159: $as_echo "$ac_try_echo"; } >&5
4160: (eval "$ac_try") 2>&5
4161: ac_status=$?
4162: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4163: test $ac_status = 0; } &&
4164: test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14 bertrand 4165: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166: *) ac_try_echo=$ac_try;;
4167: esac
1.15 bertrand 4168: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4169: $as_echo "$ac_try_echo"; } >&5
4170: (eval "$ac_try") 2>&5
1.14 bertrand 4171: ac_status=$?
1.15 bertrand 4172: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4173: test $ac_status = 0; };
4174: then
4175: # cc works too.
4176: :
4177: else
4178: # cc exists but doesn't like -o.
4179: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4180: fi
4181: fi
4182: fi
1.1 bertrand 4183: else
1.15 bertrand 4184: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4185: fi
4186: rm -f core conftest*
1.14 bertrand 4187:
1.1 bertrand 4188: fi
1.15 bertrand 4189: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4191: $as_echo "yes" >&6; }
4192: else
4193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194: $as_echo "no" >&6; }
4195:
4196: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1 bertrand 4197:
4198: fi
1.15 bertrand 4199:
4200: # FIXME: we rely on the cache variable name because
4201: # there is no other way.
4202: set dummy $CC
4203: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4204: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4205: if test "$am_t" != yes; then
4206: # Losing compiler, so override with the script.
4207: # FIXME: It is wrong to rewrite CC.
4208: # But if we don't then we get into trouble of one sort or another.
4209: # A longer-term fix would be to have automake use am__CC in this case,
4210: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4211: CC="$am_aux_dir/compile $CC"
1.1 bertrand 4212: fi
1.14 bertrand 4213:
4214:
1.15 bertrand 4215:
4216: if test "$GCC" != yes; then
1.36 bertrand 4217: as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15 bertrand 4218: fi
4219:
4220: ac_ext=cpp
4221: ac_cpp='$CXXCPP $CPPFLAGS'
4222: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4225: if test -z "$CXX"; then
4226: if test -n "$CCC"; then
4227: CXX=$CCC
4228: else
4229: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4230: for ac_prog in g++
1.15 bertrand 4231: do
4232: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4233: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4234: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4236: if ${ac_cv_prog_CXX+:} false; then :
1.15 bertrand 4237: $as_echo_n "(cached) " >&6
1.1 bertrand 4238: else
1.15 bertrand 4239: if test -n "$CXX"; then
4240: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14 bertrand 4241: else
1.15 bertrand 4242: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243: for as_dir in $PATH
4244: do
4245: IFS=$as_save_IFS
4246: test -z "$as_dir" && as_dir=.
4247: for ac_exec_ext in '' $ac_executable_extensions; do
4248: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4250: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251: break 2
4252: fi
4253: done
4254: done
4255: IFS=$as_save_IFS
1.14 bertrand 4256:
4257: fi
4258: fi
1.15 bertrand 4259: CXX=$ac_cv_prog_CXX
4260: if test -n "$CXX"; then
4261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4262: $as_echo "$CXX" >&6; }
1.14 bertrand 4263: else
1.15 bertrand 4264: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265: $as_echo "no" >&6; }
1.14 bertrand 4266: fi
4267:
4268:
1.15 bertrand 4269: test -n "$CXX" && break
4270: done
4271: fi
4272: if test -z "$CXX"; then
4273: ac_ct_CXX=$CXX
1.23 bertrand 4274: for ac_prog in g++
1.15 bertrand 4275: do
4276: # Extract the first word of "$ac_prog", so it can be a program name with args.
4277: set dummy $ac_prog; ac_word=$2
4278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4280: if ${ac_cv_prog_ac_ct_CXX+:} false; then :
1.15 bertrand 4281: $as_echo_n "(cached) " >&6
4282: else
4283: if test -n "$ac_ct_CXX"; then
4284: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4285: else
4286: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287: for as_dir in $PATH
4288: do
4289: IFS=$as_save_IFS
4290: test -z "$as_dir" && as_dir=.
4291: for ac_exec_ext in '' $ac_executable_extensions; do
4292: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293: ac_cv_prog_ac_ct_CXX="$ac_prog"
4294: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295: break 2
4296: fi
4297: done
4298: done
4299: IFS=$as_save_IFS
1.14 bertrand 4300:
1.15 bertrand 4301: fi
4302: fi
4303: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4304: if test -n "$ac_ct_CXX"; then
4305: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4306: $as_echo "$ac_ct_CXX" >&6; }
1.1 bertrand 4307: else
1.15 bertrand 4308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309: $as_echo "no" >&6; }
1.14 bertrand 4310: fi
4311:
4312:
1.15 bertrand 4313: test -n "$ac_ct_CXX" && break
4314: done
1.14 bertrand 4315:
1.15 bertrand 4316: if test "x$ac_ct_CXX" = x; then
4317: CXX="g++"
4318: else
4319: case $cross_compiling:$ac_tool_warned in
4320: yes:)
4321: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4322: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4323: ac_tool_warned=yes ;;
4324: esac
4325: CXX=$ac_ct_CXX
4326: fi
4327: fi
1.1 bertrand 4328:
1.15 bertrand 4329: fi
4330: fi
4331: # Provide some information about the compiler.
4332: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4333: set X $ac_compile
4334: ac_compiler=$2
4335: for ac_option in --version -v -V -qversion; do
4336: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4337: case "(($ac_try" in
4338: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339: *) ac_try_echo=$ac_try;;
4340: esac
1.15 bertrand 4341: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342: $as_echo "$ac_try_echo"; } >&5
4343: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4344: ac_status=$?
1.15 bertrand 4345: if test -s conftest.err; then
4346: sed '10a\
4347: ... rest of stderr output deleted ...
4348: 10q' conftest.err >conftest.er1
4349: cat conftest.er1 >&5
4350: fi
4351: rm -f conftest.er1 conftest.err
4352: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353: test $ac_status = 0; }
4354: done
4355:
4356: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4357: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
1.57 bertrand 4358: if ${ac_cv_cxx_compiler_gnu+:} false; then :
1.15 bertrand 4359: $as_echo_n "(cached) " >&6
1.14 bertrand 4360: else
1.15 bertrand 4361: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362: /* end confdefs.h. */
1.1 bertrand 4363:
4364: int
4365: main ()
4366: {
1.15 bertrand 4367: #ifndef __GNUC__
4368: choke me
4369: #endif
1.1 bertrand 4370:
4371: ;
4372: return 0;
4373: }
4374: _ACEOF
1.15 bertrand 4375: if ac_fn_cxx_try_compile "$LINENO"; then :
4376: ac_compiler_gnu=yes
1.1 bertrand 4377: else
1.15 bertrand 4378: ac_compiler_gnu=no
1.1 bertrand 4379: fi
1.14 bertrand 4380: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 4381: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4382:
1.15 bertrand 4383: fi
4384: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4385: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4386: if test $ac_compiler_gnu = yes; then
4387: GXX=yes
4388: else
4389: GXX=
4390: fi
4391: ac_test_CXXFLAGS=${CXXFLAGS+set}
4392: ac_save_CXXFLAGS=$CXXFLAGS
4393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4394: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
1.57 bertrand 4395: if ${ac_cv_prog_cxx_g+:} false; then :
1.15 bertrand 4396: $as_echo_n "(cached) " >&6
4397: else
4398: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4399: ac_cxx_werror_flag=yes
4400: ac_cv_prog_cxx_g=no
4401: CXXFLAGS="-g"
4402: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 4403: /* end confdefs.h. */
1.15 bertrand 4404:
1.1 bertrand 4405: int
4406: main ()
4407: {
1.14 bertrand 4408:
1.1 bertrand 4409: ;
4410: return 0;
4411: }
4412: _ACEOF
1.15 bertrand 4413: if ac_fn_cxx_try_compile "$LINENO"; then :
4414: ac_cv_prog_cxx_g=yes
1.14 bertrand 4415: else
1.15 bertrand 4416: CXXFLAGS=""
4417: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4418: /* end confdefs.h. */
1.1 bertrand 4419:
1.14 bertrand 4420: int
4421: main ()
4422: {
1.1 bertrand 4423:
1.14 bertrand 4424: ;
4425: return 0;
4426: }
4427: _ACEOF
1.15 bertrand 4428: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1 bertrand 4429:
4430: else
1.15 bertrand 4431: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4432: CXXFLAGS="-g"
4433: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4434: /* end confdefs.h. */
1.1 bertrand 4435:
1.14 bertrand 4436: int
4437: main ()
4438: {
1.1 bertrand 4439:
1.14 bertrand 4440: ;
4441: return 0;
4442: }
4443: _ACEOF
1.15 bertrand 4444: if ac_fn_cxx_try_compile "$LINENO"; then :
4445: ac_cv_prog_cxx_g=yes
4446: fi
4447: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4448: fi
4449: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450: fi
4451: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4452: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4453: fi
4454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4455: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4456: if test "$ac_test_CXXFLAGS" = set; then
4457: CXXFLAGS=$ac_save_CXXFLAGS
4458: elif test $ac_cv_prog_cxx_g = yes; then
4459: if test "$GXX" = yes; then
4460: CXXFLAGS="-g -O2"
4461: else
4462: CXXFLAGS="-g"
4463: fi
4464: else
4465: if test "$GXX" = yes; then
4466: CXXFLAGS="-O2"
4467: else
4468: CXXFLAGS=
4469: fi
4470: fi
4471: ac_ext=c
4472: ac_cpp='$CPP $CPPFLAGS'
4473: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4474: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4475: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4476:
4477: depcc="$CXX" am_compiler_list=
4478:
4479: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4480: $as_echo_n "checking dependency style of $depcc... " >&6; }
1.57 bertrand 4481: if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
1.15 bertrand 4482: $as_echo_n "(cached) " >&6
4483: else
4484: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4485: # We make a subdir and do the tests there. Otherwise we can end up
4486: # making bogus files that we don't know about and never remove. For
4487: # instance it was reported that on HP-UX the gcc test will end up
4488: # making a dummy file named `D' -- because `-MD' means `put the output
4489: # in D'.
4490: mkdir conftest.dir
4491: # Copy depcomp to subdir because otherwise we won't find it if we're
4492: # using a relative directory.
4493: cp "$am_depcomp" conftest.dir
4494: cd conftest.dir
4495: # We will build objects and dependencies in a subdirectory because
4496: # it helps to detect inapplicable dependency modes. For instance
4497: # both Tru64's cc and ICC support -MD to output dependencies as a
4498: # side effect of compilation, but ICC will put the dependencies in
4499: # the current directory while Tru64 will put them in the object
4500: # directory.
4501: mkdir sub
4502:
4503: am_cv_CXX_dependencies_compiler_type=none
4504: if test "$am_compiler_list" = ""; then
4505: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4506: fi
4507: am__universal=false
4508: case " $depcc " in #(
4509: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4510: esac
4511:
4512: for depmode in $am_compiler_list; do
4513: # Setup a source with many dependencies, because some compilers
4514: # like to wrap large dependency lists on column 80 (with \), and
4515: # we should not choose a depcomp mode which is confused by this.
4516: #
4517: # We need to recreate these files for each test, as the compiler may
4518: # overwrite some of them when testing with obscure command lines.
4519: # This happens at least with the AIX C compiler.
4520: : > sub/conftest.c
4521: for i in 1 2 3 4 5 6; do
4522: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4523: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4524: # Solaris 8's {/usr,}/bin/sh.
4525: touch sub/conftst$i.h
4526: done
4527: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4528:
4529: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4530: # mode. It turns out that the SunPro C++ compiler does not properly
4531: # handle `-M -o', and we need to detect this. Also, some Intel
4532: # versions had trouble with output in subdirs
4533: am__obj=sub/conftest.${OBJEXT-o}
4534: am__minus_obj="-o $am__obj"
4535: case $depmode in
4536: gcc)
4537: # This depmode causes a compiler race in universal mode.
4538: test "$am__universal" = false || continue
4539: ;;
4540: nosideeffect)
4541: # after this tag, mechanisms are not by side-effect, so they'll
4542: # only be used when explicitly requested
4543: if test "x$enable_dependency_tracking" = xyes; then
4544: continue
4545: else
4546: break
4547: fi
4548: ;;
4549: msvisualcpp | msvcmsys)
4550: # This compiler won't grok `-c -o', but also, the minuso test has
4551: # not run yet. These depmodes are late enough in the game, and
4552: # so weak that their functioning should not be impacted.
4553: am__obj=conftest.${OBJEXT-o}
4554: am__minus_obj=
4555: ;;
4556: none) break ;;
4557: esac
4558: if depmode=$depmode \
4559: source=sub/conftest.c object=$am__obj \
4560: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4561: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4562: >/dev/null 2>conftest.err &&
4563: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4564: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4565: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4566: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4567: # icc doesn't choke on unknown options, it will just issue warnings
4568: # or remarks (even with -Werror). So we grep stderr for any message
4569: # that says an option was ignored or not supported.
4570: # When given -MP, icc 7.0 and 7.1 complain thusly:
4571: # icc: Command line warning: ignoring option '-M'; no argument required
4572: # The diagnosis changed in icc 8.0:
4573: # icc: Command line remark: option '-MP' not supported
4574: if (grep 'ignoring option' conftest.err ||
4575: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4576: am_cv_CXX_dependencies_compiler_type=$depmode
4577: break
4578: fi
4579: fi
4580: done
4581:
4582: cd ..
4583: rm -rf conftest.dir
4584: else
4585: am_cv_CXX_dependencies_compiler_type=none
4586: fi
4587:
4588: fi
4589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4590: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4591: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4592:
4593: if
4594: test "x$enable_dependency_tracking" != xno \
4595: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4596: am__fastdepCXX_TRUE=
4597: am__fastdepCXX_FALSE='#'
4598: else
4599: am__fastdepCXX_TRUE='#'
4600: am__fastdepCXX_FALSE=
4601: fi
4602:
4603:
4604:
1.87 ! bertrand 4605: if test "$GXX" != yes; then
1.36 bertrand 4606: as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15 bertrand 4607: fi
4608:
1.69 bertrand 4609: if test x"$CXX" != x""; then
4610: GCC_VERSION_MAJEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4611: awk -F. '{ printf("%s", $1);}'`
4612: GCC_VERSION_MINEURE=`$CXX -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4613: awk -F. '{ printf("%s", $2);}'`
4614: if test $GCC_VERSION_MAJEURE -ge 5; then
4615: OPTIMISATION_GXX=-O3
4616: else
4617: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4618: OPTIMISATION_GXX=-O3
4619: else
4620: if test $GCC_VERSION_MAJEURE -ge 3; then
4621: OPTIMISATION_GXX=-O2
4622: else
4623: as_fn_error $? "Cannot find decent or recent g++ (g++-4.3 or better)!" "$LINENO" 5
4624: fi
4625: fi
4626: fi
4627: fi
4628:
1.15 bertrand 4629: ac_ext=f
4630: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4631: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4632: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4633: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4634: for ac_prog in gfortran
1.15 bertrand 4635: do
4636: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4637: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4638: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4639: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4640: if ${ac_cv_prog_F77+:} false; then :
1.15 bertrand 4641: $as_echo_n "(cached) " >&6
4642: else
4643: if test -n "$F77"; then
4644: ac_cv_prog_F77="$F77" # Let the user override the test.
4645: else
4646: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647: for as_dir in $PATH
4648: do
4649: IFS=$as_save_IFS
4650: test -z "$as_dir" && as_dir=.
4651: for ac_exec_ext in '' $ac_executable_extensions; do
4652: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4653: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4654: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4655: break 2
4656: fi
4657: done
4658: done
4659: IFS=$as_save_IFS
4660:
4661: fi
4662: fi
4663: F77=$ac_cv_prog_F77
4664: if test -n "$F77"; then
4665: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4666: $as_echo "$F77" >&6; }
4667: else
4668: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669: $as_echo "no" >&6; }
4670: fi
4671:
4672:
4673: test -n "$F77" && break
4674: done
4675: fi
4676: if test -z "$F77"; then
4677: ac_ct_F77=$F77
1.23 bertrand 4678: for ac_prog in gfortran
1.15 bertrand 4679: do
4680: # Extract the first word of "$ac_prog", so it can be a program name with args.
4681: set dummy $ac_prog; ac_word=$2
4682: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4683: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4684: if ${ac_cv_prog_ac_ct_F77+:} false; then :
1.15 bertrand 4685: $as_echo_n "(cached) " >&6
4686: else
4687: if test -n "$ac_ct_F77"; then
4688: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4689: else
4690: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691: for as_dir in $PATH
4692: do
4693: IFS=$as_save_IFS
4694: test -z "$as_dir" && as_dir=.
4695: for ac_exec_ext in '' $ac_executable_extensions; do
4696: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697: ac_cv_prog_ac_ct_F77="$ac_prog"
4698: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699: break 2
4700: fi
4701: done
4702: done
4703: IFS=$as_save_IFS
4704:
4705: fi
4706: fi
4707: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4708: if test -n "$ac_ct_F77"; then
4709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4710: $as_echo "$ac_ct_F77" >&6; }
1.1 bertrand 4711: else
1.15 bertrand 4712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4713: $as_echo "no" >&6; }
4714: fi
4715:
4716:
4717: test -n "$ac_ct_F77" && break
4718: done
1.1 bertrand 4719:
1.15 bertrand 4720: if test "x$ac_ct_F77" = x; then
4721: F77=""
4722: else
4723: case $cross_compiling:$ac_tool_warned in
4724: yes:)
4725: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727: ac_tool_warned=yes ;;
4728: esac
4729: F77=$ac_ct_F77
4730: fi
1.14 bertrand 4731: fi
1.1 bertrand 4732:
4733:
1.15 bertrand 4734: # Provide some information about the compiler.
4735: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4736: set X $ac_compile
4737: ac_compiler=$2
4738: for ac_option in --version -v -V -qversion; do
4739: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4740: case "(($ac_try" in
4741: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742: *) ac_try_echo=$ac_try;;
4743: esac
1.15 bertrand 4744: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745: $as_echo "$ac_try_echo"; } >&5
4746: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4747: ac_status=$?
1.15 bertrand 4748: if test -s conftest.err; then
4749: sed '10a\
4750: ... rest of stderr output deleted ...
4751: 10q' conftest.err >conftest.er1
4752: cat conftest.er1 >&5
4753: fi
4754: rm -f conftest.er1 conftest.err
4755: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756: test $ac_status = 0; }
4757: done
4758: rm -f a.out
4759:
4760: # If we don't use `.F' as extension, the preprocessor is not run on the
4761: # input file. (Note that this only needs to work for GNU compilers.)
4762: ac_save_ext=$ac_ext
4763: ac_ext=F
4764: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4765: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
1.57 bertrand 4766: if ${ac_cv_f77_compiler_gnu+:} false; then :
1.15 bertrand 4767: $as_echo_n "(cached) " >&6
1.1 bertrand 4768: else
1.15 bertrand 4769: cat > conftest.$ac_ext <<_ACEOF
4770: program main
4771: #ifndef __GNUC__
4772: choke me
4773: #endif
1.14 bertrand 4774:
1.15 bertrand 4775: end
4776: _ACEOF
4777: if ac_fn_f77_try_compile "$LINENO"; then :
4778: ac_compiler_gnu=yes
4779: else
4780: ac_compiler_gnu=no
1.1 bertrand 4781: fi
1.15 bertrand 4782: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4784:
4785: fi
1.15 bertrand 4786: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4787: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4788: ac_ext=$ac_save_ext
4789: ac_test_FFLAGS=${FFLAGS+set}
4790: ac_save_FFLAGS=$FFLAGS
4791: FFLAGS=
4792: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4793: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
1.57 bertrand 4794: if ${ac_cv_prog_f77_g+:} false; then :
1.15 bertrand 4795: $as_echo_n "(cached) " >&6
4796: else
4797: FFLAGS=-g
4798: cat > conftest.$ac_ext <<_ACEOF
4799: program main
1.1 bertrand 4800:
1.15 bertrand 4801: end
1.14 bertrand 4802: _ACEOF
1.15 bertrand 4803: if ac_fn_f77_try_compile "$LINENO"; then :
4804: ac_cv_prog_f77_g=yes
1.1 bertrand 4805: else
1.15 bertrand 4806: ac_cv_prog_f77_g=no
1.1 bertrand 4807: fi
1.15 bertrand 4808: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 4809:
4810: fi
1.15 bertrand 4811: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4812: $as_echo "$ac_cv_prog_f77_g" >&6; }
4813: if test "$ac_test_FFLAGS" = set; then
4814: FFLAGS=$ac_save_FFLAGS
4815: elif test $ac_cv_prog_f77_g = yes; then
4816: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4817: FFLAGS="-g -O2"
4818: else
4819: FFLAGS="-g"
4820: fi
4821: else
4822: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4823: FFLAGS="-O2"
4824: else
4825: FFLAGS=
4826: fi
1.1 bertrand 4827: fi
4828:
1.15 bertrand 4829: if test $ac_compiler_gnu = yes; then
4830: G77=yes
1.1 bertrand 4831: else
1.15 bertrand 4832: G77=
1.1 bertrand 4833: fi
1.15 bertrand 4834: ac_ext=c
4835: ac_cpp='$CPP $CPPFLAGS'
4836: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4837: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4838: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 bertrand 4839:
4840:
1.15 bertrand 4841: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
1.36 bertrand 4842: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.15 bertrand 4843: fi
1.14 bertrand 4844:
1.15 bertrand 4845: ac_ext=${ac_fc_srcext-f}
4846: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4847: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4848: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4849: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4850: for ac_prog in gfortran
1.15 bertrand 4851: do
4852: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4853: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4856: if ${ac_cv_prog_FC+:} false; then :
1.15 bertrand 4857: $as_echo_n "(cached) " >&6
4858: else
4859: if test -n "$FC"; then
4860: ac_cv_prog_FC="$FC" # Let the user override the test.
1.1 bertrand 4861: else
1.15 bertrand 4862: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863: for as_dir in $PATH
4864: do
4865: IFS=$as_save_IFS
4866: test -z "$as_dir" && as_dir=.
4867: for ac_exec_ext in '' $ac_executable_extensions; do
4868: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4870: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4871: break 2
4872: fi
4873: done
4874: done
4875: IFS=$as_save_IFS
1.1 bertrand 4876:
4877: fi
1.15 bertrand 4878: fi
4879: FC=$ac_cv_prog_FC
4880: if test -n "$FC"; then
4881: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4882: $as_echo "$FC" >&6; }
1.14 bertrand 4883: else
1.15 bertrand 4884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885: $as_echo "no" >&6; }
1.14 bertrand 4886: fi
4887:
1.1 bertrand 4888:
1.15 bertrand 4889: test -n "$FC" && break
4890: done
4891: fi
4892: if test -z "$FC"; then
4893: ac_ct_FC=$FC
1.23 bertrand 4894: for ac_prog in gfortran
1.15 bertrand 4895: do
4896: # Extract the first word of "$ac_prog", so it can be a program name with args.
4897: set dummy $ac_prog; ac_word=$2
4898: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 4900: if ${ac_cv_prog_ac_ct_FC+:} false; then :
1.15 bertrand 4901: $as_echo_n "(cached) " >&6
4902: else
4903: if test -n "$ac_ct_FC"; then
4904: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4905: else
4906: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907: for as_dir in $PATH
4908: do
4909: IFS=$as_save_IFS
4910: test -z "$as_dir" && as_dir=.
4911: for ac_exec_ext in '' $ac_executable_extensions; do
4912: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913: ac_cv_prog_ac_ct_FC="$ac_prog"
4914: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915: break 2
4916: fi
4917: done
4918: done
4919: IFS=$as_save_IFS
1.1 bertrand 4920:
1.15 bertrand 4921: fi
4922: fi
4923: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4924: if test -n "$ac_ct_FC"; then
4925: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4926: $as_echo "$ac_ct_FC" >&6; }
1.1 bertrand 4927: else
1.15 bertrand 4928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929: $as_echo "no" >&6; }
1.1 bertrand 4930: fi
1.14 bertrand 4931:
1.1 bertrand 4932:
1.15 bertrand 4933: test -n "$ac_ct_FC" && break
4934: done
1.1 bertrand 4935:
1.15 bertrand 4936: if test "x$ac_ct_FC" = x; then
4937: FC=""
4938: else
4939: case $cross_compiling:$ac_tool_warned in
4940: yes:)
4941: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4942: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4943: ac_tool_warned=yes ;;
1.14 bertrand 4944: esac
1.15 bertrand 4945: FC=$ac_ct_FC
4946: fi
1.14 bertrand 4947: fi
4948:
4949:
1.15 bertrand 4950: # Provide some information about the compiler.
4951: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4952: set X $ac_compile
4953: ac_compiler=$2
4954: for ac_option in --version -v -V -qversion; do
4955: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4956: case "(($ac_try" in
4957: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958: *) ac_try_echo=$ac_try;;
4959: esac
1.15 bertrand 4960: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4961: $as_echo "$ac_try_echo"; } >&5
4962: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4963: ac_status=$?
1.15 bertrand 4964: if test -s conftest.err; then
4965: sed '10a\
4966: ... rest of stderr output deleted ...
4967: 10q' conftest.err >conftest.er1
4968: cat conftest.er1 >&5
4969: fi
4970: rm -f conftest.er1 conftest.err
4971: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4972: test $ac_status = 0; }
4973: done
4974: rm -f a.out
4975:
4976: # If we don't use `.F' as extension, the preprocessor is not run on the
4977: # input file. (Note that this only needs to work for GNU compilers.)
4978: ac_save_ext=$ac_ext
4979: ac_ext=F
4980: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4981: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
1.57 bertrand 4982: if ${ac_cv_fc_compiler_gnu+:} false; then :
1.15 bertrand 4983: $as_echo_n "(cached) " >&6
1.14 bertrand 4984: else
1.15 bertrand 4985: cat > conftest.$ac_ext <<_ACEOF
4986: program main
4987: #ifndef __GNUC__
4988: choke me
4989: #endif
1.14 bertrand 4990:
1.15 bertrand 4991: end
4992: _ACEOF
4993: if ac_fn_fc_try_compile "$LINENO"; then :
4994: ac_compiler_gnu=yes
4995: else
4996: ac_compiler_gnu=no
1.14 bertrand 4997: fi
4998: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 4999: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 5000:
1.15 bertrand 5001: fi
5002: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
5003: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
5004: ac_ext=$ac_save_ext
5005: ac_test_FCFLAGS=${FCFLAGS+set}
5006: ac_save_FCFLAGS=$FCFLAGS
5007: FCFLAGS=
5008: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
5009: $as_echo_n "checking whether $FC accepts -g... " >&6; }
1.57 bertrand 5010: if ${ac_cv_prog_fc_g+:} false; then :
1.15 bertrand 5011: $as_echo_n "(cached) " >&6
5012: else
5013: FCFLAGS=-g
5014: cat > conftest.$ac_ext <<_ACEOF
5015: program main
1.1 bertrand 5016:
1.15 bertrand 5017: end
1.1 bertrand 5018: _ACEOF
1.15 bertrand 5019: if ac_fn_fc_try_compile "$LINENO"; then :
5020: ac_cv_prog_fc_g=yes
1.1 bertrand 5021: else
1.15 bertrand 5022: ac_cv_prog_fc_g=no
1.1 bertrand 5023: fi
1.14 bertrand 5024: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 5025:
1.15 bertrand 5026: fi
5027: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
5028: $as_echo "$ac_cv_prog_fc_g" >&6; }
5029: if test "$ac_test_FCFLAGS" = set; then
5030: FCFLAGS=$ac_save_FCFLAGS
5031: elif test $ac_cv_prog_fc_g = yes; then
5032: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5033: FCFLAGS="-g -O2"
5034: else
5035: FCFLAGS="-g"
5036: fi
1.1 bertrand 5037: else
1.15 bertrand 5038: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
5039: FCFLAGS="-O2"
5040: else
5041: FCFLAGS=
5042: fi
1.1 bertrand 5043: fi
5044:
1.15 bertrand 5045: ac_ext=c
5046: ac_cpp='$CPP $CPPFLAGS'
5047: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 bertrand 5050:
5051:
1.15 bertrand 5052: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
1.36 bertrand 5053: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1 bertrand 5054: fi
5055:
1.15 bertrand 5056: if test x"$FC" != x""; then
5057: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
5058: awk -F. '{ printf("%s", $1);}'`
5059: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
5060: awk -F. '{ printf("%s", $2);}'`
1.23 bertrand 5061: if test $GCC_VERSION_MAJEURE -ge 5; then
1.15 bertrand 5062: OPTIMISATION_F=-O3
5063: else
1.23 bertrand 5064: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15 bertrand 5065: OPTIMISATION_F=-O3
5066: else
1.23 bertrand 5067: if test $GCC_VERSION_MAJEURE -ge 3; then
5068: OPTIMISATION_F=-O2
5069: else
1.36 bertrand 5070: as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23 bertrand 5071: fi
1.14 bertrand 5072: fi
5073: fi
5074: fi
1.1 bertrand 5075:
5076:
1.15 bertrand 5077: ac_ext=c
5078: ac_cpp='$CPP $CPPFLAGS'
5079: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5080: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5081: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5083: $as_echo_n "checking how to run the C preprocessor... " >&6; }
5084: # On Suns, sometimes $CPP names a directory.
5085: if test -n "$CPP" && test -d "$CPP"; then
5086: CPP=
5087: fi
5088: if test -z "$CPP"; then
1.57 bertrand 5089: if ${ac_cv_prog_CPP+:} false; then :
1.15 bertrand 5090: $as_echo_n "(cached) " >&6
5091: else
5092: # Double quotes because CPP needs to be expanded
5093: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5094: do
5095: ac_preproc_ok=false
5096: for ac_c_preproc_warn_flag in '' yes
5097: do
5098: # Use a header file that comes with gcc, so configuring glibc
5099: # with a fresh cross-compiler works.
5100: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5101: # <limits.h> exists even on freestanding compilers.
5102: # On the NeXT, cc -E runs the code through the compiler's parser,
5103: # not just through cpp. "Syntax error" is here to catch this case.
5104: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5105: /* end confdefs.h. */
1.15 bertrand 5106: #ifdef __STDC__
5107: # include <limits.h>
5108: #else
5109: # include <assert.h>
5110: #endif
5111: Syntax error
1.1 bertrand 5112: _ACEOF
1.15 bertrand 5113: if ac_fn_c_try_cpp "$LINENO"; then :
5114:
1.1 bertrand 5115: else
1.15 bertrand 5116: # Broken: fails on valid input.
5117: continue
1.1 bertrand 5118: fi
1.36 bertrand 5119: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5120:
1.15 bertrand 5121: # OK, works on sane cases. Now check whether nonexistent headers
5122: # can be detected and how.
5123: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124: /* end confdefs.h. */
5125: #include <ac_nonexistent.h>
5126: _ACEOF
5127: if ac_fn_c_try_cpp "$LINENO"; then :
5128: # Broken: success on invalid input.
5129: continue
5130: else
5131: # Passes both tests.
5132: ac_preproc_ok=:
5133: break
1.1 bertrand 5134: fi
1.36 bertrand 5135: rm -f conftest.err conftest.i conftest.$ac_ext
1.14 bertrand 5136:
1.15 bertrand 5137: done
5138: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36 bertrand 5139: rm -f conftest.i conftest.err conftest.$ac_ext
1.15 bertrand 5140: if $ac_preproc_ok; then :
5141: break
1.1 bertrand 5142: fi
5143:
1.15 bertrand 5144: done
5145: ac_cv_prog_CPP=$CPP
1.14 bertrand 5146:
1.15 bertrand 5147: fi
5148: CPP=$ac_cv_prog_CPP
1.1 bertrand 5149: else
1.15 bertrand 5150: ac_cv_prog_CPP=$CPP
5151: fi
5152: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5153: $as_echo "$CPP" >&6; }
5154: ac_preproc_ok=false
5155: for ac_c_preproc_warn_flag in '' yes
1.14 bertrand 5156: do
1.15 bertrand 5157: # Use a header file that comes with gcc, so configuring glibc
5158: # with a fresh cross-compiler works.
5159: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5160: # <limits.h> exists even on freestanding compilers.
5161: # On the NeXT, cc -E runs the code through the compiler's parser,
5162: # not just through cpp. "Syntax error" is here to catch this case.
5163: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164: /* end confdefs.h. */
5165: #ifdef __STDC__
5166: # include <limits.h>
5167: #else
5168: # include <assert.h>
5169: #endif
5170: Syntax error
5171: _ACEOF
5172: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 bertrand 5173:
1.15 bertrand 5174: else
5175: # Broken: fails on valid input.
5176: continue
5177: fi
1.36 bertrand 5178: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5179:
1.15 bertrand 5180: # OK, works on sane cases. Now check whether nonexistent headers
5181: # can be detected and how.
5182: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183: /* end confdefs.h. */
5184: #include <ac_nonexistent.h>
5185: _ACEOF
5186: if ac_fn_c_try_cpp "$LINENO"; then :
5187: # Broken: success on invalid input.
5188: continue
5189: else
5190: # Passes both tests.
5191: ac_preproc_ok=:
5192: break
5193: fi
1.36 bertrand 5194: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5195:
5196: done
1.15 bertrand 5197: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36 bertrand 5198: rm -f conftest.i conftest.err conftest.$ac_ext
1.15 bertrand 5199: if $ac_preproc_ok; then :
1.1 bertrand 5200:
1.15 bertrand 5201: else
5202: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5203: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 5204: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
1.57 bertrand 5205: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 5206: fi
1.14 bertrand 5207:
1.15 bertrand 5208: ac_ext=c
5209: ac_cpp='$CPP $CPPFLAGS'
5210: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5211: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5212: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14 bertrand 5213:
5214:
1.15 bertrand 5215: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5216: $as_echo_n "checking for X... " >&6; }
1.1 bertrand 5217:
5218:
1.15 bertrand 5219: # Check whether --with-x was given.
5220: if test "${with_x+set}" = set; then :
5221: withval=$with_x;
1.1 bertrand 5222: fi
1.14 bertrand 5223:
1.15 bertrand 5224: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5225: if test "x$with_x" = xno; then
5226: # The user explicitly disabled X.
5227: have_x=disabled
1.1 bertrand 5228: else
1.15 bertrand 5229: case $x_includes,$x_libraries in #(
1.57 bertrand 5230: *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5231: *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
1.15 bertrand 5232: $as_echo_n "(cached) " >&6
1.1 bertrand 5233: else
1.15 bertrand 5234: # One or both of the vars are not set, and there is no cached value.
5235: ac_x_includes=no ac_x_libraries=no
5236: rm -f -r conftest.dir
5237: if mkdir conftest.dir; then
5238: cd conftest.dir
5239: cat >Imakefile <<'_ACEOF'
5240: incroot:
5241: @echo incroot='${INCROOT}'
5242: usrlibdir:
5243: @echo usrlibdir='${USRLIBDIR}'
5244: libdir:
5245: @echo libdir='${LIBDIR}'
5246: _ACEOF
5247: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36 bertrand 5248: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 5249: for ac_var in incroot usrlibdir libdir; do
5250: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5251: done
5252: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5253: for ac_extension in a so sl dylib la dll; do
5254: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5255: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5256: ac_im_usrlibdir=$ac_im_libdir; break
5257: fi
5258: done
5259: # Screen out bogus values from the imake configuration. They are
5260: # bogus both because they are the default anyway, and because
5261: # using them would break gcc on systems where it needs fixed includes.
5262: case $ac_im_incroot in
5263: /usr/include) ac_x_includes= ;;
5264: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5265: esac
5266: case $ac_im_usrlibdir in
5267: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5268: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5269: esac
5270: fi
5271: cd ..
5272: rm -f -r conftest.dir
5273: fi
5274:
5275: # Standard set of common directories for X headers.
5276: # Check X11 before X11Rn because it is often a symlink to the current release.
5277: ac_x_header_dirs='
5278: /usr/X11/include
5279: /usr/X11R7/include
5280: /usr/X11R6/include
5281: /usr/X11R5/include
5282: /usr/X11R4/include
1.1 bertrand 5283:
1.15 bertrand 5284: /usr/include/X11
5285: /usr/include/X11R7
5286: /usr/include/X11R6
5287: /usr/include/X11R5
5288: /usr/include/X11R4
1.1 bertrand 5289:
1.15 bertrand 5290: /usr/local/X11/include
5291: /usr/local/X11R7/include
5292: /usr/local/X11R6/include
5293: /usr/local/X11R5/include
5294: /usr/local/X11R4/include
1.1 bertrand 5295:
1.15 bertrand 5296: /usr/local/include/X11
5297: /usr/local/include/X11R7
5298: /usr/local/include/X11R6
5299: /usr/local/include/X11R5
5300: /usr/local/include/X11R4
1.1 bertrand 5301:
1.15 bertrand 5302: /usr/X386/include
5303: /usr/x386/include
5304: /usr/XFree86/include/X11
1.1 bertrand 5305:
1.15 bertrand 5306: /usr/include
5307: /usr/local/include
5308: /usr/unsupported/include
5309: /usr/athena/include
5310: /usr/local/x11r5/include
5311: /usr/lpp/Xamples/include
1.1 bertrand 5312:
1.15 bertrand 5313: /usr/openwin/include
5314: /usr/openwin/share/include'
1.1 bertrand 5315:
1.15 bertrand 5316: if test "$ac_x_includes" = no; then
5317: # Guess where to find include files, by looking for Xlib.h.
5318: # First, try using that file with no special directory specified.
5319: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320: /* end confdefs.h. */
5321: #include <X11/Xlib.h>
5322: _ACEOF
5323: if ac_fn_c_try_cpp "$LINENO"; then :
5324: # We can compile using X headers with no special include directory.
5325: ac_x_includes=
1.1 bertrand 5326: else
1.15 bertrand 5327: for ac_dir in $ac_x_header_dirs; do
5328: if test -r "$ac_dir/X11/Xlib.h"; then
5329: ac_x_includes=$ac_dir
5330: break
5331: fi
5332: done
1.1 bertrand 5333: fi
1.36 bertrand 5334: rm -f conftest.err conftest.i conftest.$ac_ext
1.15 bertrand 5335: fi # $ac_x_includes = no
1.1 bertrand 5336:
1.15 bertrand 5337: if test "$ac_x_libraries" = no; then
5338: # Check for the libraries.
5339: # See if we find them without any special options.
5340: # Don't add to $LIBS permanently.
5341: ac_save_LIBS=$LIBS
5342: LIBS="-lX11 $LIBS"
5343: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5344: /* end confdefs.h. */
1.15 bertrand 5345: #include <X11/Xlib.h>
1.14 bertrand 5346: int
5347: main ()
5348: {
1.15 bertrand 5349: XrmInitialize ()
1.14 bertrand 5350: ;
5351: return 0;
5352: }
1.1 bertrand 5353: _ACEOF
1.15 bertrand 5354: if ac_fn_c_try_link "$LINENO"; then :
5355: LIBS=$ac_save_LIBS
5356: # We can link X programs with no special library path.
5357: ac_x_libraries=
1.1 bertrand 5358: else
1.15 bertrand 5359: LIBS=$ac_save_LIBS
5360: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5361: do
5362: # Don't even attempt the hair of trying to link an X program!
5363: for ac_extension in a so sl dylib la dll; do
5364: if test -r "$ac_dir/libX11.$ac_extension"; then
5365: ac_x_libraries=$ac_dir
5366: break 2
5367: fi
5368: done
5369: done
5370: fi
5371: rm -f core conftest.err conftest.$ac_objext \
5372: conftest$ac_exeext conftest.$ac_ext
5373: fi # $ac_x_libraries = no
1.1 bertrand 5374:
1.15 bertrand 5375: case $ac_x_includes,$ac_x_libraries in #(
5376: no,* | *,no | *\'*)
5377: # Didn't find X, or a directory has "'" in its name.
5378: ac_cv_have_x="have_x=no";; #(
5379: *)
5380: # Record where we found X for the cache.
5381: ac_cv_have_x="have_x=yes\
5382: ac_x_includes='$ac_x_includes'\
5383: ac_x_libraries='$ac_x_libraries'"
5384: esac
1.1 bertrand 5385: fi
1.15 bertrand 5386: ;; #(
5387: *) have_x=yes;;
5388: esac
5389: eval "$ac_cv_have_x"
5390: fi # $with_x != no
1.1 bertrand 5391:
1.15 bertrand 5392: if test "$have_x" != yes; then
5393: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5394: $as_echo "$have_x" >&6; }
5395: no_x=yes
1.14 bertrand 5396: else
1.15 bertrand 5397: # If each of the values was on the command line, it overrides each guess.
5398: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5399: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5400: # Update the cache value to reflect the command line values.
5401: ac_cv_have_x="have_x=yes\
5402: ac_x_includes='$x_includes'\
5403: ac_x_libraries='$x_libraries'"
5404: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5405: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14 bertrand 5406: fi
1.1 bertrand 5407:
1.15 bertrand 5408: if test "$no_x" = yes; then
5409: # Not all programs may use this symbol, but it does not hurt to define it.
1.1 bertrand 5410:
1.15 bertrand 5411: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14 bertrand 5412:
1.15 bertrand 5413: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1 bertrand 5414: else
1.15 bertrand 5415: if test -n "$x_includes"; then
5416: X_CFLAGS="$X_CFLAGS -I$x_includes"
5417: fi
5418:
5419: # It would also be nice to do this for all -L options, not just this one.
5420: if test -n "$x_libraries"; then
5421: X_LIBS="$X_LIBS -L$x_libraries"
5422: # For Solaris; some versions of Sun CC require a space after -R and
5423: # others require no space. Words are not sufficient . . . .
5424: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5425: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5426: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5427: ac_xsave_c_werror_flag=$ac_c_werror_flag
5428: ac_c_werror_flag=yes
5429: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430: /* end confdefs.h. */
1.1 bertrand 5431:
1.15 bertrand 5432: int
5433: main ()
5434: {
1.1 bertrand 5435:
1.15 bertrand 5436: ;
5437: return 0;
5438: }
5439: _ACEOF
5440: if ac_fn_c_try_link "$LINENO"; then :
5441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442: $as_echo "no" >&6; }
5443: X_LIBS="$X_LIBS -R$x_libraries"
1.1 bertrand 5444: else
1.15 bertrand 5445: LIBS="$ac_xsave_LIBS -R $x_libraries"
5446: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5447: /* end confdefs.h. */
1.1 bertrand 5448:
1.14 bertrand 5449: int
5450: main ()
5451: {
1.15 bertrand 5452:
5453: ;
1.14 bertrand 5454: return 0;
5455: }
5456: _ACEOF
1.15 bertrand 5457: if ac_fn_c_try_link "$LINENO"; then :
5458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5459: $as_echo "yes" >&6; }
5460: X_LIBS="$X_LIBS -R $x_libraries"
1.14 bertrand 5461: else
1.15 bertrand 5462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5463: $as_echo "neither works" >&6; }
1.14 bertrand 5464: fi
1.15 bertrand 5465: rm -f core conftest.err conftest.$ac_objext \
5466: conftest$ac_exeext conftest.$ac_ext
1.14 bertrand 5467: fi
1.15 bertrand 5468: rm -f core conftest.err conftest.$ac_objext \
5469: conftest$ac_exeext conftest.$ac_ext
5470: ac_c_werror_flag=$ac_xsave_c_werror_flag
5471: LIBS=$ac_xsave_LIBS
5472: fi
1.1 bertrand 5473:
1.15 bertrand 5474: # Check for system-dependent libraries X programs must link with.
5475: # Do this before checking for the system-independent R6 libraries
5476: # (-lICE), since we may need -lsocket or whatever for X linking.
1.1 bertrand 5477:
1.15 bertrand 5478: if test "$ISC" = yes; then
5479: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5480: else
5481: # Martyn Johnson says this is needed for Ultrix, if the X
5482: # libraries were built with DECnet support. And Karl Berry says
5483: # the Alpha needs dnet_stub (dnet does not exist).
5484: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5485: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486: /* end confdefs.h. */
1.1 bertrand 5487:
1.15 bertrand 5488: /* Override any GCC internal prototype to avoid an error.
5489: Use char because int might match the return type of a GCC
5490: builtin and then its argument prototype would still apply. */
5491: #ifdef __cplusplus
5492: extern "C"
5493: #endif
5494: char XOpenDisplay ();
5495: int
5496: main ()
5497: {
5498: return XOpenDisplay ();
5499: ;
5500: return 0;
5501: }
1.1 bertrand 5502: _ACEOF
1.15 bertrand 5503: if ac_fn_c_try_link "$LINENO"; then :
1.14 bertrand 5504:
5505: else
1.15 bertrand 5506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5507: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
1.57 bertrand 5508: if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
1.15 bertrand 5509: $as_echo_n "(cached) " >&6
5510: else
5511: ac_check_lib_save_LIBS=$LIBS
5512: LIBS="-ldnet $LIBS"
5513: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5514: /* end confdefs.h. */
1.14 bertrand 5515:
1.15 bertrand 5516: /* Override any GCC internal prototype to avoid an error.
5517: Use char because int might match the return type of a GCC
5518: builtin and then its argument prototype would still apply. */
5519: #ifdef __cplusplus
5520: extern "C"
5521: #endif
5522: char dnet_ntoa ();
5523: int
5524: main ()
5525: {
5526: return dnet_ntoa ();
5527: ;
5528: return 0;
5529: }
1.1 bertrand 5530: _ACEOF
1.15 bertrand 5531: if ac_fn_c_try_link "$LINENO"; then :
5532: ac_cv_lib_dnet_dnet_ntoa=yes
1.1 bertrand 5533: else
1.15 bertrand 5534: ac_cv_lib_dnet_dnet_ntoa=no
1.14 bertrand 5535: fi
1.15 bertrand 5536: rm -f core conftest.err conftest.$ac_objext \
5537: conftest$ac_exeext conftest.$ac_ext
5538: LIBS=$ac_check_lib_save_LIBS
1.14 bertrand 5539: fi
1.15 bertrand 5540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5541: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
1.57 bertrand 5542: if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
1.15 bertrand 5543: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14 bertrand 5544: fi
5545:
1.15 bertrand 5546: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5547: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5548: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
1.57 bertrand 5549: if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
1.15 bertrand 5550: $as_echo_n "(cached) " >&6
1.14 bertrand 5551: else
1.15 bertrand 5552: ac_check_lib_save_LIBS=$LIBS
5553: LIBS="-ldnet_stub $LIBS"
5554: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5555: /* end confdefs.h. */
1.15 bertrand 5556:
5557: /* Override any GCC internal prototype to avoid an error.
5558: Use char because int might match the return type of a GCC
5559: builtin and then its argument prototype would still apply. */
5560: #ifdef __cplusplus
5561: extern "C"
5562: #endif
5563: char dnet_ntoa ();
1.1 bertrand 5564: int
5565: main ()
5566: {
1.15 bertrand 5567: return dnet_ntoa ();
1.1 bertrand 5568: ;
5569: return 0;
5570: }
5571: _ACEOF
1.15 bertrand 5572: if ac_fn_c_try_link "$LINENO"; then :
5573: ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14 bertrand 5574: else
1.15 bertrand 5575: ac_cv_lib_dnet_stub_dnet_ntoa=no
5576: fi
5577: rm -f core conftest.err conftest.$ac_objext \
5578: conftest$ac_exeext conftest.$ac_ext
5579: LIBS=$ac_check_lib_save_LIBS
5580: fi
5581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5582: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
1.57 bertrand 5583: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
1.15 bertrand 5584: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5585: fi
1.14 bertrand 5586:
1.15 bertrand 5587: fi
1.1 bertrand 5588: fi
1.15 bertrand 5589: rm -f core conftest.err conftest.$ac_objext \
5590: conftest$ac_exeext conftest.$ac_ext
5591: LIBS="$ac_xsave_LIBS"
5592:
5593: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5594: # to get the SysV transport functions.
5595: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5596: # needs -lnsl.
5597: # The nsl library prevents programs from opening the X display
5598: # on Irix 5.2, according to T.E. Dickey.
5599: # The functions gethostbyname, getservbyname, and inet_addr are
5600: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5601: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
1.57 bertrand 5602: if test "x$ac_cv_func_gethostbyname" = xyes; then :
1.1 bertrand 5603:
5604: fi
5605:
1.15 bertrand 5606: if test $ac_cv_func_gethostbyname = no; then
5607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5608: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
1.57 bertrand 5609: if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
1.15 bertrand 5610: $as_echo_n "(cached) " >&6
1.1 bertrand 5611: else
1.15 bertrand 5612: ac_check_lib_save_LIBS=$LIBS
5613: LIBS="-lnsl $LIBS"
5614: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5615: /* end confdefs.h. */
1.15 bertrand 5616:
5617: /* Override any GCC internal prototype to avoid an error.
5618: Use char because int might match the return type of a GCC
5619: builtin and then its argument prototype would still apply. */
5620: #ifdef __cplusplus
5621: extern "C"
5622: #endif
5623: char gethostbyname ();
1.1 bertrand 5624: int
5625: main ()
5626: {
1.15 bertrand 5627: return gethostbyname ();
1.1 bertrand 5628: ;
5629: return 0;
5630: }
5631: _ACEOF
1.15 bertrand 5632: if ac_fn_c_try_link "$LINENO"; then :
5633: ac_cv_lib_nsl_gethostbyname=yes
5634: else
5635: ac_cv_lib_nsl_gethostbyname=no
5636: fi
5637: rm -f core conftest.err conftest.$ac_objext \
5638: conftest$ac_exeext conftest.$ac_ext
5639: LIBS=$ac_check_lib_save_LIBS
5640: fi
5641: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5642: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
1.57 bertrand 5643: if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
1.15 bertrand 5644: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5645: fi
5646:
5647: if test $ac_cv_lib_nsl_gethostbyname = no; then
5648: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5649: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
1.57 bertrand 5650: if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
1.15 bertrand 5651: $as_echo_n "(cached) " >&6
5652: else
5653: ac_check_lib_save_LIBS=$LIBS
5654: LIBS="-lbsd $LIBS"
5655: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5656: /* end confdefs.h. */
1.15 bertrand 5657:
5658: /* Override any GCC internal prototype to avoid an error.
5659: Use char because int might match the return type of a GCC
5660: builtin and then its argument prototype would still apply. */
5661: #ifdef __cplusplus
5662: extern "C"
5663: #endif
5664: char gethostbyname ();
1.1 bertrand 5665: int
5666: main ()
5667: {
1.15 bertrand 5668: return gethostbyname ();
1.1 bertrand 5669: ;
5670: return 0;
5671: }
5672: _ACEOF
1.15 bertrand 5673: if ac_fn_c_try_link "$LINENO"; then :
5674: ac_cv_lib_bsd_gethostbyname=yes
1.1 bertrand 5675: else
1.15 bertrand 5676: ac_cv_lib_bsd_gethostbyname=no
5677: fi
5678: rm -f core conftest.err conftest.$ac_objext \
5679: conftest$ac_exeext conftest.$ac_ext
5680: LIBS=$ac_check_lib_save_LIBS
5681: fi
5682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5683: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
1.57 bertrand 5684: if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
1.15 bertrand 5685: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5686: fi
5687:
5688: fi
5689: fi
5690:
5691: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5692: # socket/setsockopt and other routines are undefined under SCO ODT
5693: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5694: # on later versions), says Simon Leinen: it contains gethostby*
5695: # variants that don't use the name server (or something). -lsocket
5696: # must be given before -lnsl if both are needed. We assume that
5697: # if connect needs -lnsl, so does gethostbyname.
5698: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
1.57 bertrand 5699: if test "x$ac_cv_func_connect" = xyes; then :
1.14 bertrand 5700:
1.1 bertrand 5701: fi
5702:
1.15 bertrand 5703: if test $ac_cv_func_connect = no; then
5704: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5705: $as_echo_n "checking for connect in -lsocket... " >&6; }
1.57 bertrand 5706: if ${ac_cv_lib_socket_connect+:} false; then :
1.15 bertrand 5707: $as_echo_n "(cached) " >&6
1.14 bertrand 5708: else
1.15 bertrand 5709: ac_check_lib_save_LIBS=$LIBS
5710: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5711: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712: /* end confdefs.h. */
1.1 bertrand 5713:
1.15 bertrand 5714: /* Override any GCC internal prototype to avoid an error.
5715: Use char because int might match the return type of a GCC
5716: builtin and then its argument prototype would still apply. */
5717: #ifdef __cplusplus
5718: extern "C"
5719: #endif
5720: char connect ();
1.14 bertrand 5721: int
5722: main ()
5723: {
1.15 bertrand 5724: return connect ();
1.14 bertrand 5725: ;
5726: return 0;
5727: }
5728: _ACEOF
1.15 bertrand 5729: if ac_fn_c_try_link "$LINENO"; then :
5730: ac_cv_lib_socket_connect=yes
5731: else
5732: ac_cv_lib_socket_connect=no
5733: fi
5734: rm -f core conftest.err conftest.$ac_objext \
5735: conftest$ac_exeext conftest.$ac_ext
5736: LIBS=$ac_check_lib_save_LIBS
5737: fi
5738: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5739: $as_echo "$ac_cv_lib_socket_connect" >&6; }
1.57 bertrand 5740: if test "x$ac_cv_lib_socket_connect" = xyes; then :
1.15 bertrand 5741: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5742: fi
5743:
5744: fi
5745:
5746: # Guillermo Gomez says -lposix is necessary on A/UX.
5747: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
1.57 bertrand 5748: if test "x$ac_cv_func_remove" = xyes; then :
1.15 bertrand 5749:
5750: fi
5751:
5752: if test $ac_cv_func_remove = no; then
5753: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5754: $as_echo_n "checking for remove in -lposix... " >&6; }
1.57 bertrand 5755: if ${ac_cv_lib_posix_remove+:} false; then :
1.15 bertrand 5756: $as_echo_n "(cached) " >&6
5757: else
5758: ac_check_lib_save_LIBS=$LIBS
5759: LIBS="-lposix $LIBS"
5760: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5761: /* end confdefs.h. */
1.15 bertrand 5762:
5763: /* Override any GCC internal prototype to avoid an error.
5764: Use char because int might match the return type of a GCC
5765: builtin and then its argument prototype would still apply. */
5766: #ifdef __cplusplus
5767: extern "C"
5768: #endif
5769: char remove ();
1.1 bertrand 5770: int
5771: main ()
5772: {
1.15 bertrand 5773: return remove ();
1.1 bertrand 5774: ;
5775: return 0;
5776: }
5777: _ACEOF
1.15 bertrand 5778: if ac_fn_c_try_link "$LINENO"; then :
5779: ac_cv_lib_posix_remove=yes
1.14 bertrand 5780: else
1.15 bertrand 5781: ac_cv_lib_posix_remove=no
5782: fi
5783: rm -f core conftest.err conftest.$ac_objext \
5784: conftest$ac_exeext conftest.$ac_ext
5785: LIBS=$ac_check_lib_save_LIBS
5786: fi
5787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5788: $as_echo "$ac_cv_lib_posix_remove" >&6; }
1.57 bertrand 5789: if test "x$ac_cv_lib_posix_remove" = xyes; then :
1.15 bertrand 5790: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14 bertrand 5791: fi
1.1 bertrand 5792:
1.15 bertrand 5793: fi
1.14 bertrand 5794:
1.15 bertrand 5795: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5796: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
1.57 bertrand 5797: if test "x$ac_cv_func_shmat" = xyes; then :
1.14 bertrand 5798:
5799: fi
5800:
1.15 bertrand 5801: if test $ac_cv_func_shmat = no; then
5802: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5803: $as_echo_n "checking for shmat in -lipc... " >&6; }
1.57 bertrand 5804: if ${ac_cv_lib_ipc_shmat+:} false; then :
1.15 bertrand 5805: $as_echo_n "(cached) " >&6
5806: else
5807: ac_check_lib_save_LIBS=$LIBS
5808: LIBS="-lipc $LIBS"
5809: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5810: /* end confdefs.h. */
1.15 bertrand 5811:
5812: /* Override any GCC internal prototype to avoid an error.
5813: Use char because int might match the return type of a GCC
5814: builtin and then its argument prototype would still apply. */
5815: #ifdef __cplusplus
5816: extern "C"
5817: #endif
5818: char shmat ();
1.1 bertrand 5819: int
5820: main ()
5821: {
1.15 bertrand 5822: return shmat ();
1.1 bertrand 5823: ;
5824: return 0;
5825: }
5826: _ACEOF
1.15 bertrand 5827: if ac_fn_c_try_link "$LINENO"; then :
5828: ac_cv_lib_ipc_shmat=yes
1.1 bertrand 5829: else
1.15 bertrand 5830: ac_cv_lib_ipc_shmat=no
5831: fi
5832: rm -f core conftest.err conftest.$ac_objext \
5833: conftest$ac_exeext conftest.$ac_ext
5834: LIBS=$ac_check_lib_save_LIBS
5835: fi
5836: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5837: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
1.57 bertrand 5838: if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
1.15 bertrand 5839: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5840: fi
1.14 bertrand 5841:
1.15 bertrand 5842: fi
5843: fi
1.1 bertrand 5844:
1.15 bertrand 5845: # Check for libraries that X11R6 Xt/Xaw programs need.
5846: ac_save_LDFLAGS=$LDFLAGS
5847: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5848: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5849: # check for ICE first), but we must link in the order -lSM -lICE or
5850: # we get undefined symbols. So assume we have SM if we have ICE.
5851: # These have to be linked with before -lX11, unlike the other
5852: # libraries we check for below, so use a different variable.
5853: # John Interrante, Karl Berry
5854: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5855: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
1.57 bertrand 5856: if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
1.15 bertrand 5857: $as_echo_n "(cached) " >&6
1.1 bertrand 5858: else
1.15 bertrand 5859: ac_check_lib_save_LIBS=$LIBS
5860: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5861: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5862: /* end confdefs.h. */
1.15 bertrand 5863:
5864: /* Override any GCC internal prototype to avoid an error.
5865: Use char because int might match the return type of a GCC
5866: builtin and then its argument prototype would still apply. */
5867: #ifdef __cplusplus
5868: extern "C"
5869: #endif
5870: char IceConnectionNumber ();
1.1 bertrand 5871: int
5872: main ()
5873: {
1.15 bertrand 5874: return IceConnectionNumber ();
1.1 bertrand 5875: ;
5876: return 0;
5877: }
5878: _ACEOF
1.15 bertrand 5879: if ac_fn_c_try_link "$LINENO"; then :
5880: ac_cv_lib_ICE_IceConnectionNumber=yes
1.1 bertrand 5881: else
1.15 bertrand 5882: ac_cv_lib_ICE_IceConnectionNumber=no
5883: fi
5884: rm -f core conftest.err conftest.$ac_objext \
5885: conftest$ac_exeext conftest.$ac_ext
5886: LIBS=$ac_check_lib_save_LIBS
5887: fi
5888: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5889: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
1.57 bertrand 5890: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
1.15 bertrand 5891: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5892: fi
5893:
5894: LDFLAGS=$ac_save_LDFLAGS
5895:
5896: fi
5897:
1.14 bertrand 5898:
1.15 bertrand 5899: if test "$ac_x_includes" != "no"; then
5900: if test x"$ac_x_includes" != x; then
5901: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5902: includeX="-I$ac_x_includes"
5903: fi
1.1 bertrand 5904: fi
1.15 bertrand 5905: if test "$ac_x_libraries" != "no"; then
5906: if test x"$ac_x_libraries" != x; then
5907: X_LIBS="$X_LIBS -L$ac_x_libraries"
5908: fi
1.1 bertrand 5909: fi
1.15 bertrand 5910:
1.64 bertrand 5911:
1.69 bertrand 5912: # Check whether --with-32bits-abi was given.
5913: if test "${with_32bits_abi+set}" = set; then :
5914: withval=$with_32bits_abi;
1.64 bertrand 5915: if test "$with-32bits-abi" = "no"; then
1.66 bertrand 5916: ABI=
1.64 bertrand 5917: else
1.65 bertrand 5918: ABI=-m32
5919: fi
1.64 bertrand 5920: else
5921:
1.68 bertrand 5922: ABI=
1.64 bertrand 5923:
5924:
5925: fi
5926:
5927:
1.68 bertrand 5928: if test x$ABI = x; then
1.66 bertrand 5929:
1.69 bertrand 5930: # Check whether --with-64bits-abi was given.
5931: if test "${with_64bits_abi+set}" = set; then :
5932: withval=$with_64bits_abi;
1.67 bertrand 5933: if test "$with-64bits-abi" = "no"; then
5934: ABI=
5935: else
5936: ABI=-m64
5937: fi
5938: else
5939:
1.68 bertrand 5940: ABI=
1.67 bertrand 5941:
5942:
5943: fi
5944:
1.68 bertrand 5945: fi
1.67 bertrand 5946:
1.69 bertrand 5947: LDFLAGS="$LDFLAGS $ABI"
5948:
1.67 bertrand 5949:
5950: # Check whether --with-rplcas was given.
5951: if test "${with_rplcas+set}" = set; then :
5952: withval=$with_rplcas;
5953: if test "$with-rplcas" = "no"; then
5954: RPLCAS=-URPLCAS
5955: LIBRPLCAS=
5956: else
5957: RPLCAS=-DRPLCAS
5958: LIBRPLCAS=\$\(top_builddir\)/rplcas/lib/librplcas.a
5959: fi
5960: else
5961:
5962: RPLCAS=-URPLCAS
5963: LIBRPLCAS=
5964:
5965:
5966: fi
5967:
5968:
5969:
5970:
5971:
1.65 bertrand 5972:
1.15 bertrand 5973: # Check whether --enable-optimization was given.
5974: if test "${enable_optimization+set}" = set; then :
5975: enableval=$enable_optimization;
5976: if test "$enableval" = "no"; then
1.69 bertrand 5977: CFLAGS=$ABI
5978: FFLAGS=$ABI
5979: CXXFLAGS=$ABI
5980: FCFLAGS=$ABI
5981: else
5982: CFLAGS="$CFLAGS $ABI $enable_optimization"
5983: FFLAGS="$FFLAGS $ABI $enable_optimization"
5984: CXXFLAGS="$CXXFLAGS $ABI $enable_optimization"
5985: FCFLAGS="$FCFLAGS $ABI $enable_optimization"
1.1 bertrand 5986: fi
1.15 bertrand 5987: else
1.14 bertrand 5988:
1.69 bertrand 5989: CFLAGS="$CFLAGS $ABI $OPTIMISATION_C"
5990: FFLAGS="$FFLAGS $ABI $OPTIMISATION_F"
5991: CXXFLAGS="$CXXFLAGS $ABI $OPTIMISATION_CXX"
5992: FCFLAGS="$FCFLAGS $ABI $OPTIMISATION_F"
1.1 bertrand 5993:
5994:
1.15 bertrand 5995: fi
1.1 bertrand 5996:
5997:
1.87 ! bertrand 5998: # Check whether --enable-sysv-ipcs was given.
! 5999: if test "${enable_sysv_ipcs+set}" = set; then :
! 6000: enableval=$enable_sysv_ipcs;
1.36 bertrand 6001: if test "$enableval" = "no"; then
6002: IPCS_SYSV=no
6003: else
6004: IPCS_SYSV=yes
6005: fi
6006: else
1.85 bertrand 6007: REG=$LDFLAGS
6008: LDFLAGS=-lrt
6009: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX semaphores and shared objects" >&5
6010: $as_echo_n "checking for POSIX semaphores and shared objects... " >&6; }
6011: if test "$cross_compiling" = yes; then :
6012: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6013: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014: as_fn_error $? "cannot run test program while cross compiling
6015: See \`config.log' for more details" "$LINENO" 5; }
6016: else
6017: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.81 bertrand 6018: /* end confdefs.h. */
6019: #include <sys/mman.h>
6020: #include <sys/stat.h>
6021: #include <fcntl.h>
1.82 bertrand 6022:
1.81 bertrand 6023: int
6024: main ()
6025: {
1.85 bertrand 6026: int fd; char *sem = "/test";
1.81 bertrand 6027: fd = shm_open(sem , O_CREAT | O_RDWR, S_IRUSR | S_IWUSR);
6028: close(fd);
6029: shm_unlink(sem);
1.85 bertrand 6030: fd = sem_open(sem, O_CREAT | O_RDWR, S_IRUSR | S_IWUSR, 0);
6031: close(fd);
6032: sem_unlink(sem);
1.81 bertrand 6033: return(0);
6034:
6035: ;
6036: return 0;
6037: }
6038: _ACEOF
1.85 bertrand 6039: if ac_fn_c_try_run "$LINENO"; then :
1.81 bertrand 6040: IPCS_SYSV=-UIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6041: $as_echo "yes" >&6; }
6042: else
6043: IPCS_SYSV=-DIPCS_SYSV; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044: $as_echo "no" >&6; }
6045:
6046: fi
1.85 bertrand 6047: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6048: conftest.$ac_objext conftest.beam conftest.$ac_ext
6049: fi
6050:
6051: LDFLAGS=$REG
1.81 bertrand 6052:
1.36 bertrand 6053: fi
6054:
6055:
1.81 bertrand 6056: if test "$IPCS_SYSV" = "-UIPCS_SYSV"; then
6057: REG=$LDFLAGS
6058: LDFLAGS=-pthread
1.83 bertrand 6059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POSIX anonymous semaphores" >&5
6060: $as_echo_n "checking for POSIX anonymous semaphores... " >&6; }
6061: if test "$cross_compiling" = yes; then :
6062: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6063: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6064: as_fn_error $? "cannot run test program while cross compiling
6065: See \`config.log' for more details" "$LINENO" 5; }
6066: else
6067: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068: /* end confdefs.h. */
6069: #include <semaphore.h>
6070:
6071: int
6072: main ()
6073: {
6074: sem_t sem;
1.81 bertrand 6075: if (sem_init(&sem, 1, 0) != 0) return(1);
6076: sem_destroy(&sem);
6077: return(0);
1.83 bertrand 6078:
6079: ;
6080: return 0;
6081: }
6082: _ACEOF
6083: if ac_fn_c_try_run "$LINENO"; then :
6084: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6085: $as_echo "yes" >&6; }
6086: else
6087: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088: $as_echo "no" >&6; }
6089:
6090: fi
6091: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6092: conftest.$ac_objext conftest.beam conftest.$ac_ext
6093: fi
6094:
1.81 bertrand 6095: LDFLAGS=$REG
6096: REG=""
6097: else
6098: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
6099: fi
6100:
1.30 bertrand 6101: # Check whether --enable-full-static was given.
6102: if test "${enable_full_static+set}" = set; then :
6103: enableval=$enable_full_static;
6104: if test "$enableval" = "no"; then
6105: STATIC=no
6106: else
6107: STATIC=yes
6108: fi
6109: else
6110: STATIC=no
6111: fi
6112:
6113:
1.15 bertrand 6114: # Check whether --enable-final-encoding was given.
6115: if test "${enable_final_encoding+set}" = set; then :
6116: enableval=$enable_final_encoding;
6117: if test "$enableval" = "no"; then
6118: FINAL_ENCODING="\$(shell locale charmap | \
6119: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35 bertrand 6120: FORCED_FINAL_ENCODING=0
1.1 bertrand 6121: else
1.15 bertrand 6122: FINAL_ENCODING="$enable_final_encoding"
1.35 bertrand 6123: FORCED_FINAL_ENCODING=1
1.15 bertrand 6124: fi
1.1 bertrand 6125: else
1.35 bertrand 6126:
6127: FORCED_FINAL_ENCODING=0
6128: FINAL_ENCODING="\$(shell locale charmap | \
1.15 bertrand 6129: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
6130: fi
6131:
1.14 bertrand 6132:
1.15 bertrand 6133: # Check whether --enable-tex was given.
6134: if test "${enable_tex+set}" = set; then :
6135: enableval=$enable_tex;
6136: if test "$enableval" = "no"; then
6137: TEX_SUPPORT=no
6138: else
6139: TEX_SUPPORT=yes
1.1 bertrand 6140: fi
1.15 bertrand 6141: else
6142: TEX_SUPPORT=guessed
6143: fi
6144:
1.14 bertrand 6145:
1.15 bertrand 6146: # Check whether --enable-vim was given.
6147: if test "${enable_vim+set}" = set; then :
6148: enableval=$enable_vim;
6149: if test "$enableval" = "no"; then
6150: VIM_SUPPORT=no
6151: else
6152: VIM_SUPPORT=yes
6153: fi
6154: else
6155: VIM_SUPPORT=guessed
1.1 bertrand 6156: fi
6157:
1.15 bertrand 6158:
6159: # Check whether --enable-embedded-gnuplot was given.
6160: if test "${enable_embedded_gnuplot+set}" = set; then :
6161: enableval=$enable_embedded_gnuplot;
6162: if test "$enableval" = "no"; then
6163: MYGNUPLOT=no
6164: else
6165: MYGNUPLOT=yes
6166: fi
1.1 bertrand 6167: else
6168:
1.15 bertrand 6169: MYGNUPLOT=yes
6170: fi
6171:
1.14 bertrand 6172:
1.15 bertrand 6173: # Check whether --enable-gnuplot was given.
6174: if test "${enable_gnuplot+set}" = set; then :
6175: enableval=$enable_gnuplot;
6176: if test "$enableval" = "no"; then
6177: GNUPLOT_SUPPORT=no
6178: MYGNUPLOT=no
6179: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
6180: else
6181: GNUPLOT_SUPPORT=yes
6182: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
6183: fi
1.1 bertrand 6184: else
6185:
1.15 bertrand 6186: if test "$MYGNUPLOT" = "yes"; then
6187: GNUPLOT_SUPPORT=yes
6188: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
6189: else
6190: GNUPLOT_SUPPORT=guessed
6191: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
6192: fi
1.1 bertrand 6193: fi
6194:
1.15 bertrand 6195:
1.80 bertrand 6196: libX=""
6197: LIBMOTIF=""
6198: INCMOTIF=""
6199: BUILD_OPENMOTIF=""
6200:
1.15 bertrand 6201: # Check whether --enable-motif was given.
6202: if test "${enable_motif+set}" = set; then :
6203: enableval=$enable_motif;
6204: if test "$enableval" = "no"; then
6205: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6206: else
1.80 bertrand 6207: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6208: fi
1.1 bertrand 6209: else
1.80 bertrand 6210: if test "$have_x" == "yes"; then
6211: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.15 bertrand 6212: else
1.80 bertrand 6213: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.15 bertrand 6214: fi
6215: fi
1.14 bertrand 6216:
1.80 bertrand 6217:
6218: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6219: libX="$X_LIBS -lXt -lX11"
6220: LIBMOTIF="\$(top_builddir)/tools/$OPENMOTIF/lib/Xm/.libs/libXm.a \
6221: \$(top_builddir)/tools/$LIBXPM/src/.libs/libXpm.a"
6222: INCMOTIF="-I\$(top_srcdir)/tools/$OPENMOTIF/lib \
6223: -I\$(top_builddir)/tools/$OPENMOTIF/lib \
6224: -I\$(top_builddir)/tools/$LIBXPM/include"
6225: BUILD_OPENMOTIF="$LIBXPM $OPENMOTIF"
6226:
6227:
6228: subdirs="$subdirs tools/$LIBXPM"
6229:
6230: subdirs="$subdirs tools/$OPENMOTIF"
6231:
1.1 bertrand 6232: fi
6233:
1.15 bertrand 6234: # Check whether --enable-experimental was given.
6235: if test "${enable_experimental+set}" = set; then :
6236: enableval=$enable_experimental;
6237: if test "$enableval" = "no"; then
6238: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6239: else
6240: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
6241: fi
1.14 bertrand 6242: else
1.15 bertrand 6243: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6244: fi
6245:
1.1 bertrand 6246:
1.15 bertrand 6247: # Check whether --enable-debug was given.
6248: if test "${enable_debug+set}" = set; then :
6249: enableval=$enable_debug;
6250: if test "$enableval" = "no"; then
1.24 bertrand 6251: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15 bertrand 6252: else
1.24 bertrand 6253: DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.15 bertrand 6254: fi
6255: else
1.24 bertrand 6256: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
1.14 bertrand 6257: fi
1.1 bertrand 6258:
1.15 bertrand 6259:
6260: # Check whether --enable-profile was given.
6261: if test "${enable_profile+set}" = set; then :
6262: enableval=$enable_profile;
6263: if test "$enableval" = "no"; then
6264: PROFILAGE=""
6265: else
6266: PROFILAGE="-pg"
6267: fi
6268: else
6269: PROFILAGE=""
1.1 bertrand 6270: fi
6271:
1.14 bertrand 6272:
6273:
1.15 bertrand 6274:
6275: if test ! -d tools; then
6276: mkdir tools
6277: fi
6278: if test ! -d "$srcdir"/tools/$NCURSES; then
6279: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6280: (cd "$srcdir/tools" && tar -xf -)
1.51 bertrand 6281: (cd "$srcdir/tools/"$NCURSES && \
6282: for i in ../$NCURSES*.patch.gz;
6283: do gunzip -c $i | patch -p1;
6284: done);
1.15 bertrand 6285: fi
6286: if test ! -d "$srcdir"/tools/$READLINE; then
6287: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6288: (cd "$srcdir/tools" && tar -xf -)
6289: fi
6290: if test ! -d "$srcdir"/tools/$UNITS; then
6291: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6292: (cd "$srcdir/tools" && tar -xf -)
6293: fi
6294: if test ! -d "$srcdir"/tools/$GSL; then
6295: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6296: (cd "$srcdir/tools" && tar -xf -)
1.33 bertrand 6297: if test $(uname) = "OS/2"; then
6298: (cd "$srcdir"/tools/$GSL; \
6299: TMP=$(mktemp tmp.XXXXXXXXXX); \
6300: sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
6301: \mv -f $TMP ltmain.sh)
6302: fi
1.15 bertrand 6303: fi
6304: if test ! -d "$srcdir"/tools/$GPP; then
6305: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6306: (cd "$srcdir/tools" && tar -xf -)
6307: fi
6308: if test ! -d "$srcdir"/tools/$FILE; then
6309: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
6310: (cd "$srcdir/tools" && tar -xf - )
6311: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
6312: fi
6313: if test ! -d "$srcdir"/tools/$ICONV; then
6314: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6315: (cd "$srcdir/tools" && tar -xf -)
6316: fi
6317: if test ! -d "$srcdir"/tools/$SQLITE; then
6318: gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
6319: (cd "$srcdir/tools" && tar -xf -)
6320: fi
1.76 bertrand 6321: if test ! -d "$srcdir"/tools/$SIGSEGV; then
6322: gunzip -c "$srcdir"/tools/$SIGSEGV.tar.gz | \
6323: (cd "$srcdir/tools" && tar -xf -)
6324: fi
1.80 bertrand 6325: if test ! -d "$srcdir"/tools/$OPENMOTIF; then
6326: gunzip -c "$srcdir"/tools/$OPENMOTIF.tar.gz | \
6327: (cd "$srcdir/tools" && tar -xf -)
6328: fi
6329: if test ! -d "$srcdir"/tools/$LIBXPM; then
6330: gunzip -c "$srcdir"/tools/$LIBXPM.tar.gz | \
6331: (cd "$srcdir/tools" && tar -xf -)
6332: fi
1.15 bertrand 6333: if test ! -d tools/$OPENSSL; then
6334: gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
6335: (cd tools && tar -xf -)
1.1 bertrand 6336: fi
1.55 bertrand 6337: if test ! -d rplcas; then
6338: mkdir rplcas
6339: fi
6340: if test ! -d "$srcdir"/rplcas/$GMP; then
6341: gunzip -c "$srcdir"/rplcas/$GMP.tar.gz | \
6342: (cd "$srcdir/rplcas" && tar -xf -)
6343: fi
6344: if test ! -d "$srcdir"/rplcas/$MPFR; then
6345: gunzip -c "$srcdir"/rplcas/$MPFR.tar.gz | \
6346: (cd "$srcdir/rplcas" && tar -xf -)
6347: fi
1.56 bertrand 6348: if test ! -d rplcas/$NTL; then
6349: gunzip -c "$srcdir"/rplcas/$NTL.tar.gz | \
6350: (cd rplcas && tar -xf -)
6351: fi
6352: if test ! -d rplcas/$COCOA; then
6353: gunzip -c "$srcdir"/rplcas/$COCOA.tar.gz | \
6354: (cd rplcas && tar -xf -)
6355: fi
6356: if test ! -d rplcas/$PARI; then
6357: gunzip -c "$srcdir"/rplcas/$PARI.tar.gz | \
6358: (cd rplcas && tar -xf -)
6359: fi
6360: if test ! -d "$srcdir"/rplcas/$GIAC; then
6361: gunzip -c "$srcdir"/rplcas/$GIAC.tar.gz | \
6362: (cd "$srcdir/rplcas" && tar -xf -)
6363: fi
1.1 bertrand 6364:
1.84 bertrand 6365: touch tools/openmotif.lib
6366:
1.1 bertrand 6367:
6368:
1.15 bertrand 6369: # Check whether --enable-final-run-path was given.
6370: if test "${enable_final_run_path+set}" = set; then :
6371: enableval=$enable_final_run_path;
6372: if test "x$enable_final_run_path" = "x"; then
6373: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6374: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36 bertrand 6375: as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15 bertrand 6376: else
6377: RUNPATH="$enable_final_run_path"
6378: fi
1.1 bertrand 6379:
6380: else
1.15 bertrand 6381: RUNPATH="\${prefix}"
1.1 bertrand 6382:
6383: fi
6384:
1.15 bertrand 6385:
6386:
6387:
6388: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6389: $as_echo_n "checking whether ln -s works... " >&6; }
6390: LN_S=$as_ln_s
6391: if test "$LN_S" = "ln -s"; then
6392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6393: $as_echo "yes" >&6; }
6394: else
6395: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6396: $as_echo "no, using $LN_S" >&6; }
1.1 bertrand 6397: fi
6398:
1.15 bertrand 6399: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6400: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6401: set x ${MAKE-make}
6402: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.57 bertrand 6403: if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
1.15 bertrand 6404: $as_echo_n "(cached) " >&6
1.1 bertrand 6405: else
1.15 bertrand 6406: cat >conftest.make <<\_ACEOF
6407: SHELL = /bin/sh
6408: all:
6409: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14 bertrand 6410: _ACEOF
1.36 bertrand 6411: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 6412: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6413: *@@@%%%=?*=@@@%%%*)
6414: eval ac_cv_prog_make_${ac_make}_set=yes;;
6415: *)
6416: eval ac_cv_prog_make_${ac_make}_set=no;;
1.14 bertrand 6417: esac
1.15 bertrand 6418: rm -f conftest.make
6419: fi
6420: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6421: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6422: $as_echo "yes" >&6; }
6423: SET_MAKE=
6424: else
6425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426: $as_echo "no" >&6; }
6427: SET_MAKE="MAKE=${MAKE-make}"
6428: fi
1.1 bertrand 6429:
1.15 bertrand 6430: if test -n "$ac_tool_prefix"; then
6431: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6432: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6435: if ${ac_cv_prog_RANLIB+:} false; then :
1.15 bertrand 6436: $as_echo_n "(cached) " >&6
6437: else
6438: if test -n "$RANLIB"; then
6439: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 bertrand 6440: else
1.15 bertrand 6441: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442: for as_dir in $PATH
6443: do
6444: IFS=$as_save_IFS
6445: test -z "$as_dir" && as_dir=.
6446: for ac_exec_ext in '' $ac_executable_extensions; do
6447: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6449: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450: break 2
6451: fi
6452: done
6453: done
6454: IFS=$as_save_IFS
1.1 bertrand 6455:
6456: fi
1.15 bertrand 6457: fi
6458: RANLIB=$ac_cv_prog_RANLIB
6459: if test -n "$RANLIB"; then
6460: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6461: $as_echo "$RANLIB" >&6; }
6462: else
6463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464: $as_echo "no" >&6; }
6465: fi
6466:
1.1 bertrand 6467:
1.15 bertrand 6468: fi
6469: if test -z "$ac_cv_prog_RANLIB"; then
6470: ac_ct_RANLIB=$RANLIB
6471: # Extract the first word of "ranlib", so it can be a program name with args.
6472: set dummy ranlib; ac_word=$2
6473: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6475: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
1.15 bertrand 6476: $as_echo_n "(cached) " >&6
6477: else
6478: if test -n "$ac_ct_RANLIB"; then
6479: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6480: else
6481: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482: for as_dir in $PATH
6483: do
6484: IFS=$as_save_IFS
6485: test -z "$as_dir" && as_dir=.
6486: for ac_exec_ext in '' $ac_executable_extensions; do
6487: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6488: ac_cv_prog_ac_ct_RANLIB="ranlib"
6489: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490: break 2
6491: fi
6492: done
1.14 bertrand 6493: done
1.15 bertrand 6494: IFS=$as_save_IFS
6495:
6496: fi
6497: fi
6498: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6499: if test -n "$ac_ct_RANLIB"; then
6500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6501: $as_echo "$ac_ct_RANLIB" >&6; }
6502: else
6503: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504: $as_echo "no" >&6; }
6505: fi
6506:
6507: if test "x$ac_ct_RANLIB" = x; then
6508: RANLIB=":"
6509: else
6510: case $cross_compiling:$ac_tool_warned in
6511: yes:)
6512: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514: ac_tool_warned=yes ;;
6515: esac
6516: RANLIB=$ac_ct_RANLIB
6517: fi
1.14 bertrand 6518: else
1.15 bertrand 6519: RANLIB="$ac_cv_prog_RANLIB"
6520: fi
1.1 bertrand 6521:
6522:
1.15 bertrand 6523: # Extract the first word of "nawk", so it can be a program name with args.
6524: set dummy nawk; ac_word=$2
6525: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6527: if ${ac_cv_prog_AWK+:} false; then :
1.15 bertrand 6528: $as_echo_n "(cached) " >&6
6529: else
6530: if test -n "$AWK"; then
6531: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6532: else
6533: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534: for as_dir in $PATH
6535: do
6536: IFS=$as_save_IFS
6537: test -z "$as_dir" && as_dir=.
6538: for ac_exec_ext in '' $ac_executable_extensions; do
6539: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6540: ac_cv_prog_AWK="yes"
6541: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542: break 2
6543: fi
6544: done
6545: done
6546: IFS=$as_save_IFS
1.1 bertrand 6547:
1.15 bertrand 6548: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6549: fi
6550: fi
6551: AWK=$ac_cv_prog_AWK
6552: if test -n "$AWK"; then
6553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6554: $as_echo "$AWK" >&6; }
1.1 bertrand 6555: else
1.15 bertrand 6556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557: $as_echo "no" >&6; }
6558: fi
6559:
1.1 bertrand 6560:
1.15 bertrand 6561: if test "$AWK" = no; then
1.39 bertrand 6562: # Extract the first word of "gawk", so it can be a program name with args.
6563: set dummy gawk; ac_word=$2
6564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6566: if ${ac_cv_prog_AWK+:} false; then :
1.39 bertrand 6567: $as_echo_n "(cached) " >&6
6568: else
6569: if test -n "$AWK"; then
6570: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6571: else
6572: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573: for as_dir in $PATH
6574: do
6575: IFS=$as_save_IFS
6576: test -z "$as_dir" && as_dir=.
6577: for ac_exec_ext in '' $ac_executable_extensions; do
6578: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579: ac_cv_prog_AWK="yes"
6580: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581: break 2
6582: fi
6583: done
6584: done
6585: IFS=$as_save_IFS
6586:
6587: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6588: fi
6589: fi
6590: AWK=$ac_cv_prog_AWK
6591: if test -n "$AWK"; then
6592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6593: $as_echo "$AWK" >&6; }
6594: else
6595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596: $as_echo "no" >&6; }
6597: fi
6598:
6599:
6600: if test "$AWK" = no; then
6601: as_fn_error $? "Can not find nawk !" "$LINENO" 5
6602: fi
1.1 bertrand 6603: fi
6604:
1.15 bertrand 6605: # Extract the first word of "sed", so it can be a program name with args.
6606: set dummy sed; ac_word=$2
6607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6608: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6609: if ${ac_cv_prog_SED+:} false; then :
1.15 bertrand 6610: $as_echo_n "(cached) " >&6
6611: else
6612: if test -n "$SED"; then
6613: ac_cv_prog_SED="$SED" # Let the user override the test.
6614: else
6615: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616: for as_dir in $PATH
6617: do
6618: IFS=$as_save_IFS
6619: test -z "$as_dir" && as_dir=.
6620: for ac_exec_ext in '' $ac_executable_extensions; do
6621: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6622: ac_cv_prog_SED="yes"
6623: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6624: break 2
6625: fi
6626: done
1.14 bertrand 6627: done
1.15 bertrand 6628: IFS=$as_save_IFS
1.1 bertrand 6629:
1.15 bertrand 6630: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14 bertrand 6631: fi
1.15 bertrand 6632: fi
6633: SED=$ac_cv_prog_SED
6634: if test -n "$SED"; then
6635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6636: $as_echo "$SED" >&6; }
6637: else
6638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639: $as_echo "no" >&6; }
1.14 bertrand 6640: fi
1.1 bertrand 6641:
6642:
1.15 bertrand 6643: if test "$SED" = no; then
1.36 bertrand 6644: as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15 bertrand 6645: fi
1.14 bertrand 6646:
1.15 bertrand 6647: if test "$TEX_SUPPORT" = guessed; then
6648: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1 bertrand 6649:
1.15 bertrand 6650: # Extract the first word of "tex", so it can be a program name with args.
6651: set dummy tex; ac_word=$2
6652: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6654: if ${ac_cv_prog_TEX+:} false; then :
1.15 bertrand 6655: $as_echo_n "(cached) " >&6
1.1 bertrand 6656: else
1.15 bertrand 6657: if test -n "$TEX"; then
6658: ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1 bertrand 6659: else
1.15 bertrand 6660: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661: for as_dir in $PATH
6662: do
6663: IFS=$as_save_IFS
6664: test -z "$as_dir" && as_dir=.
6665: for ac_exec_ext in '' $ac_executable_extensions; do
6666: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6667: ac_cv_prog_TEX="yes"
6668: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669: break 2
6670: fi
6671: done
6672: done
6673: IFS=$as_save_IFS
1.1 bertrand 6674:
1.15 bertrand 6675: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1 bertrand 6676: fi
6677: fi
1.15 bertrand 6678: TEX=$ac_cv_prog_TEX
6679: if test -n "$TEX"; then
6680: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6681: $as_echo "$TEX" >&6; }
6682: else
6683: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684: $as_echo "no" >&6; }
1.1 bertrand 6685: fi
1.14 bertrand 6686:
6687:
1.15 bertrand 6688: if test "$TEX" = no; then
6689: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6690: Download at http://tex.loria.fr/
6691: " >&5
6692: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6693: Download at http://tex.loria.fr/
6694: " >&2;}
6695: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6696: fi
1.14 bertrand 6697:
1.15 bertrand 6698: # Extract the first word of "latex", so it can be a program name with args.
6699: set dummy latex; ac_word=$2
6700: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6702: if ${ac_cv_prog_LATEX+:} false; then :
1.15 bertrand 6703: $as_echo_n "(cached) " >&6
1.1 bertrand 6704: else
1.15 bertrand 6705: if test -n "$LATEX"; then
6706: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1 bertrand 6707: else
1.15 bertrand 6708: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709: for as_dir in $PATH
6710: do
6711: IFS=$as_save_IFS
6712: test -z "$as_dir" && as_dir=.
6713: for ac_exec_ext in '' $ac_executable_extensions; do
6714: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715: ac_cv_prog_LATEX="yes"
6716: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717: break 2
6718: fi
6719: done
6720: done
6721: IFS=$as_save_IFS
1.1 bertrand 6722:
1.15 bertrand 6723: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1 bertrand 6724: fi
6725: fi
1.15 bertrand 6726: LATEX=$ac_cv_prog_LATEX
6727: if test -n "$LATEX"; then
6728: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6729: $as_echo "$LATEX" >&6; }
6730: else
6731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732: $as_echo "no" >&6; }
6733: fi
1.14 bertrand 6734:
1.1 bertrand 6735:
1.15 bertrand 6736: if test "$LATEX" = no; then
6737: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6738: Download at http://tex.loria.fr/
6739: " >&5
6740: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6741: Download at http://tex.loria.fr/
6742: " >&2;}
6743: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6744: fi
1.1 bertrand 6745:
1.15 bertrand 6746: # Extract the first word of "dvips", so it can be a program name with args.
6747: set dummy dvips; ac_word=$2
6748: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6750: if ${ac_cv_prog_DVIPS+:} false; then :
1.15 bertrand 6751: $as_echo_n "(cached) " >&6
6752: else
6753: if test -n "$DVIPS"; then
6754: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6755: else
6756: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757: for as_dir in $PATH
6758: do
6759: IFS=$as_save_IFS
6760: test -z "$as_dir" && as_dir=.
6761: for ac_exec_ext in '' $ac_executable_extensions; do
6762: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763: ac_cv_prog_DVIPS="yes"
6764: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6765: break 2
6766: fi
6767: done
6768: done
6769: IFS=$as_save_IFS
1.1 bertrand 6770:
1.15 bertrand 6771: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6772: fi
1.1 bertrand 6773: fi
1.15 bertrand 6774: DVIPS=$ac_cv_prog_DVIPS
6775: if test -n "$DVIPS"; then
6776: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6777: $as_echo "$DVIPS" >&6; }
1.1 bertrand 6778: else
1.15 bertrand 6779: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780: $as_echo "no" >&6; }
6781: fi
1.1 bertrand 6782:
6783:
1.15 bertrand 6784: if test "$DVIPS" = no; then
6785: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6786: Download at http://tex.loria.fr/
6787: " >&5
6788: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6789: Download at http://tex.loria.fr/
6790: " >&2;}
6791: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6792: fi
1.1 bertrand 6793:
1.15 bertrand 6794: # Extract the first word of "gs", so it can be a program name with args.
6795: set dummy gs; ac_word=$2
6796: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6798: if ${ac_cv_prog_GS+:} false; then :
1.15 bertrand 6799: $as_echo_n "(cached) " >&6
6800: else
6801: if test -n "$GS"; then
6802: ac_cv_prog_GS="$GS" # Let the user override the test.
1.1 bertrand 6803: else
1.15 bertrand 6804: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805: for as_dir in $PATH
6806: do
6807: IFS=$as_save_IFS
6808: test -z "$as_dir" && as_dir=.
6809: for ac_exec_ext in '' $ac_executable_extensions; do
6810: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811: ac_cv_prog_GS="yes"
6812: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813: break 2
6814: fi
6815: done
6816: done
6817: IFS=$as_save_IFS
1.1 bertrand 6818:
1.15 bertrand 6819: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6820: fi
6821: fi
6822: GS=$ac_cv_prog_GS
6823: if test -n "$GS"; then
6824: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6825: $as_echo "$GS" >&6; }
6826: else
6827: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6828: $as_echo "no" >&6; }
1.1 bertrand 6829: fi
6830:
1.15 bertrand 6831:
6832: if test "$GS" = no; then
6833: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6834: Download at http://ftp.lip6.fr/
6835: " >&5
6836: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6837: Download at http://ftp.lip6.fr/
6838: " >&2;}
6839: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6840: fi
6841:
6842: # Extract the first word of "gv", so it can be a program name with args.
6843: set dummy gv; ac_word=$2
6844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6846: if ${ac_cv_prog_GV+:} false; then :
1.15 bertrand 6847: $as_echo_n "(cached) " >&6
6848: else
6849: if test -n "$GV"; then
6850: ac_cv_prog_GV="$GV" # Let the user override the test.
6851: else
6852: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853: for as_dir in $PATH
6854: do
6855: IFS=$as_save_IFS
6856: test -z "$as_dir" && as_dir=.
6857: for ac_exec_ext in '' $ac_executable_extensions; do
6858: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6859: ac_cv_prog_GV="yes"
6860: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6861: break 2
6862: fi
6863: done
1.14 bertrand 6864: done
1.15 bertrand 6865: IFS=$as_save_IFS
1.1 bertrand 6866:
1.15 bertrand 6867: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6868: fi
1.1 bertrand 6869: fi
1.15 bertrand 6870: GV=$ac_cv_prog_GV
6871: if test -n "$GV"; then
6872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6873: $as_echo "$GV" >&6; }
6874: else
6875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876: $as_echo "no" >&6; }
1.1 bertrand 6877: fi
1.14 bertrand 6878:
6879:
1.15 bertrand 6880: if test "$GV" = no; then
6881: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6882: Download at http://ftp.lip6.fr/
6883: " >&5
6884: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6885: Download at http://ftp.lip6.fr/
6886: " >&2;}
6887: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6888: fi
1.1 bertrand 6889: else
1.15 bertrand 6890: if test "$TEX_SUPPORT" = no; then
6891: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6892: else
6893: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6894: fi
1.1 bertrand 6895: fi
6896:
1.15 bertrand 6897: if test "$GNUPLOT_SUPPORT" = guessed; then
6898: # Extract the first word of "gnuplot", so it can be a program name with args.
6899: set dummy gnuplot; ac_word=$2
6900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6901: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6902: if ${ac_cv_prog_GNUPLOT_P+:} false; then :
1.15 bertrand 6903: $as_echo_n "(cached) " >&6
1.14 bertrand 6904: else
1.15 bertrand 6905: if test -n "$GNUPLOT_P"; then
6906: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1 bertrand 6907: else
1.15 bertrand 6908: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6909: for as_dir in $PATH
6910: do
6911: IFS=$as_save_IFS
6912: test -z "$as_dir" && as_dir=.
6913: for ac_exec_ext in '' $ac_executable_extensions; do
6914: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6915: ac_cv_prog_GNUPLOT_P="yes"
6916: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6917: break 2
6918: fi
6919: done
6920: done
6921: IFS=$as_save_IFS
1.1 bertrand 6922:
1.15 bertrand 6923: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1 bertrand 6924: fi
6925: fi
1.15 bertrand 6926: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6927: if test -n "$GNUPLOT_P"; then
6928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6929: $as_echo "$GNUPLOT_P" >&6; }
6930: else
6931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932: $as_echo "no" >&6; }
1.1 bertrand 6933: fi
6934:
6935:
1.15 bertrand 6936: if test "$GNUPLOT_P" = no; then
6937: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6938: Download at http://www.gnuplot.vt.edu/
6939: " >&5
6940: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6941: Download at http://www.gnuplot.vt.edu/
6942: " >&2;}
6943: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6944: else
6945: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6946: fi
6947: else
6948: if test "$GNUPLOT_SUPPORT" = no; then
6949: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6950: else
6951: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6952: fi
6953: fi
1.1 bertrand 6954:
1.15 bertrand 6955: if test "$VIM_SUPPORT" = guessed; then
6956: # Extract the first word of "vim", so it can be a program name with args.
6957: set dummy vim; ac_word=$2
6958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959: $as_echo_n "checking for $ac_word... " >&6; }
1.57 bertrand 6960: if ${ac_cv_prog_VIM+:} false; then :
1.15 bertrand 6961: $as_echo_n "(cached) " >&6
1.1 bertrand 6962: else
1.15 bertrand 6963: if test -n "$VIM"; then
6964: ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1 bertrand 6965: else
1.15 bertrand 6966: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967: for as_dir in $PATH
6968: do
6969: IFS=$as_save_IFS
6970: test -z "$as_dir" && as_dir=.
6971: for ac_exec_ext in '' $ac_executable_extensions; do
6972: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6973: ac_cv_prog_VIM="yes"
6974: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975: break 2
6976: fi
6977: done
6978: done
6979: IFS=$as_save_IFS
1.1 bertrand 6980:
1.15 bertrand 6981: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1 bertrand 6982: fi
6983: fi
1.15 bertrand 6984: VIM=$ac_cv_prog_VIM
6985: if test -n "$VIM"; then
6986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6987: $as_echo "$VIM" >&6; }
1.1 bertrand 6988: else
1.15 bertrand 6989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990: $as_echo "no" >&6; }
6991: fi
1.1 bertrand 6992:
6993:
1.15 bertrand 6994: if test "$VIM" = no; then
6995: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6996: Download at http://www.vim.org/
6997: " >&5
6998: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6999: Download at http://www.vim.org/
7000: " >&2;}
7001: VIM_SUPPORT="-UVIM_SUPPORT"
7002: else
7003: VIM_SUPPORT="-DVIM_SUPPORT"
7004: fi
1.1 bertrand 7005: else
1.15 bertrand 7006: if test "$VIM_SUPPORT" = no; then
7007: VIM_SUPPORT="-UVIM_SUPPORT"
7008: else
7009: VIM_SUPPORT="-DVIM_SUPPORT"
7010: fi
1.1 bertrand 7011: fi
7012:
1.14 bertrand 7013:
7014:
1.1 bertrand 7015:
7016:
1.15 bertrand 7017:
7018:
7019:
7020:
7021:
7022:
7023: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
7024:
7025:
7026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
7027: $as_echo_n "checking for main in -lm... " >&6; }
1.57 bertrand 7028: if ${ac_cv_lib_m_main+:} false; then :
1.15 bertrand 7029: $as_echo_n "(cached) " >&6
1.1 bertrand 7030: else
1.15 bertrand 7031: ac_check_lib_save_LIBS=$LIBS
7032: LIBS="-lm $LIBS"
7033: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7034: /* end confdefs.h. */
1.15 bertrand 7035:
7036:
1.1 bertrand 7037: int
7038: main ()
7039: {
1.15 bertrand 7040: return main ();
1.1 bertrand 7041: ;
7042: return 0;
7043: }
7044: _ACEOF
1.15 bertrand 7045: if ac_fn_c_try_link "$LINENO"; then :
7046: ac_cv_lib_m_main=yes
1.1 bertrand 7047: else
1.15 bertrand 7048: ac_cv_lib_m_main=no
7049: fi
7050: rm -f core conftest.err conftest.$ac_objext \
7051: conftest$ac_exeext conftest.$ac_ext
7052: LIBS=$ac_check_lib_save_LIBS
7053: fi
7054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
7055: $as_echo "$ac_cv_lib_m_main" >&6; }
1.57 bertrand 7056: if test "x$ac_cv_lib_m_main" = xyes; then :
1.15 bertrand 7057: cat >>confdefs.h <<_ACEOF
7058: #define HAVE_LIBM 1
7059: _ACEOF
1.14 bertrand 7060:
1.15 bertrand 7061: LIBS="-lm $LIBS"
1.1 bertrand 7062:
1.15 bertrand 7063: else
1.36 bertrand 7064: as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1 bertrand 7065: fi
7066:
1.87 ! bertrand 7067: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lc" >&5
! 7068: $as_echo_n "checking for pthread_mutex_init in -lc... " >&6; }
! 7069: if ${ac_cv_lib_c_pthread_mutex_init+:} false; then :
! 7070: $as_echo_n "(cached) " >&6
! 7071: else
! 7072: ac_check_lib_save_LIBS=$LIBS
! 7073: LIBS="-lc $LIBS"
! 7074: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 7075: /* end confdefs.h. */
! 7076:
! 7077: /* Override any GCC internal prototype to avoid an error.
! 7078: Use char because int might match the return type of a GCC
! 7079: builtin and then its argument prototype would still apply. */
! 7080: #ifdef __cplusplus
! 7081: extern "C"
! 7082: #endif
! 7083: char pthread_mutex_init ();
! 7084: int
! 7085: main ()
! 7086: {
! 7087: return pthread_mutex_init ();
! 7088: ;
! 7089: return 0;
! 7090: }
! 7091: _ACEOF
! 7092: if ac_fn_c_try_link "$LINENO"; then :
! 7093: ac_cv_lib_c_pthread_mutex_init=yes
! 7094: else
! 7095: ac_cv_lib_c_pthread_mutex_init=no
! 7096: fi
! 7097: rm -f core conftest.err conftest.$ac_objext \
! 7098: conftest$ac_exeext conftest.$ac_ext
! 7099: LIBS=$ac_check_lib_save_LIBS
! 7100: fi
! 7101: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pthread_mutex_init" >&5
! 7102: $as_echo "$ac_cv_lib_c_pthread_mutex_init" >&6; }
! 7103: if test "x$ac_cv_lib_c_pthread_mutex_init" = xyes; then :
! 7104: cat >>confdefs.h <<_ACEOF
! 7105: #define HAVE_LIBC 1
! 7106: _ACEOF
! 7107:
! 7108: LIBS="-lc $LIBS"
! 7109:
! 7110: else
! 7111: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
1.15 bertrand 7112: $as_echo_n "checking for main in -lpthread... " >&6; }
1.57 bertrand 7113: if ${ac_cv_lib_pthread_main+:} false; then :
1.15 bertrand 7114: $as_echo_n "(cached) " >&6
1.1 bertrand 7115: else
1.15 bertrand 7116: ac_check_lib_save_LIBS=$LIBS
7117: LIBS="-lpthread $LIBS"
7118: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7119: /* end confdefs.h. */
1.15 bertrand 7120:
7121:
1.14 bertrand 7122: int
7123: main ()
7124: {
1.15 bertrand 7125: return main ();
1.14 bertrand 7126: ;
7127: return 0;
7128: }
7129: _ACEOF
1.15 bertrand 7130: if ac_fn_c_try_link "$LINENO"; then :
7131: ac_cv_lib_pthread_main=yes
7132: else
7133: ac_cv_lib_pthread_main=no
7134: fi
7135: rm -f core conftest.err conftest.$ac_objext \
7136: conftest$ac_exeext conftest.$ac_ext
7137: LIBS=$ac_check_lib_save_LIBS
7138: fi
7139: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
7140: $as_echo "$ac_cv_lib_pthread_main" >&6; }
1.57 bertrand 7141: if test "x$ac_cv_lib_pthread_main" = xyes; then :
1.15 bertrand 7142: cat >>confdefs.h <<_ACEOF
7143: #define HAVE_LIBPTHREAD 1
1.14 bertrand 7144: _ACEOF
7145:
1.15 bertrand 7146: LIBS="-lpthread $LIBS"
7147:
1.1 bertrand 7148: else
1.36 bertrand 7149: as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15 bertrand 7150: fi
1.14 bertrand 7151:
1.87 ! bertrand 7152: fi
! 7153:
1.1 bertrand 7154:
1.33 bertrand 7155: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
7156: #include <sys/sem.h>
7157:
7158: "
1.57 bertrand 7159: if test "x$ac_cv_type_union_semun" = xyes; then :
1.33 bertrand 7160: SEMUN=-DUNION_SEMUN
7161: else
7162: SEMUN=-UUNION_SEMUN
7163: fi
7164:
7165:
1.34 bertrand 7166: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35 bertrand 7167: #include <sys/types.h>
1.34 bertrand 7168: #include <netinet/in.h>
7169:
7170: "
1.57 bertrand 7171: if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
1.34 bertrand 7172: IPV6=-DIPV6
7173: else
7174: IPV6=-UIPV6
7175: fi
7176:
7177:
1.15 bertrand 7178: if test "$CYGWIN" != yes; then
7179: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7180: $as_echo_n "checking for dlopen in -ldl... " >&6; }
1.57 bertrand 7181: if ${ac_cv_lib_dl_dlopen+:} false; then :
1.15 bertrand 7182: $as_echo_n "(cached) " >&6
1.1 bertrand 7183: else
1.15 bertrand 7184: ac_check_lib_save_LIBS=$LIBS
7185: LIBS="-ldl $LIBS"
7186: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7187: /* end confdefs.h. */
7188:
1.15 bertrand 7189: /* Override any GCC internal prototype to avoid an error.
7190: Use char because int might match the return type of a GCC
7191: builtin and then its argument prototype would still apply. */
7192: #ifdef __cplusplus
7193: extern "C"
7194: #endif
7195: char dlopen ();
1.1 bertrand 7196: int
7197: main ()
7198: {
1.15 bertrand 7199: return dlopen ();
1.1 bertrand 7200: ;
7201: return 0;
7202: }
7203: _ACEOF
1.15 bertrand 7204: if ac_fn_c_try_link "$LINENO"; then :
7205: ac_cv_lib_dl_dlopen=yes
1.1 bertrand 7206: else
1.15 bertrand 7207: ac_cv_lib_dl_dlopen=no
7208: fi
7209: rm -f core conftest.err conftest.$ac_objext \
7210: conftest$ac_exeext conftest.$ac_ext
7211: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 7212: fi
1.15 bertrand 7213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7214: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1.57 bertrand 7215: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
1.15 bertrand 7216: LIBS="$LIBS -ldl"
1.14 bertrand 7217: else
1.15 bertrand 7218: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7219: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1 bertrand 7220: fi
7221:
1.14 bertrand 7222: fi
1.1 bertrand 7223:
1.15 bertrand 7224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7225: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
1.57 bertrand 7226: if ${ac_cv_lib_rt_nanosleep+:} false; then :
1.15 bertrand 7227: $as_echo_n "(cached) " >&6
7228: else
7229: ac_check_lib_save_LIBS=$LIBS
7230: LIBS="-lrt $LIBS"
7231: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7232: /* end confdefs.h. */
1.15 bertrand 7233:
7234: /* Override any GCC internal prototype to avoid an error.
7235: Use char because int might match the return type of a GCC
7236: builtin and then its argument prototype would still apply. */
7237: #ifdef __cplusplus
7238: extern "C"
7239: #endif
7240: char nanosleep ();
1.1 bertrand 7241: int
7242: main ()
7243: {
1.15 bertrand 7244: return nanosleep ();
1.1 bertrand 7245: ;
7246: return 0;
7247: }
7248: _ACEOF
1.15 bertrand 7249: if ac_fn_c_try_link "$LINENO"; then :
7250: ac_cv_lib_rt_nanosleep=yes
7251: else
7252: ac_cv_lib_rt_nanosleep=no
7253: fi
7254: rm -f core conftest.err conftest.$ac_objext \
7255: conftest$ac_exeext conftest.$ac_ext
7256: LIBS=$ac_check_lib_save_LIBS
7257: fi
7258: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7259: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
1.57 bertrand 7260: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
1.15 bertrand 7261: LIBS="$LIBS -lrt"
1.1 bertrand 7262: else
1.15 bertrand 7263: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7264: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7265: fi
1.1 bertrand 7266:
7267:
1.15 bertrand 7268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7269: $as_echo_n "checking for bind in -lsocket... " >&6; }
1.57 bertrand 7270: if ${ac_cv_lib_socket_bind+:} false; then :
1.15 bertrand 7271: $as_echo_n "(cached) " >&6
1.1 bertrand 7272: else
1.15 bertrand 7273: ac_check_lib_save_LIBS=$LIBS
7274: LIBS="-lsocket $LIBS"
7275: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7276: /* end confdefs.h. */
1.15 bertrand 7277:
7278: /* Override any GCC internal prototype to avoid an error.
7279: Use char because int might match the return type of a GCC
7280: builtin and then its argument prototype would still apply. */
7281: #ifdef __cplusplus
7282: extern "C"
7283: #endif
7284: char bind ();
1.1 bertrand 7285: int
7286: main ()
7287: {
1.15 bertrand 7288: return bind ();
1.1 bertrand 7289: ;
7290: return 0;
7291: }
7292: _ACEOF
1.15 bertrand 7293: if ac_fn_c_try_link "$LINENO"; then :
7294: ac_cv_lib_socket_bind=yes
1.1 bertrand 7295: else
1.15 bertrand 7296: ac_cv_lib_socket_bind=no
1.1 bertrand 7297: fi
1.15 bertrand 7298: rm -f core conftest.err conftest.$ac_objext \
7299: conftest$ac_exeext conftest.$ac_ext
7300: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 7301: fi
1.15 bertrand 7302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7303: $as_echo "$ac_cv_lib_socket_bind" >&6; }
1.57 bertrand 7304: if test "x$ac_cv_lib_socket_bind" = xyes; then :
1.15 bertrand 7305: LIBS="$LIBS -lsocket"
7306: else
7307: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7308: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1 bertrand 7309: fi
7310:
7311:
1.15 bertrand 7312: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7313:
7314: # Check whether --with-mysql was given.
7315: if test "${with_mysql+set}" = set; then :
7316: withval=$with_mysql;
7317: else
7318: with_mysql=check
7319: fi
1.14 bertrand 7320:
7321:
1.15 bertrand 7322: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7323: libMySQLinc="-I/usr/include"
1.30 bertrand 7324: libMySQLlib="/usr/lib"
1.14 bertrand 7325:
1.15 bertrand 7326: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7327: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7328: saved_CFLAGS="$CFLAGS"
1.30 bertrand 7329: CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15 bertrand 7330: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7331: /* end confdefs.h. */
1.15 bertrand 7332: #include "mysql.h"
1.1 bertrand 7333: int
7334: main ()
7335: {
1.15 bertrand 7336:
1.1 bertrand 7337: ;
7338: return 0;
7339: }
7340: _ACEOF
1.15 bertrand 7341: if ac_fn_c_try_compile "$LINENO"; then :
7342: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7343: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7344: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7345: else
1.15 bertrand 7346: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1 bertrand 7348: fi
1.14 bertrand 7349: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7350: CFLAGS=$saved_CFLAGS
1.1 bertrand 7351:
1.15 bertrand 7352: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7354: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7355: saved_CFLAGS="$CFLAGS"
7356: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7357: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7358: /* end confdefs.h. */
1.15 bertrand 7359: #include "mysql.h"
1.1 bertrand 7360: int
7361: main ()
7362: {
7363:
7364: ;
7365: return 0;
7366: }
7367: _ACEOF
1.15 bertrand 7368: if ac_fn_c_try_compile "$LINENO"; then :
7369: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7370: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7371: libMySQLinc=$libMySQLinc
7372: else
7373: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7374: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7375: fi
7376: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377: CFLAGS=$saved_CFLAGS
7378: libMySQLinc=$libMySQLinc/mysql
7379: fi
7380:
7381: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7382: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7383: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7384: saved_CFLAGS="$CFLAGS"
7385: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7386: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7387: /* end confdefs.h. */
1.15 bertrand 7388: #include "mysql.h"
1.1 bertrand 7389: int
7390: main ()
7391: {
7392:
7393: ;
7394: return 0;
7395: }
7396: _ACEOF
1.15 bertrand 7397: if ac_fn_c_try_compile "$LINENO"; then :
7398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7399: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7400: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7401: else
1.15 bertrand 7402: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1 bertrand 7404: fi
7405: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7406: CFLAGS=$saved_CFLAGS
7407: libMySQLinc=$libMySQLinc/../local/include
7408: libMySQLlib=$libMySQLlib/../local/lib
7409: fi
1.1 bertrand 7410:
1.15 bertrand 7411: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7412: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7413: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7414: saved_CFLAGS="$CFLAGS"
7415: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7416: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7417: /* end confdefs.h. */
1.15 bertrand 7418: #include "mysql.h"
1.1 bertrand 7419: int
7420: main ()
7421: {
7422:
7423: ;
7424: return 0;
7425: }
7426: _ACEOF
1.15 bertrand 7427: if ac_fn_c_try_compile "$LINENO"; then :
7428: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7429: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7430: libMySQLinc=$libMySQLinc/mysql
7431: else
7432: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7434: fi
7435: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436: CFLAGS=$saved_CFLAGS
7437: libMySQLinc=$libMySQLinc/../local/include/mysql
7438: libMySQLlib=$libMySQLlib/../local/lib
7439: fi
7440: else
7441: if test "x$with_mysql" != xno; then
7442: libMySQLinc="-I$with_mysql/include"
1.30 bertrand 7443: libMySQLlib="$with_mysql/lib"
1.15 bertrand 7444:
7445: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7446: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7447: saved_CFLAGS="$CFLAGS"
7448: CFLAGS="$CFLAGS $libMySQLinc"
7449: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7450: /* end confdefs.h. */
1.15 bertrand 7451: #include "mysql.h"
1.1 bertrand 7452: int
7453: main ()
7454: {
7455:
7456: ;
7457: return 0;
7458: }
7459: _ACEOF
1.15 bertrand 7460: if ac_fn_c_try_compile "$LINENO"; then :
7461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7462: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7463: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7464: else
1.15 bertrand 7465: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7466: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14 bertrand 7467: fi
7468: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7469: CFLAGS=$saved_CFLAGS
1.1 bertrand 7470:
1.15 bertrand 7471: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7473: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7474: saved_CFLAGS="$CFLAGS"
7475: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7476: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7477: /* end confdefs.h. */
1.15 bertrand 7478: #include "mysql.h"
1.1 bertrand 7479: int
7480: main ()
7481: {
7482:
7483: ;
7484: return 0;
7485: }
7486: _ACEOF
1.15 bertrand 7487: if ac_fn_c_try_compile "$LINENO"; then :
7488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7489: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7490: libMySQLinc=$libMySQLinc
1.1 bertrand 7491: else
1.15 bertrand 7492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7494: fi
7495: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496: CFLAGS=$saved_CFLAGS
7497: libMySQLinc=$libMySQLinc/mysql
7498: fi
7499: else
7500: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7501: fi
7502: fi
1.14 bertrand 7503:
1.15 bertrand 7504: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7505: MYSQL_LIB=no
1.14 bertrand 7506:
1.15 bertrand 7507: if test $MYSQL_LIB = no; then
7508: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7509: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7510: saved_LIBS="$LIBS"
1.30 bertrand 7511: if test $STATIC = no; then
7512: LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
7513: else
7514: LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
7515: fi
1.15 bertrand 7516: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7517: /* end confdefs.h. */
1.15 bertrand 7518: #include "mysql.h"
1.1 bertrand 7519: int
7520: main ()
7521: {
1.15 bertrand 7522: MYSQL mysql; mysql_init(&mysql);
1.1 bertrand 7523: ;
7524: return 0;
7525: }
7526: _ACEOF
1.15 bertrand 7527: if ac_fn_c_try_link "$LINENO"; then :
7528: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7529: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1 bertrand 7530: else
1.15 bertrand 7531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532: $as_echo "no" >&6; }; MYSQL_LIB="no"
7533: fi
7534: rm -f core conftest.err conftest.$ac_objext \
7535: conftest$ac_exeext conftest.$ac_ext
7536: LIBS=$saved_LIBS;
1.30 bertrand 7537: if test $STATIC = no; then
7538: libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
7539: else
7540: libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
7541: EXT_SQL="$EXT_SQL $libMySQLlib"
7542: fi
1.15 bertrand 7543: fi
1.14 bertrand 7544:
1.15 bertrand 7545: if test $MYSQL_LIB = no; then
7546: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7547: fi
1.14 bertrand 7548: fi
1.15 bertrand 7549:
7550: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7551: libMySQLinc=
7552: libMySQLlib=
1.1 bertrand 7553: fi
1.14 bertrand 7554:
7555:
7556:
1.1 bertrand 7557:
7558:
1.15 bertrand 7559: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7560:
7561: # Check whether --with-postgresql was given.
7562: if test "${with_postgresql+set}" = set; then :
7563: withval=$with_postgresql;
1.14 bertrand 7564: else
1.15 bertrand 7565: with_postgresql=check
7566: fi
7567:
7568:
7569: # with_postgresql : check [pas défini], yes [uniquement --with],
7570: # no [--without], valeur [--with=valeur].
7571:
7572: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7573: libPgSQLinc="-I/usr/include"
1.30 bertrand 7574: libPgSQLlib="/usr/lib"
1.15 bertrand 7575:
7576: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7577: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7578: saved_CFLAGS="$CFLAGS"
7579: CFLAGS="$CFLAGS $libPgSQLinc"
7580: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7581: /* end confdefs.h. */
1.15 bertrand 7582: #include "libpq-fe.h"
1.1 bertrand 7583: int
7584: main ()
7585: {
1.15 bertrand 7586:
1.1 bertrand 7587: ;
7588: return 0;
7589: }
7590: _ACEOF
1.15 bertrand 7591: if ac_fn_c_try_compile "$LINENO"; then :
7592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7593: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7594: else
1.15 bertrand 7595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7597: fi
1.14 bertrand 7598: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7599: CFLAGS=$saved_CFLAGS
1.1 bertrand 7600:
1.15 bertrand 7601: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7603: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7604: saved_CFLAGS="$CFLAGS"
7605: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7606: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7607: /* end confdefs.h. */
1.15 bertrand 7608: #include "libpq-fe.h"
1.1 bertrand 7609: int
7610: main ()
7611: {
7612:
7613: ;
7614: return 0;
7615: }
7616: _ACEOF
1.15 bertrand 7617: if ac_fn_c_try_compile "$LINENO"; then :
7618: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7619: $as_echo "yes" >&6; };
7620: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7621: else
7622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623: $as_echo "no" >&6; };
7624: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7625: fi
7626: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627: CFLAGS=$saved_CFLAGS
7628: libPgSQLinc=$libPgSQLinc/postgresql
7629: fi
7630:
7631: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7632: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7633: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7634: saved_CFLAGS="$CFLAGS"
7635: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7636: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7637: /* end confdefs.h. */
1.15 bertrand 7638: #include "libpq-fe.h"
1.1 bertrand 7639: int
7640: main ()
7641: {
7642:
7643: ;
7644: return 0;
7645: }
7646: _ACEOF
1.15 bertrand 7647: if ac_fn_c_try_compile "$LINENO"; then :
7648: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7649: $as_echo "yes" >&6; };
7650: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7651: else
1.15 bertrand 7652: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7653: $as_echo "no" >&6; };
7654: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7655: fi
7656: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7657: CFLAGS=$saved_CFLAGS
7658: libPgSQLinc=$libPgSQLinc/pgsql
7659: fi
1.1 bertrand 7660:
1.15 bertrand 7661: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7663: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7664: saved_CFLAGS="$CFLAGS"
7665: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7666: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7667: /* end confdefs.h. */
1.15 bertrand 7668: #include "libpq-fe.h"
1.1 bertrand 7669: int
7670: main ()
7671: {
7672:
7673: ;
7674: return 0;
7675: }
7676: _ACEOF
1.15 bertrand 7677: if ac_fn_c_try_compile "$LINENO"; then :
7678: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7679: $as_echo "yes" >&6; };
7680: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7681: else
7682: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683: $as_echo "no" >&6; };
7684: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7685: fi
7686: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7687: CFLAGS=$saved_CFLAGS
7688: libPgSQLinc=$libPgSQLinc/../local/include
7689: libPgSQLlib=$libPgSQLlib/../local/lib
7690: fi
7691:
7692: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7694: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7695: saved_CFLAGS="$CFLAGS"
7696: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7697: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7698: /* end confdefs.h. */
1.15 bertrand 7699: #include "libpq-fe.h"
1.1 bertrand 7700: int
7701: main ()
7702: {
7703:
7704: ;
7705: return 0;
7706: }
7707: _ACEOF
1.15 bertrand 7708: if ac_fn_c_try_compile "$LINENO"; then :
7709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7710: $as_echo "yes" >&6; };
7711: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14 bertrand 7712: else
1.15 bertrand 7713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714: $as_echo "no" >&6; };
7715: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14 bertrand 7716: fi
7717: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7718: CFLAGS=$saved_CFLAGS
7719: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7720: libPgSQLlib=$libPgSQLlib/../local/lib
7721: fi
1.14 bertrand 7722:
1.15 bertrand 7723: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7724: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7725: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7726: saved_CFLAGS="$CFLAGS"
7727: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7728: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7729: /* end confdefs.h. */
1.15 bertrand 7730: #include "libpq-fe.h"
1.1 bertrand 7731: int
7732: main ()
7733: {
7734:
7735: ;
7736: return 0;
7737: }
7738: _ACEOF
1.15 bertrand 7739: if ac_fn_c_try_compile "$LINENO"; then :
7740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7741: $as_echo "yes" >&6; };
7742: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7743: else
1.15 bertrand 7744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745: $as_echo "no" >&6; };
7746: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7747: fi
7748: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7749: CFLAGS=$saved_CFLAGS
7750: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7751: libPgSQLlib=$libPgSQLlib/../local/lib
7752: fi
1.14 bertrand 7753: else
1.15 bertrand 7754: if test "x$with_postgresql" != xno; then
7755: libPgSQLinc="-I$with_postgresql/include"
1.30 bertrand 7756: libPgSQLlib="$with_postgresql/lib"
1.15 bertrand 7757:
7758: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7759: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7760: saved_CFLAGS="$CFLAGS"
7761: CFLAGS="$CFLAGS $libPgSQLinc"
7762: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7763: /* end confdefs.h. */
1.15 bertrand 7764: #include "libpq-fe.h"
1.1 bertrand 7765: int
7766: main ()
7767: {
7768:
7769: ;
7770: return 0;
7771: }
7772: _ACEOF
1.15 bertrand 7773: if ac_fn_c_try_compile "$LINENO"; then :
7774: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7775: $as_echo "yes" >&6; };
7776: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7777: else
1.15 bertrand 7778: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7779: $as_echo "no" >&6; };
7780: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14 bertrand 7781: fi
1.15 bertrand 7782: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783: CFLAGS=$saved_CFLAGS
1.14 bertrand 7784:
1.15 bertrand 7785: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7786: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7787: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7788: saved_CFLAGS="$CFLAGS"
7789: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7790: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 7791: /* end confdefs.h. */
1.15 bertrand 7792: #include "libpq-fe.h"
1.1 bertrand 7793: int
7794: main ()
7795: {
1.15 bertrand 7796:
1.1 bertrand 7797: ;
7798: return 0;
7799: }
7800: _ACEOF
1.15 bertrand 7801: if ac_fn_c_try_compile "$LINENO"; then :
7802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7803: $as_echo "yes" >&6; };
7804: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7805: else
1.15 bertrand 7806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807: $as_echo "no" >&6; };
7808: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7809: fi
7810: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7811: CFLAGS=$saved_CFLAGS
7812: libPgSQLinc=$libPgSQLinc/postgresql
7813: fi
1.14 bertrand 7814:
1.15 bertrand 7815: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7816: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7817: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7818: saved_CFLAGS="$CFLAGS"
7819: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7820: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7821: /* end confdefs.h. */
1.15 bertrand 7822: #include "libpq-fe.h"
1.1 bertrand 7823: int
7824: main ()
7825: {
1.15 bertrand 7826:
1.1 bertrand 7827: ;
7828: return 0;
7829: }
7830: _ACEOF
1.15 bertrand 7831: if ac_fn_c_try_compile "$LINENO"; then :
7832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833: $as_echo "yes" >&6; };
7834: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7835: else
1.15 bertrand 7836: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7837: $as_echo "no" >&6; };
7838: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7839: fi
1.15 bertrand 7840: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841: CFLAGS=$saved_CFLAGS
7842: libPgSQLinc=$libPgSQLinc/pgsql
7843: fi
7844: else
7845: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7846: fi
1.1 bertrand 7847: fi
7848:
1.15 bertrand 7849: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7850: POSTGRESQL_LIB=no
1.1 bertrand 7851:
1.15 bertrand 7852: if test $POSTGRESQL_LIB = no; then
7853: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7854: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7855: saved_LIBS="$LIBS"
1.30 bertrand 7856: if test $STATIC = no; then
7857: LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
7858: else
7859: LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
7860: fi
1.15 bertrand 7861: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7862: /* end confdefs.h. */
1.15 bertrand 7863: #include "libpq-fe.h"
1.1 bertrand 7864: int
7865: main ()
7866: {
1.15 bertrand 7867: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7868: PQconnectdb(conninfo);
1.1 bertrand 7869: ;
7870: return 0;
7871: }
7872: _ACEOF
1.15 bertrand 7873: if ac_fn_c_try_link "$LINENO"; then :
7874: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7875: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1 bertrand 7876: else
1.15 bertrand 7877: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7879: fi
7880: rm -f core conftest.err conftest.$ac_objext \
7881: conftest$ac_exeext conftest.$ac_ext
7882: LIBS=$saved_LIBS;
1.30 bertrand 7883: if test $STATIC = no; then
7884: libPgSQLlib="-L/$libPgSQLlib -lpq"
7885: else
7886: libPgSQLlib="$libPgSQLlib/libpq.a"
7887: EXT_SQL="$EXT_SQL $libPgSQLlib"
7888: fi
1.15 bertrand 7889: fi
7890: fi
7891:
7892: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7893: libPgSQLinc=
7894: libPgSQLlib=
7895: fi
7896:
7897:
7898:
7899:
1.14 bertrand 7900:
1.40 bertrand 7901: # with_postgresql : check [pas défini], yes [uniquement --with],
7902: # no [--without], valeur [--with=valeur].
7903:
7904: # Check whether --with-bourne_shell was given.
7905: if test "${with_bourne_shell+set}" = set; then :
7906: withval=$with_bourne_shell;
7907: else
7908: with_bourne_shell=no
7909: fi
7910:
7911:
7912: if test "x$with_bourne_shell" = xyes; then
7913: as_fn_error $? "You have to specify a valide shell path !" "$LINENO" 5
7914: fi
7915:
7916: if test "x$with_bourne_shell" = xno; then
7917: if test $(uname) = "OS/2"; then
1.86 bertrand 7918: as_fn_error $? "With OS/2 or eComstation, you have to specify a valide
7919: shell path with --with-bourne-shell=PATH !" "$LINENO" 5
1.40 bertrand 7920: fi
7921:
7922: BSH_PATH=
7923: else
7924: if test ! -x $with_bourne_shell; then
7925: as_fn_error $? "$with_bourne_shell is not executable !" "$LINENO" 5
7926: fi
7927:
7928: if test $(uname) = "OS/2"; then
1.41 bertrand 7929: with_os2_bourne_shell=$(echo $with_bourne_shell | \
7930: sed -e '1,$s/\//\\\\\\\\/g')
7931: BSH_PATH=-DBOURNE_SHELL=\"\\\"$with_os2_bourne_shell\\\"\"
1.40 bertrand 7932: else
7933: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-bourne-shell ignored" >&5
7934: $as_echo "$as_me: WARNING: --with-bourne-shell ignored" >&2;}
7935: BSH_PATH=
7936: fi
7937: fi
7938:
1.15 bertrand 7939: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7940: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
1.57 bertrand 7941: if ${ac_cv_path_GREP+:} false; then :
1.15 bertrand 7942: $as_echo_n "(cached) " >&6
7943: else
7944: if test -z "$GREP"; then
7945: ac_path_GREP_found=false
7946: # Loop through the user's path and test for each of PROGNAME-LIST
7947: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7949: do
7950: IFS=$as_save_IFS
7951: test -z "$as_dir" && as_dir=.
7952: for ac_prog in grep ggrep; do
7953: for ac_exec_ext in '' $ac_executable_extensions; do
7954: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7955: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7956: # Check for GNU ac_path_GREP and select it if it is found.
7957: # Check for GNU $ac_path_GREP
7958: case `"$ac_path_GREP" --version 2>&1` in
7959: *GNU*)
7960: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7961: *)
7962: ac_count=0
7963: $as_echo_n 0123456789 >"conftest.in"
7964: while :
7965: do
7966: cat "conftest.in" "conftest.in" >"conftest.tmp"
7967: mv "conftest.tmp" "conftest.in"
7968: cp "conftest.in" "conftest.nl"
7969: $as_echo 'GREP' >> "conftest.nl"
7970: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7971: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7972: as_fn_arith $ac_count + 1 && ac_count=$as_val
7973: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7974: # Best one so far, save it but keep looking for a better one
7975: ac_cv_path_GREP="$ac_path_GREP"
7976: ac_path_GREP_max=$ac_count
7977: fi
7978: # 10*(2^10) chars as input seems more than enough
7979: test $ac_count -gt 10 && break
7980: done
7981: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7982: esac
1.14 bertrand 7983:
1.15 bertrand 7984: $ac_path_GREP_found && break 3
7985: done
7986: done
7987: done
7988: IFS=$as_save_IFS
7989: if test -z "$ac_cv_path_GREP"; then
1.36 bertrand 7990: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15 bertrand 7991: fi
7992: else
7993: ac_cv_path_GREP=$GREP
1.1 bertrand 7994: fi
7995:
7996: fi
1.15 bertrand 7997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7998: $as_echo "$ac_cv_path_GREP" >&6; }
7999: GREP="$ac_cv_path_GREP"
8000:
8001:
8002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8003: $as_echo_n "checking for egrep... " >&6; }
1.57 bertrand 8004: if ${ac_cv_path_EGREP+:} false; then :
1.15 bertrand 8005: $as_echo_n "(cached) " >&6
8006: else
8007: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8008: then ac_cv_path_EGREP="$GREP -E"
8009: else
8010: if test -z "$EGREP"; then
8011: ac_path_EGREP_found=false
8012: # Loop through the user's path and test for each of PROGNAME-LIST
8013: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8015: do
8016: IFS=$as_save_IFS
8017: test -z "$as_dir" && as_dir=.
8018: for ac_prog in egrep; do
8019: for ac_exec_ext in '' $ac_executable_extensions; do
8020: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8021: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
8022: # Check for GNU ac_path_EGREP and select it if it is found.
8023: # Check for GNU $ac_path_EGREP
8024: case `"$ac_path_EGREP" --version 2>&1` in
8025: *GNU*)
8026: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8027: *)
8028: ac_count=0
8029: $as_echo_n 0123456789 >"conftest.in"
8030: while :
8031: do
8032: cat "conftest.in" "conftest.in" >"conftest.tmp"
8033: mv "conftest.tmp" "conftest.in"
8034: cp "conftest.in" "conftest.nl"
8035: $as_echo 'EGREP' >> "conftest.nl"
8036: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8037: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8038: as_fn_arith $ac_count + 1 && ac_count=$as_val
8039: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8040: # Best one so far, save it but keep looking for a better one
8041: ac_cv_path_EGREP="$ac_path_EGREP"
8042: ac_path_EGREP_max=$ac_count
8043: fi
8044: # 10*(2^10) chars as input seems more than enough
8045: test $ac_count -gt 10 && break
8046: done
8047: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8048: esac
8049:
8050: $ac_path_EGREP_found && break 3
8051: done
8052: done
8053: done
8054: IFS=$as_save_IFS
8055: if test -z "$ac_cv_path_EGREP"; then
1.36 bertrand 8056: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15 bertrand 8057: fi
1.1 bertrand 8058: else
1.15 bertrand 8059: ac_cv_path_EGREP=$EGREP
1.1 bertrand 8060: fi
8061:
1.15 bertrand 8062: fi
1.1 bertrand 8063: fi
1.15 bertrand 8064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8065: $as_echo "$ac_cv_path_EGREP" >&6; }
8066: EGREP="$ac_cv_path_EGREP"
1.1 bertrand 8067:
8068:
1.15 bertrand 8069: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8070: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57 bertrand 8071: if ${ac_cv_header_stdc+:} false; then :
1.15 bertrand 8072: $as_echo_n "(cached) " >&6
1.1 bertrand 8073: else
1.15 bertrand 8074: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8075: /* end confdefs.h. */
8076: #include <stdlib.h>
8077: #include <stdarg.h>
8078: #include <string.h>
8079: #include <float.h>
8080:
8081: int
8082: main ()
8083: {
8084:
8085: ;
8086: return 0;
8087: }
8088: _ACEOF
1.15 bertrand 8089: if ac_fn_c_try_compile "$LINENO"; then :
1.1 bertrand 8090: ac_cv_header_stdc=yes
8091: else
1.15 bertrand 8092: ac_cv_header_stdc=no
1.1 bertrand 8093: fi
8094: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8095:
8096: if test $ac_cv_header_stdc = yes; then
8097: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15 bertrand 8098: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8099: /* end confdefs.h. */
8100: #include <string.h>
8101:
8102: _ACEOF
8103: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15 bertrand 8104: $EGREP "memchr" >/dev/null 2>&1; then :
8105:
1.1 bertrand 8106: else
8107: ac_cv_header_stdc=no
8108: fi
8109: rm -f conftest*
8110:
8111: fi
8112:
8113: if test $ac_cv_header_stdc = yes; then
8114: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15 bertrand 8115: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8116: /* end confdefs.h. */
8117: #include <stdlib.h>
8118:
8119: _ACEOF
8120: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15 bertrand 8121: $EGREP "free" >/dev/null 2>&1; then :
8122:
1.1 bertrand 8123: else
8124: ac_cv_header_stdc=no
8125: fi
8126: rm -f conftest*
8127:
8128: fi
8129:
8130: if test $ac_cv_header_stdc = yes; then
8131: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15 bertrand 8132: if test "$cross_compiling" = yes; then :
1.1 bertrand 8133: :
8134: else
1.15 bertrand 8135: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8136: /* end confdefs.h. */
8137: #include <ctype.h>
8138: #include <stdlib.h>
8139: #if ((' ' & 0x0FF) == 0x020)
8140: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8141: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8142: #else
8143: # define ISLOWER(c) \
8144: (('a' <= (c) && (c) <= 'i') \
8145: || ('j' <= (c) && (c) <= 'r') \
8146: || ('s' <= (c) && (c) <= 'z'))
8147: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8148: #endif
8149:
8150: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8151: int
8152: main ()
8153: {
8154: int i;
8155: for (i = 0; i < 256; i++)
8156: if (XOR (islower (i), ISLOWER (i))
8157: || toupper (i) != TOUPPER (i))
8158: return 2;
8159: return 0;
8160: }
8161: _ACEOF
1.15 bertrand 8162: if ac_fn_c_try_run "$LINENO"; then :
8163:
1.14 bertrand 8164: else
1.15 bertrand 8165: ac_cv_header_stdc=no
8166: fi
8167: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8168: conftest.$ac_objext conftest.beam conftest.$ac_ext
8169: fi
1.1 bertrand 8170:
8171: fi
8172: fi
1.15 bertrand 8173: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8174: $as_echo "$ac_cv_header_stdc" >&6; }
8175: if test $ac_cv_header_stdc = yes; then
1.1 bertrand 8176:
1.15 bertrand 8177: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14 bertrand 8178:
1.1 bertrand 8179: fi
8180:
1.15 bertrand 8181: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8182: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8183: inttypes.h stdint.h unistd.h
8184: do :
8185: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8186: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8187: "
1.36 bertrand 8188: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8189: cat >>confdefs.h <<_ACEOF
8190: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14 bertrand 8191: _ACEOF
1.1 bertrand 8192:
8193: fi
8194:
1.15 bertrand 8195: done
8196:
8197:
8198: # The cast to long int works around a bug in the HP C Compiler
8199: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8200: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8201: # This bug is HP SR number 8606223364.
8202: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8203: $as_echo_n "checking size of void *... " >&6; }
1.57 bertrand 8204: if ${ac_cv_sizeof_void_p+:} false; then :
1.15 bertrand 8205: $as_echo_n "(cached) " >&6
8206: else
8207: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
1.14 bertrand 8208:
8209: else
1.15 bertrand 8210: if test "$ac_cv_type_void_p" = yes; then
8211: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8212: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8213: as_fn_error 77 "cannot compute sizeof (void *)
1.57 bertrand 8214: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8215: else
8216: ac_cv_sizeof_void_p=0
8217: fi
8218: fi
1.1 bertrand 8219:
8220: fi
1.15 bertrand 8221: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8222: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8223:
1.1 bertrand 8224:
8225:
1.15 bertrand 8226: cat >>confdefs.h <<_ACEOF
8227: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14 bertrand 8228: _ACEOF
1.1 bertrand 8229:
1.15 bertrand 8230:
8231: # The cast to long int works around a bug in the HP C Compiler
8232: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8233: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8234: # This bug is HP SR number 8606223364.
8235: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8236: $as_echo_n "checking size of char... " >&6; }
1.57 bertrand 8237: if ${ac_cv_sizeof_char+:} false; then :
1.15 bertrand 8238: $as_echo_n "(cached) " >&6
8239: else
8240: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8241:
8242: else
8243: if test "$ac_cv_type_char" = yes; then
8244: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8245: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8246: as_fn_error 77 "cannot compute sizeof (char)
1.57 bertrand 8247: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8248: else
8249: ac_cv_sizeof_char=0
8250: fi
8251: fi
8252:
1.1 bertrand 8253: fi
1.15 bertrand 8254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8255: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1 bertrand 8256:
8257:
8258:
1.15 bertrand 8259: cat >>confdefs.h <<_ACEOF
8260: #define SIZEOF_CHAR $ac_cv_sizeof_char
8261: _ACEOF
1.1 bertrand 8262:
8263:
1.15 bertrand 8264: # The cast to long int works around a bug in the HP C Compiler
8265: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8266: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8267: # This bug is HP SR number 8606223364.
8268: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8269: $as_echo_n "checking size of short int... " >&6; }
1.57 bertrand 8270: if ${ac_cv_sizeof_short_int+:} false; then :
1.15 bertrand 8271: $as_echo_n "(cached) " >&6
8272: else
8273: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
1.1 bertrand 8274:
1.15 bertrand 8275: else
8276: if test "$ac_cv_type_short_int" = yes; then
8277: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8278: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8279: as_fn_error 77 "cannot compute sizeof (short int)
1.57 bertrand 8280: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8281: else
8282: ac_cv_sizeof_short_int=0
8283: fi
8284: fi
1.1 bertrand 8285:
1.15 bertrand 8286: fi
8287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8288: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1 bertrand 8289:
8290:
8291:
1.15 bertrand 8292: cat >>confdefs.h <<_ACEOF
8293: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8294: _ACEOF
1.1 bertrand 8295:
8296:
1.15 bertrand 8297: # The cast to long int works around a bug in the HP C Compiler
8298: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8299: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8300: # This bug is HP SR number 8606223364.
8301: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8302: $as_echo_n "checking size of int... " >&6; }
1.57 bertrand 8303: if ${ac_cv_sizeof_int+:} false; then :
1.15 bertrand 8304: $as_echo_n "(cached) " >&6
8305: else
8306: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
1.1 bertrand 8307:
1.15 bertrand 8308: else
8309: if test "$ac_cv_type_int" = yes; then
8310: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8311: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8312: as_fn_error 77 "cannot compute sizeof (int)
1.57 bertrand 8313: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8314: else
8315: ac_cv_sizeof_int=0
8316: fi
8317: fi
1.1 bertrand 8318:
1.15 bertrand 8319: fi
8320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8321: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1 bertrand 8322:
8323:
8324:
1.15 bertrand 8325: cat >>confdefs.h <<_ACEOF
8326: #define SIZEOF_INT $ac_cv_sizeof_int
8327: _ACEOF
1.1 bertrand 8328:
8329:
1.15 bertrand 8330: # The cast to long int works around a bug in the HP C Compiler
8331: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8332: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8333: # This bug is HP SR number 8606223364.
8334: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8335: $as_echo_n "checking size of long int... " >&6; }
1.57 bertrand 8336: if ${ac_cv_sizeof_long_int+:} false; then :
1.15 bertrand 8337: $as_echo_n "(cached) " >&6
8338: else
8339: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
1.1 bertrand 8340:
1.14 bertrand 8341: else
1.15 bertrand 8342: if test "$ac_cv_type_long_int" = yes; then
8343: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8344: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8345: as_fn_error 77 "cannot compute sizeof (long int)
1.57 bertrand 8346: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8347: else
8348: ac_cv_sizeof_long_int=0
8349: fi
8350: fi
1.1 bertrand 8351:
8352: fi
1.15 bertrand 8353: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8354: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8355:
1.1 bertrand 8356:
8357:
1.15 bertrand 8358: cat >>confdefs.h <<_ACEOF
8359: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14 bertrand 8360: _ACEOF
1.15 bertrand 8361:
8362:
8363: # The cast to long int works around a bug in the HP C Compiler
8364: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8365: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8366: # This bug is HP SR number 8606223364.
8367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8368: $as_echo_n "checking size of long long int... " >&6; }
1.57 bertrand 8369: if ${ac_cv_sizeof_long_long_int+:} false; then :
1.15 bertrand 8370: $as_echo_n "(cached) " >&6
8371: else
8372: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8373:
1.14 bertrand 8374: else
1.15 bertrand 8375: if test "$ac_cv_type_long_long_int" = yes; then
8376: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8377: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8378: as_fn_error 77 "cannot compute sizeof (long long int)
1.57 bertrand 8379: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8380: else
8381: ac_cv_sizeof_long_long_int=0
8382: fi
8383: fi
1.1 bertrand 8384:
1.14 bertrand 8385: fi
1.15 bertrand 8386: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8387: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8388:
8389:
8390:
8391: cat >>confdefs.h <<_ACEOF
8392: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8393: _ACEOF
1.1 bertrand 8394:
8395:
1.15 bertrand 8396: # The cast to long int works around a bug in the HP C Compiler
8397: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8398: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8399: # This bug is HP SR number 8606223364.
8400: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8401: $as_echo_n "checking size of float... " >&6; }
1.57 bertrand 8402: if ${ac_cv_sizeof_float+:} false; then :
1.15 bertrand 8403: $as_echo_n "(cached) " >&6
8404: else
8405: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
1.1 bertrand 8406:
8407: else
1.15 bertrand 8408: if test "$ac_cv_type_float" = yes; then
8409: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8410: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8411: as_fn_error 77 "cannot compute sizeof (float)
1.57 bertrand 8412: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8413: else
8414: ac_cv_sizeof_float=0
8415: fi
1.14 bertrand 8416: fi
8417:
1.1 bertrand 8418: fi
1.15 bertrand 8419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8420: $as_echo "$ac_cv_sizeof_float" >&6; }
8421:
8422:
8423:
8424: cat >>confdefs.h <<_ACEOF
8425: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14 bertrand 8426: _ACEOF
1.1 bertrand 8427:
8428:
1.15 bertrand 8429: # The cast to long int works around a bug in the HP C Compiler
8430: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8431: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8432: # This bug is HP SR number 8606223364.
8433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8434: $as_echo_n "checking size of double... " >&6; }
1.57 bertrand 8435: if ${ac_cv_sizeof_double+:} false; then :
1.15 bertrand 8436: $as_echo_n "(cached) " >&6
8437: else
8438: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
1.1 bertrand 8439:
1.15 bertrand 8440: else
8441: if test "$ac_cv_type_double" = yes; then
8442: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8443: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8444: as_fn_error 77 "cannot compute sizeof (double)
1.57 bertrand 8445: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8446: else
8447: ac_cv_sizeof_double=0
8448: fi
8449: fi
1.1 bertrand 8450:
1.15 bertrand 8451: fi
8452: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8453: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14 bertrand 8454:
1.1 bertrand 8455:
8456:
1.15 bertrand 8457: cat >>confdefs.h <<_ACEOF
8458: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14 bertrand 8459: _ACEOF
1.15 bertrand 8460:
8461:
8462: # The cast to long int works around a bug in the HP C Compiler
8463: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8464: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8465: # This bug is HP SR number 8606223364.
8466: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8467: $as_echo_n "checking size of long double... " >&6; }
1.57 bertrand 8468: if ${ac_cv_sizeof_long_double+:} false; then :
1.15 bertrand 8469: $as_echo_n "(cached) " >&6
8470: else
8471: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8472:
1.14 bertrand 8473: else
1.15 bertrand 8474: if test "$ac_cv_type_long_double" = yes; then
8475: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8476: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8477: as_fn_error 77 "cannot compute sizeof (long double)
1.57 bertrand 8478: See \`config.log' for more details" "$LINENO" 5; }
1.15 bertrand 8479: else
8480: ac_cv_sizeof_long_double=0
8481: fi
8482: fi
1.1 bertrand 8483:
8484: fi
1.15 bertrand 8485: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8486: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8487:
1.1 bertrand 8488:
8489:
1.15 bertrand 8490: cat >>confdefs.h <<_ACEOF
8491: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1 bertrand 8492: _ACEOF
8493:
8494:
1.15 bertrand 8495:
8496: ac_header_dirent=no
8497: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8498: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8500: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.57 bertrand 8501: if eval \${$as_ac_Header+:} false; then :
1.15 bertrand 8502: $as_echo_n "(cached) " >&6
1.1 bertrand 8503: else
1.15 bertrand 8504: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 8505: /* end confdefs.h. */
8506: #include <sys/types.h>
1.15 bertrand 8507: #include <$ac_hdr>
1.1 bertrand 8508:
1.15 bertrand 8509: int
8510: main ()
8511: {
8512: if ((DIR *) 0)
8513: return 0;
8514: ;
8515: return 0;
8516: }
1.1 bertrand 8517: _ACEOF
1.15 bertrand 8518: if ac_fn_c_try_compile "$LINENO"; then :
8519: eval "$as_ac_Header=yes"
1.1 bertrand 8520: else
1.15 bertrand 8521: eval "$as_ac_Header=no"
8522: fi
8523: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8524: fi
1.15 bertrand 8525: eval ac_res=\$$as_ac_Header
8526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8527: $as_echo "$ac_res" >&6; }
1.36 bertrand 8528: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8529: cat >>confdefs.h <<_ACEOF
8530: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8531: _ACEOF
1.1 bertrand 8532:
1.15 bertrand 8533: ac_header_dirent=$ac_hdr; break
1.1 bertrand 8534: fi
8535:
1.15 bertrand 8536: done
8537: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8538: if test $ac_header_dirent = dirent.h; then
8539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8540: $as_echo_n "checking for library containing opendir... " >&6; }
1.57 bertrand 8541: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8542: $as_echo_n "(cached) " >&6
8543: else
8544: ac_func_search_save_LIBS=$LIBS
8545: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546: /* end confdefs.h. */
8547:
8548: /* Override any GCC internal prototype to avoid an error.
8549: Use char because int might match the return type of a GCC
8550: builtin and then its argument prototype would still apply. */
8551: #ifdef __cplusplus
8552: extern "C"
8553: #endif
8554: char opendir ();
8555: int
8556: main ()
8557: {
8558: return opendir ();
8559: ;
8560: return 0;
8561: }
1.14 bertrand 8562: _ACEOF
1.15 bertrand 8563: for ac_lib in '' dir; do
8564: if test -z "$ac_lib"; then
8565: ac_res="none required"
8566: else
8567: ac_res=-l$ac_lib
8568: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8569: fi
8570: if ac_fn_c_try_link "$LINENO"; then :
8571: ac_cv_search_opendir=$ac_res
8572: fi
8573: rm -f core conftest.err conftest.$ac_objext \
8574: conftest$ac_exeext
1.57 bertrand 8575: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8576: break
8577: fi
8578: done
1.57 bertrand 8579: if ${ac_cv_search_opendir+:} false; then :
1.1 bertrand 8580:
1.15 bertrand 8581: else
8582: ac_cv_search_opendir=no
8583: fi
8584: rm conftest.$ac_ext
8585: LIBS=$ac_func_search_save_LIBS
8586: fi
8587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8588: $as_echo "$ac_cv_search_opendir" >&6; }
8589: ac_res=$ac_cv_search_opendir
8590: if test "$ac_res" != no; then :
8591: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 bertrand 8592:
1.14 bertrand 8593: fi
1.1 bertrand 8594:
8595: else
1.15 bertrand 8596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8597: $as_echo_n "checking for library containing opendir... " >&6; }
1.57 bertrand 8598: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8599: $as_echo_n "(cached) " >&6
8600: else
8601: ac_func_search_save_LIBS=$LIBS
8602: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8603: /* end confdefs.h. */
1.15 bertrand 8604:
8605: /* Override any GCC internal prototype to avoid an error.
8606: Use char because int might match the return type of a GCC
8607: builtin and then its argument prototype would still apply. */
8608: #ifdef __cplusplus
8609: extern "C"
8610: #endif
8611: char opendir ();
1.1 bertrand 8612: int
8613: main ()
8614: {
1.15 bertrand 8615: return opendir ();
1.1 bertrand 8616: ;
8617: return 0;
8618: }
8619: _ACEOF
1.15 bertrand 8620: for ac_lib in '' x; do
8621: if test -z "$ac_lib"; then
8622: ac_res="none required"
8623: else
8624: ac_res=-l$ac_lib
8625: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8626: fi
8627: if ac_fn_c_try_link "$LINENO"; then :
8628: ac_cv_search_opendir=$ac_res
8629: fi
8630: rm -f core conftest.err conftest.$ac_objext \
8631: conftest$ac_exeext
1.57 bertrand 8632: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8633: break
8634: fi
8635: done
1.57 bertrand 8636: if ${ac_cv_search_opendir+:} false; then :
1.15 bertrand 8637:
1.1 bertrand 8638: else
1.15 bertrand 8639: ac_cv_search_opendir=no
8640: fi
8641: rm conftest.$ac_ext
8642: LIBS=$ac_func_search_save_LIBS
1.1 bertrand 8643: fi
1.15 bertrand 8644: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8645: $as_echo "$ac_cv_search_opendir" >&6; }
8646: ac_res=$ac_cv_search_opendir
8647: if test "$ac_res" != no; then :
8648: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14 bertrand 8649:
1.1 bertrand 8650: fi
8651:
8652: fi
8653:
1.15 bertrand 8654: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8655: $as_echo_n "checking for ANSI C header files... " >&6; }
1.57 bertrand 8656: if ${ac_cv_header_stdc+:} false; then :
1.15 bertrand 8657: $as_echo_n "(cached) " >&6
1.1 bertrand 8658: else
1.15 bertrand 8659: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8660: /* end confdefs.h. */
1.15 bertrand 8661: #include <stdlib.h>
8662: #include <stdarg.h>
8663: #include <string.h>
8664: #include <float.h>
8665:
1.1 bertrand 8666: int
8667: main ()
8668: {
1.15 bertrand 8669:
1.1 bertrand 8670: ;
8671: return 0;
8672: }
8673: _ACEOF
1.15 bertrand 8674: if ac_fn_c_try_compile "$LINENO"; then :
8675: ac_cv_header_stdc=yes
1.14 bertrand 8676: else
1.15 bertrand 8677: ac_cv_header_stdc=no
8678: fi
8679: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680:
8681: if test $ac_cv_header_stdc = yes; then
8682: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8683: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684: /* end confdefs.h. */
8685: #include <string.h>
8686:
8687: _ACEOF
8688: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8689: $EGREP "memchr" >/dev/null 2>&1; then :
1.14 bertrand 8690:
1.15 bertrand 8691: else
8692: ac_cv_header_stdc=no
1.1 bertrand 8693: fi
1.15 bertrand 8694: rm -f conftest*
1.14 bertrand 8695:
1.1 bertrand 8696: fi
8697:
1.15 bertrand 8698: if test $ac_cv_header_stdc = yes; then
8699: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8700: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701: /* end confdefs.h. */
8702: #include <stdlib.h>
8703:
1.14 bertrand 8704: _ACEOF
1.15 bertrand 8705: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8706: $EGREP "free" >/dev/null 2>&1; then :
8707:
8708: else
8709: ac_cv_header_stdc=no
8710: fi
8711: rm -f conftest*
1.1 bertrand 8712:
8713: fi
8714:
1.15 bertrand 8715: if test $ac_cv_header_stdc = yes; then
8716: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8717: if test "$cross_compiling" = yes; then :
8718: :
1.1 bertrand 8719: else
1.15 bertrand 8720: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8721: /* end confdefs.h. */
1.15 bertrand 8722: #include <ctype.h>
8723: #include <stdlib.h>
8724: #if ((' ' & 0x0FF) == 0x020)
8725: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8726: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8727: #else
8728: # define ISLOWER(c) \
8729: (('a' <= (c) && (c) <= 'i') \
8730: || ('j' <= (c) && (c) <= 'r') \
8731: || ('s' <= (c) && (c) <= 'z'))
8732: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8733: #endif
1.1 bertrand 8734:
1.15 bertrand 8735: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1 bertrand 8736: int
8737: main ()
8738: {
1.15 bertrand 8739: int i;
8740: for (i = 0; i < 256; i++)
8741: if (XOR (islower (i), ISLOWER (i))
8742: || toupper (i) != TOUPPER (i))
8743: return 2;
1.1 bertrand 8744: return 0;
8745: }
8746: _ACEOF
1.15 bertrand 8747: if ac_fn_c_try_run "$LINENO"; then :
8748:
1.14 bertrand 8749: else
1.15 bertrand 8750: ac_cv_header_stdc=no
8751: fi
8752: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8753: conftest.$ac_objext conftest.beam conftest.$ac_ext
8754: fi
1.14 bertrand 8755:
1.1 bertrand 8756: fi
8757: fi
1.15 bertrand 8758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8759: $as_echo "$ac_cv_header_stdc" >&6; }
8760: if test $ac_cv_header_stdc = yes; then
1.1 bertrand 8761:
1.15 bertrand 8762: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1 bertrand 8763:
8764: fi
8765:
1.15 bertrand 8766: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8767: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
1.57 bertrand 8768: if ${ac_cv_header_sys_wait_h+:} false; then :
1.15 bertrand 8769: $as_echo_n "(cached) " >&6
1.1 bertrand 8770: else
1.15 bertrand 8771: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8772: /* end confdefs.h. */
1.14 bertrand 8773: #include <sys/types.h>
1.15 bertrand 8774: #include <sys/wait.h>
8775: #ifndef WEXITSTATUS
8776: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8777: #endif
8778: #ifndef WIFEXITED
8779: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8780: #endif
1.1 bertrand 8781:
8782: int
8783: main ()
8784: {
1.15 bertrand 8785: int s;
8786: wait (&s);
8787: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1 bertrand 8788: ;
8789: return 0;
8790: }
8791: _ACEOF
1.15 bertrand 8792: if ac_fn_c_try_compile "$LINENO"; then :
8793: ac_cv_header_sys_wait_h=yes
1.1 bertrand 8794: else
1.15 bertrand 8795: ac_cv_header_sys_wait_h=no
8796: fi
8797: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798: fi
8799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8800: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8801: if test $ac_cv_header_sys_wait_h = yes; then
1.1 bertrand 8802:
1.15 bertrand 8803: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1 bertrand 8804:
8805: fi
8806:
1.15 bertrand 8807: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8808: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8809: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8810: do :
8811: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8812: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36 bertrand 8813: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8814: cat >>confdefs.h <<_ACEOF
8815: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 bertrand 8816: _ACEOF
8817:
8818: fi
8819:
1.15 bertrand 8820: done
8821:
1.1 bertrand 8822:
1.15 bertrand 8823: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8824: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
1.57 bertrand 8825: if ${ac_cv_c_const+:} false; then :
1.15 bertrand 8826: $as_echo_n "(cached) " >&6
1.1 bertrand 8827: else
1.15 bertrand 8828: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8829: /* end confdefs.h. */
8830:
8831: int
8832: main ()
8833: {
1.15 bertrand 8834: /* FIXME: Include the comments suggested by Paul. */
8835: #ifndef __cplusplus
8836: /* Ultrix mips cc rejects this. */
8837: typedef int charset[2];
8838: const charset cs;
8839: /* SunOS 4.1.1 cc rejects this. */
8840: char const *const *pcpcc;
8841: char **ppc;
8842: /* NEC SVR4.0.2 mips cc rejects this. */
8843: struct point {int x, y;};
8844: static struct point const zero = {0,0};
8845: /* AIX XL C 1.02.0.0 rejects this.
8846: It does not let you subtract one const X* pointer from another in
8847: an arm of an if-expression whose if-part is not a constant
8848: expression */
8849: const char *g = "string";
8850: pcpcc = &g + (g ? g-g : 0);
8851: /* HPUX 7.0 cc rejects these. */
8852: ++pcpcc;
8853: ppc = (char**) pcpcc;
8854: pcpcc = (char const *const *) ppc;
8855: { /* SCO 3.2v4 cc rejects this. */
8856: char *t;
8857: char const *s = 0 ? (char *) 0 : (char const *) 0;
8858:
8859: *t++ = 0;
8860: if (s) return 0;
8861: }
8862: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8863: int x[] = {25, 17};
8864: const int *foo = &x[0];
8865: ++foo;
8866: }
8867: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8868: typedef const int *iptr;
8869: iptr p = 0;
8870: ++p;
8871: }
8872: { /* AIX XL C 1.02.0.0 rejects this saying
8873: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8874: struct s { int j; const int *ap[3]; };
8875: struct s *b; b->j = 5;
8876: }
8877: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8878: const int foo = 10;
8879: if (!foo) return 0;
8880: }
8881: return !cs[0] && !zero.x;
8882: #endif
8883:
1.14 bertrand 8884: ;
1.1 bertrand 8885: return 0;
8886: }
8887: _ACEOF
1.15 bertrand 8888: if ac_fn_c_try_compile "$LINENO"; then :
8889: ac_cv_c_const=yes
1.14 bertrand 8890: else
1.15 bertrand 8891: ac_cv_c_const=no
1.1 bertrand 8892: fi
1.14 bertrand 8893: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8894: fi
1.15 bertrand 8895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8896: $as_echo "$ac_cv_c_const" >&6; }
8897: if test $ac_cv_c_const = no; then
1.1 bertrand 8898:
1.15 bertrand 8899: $as_echo "#define const /**/" >>confdefs.h
1.1 bertrand 8900:
1.15 bertrand 8901: fi
1.1 bertrand 8902:
1.15 bertrand 8903: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8904: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
1.57 bertrand 8905: if ${ac_cv_type_uid_t+:} false; then :
1.15 bertrand 8906: $as_echo_n "(cached) " >&6
1.1 bertrand 8907: else
1.15 bertrand 8908: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8909: /* end confdefs.h. */
1.15 bertrand 8910: #include <sys/types.h>
8911:
1.1 bertrand 8912: _ACEOF
1.15 bertrand 8913: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8914: $EGREP "uid_t" >/dev/null 2>&1; then :
8915: ac_cv_type_uid_t=yes
1.1 bertrand 8916: else
1.15 bertrand 8917: ac_cv_type_uid_t=no
8918: fi
8919: rm -f conftest*
1.14 bertrand 8920:
1.1 bertrand 8921: fi
1.15 bertrand 8922: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8923: $as_echo "$ac_cv_type_uid_t" >&6; }
8924: if test $ac_cv_type_uid_t = no; then
1.1 bertrand 8925:
1.15 bertrand 8926: $as_echo "#define uid_t int" >>confdefs.h
1.1 bertrand 8927:
8928:
1.15 bertrand 8929: $as_echo "#define gid_t int" >>confdefs.h
1.1 bertrand 8930:
8931: fi
8932:
1.15 bertrand 8933: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
1.57 bertrand 8934: if test "x$ac_cv_type_pid_t" = xyes; then :
1.1 bertrand 8935:
8936: else
1.15 bertrand 8937:
8938: cat >>confdefs.h <<_ACEOF
8939: #define pid_t int
1.14 bertrand 8940: _ACEOF
8941:
1.15 bertrand 8942: fi
1.14 bertrand 8943:
1.15 bertrand 8944: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
1.57 bertrand 8945: if test "x$ac_cv_type_size_t" = xyes; then :
1.14 bertrand 8946:
1.15 bertrand 8947: else
1.1 bertrand 8948:
1.15 bertrand 8949: cat >>confdefs.h <<_ACEOF
8950: #define size_t unsigned int
1.1 bertrand 8951: _ACEOF
1.14 bertrand 8952:
1.1 bertrand 8953: fi
8954:
1.15 bertrand 8955: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8956: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
1.57 bertrand 8957: if ${ac_cv_header_time+:} false; then :
1.15 bertrand 8958: $as_echo_n "(cached) " >&6
1.1 bertrand 8959: else
1.15 bertrand 8960: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8961: /* end confdefs.h. */
1.15 bertrand 8962: #include <sys/types.h>
8963: #include <sys/time.h>
8964: #include <time.h>
1.1 bertrand 8965:
1.14 bertrand 8966: int
8967: main ()
8968: {
1.15 bertrand 8969: if ((struct tm *) 0)
8970: return 0;
1.14 bertrand 8971: ;
8972: return 0;
8973: }
1.1 bertrand 8974: _ACEOF
1.15 bertrand 8975: if ac_fn_c_try_compile "$LINENO"; then :
8976: ac_cv_header_time=yes
1.1 bertrand 8977: else
1.15 bertrand 8978: ac_cv_header_time=no
1.1 bertrand 8979: fi
1.15 bertrand 8980: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8981: fi
1.15 bertrand 8982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8983: $as_echo "$ac_cv_header_time" >&6; }
8984: if test $ac_cv_header_time = yes; then
1.1 bertrand 8985:
1.15 bertrand 8986: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1 bertrand 8987:
8988: fi
8989:
1.15 bertrand 8990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8991: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
1.57 bertrand 8992: if ${ac_cv_struct_tm+:} false; then :
1.15 bertrand 8993: $as_echo_n "(cached) " >&6
1.1 bertrand 8994: else
1.15 bertrand 8995: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 8996: /* end confdefs.h. */
1.15 bertrand 8997: #include <sys/types.h>
8998: #include <time.h>
1.1 bertrand 8999:
9000: int
9001: main ()
9002: {
1.15 bertrand 9003: struct tm tm;
9004: int *p = &tm.tm_sec;
9005: return !p;
1.1 bertrand 9006: ;
9007: return 0;
9008: }
9009: _ACEOF
1.15 bertrand 9010: if ac_fn_c_try_compile "$LINENO"; then :
9011: ac_cv_struct_tm=time.h
1.1 bertrand 9012: else
1.15 bertrand 9013: ac_cv_struct_tm=sys/time.h
9014: fi
9015: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9016: fi
9017: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9018: $as_echo "$ac_cv_struct_tm" >&6; }
9019: if test $ac_cv_struct_tm = sys/time.h; then
9020:
9021: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14 bertrand 9022:
1.1 bertrand 9023: fi
9024:
9025:
1.15 bertrand 9026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
9027: $as_echo_n "checking return type of signal handlers... " >&6; }
1.57 bertrand 9028: if ${ac_cv_type_signal+:} false; then :
1.15 bertrand 9029: $as_echo_n "(cached) " >&6
1.1 bertrand 9030: else
1.15 bertrand 9031: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 9032: /* end confdefs.h. */
1.15 bertrand 9033: #include <sys/types.h>
9034: #include <signal.h>
1.1 bertrand 9035:
9036: int
9037: main ()
9038: {
1.15 bertrand 9039: return *(signal (0, 0)) (0) == 1;
1.1 bertrand 9040: ;
9041: return 0;
9042: }
9043: _ACEOF
1.15 bertrand 9044: if ac_fn_c_try_compile "$LINENO"; then :
9045: ac_cv_type_signal=int
1.1 bertrand 9046: else
1.15 bertrand 9047: ac_cv_type_signal=void
1.1 bertrand 9048: fi
1.15 bertrand 9049: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 9050: fi
1.15 bertrand 9051: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
9052: $as_echo "$ac_cv_type_signal" >&6; }
1.14 bertrand 9053:
1.15 bertrand 9054: cat >>confdefs.h <<_ACEOF
9055: #define RETSIGTYPE $ac_cv_type_signal
1.14 bertrand 9056: _ACEOF
1.1 bertrand 9057:
1.15 bertrand 9058:
9059: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
9060: $as_echo_n "checking for working strcoll... " >&6; }
1.57 bertrand 9061: if ${ac_cv_func_strcoll_works+:} false; then :
1.15 bertrand 9062: $as_echo_n "(cached) " >&6
9063: else
9064: if test "$cross_compiling" = yes; then :
9065: ac_cv_func_strcoll_works=no
9066: else
9067: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068: /* end confdefs.h. */
9069: $ac_includes_default
9070: int
9071: main ()
9072: {
9073: return (strcoll ("abc", "def") >= 0 ||
9074: strcoll ("ABC", "DEF") >= 0 ||
9075: strcoll ("123", "456") >= 0)
9076: ;
9077: return 0;
9078: }
9079: _ACEOF
9080: if ac_fn_c_try_run "$LINENO"; then :
9081: ac_cv_func_strcoll_works=yes
9082: else
9083: ac_cv_func_strcoll_works=no
9084: fi
9085: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9086: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14 bertrand 9087: fi
1.1 bertrand 9088:
9089: fi
1.15 bertrand 9090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
9091: $as_echo "$ac_cv_func_strcoll_works" >&6; }
9092: if test $ac_cv_func_strcoll_works = yes; then
1.14 bertrand 9093:
1.15 bertrand 9094: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1 bertrand 9095:
1.15 bertrand 9096: fi
1.1 bertrand 9097:
1.15 bertrand 9098: for ac_func in strftime
9099: do :
9100: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
1.57 bertrand 9101: if test "x$ac_cv_func_strftime" = xyes; then :
1.15 bertrand 9102: cat >>confdefs.h <<_ACEOF
9103: #define HAVE_STRFTIME 1
9104: _ACEOF
1.1 bertrand 9105:
9106: else
1.15 bertrand 9107: # strftime is in -lintl on SCO UNIX.
9108: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
9109: $as_echo_n "checking for strftime in -lintl... " >&6; }
1.57 bertrand 9110: if ${ac_cv_lib_intl_strftime+:} false; then :
1.15 bertrand 9111: $as_echo_n "(cached) " >&6
9112: else
9113: ac_check_lib_save_LIBS=$LIBS
9114: LIBS="-lintl $LIBS"
9115: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 9116: /* end confdefs.h. */
9117:
9118: /* Override any GCC internal prototype to avoid an error.
9119: Use char because int might match the return type of a GCC
9120: builtin and then its argument prototype would still apply. */
9121: #ifdef __cplusplus
9122: extern "C"
9123: #endif
1.15 bertrand 9124: char strftime ();
1.1 bertrand 9125: int
9126: main ()
9127: {
1.15 bertrand 9128: return strftime ();
1.1 bertrand 9129: ;
9130: return 0;
9131: }
9132: _ACEOF
1.15 bertrand 9133: if ac_fn_c_try_link "$LINENO"; then :
9134: ac_cv_lib_intl_strftime=yes
1.1 bertrand 9135: else
1.15 bertrand 9136: ac_cv_lib_intl_strftime=no
9137: fi
9138: rm -f core conftest.err conftest.$ac_objext \
9139: conftest$ac_exeext conftest.$ac_ext
9140: LIBS=$ac_check_lib_save_LIBS
9141: fi
9142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
9143: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
1.57 bertrand 9144: if test "x$ac_cv_lib_intl_strftime" = xyes; then :
1.15 bertrand 9145: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
9146:
9147: LIBS="-lintl $LIBS"
9148: fi
9149:
9150: fi
9151: done
9152:
9153: for ac_func in vprintf
9154: do :
9155: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
1.57 bertrand 9156: if test "x$ac_cv_func_vprintf" = xyes; then :
1.15 bertrand 9157: cat >>confdefs.h <<_ACEOF
9158: #define HAVE_VPRINTF 1
9159: _ACEOF
9160:
9161: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
1.57 bertrand 9162: if test "x$ac_cv_func__doprnt" = xyes; then :
1.15 bertrand 9163:
9164: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1 bertrand 9165:
9166: fi
9167:
9168: fi
1.15 bertrand 9169: done
9170:
9171:
9172: for ac_func in ftime getcwd putenv select strcspn strdup \
9173: strerror strspn strstr strtod
9174: do :
9175: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9176: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36 bertrand 9177: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1 bertrand 9178: cat >>confdefs.h <<_ACEOF
1.15 bertrand 9179: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 bertrand 9180: _ACEOF
9181:
9182: fi
9183: done
9184:
9185:
1.15 bertrand 9186:
9187: # Check whether --with-openssl_arch was given.
9188: if test "${with_openssl_arch+set}" = set; then :
9189: withval=$with_openssl_arch;
9190: else
9191: with_openssl_arch=none
9192: fi
9193:
9194:
1.31 bertrand 9195: if test $(uname) = "OS/2"; then
1.34 bertrand 9196: bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15 bertrand 9197: else
1.31 bertrand 9198: if test "x$with_openssl_arch" = xnone; then
1.67 bertrand 9199: (cd tools/$OPENSSL && ./config no-asm)
1.31 bertrand 9200: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
9201: (cd tools/$OPENSSL && ./Configure)
1.36 bertrand 9202: as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31 bertrand 9203: elif test "x$with_openssl_arch" = xlist; then
9204: (cd tools/$OPENSSL && ./Configure)
1.36 bertrand 9205: as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31 bertrand 9206: else
1.67 bertrand 9207: (cd tools/$OPENSSL && ./Configure no-asm $with_openssl_arch)
1.31 bertrand 9208: fi
1.15 bertrand 9209: fi
1.1 bertrand 9210:
9211: if test "$MYGNUPLOT" = "yes"; then
9212: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9213: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9214: (cd "$srcdir/tools" && tar -xf -)
9215: fi
1.80 bertrand 9216: subdirs="$subdirs tools/$GNUPLOT"
1.1 bertrand 9217:
9218: GNUPLOT_COMPILATION=$GNUPLOT
9219: else
9220: GNUPLOT_COMPILATION=
9221: fi
9222:
9223:
9224:
1.69 bertrand 9225: HOST=$host
9226:
9227:
1.87 ! bertrand 9228: my_save_cflags="$CFLAGS"
! 9229: FPCFLAGS=""
! 9230:
! 9231: CFLAGS=-malign-double
! 9232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -malign-double" >&5
! 9233: $as_echo_n "checking whether CC supports -malign-double... " >&6; }
! 9234: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 9235: /* end confdefs.h. */
! 9236:
! 9237: int
! 9238: main ()
! 9239: {
1.1 bertrand 9240:
1.87 ! bertrand 9241: ;
! 9242: return 0;
! 9243: }
! 9244: _ACEOF
! 9245: if ac_fn_c_try_compile "$LINENO"; then :
! 9246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 9247: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -malign-double"
! 9248: else
! 9249: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 9250: $as_echo "no" >&6; }
! 9251: fi
! 9252: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 9253: CFLAGS=-mieee-fp
! 9254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee-fp" >&5
! 9255: $as_echo_n "checking whether CC supports -mieee-fp... " >&6; }
! 9256: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 9257: /* end confdefs.h. */
! 9258:
! 9259: int
! 9260: main ()
! 9261: {
1.1 bertrand 9262:
1.87 ! bertrand 9263: ;
! 9264: return 0;
! 9265: }
! 9266: _ACEOF
! 9267: if ac_fn_c_try_compile "$LINENO"; then :
! 9268: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 9269: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee-fp"
! 9270: else
! 9271: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 9272: $as_echo "no" >&6; }
! 9273: fi
! 9274: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 9275: CFLAGS=-mieee
! 9276: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CC supports -mieee" >&5
! 9277: $as_echo_n "checking whether CC supports -mieee... " >&6; }
! 9278: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 9279: /* end confdefs.h. */
1.1 bertrand 9280:
1.87 ! bertrand 9281: int
! 9282: main ()
! 9283: {
1.1 bertrand 9284:
1.87 ! bertrand 9285: ;
! 9286: return 0;
! 9287: }
! 9288: _ACEOF
! 9289: if ac_fn_c_try_compile "$LINENO"; then :
! 9290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
! 9291: $as_echo "yes" >&6; }; FPCFLAGS="$FPCFLAGS -mieee"
! 9292: else
! 9293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 9294: $as_echo "no" >&6; }
! 9295: fi
! 9296: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 9297: CFLAGS=$my_save_cflags
1.1 bertrand 9298:
1.87 ! bertrand 9299: CFLAGS="$CFLAGS $FPCFLAGS -Wall -funsigned-char -Wno-pointer-sign"
! 9300: FFLAGS="$FFLAGS $FPCFLAGS -Wall -fno-f2c"
! 9301: FCFLAGS="$FCFLAGS $FPCFLAGS -Wall -fno-f2c"
! 9302: CXXFLAGS="$CXXFLAGS $FPCFLAGS -Wall -funsigned-char"
1.1 bertrand 9303:
1.87 ! bertrand 9304: case $target_os in
1.8 bertrand 9305:
9306: cygwin*)
9307: OS=Cygwin
9308: break ;;
9309:
9310: interix*)
9311: OS=Interix
9312: break ;;
9313:
9314: *)
9315: OS=$(uname)
9316: break ;;
9317:
9318: esac
9319:
9320:
9321:
1.1 bertrand 9322: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9323: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
1.49 bertrand 9324: MALLOC=
1.1 bertrand 9325:
1.22 bertrand 9326: case $OS in
1.17 bertrand 9327:
9328: Darwin)
1.31 bertrand 9329: EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17 bertrand 9330: NESTED_FUNCTIONS=-fnested-functions
1.23 bertrand 9331: CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31 bertrand 9332: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69 bertrand 9333: --disable-shared --enable-static --enable-threads \
9334: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9335: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9336: LDFLAGS=\"$LDFLAGS\""
1.33 bertrand 9337: C_STANDARD=-std=gnu99
1.75 bertrand 9338: ELF=
1.17 bertrand 9339: break ;;
9340:
1.31 bertrand 9341: Cygwin)
9342: EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17 bertrand 9343: NESTED_FUNCTIONS=
1.31 bertrand 9344: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69 bertrand 9345: --disable-shared --enable-static --enable-threads \
9346: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9347: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9348: LDFLAGS=\"$LDFLAGS\""
1.33 bertrand 9349: C_STANDARD=-std=gnu99
1.75 bertrand 9350: ELF=
1.17 bertrand 9351: break ;;
9352:
1.34 bertrand 9353: Interix)
9354: EXPORT_DYNAMIC=-Wl,--export-all-symbols
9355: NESTED_FUNCTIONS=
9356: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69 bertrand 9357: --disable-shared --enable-static --enable-threads \
9358: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9359: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9360: LDFLAGS=\"$LDFLAGS\""
1.34 bertrand 9361: C_STANDARD=-std=gnu99
1.75 bertrand 9362: ELF=
1.34 bertrand 9363: break;;
9364:
1.31 bertrand 9365: AIX)
9366: EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18 bertrand 9367: NESTED_FUNCTIONS=
1.31 bertrand 9368: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69 bertrand 9369: --disable-shared --enable-static --enable-threads \
9370: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9371: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9372: LDFLAGS=\"$LDFLAGS\""
1.33 bertrand 9373: C_STANDARD=-std=gnu99
1.75 bertrand 9374: ELF=
1.18 bertrand 9375: break ;;
9376:
1.31 bertrand 9377: OS/2)
1.37 bertrand 9378: if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35 bertrand 9379: FINAL_ENCODING=CP850; \
9380: fi;
1.31 bertrand 9381: OS=OS2
9382: NESTED_FUNCTIONS=
9383: EXPORT_DYNAMIC=-Zmap
9384: ac_configure_args="$ac_configure_args --without-readline \
1.49 bertrand 9385: --without-cairo --disable-shared --enable-static \
1.69 bertrand 9386: --enable-threads \
9387: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9388: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9389: LDFLAGS=\"$LDFLAGS\""
1.33 bertrand 9390: C_STANDARD=
1.75 bertrand 9391: ELF=
1.31 bertrand 9392: break;;
9393:
1.35 bertrand 9394: OpenBSD)
1.37 bertrand 9395: if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35 bertrand 9396: FINAL_ENCODING=UTF-8; \
9397: fi;
9398: EXPORT_DYNAMIC=-Wl,--export-dynamic
9399: NESTED_FUNCTIONS=
9400: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69 bertrand 9401: --disable-shared --enable-static --enable-threads \
9402: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9403: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9404: LDFLAGS=\"$LDFLAGS\""
1.35 bertrand 9405: C_STANDARD=-std=gnu99
1.75 bertrand 9406: ELF=
1.35 bertrand 9407: break;;
9408:
1.49 bertrand 9409: SunOS)
9410: EXPORT_DYNAMIC=-Wl,--export-dynamic
9411: NESTED_FUNCTIONS=
9412:
9413: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69 bertrand 9414: --disable-shared --enable-static --enable-threads \
9415: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9416: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9417: LDFLAGS=\"$LDFLAGS\""
1.49 bertrand 9418: C_STANDARD=-std=gnu99
9419: MALLOC=-lumem
1.75 bertrand 9420: ELF=
9421: break ;;
9422:
9423: NetBSD)
9424: EXPORT_DYNAMIC=-Wl,--export-dynamic
9425: NESTED_FUNCTIONS=
9426:
9427: ac_configure_args="$ac_configure_args --with-readline=builtin \
9428: --disable-shared --enable-static --enable-threads \
9429: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9430: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9431: LDFLAGS=\"$LDFLAGS\""
9432: C_STANDARD=-std=gnu99
9433: GCCBIN=`which gcc`
9434: GCCLIB=`dirname $GCCBIN`/../lib
9435: ELF="-Wl,-R/usr/pkg/lib -Wl,-R$GCCLIB"
1.49 bertrand 9436: break ;;
9437:
1.17 bertrand 9438: *)
1.31 bertrand 9439: EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17 bertrand 9440: NESTED_FUNCTIONS=
1.36 bertrand 9441:
1.31 bertrand 9442: ac_configure_args="$ac_configure_args --with-readline=builtin \
1.69 bertrand 9443: --disable-shared --enable-static --enable-threads \
9444: CFLAGS=\"$CFLAGS\" CXXFLAGS=\"$CXXFLAGS\" \
9445: FFLAGS=\"$FFLAGS\" FCFLAGS=\"$FCFLAGS\" \
9446: LDFLAGS=\"$LDFLAGS\""
1.33 bertrand 9447: C_STANDARD=-std=gnu99
1.75 bertrand 9448: ELF=
1.17 bertrand 9449: break ;;
9450:
9451: esac
9452:
9453:
9454:
9455:
1.1 bertrand 9456:
9457:
9458:
9459:
9460:
9461:
9462:
9463:
9464:
9465:
9466:
9467:
9468:
9469:
9470:
9471:
9472:
9473:
9474:
1.9 bertrand 9475:
1.24 bertrand 9476:
1.30 bertrand 9477:
1.33 bertrand 9478:
9479:
9480:
1.34 bertrand 9481:
1.35 bertrand 9482:
1.49 bertrand 9483:
1.55 bertrand 9484:
9485:
1.56 bertrand 9486:
9487:
9488:
9489:
1.69 bertrand 9490:
1.75 bertrand 9491:
1.78 bertrand 9492:
1.80 bertrand 9493:
9494:
9495:
1.82 bertrand 9496:
1.69 bertrand 9497: subdirs="$subdirs tools/$NCURSES"
9498:
9499: subdirs="$subdirs tools/$READLINE"
9500:
9501: subdirs="$subdirs tools/$GSL"
9502:
9503: subdirs="$subdirs tools/$GPP"
9504:
9505: subdirs="$subdirs tools/$FILE"
9506:
9507: subdirs="$subdirs tools/$ICONV"
9508:
9509: subdirs="$subdirs tools/$SQLITE"
9510:
9511: subdirs="$subdirs tools/$UNITS"
9512:
1.76 bertrand 9513: subdirs="$subdirs tools/$SIGSEGV"
9514:
1.69 bertrand 9515:
1.1 bertrand 9516: ac_config_files="$ac_config_files Makefile"
9517:
9518: ac_config_files="$ac_config_files COPYING"
9519:
9520: ac_config_files="$ac_config_files tools/Makefile"
9521:
9522: ac_config_files="$ac_config_files src/Makefile"
9523:
9524: ac_config_files="$ac_config_files man/Makefile"
9525:
9526: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9527:
9528: ac_config_files="$ac_config_files doc/Makefile"
9529:
9530: ac_config_files="$ac_config_files scripts/Makefile"
9531:
9532: ac_config_files="$ac_config_files scripts/mkrplso"
9533:
9534: ac_config_files="$ac_config_files scripts/rplcc"
9535:
9536: ac_config_files="$ac_config_files scripts/rpllink"
9537:
9538: ac_config_files="$ac_config_files rpltags/Makefile"
9539:
9540: ac_config_files="$ac_config_files rpliconv/Makefile"
9541:
1.9 bertrand 9542: ac_config_files="$ac_config_files rplsums/Makefile"
9543:
1.55 bertrand 9544: ac_config_files="$ac_config_files rplcas/Makefile"
9545:
1.39 bertrand 9546: ac_config_files="$ac_config_files rplawk/Makefile"
9547:
1.1 bertrand 9548: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9549:
9550: ac_config_files="$ac_config_files lapack/blas/Makefile"
9551:
9552:
9553: ac_config_files="$ac_config_files man/rpl.1"
9554:
9555: ac_config_files="$ac_config_files man/rplcc.1"
9556:
9557: ac_config_files="$ac_config_files man/rpllink.1"
9558:
9559: ac_config_files="$ac_config_files man/rpltags.1"
9560:
9561: ac_config_files="$ac_config_files man/mkrplso.1"
9562:
9563: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9564:
9565: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9566:
9567: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9568:
9569: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9570:
9571: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9572:
9573:
9574: cat >confcache <<\_ACEOF
9575: # This file is a shell script that caches the results of configure
9576: # tests run on this system so they can be shared between configure
9577: # scripts and configure runs, see configure's option --config-cache.
9578: # It is not useful on other systems. If it contains results you don't
9579: # want to keep, you may remove or edit it.
9580: #
9581: # config.status only pays attention to the cache file if you give it
9582: # the --recheck option to rerun configure.
9583: #
9584: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9585: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9586: # following values.
9587:
9588: _ACEOF
9589:
9590: # The following way of writing the cache mishandles newlines in values,
9591: # but we know of no workaround that is simple, portable, and efficient.
9592: # So, we kill variables containing newlines.
9593: # Ultrix sh set writes to stderr and can't be redirected directly,
9594: # and sets the high bit in the cache file unless we assign to the vars.
9595: (
9596: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9597: eval ac_val=\$$ac_var
9598: case $ac_val in #(
9599: *${as_nl}*)
9600: case $ac_var in #(
1.15 bertrand 9601: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9602: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 bertrand 9603: esac
9604: case $ac_var in #(
9605: _ | IFS | as_nl) ;; #(
1.15 bertrand 9606: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9607: *) { eval $ac_var=; unset $ac_var;} ;;
1.1 bertrand 9608: esac ;;
9609: esac
9610: done
9611:
9612: (set) 2>&1 |
9613: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9614: *${as_nl}ac_space=\ *)
1.15 bertrand 9615: # `set' does not quote correctly, so add quotes: double-quote
9616: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1 bertrand 9617: sed -n \
9618: "s/'/'\\\\''/g;
9619: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9620: ;; #(
9621: *)
9622: # `set' quotes correctly as required by POSIX, so do not add quotes.
9623: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9624: ;;
9625: esac |
9626: sort
9627: ) |
9628: sed '
9629: /^ac_cv_env_/b end
9630: t clear
9631: :clear
9632: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9633: t end
9634: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9635: :end' >>confcache
9636: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9637: if test -w "$cache_file"; then
1.57 bertrand 9638: if test "x$cache_file" != "x/dev/null"; then
1.15 bertrand 9639: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9640: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.57 bertrand 9641: if test ! -f "$cache_file" || test -h "$cache_file"; then
9642: cat confcache >"$cache_file"
9643: else
9644: case $cache_file in #(
9645: */* | ?:*)
9646: mv -f confcache "$cache_file"$$ &&
9647: mv -f "$cache_file"$$ "$cache_file" ;; #(
9648: *)
9649: mv -f confcache "$cache_file" ;;
9650: esac
9651: fi
9652: fi
1.1 bertrand 9653: else
1.15 bertrand 9654: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9655: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 bertrand 9656: fi
9657: fi
9658: rm -f confcache
9659:
9660: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9661: # Let make expand exec_prefix.
9662: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9663:
9664: DEFS=-DHAVE_CONFIG_H
9665:
9666: ac_libobjs=
9667: ac_ltlibobjs=
1.36 bertrand 9668: U=
1.1 bertrand 9669: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9670: # 1. Remove the extension, and $U if already installed.
9671: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15 bertrand 9672: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1 bertrand 9673: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9674: # will be set to the directory where LIBOBJS objects are built.
1.15 bertrand 9675: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9676: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1 bertrand 9677: done
9678: LIBOBJS=$ac_libobjs
9679:
9680: LTLIBOBJS=$ac_ltlibobjs
9681:
9682:
1.15 bertrand 9683: if test -n "$EXEEXT"; then
9684: am__EXEEXT_TRUE=
9685: am__EXEEXT_FALSE='#'
9686: else
9687: am__EXEEXT_TRUE='#'
9688: am__EXEEXT_FALSE=
9689: fi
9690:
1.1 bertrand 9691: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36 bertrand 9692: as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15 bertrand 9693: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9694: fi
9695: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36 bertrand 9696: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15 bertrand 9697: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9698: fi
9699: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36 bertrand 9700: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15 bertrand 9701: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9702: fi
9703:
1.57 bertrand 9704: : "${CONFIG_STATUS=./config.status}"
1.15 bertrand 9705: ac_write_fail=0
1.1 bertrand 9706: ac_clean_files_save=$ac_clean_files
9707: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15 bertrand 9708: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9709: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9710: as_write_fail=0
9711: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1 bertrand 9712: #! $SHELL
9713: # Generated by $as_me.
9714: # Run this file to recreate the current configuration.
9715: # Compiler output produced by configure, useful for debugging
9716: # configure, is in config.log if it exists.
9717:
9718: debug=false
9719: ac_cs_recheck=false
9720: ac_cs_silent=false
1.15 bertrand 9721:
1.14 bertrand 9722: SHELL=\${CONFIG_SHELL-$SHELL}
1.15 bertrand 9723: export SHELL
9724: _ASEOF
9725: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9726: ## -------------------- ##
9727: ## M4sh Initialization. ##
9728: ## -------------------- ##
1.1 bertrand 9729:
9730: # Be more Bourne compatible
9731: DUALCASE=1; export DUALCASE # for MKS sh
1.15 bertrand 9732: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 bertrand 9733: emulate sh
9734: NULLCMD=:
1.15 bertrand 9735: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1 bertrand 9736: # is contrary to our usage. Disable this feature.
9737: alias -g '${1+"$@"}'='"$@"'
9738: setopt NO_GLOB_SUBST
9739: else
1.15 bertrand 9740: case `(set -o) 2>/dev/null` in #(
9741: *posix*) :
9742: set -o posix ;; #(
9743: *) :
9744: ;;
1.1 bertrand 9745: esac
9746: fi
9747:
9748:
1.15 bertrand 9749: as_nl='
9750: '
9751: export as_nl
9752: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9753: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9754: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9755: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9756: # Prefer a ksh shell builtin over an external printf program on Solaris,
9757: # but without wasting forks for bash or zsh.
9758: if test -z "$BASH_VERSION$ZSH_VERSION" \
9759: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9760: as_echo='print -r --'
9761: as_echo_n='print -rn --'
9762: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9763: as_echo='printf %s\n'
9764: as_echo_n='printf %s'
9765: else
9766: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9767: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9768: as_echo_n='/usr/ucb/echo -n'
9769: else
9770: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9771: as_echo_n_body='eval
9772: arg=$1;
9773: case $arg in #(
9774: *"$as_nl"*)
9775: expr "X$arg" : "X\\(.*\\)$as_nl";
9776: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9777: esac;
9778: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9779: '
9780: export as_echo_n_body
9781: as_echo_n='sh -c $as_echo_n_body as_echo'
9782: fi
9783: export as_echo_body
9784: as_echo='sh -c $as_echo_body as_echo'
9785: fi
1.14 bertrand 9786:
9787: # The user is always right.
9788: if test "${PATH_SEPARATOR+set}" != set; then
1.15 bertrand 9789: PATH_SEPARATOR=:
9790: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9791: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9792: PATH_SEPARATOR=';'
9793: }
1.1 bertrand 9794: fi
9795:
9796:
9797: # IFS
9798: # We need space, tab and new line, in precisely that order. Quoting is
9799: # there to prevent editors from complaining about space-tab.
9800: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9801: # splitting by setting IFS to empty value.)
9802: IFS=" "" $as_nl"
9803:
9804: # Find who we are. Look in the path if we contain no directory separator.
1.57 bertrand 9805: as_myself=
1.15 bertrand 9806: case $0 in #((
1.1 bertrand 9807: *[\\/]* ) as_myself=$0 ;;
9808: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9809: for as_dir in $PATH
9810: do
9811: IFS=$as_save_IFS
9812: test -z "$as_dir" && as_dir=.
1.15 bertrand 9813: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9814: done
1.1 bertrand 9815: IFS=$as_save_IFS
9816:
9817: ;;
9818: esac
9819: # We did not find ourselves, most probably we were run as `sh COMMAND'
9820: # in which case we are not to be found in the path.
9821: if test "x$as_myself" = x; then
9822: as_myself=$0
9823: fi
9824: if test ! -f "$as_myself"; then
1.15 bertrand 9825: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9826: exit 1
1.1 bertrand 9827: fi
9828:
1.15 bertrand 9829: # Unset variables that we do not need and which cause bugs (e.g. in
9830: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9831: # suppresses any "Segmentation fault" message there. '((' could
9832: # trigger a bug in pdksh 5.2.14.
9833: for as_var in BASH_ENV ENV MAIL MAILPATH
9834: do eval test x\${$as_var+set} = xset \
9835: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1 bertrand 9836: done
9837: PS1='$ '
9838: PS2='> '
9839: PS4='+ '
9840:
9841: # NLS nuisances.
1.15 bertrand 9842: LC_ALL=C
9843: export LC_ALL
9844: LANGUAGE=C
9845: export LANGUAGE
9846:
9847: # CDPATH.
9848: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9849:
9850:
1.36 bertrand 9851: # as_fn_error STATUS ERROR [LINENO LOG_FD]
9852: # ----------------------------------------
1.15 bertrand 9853: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9854: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36 bertrand 9855: # script with STATUS, using 1 if that was 0.
1.15 bertrand 9856: as_fn_error ()
9857: {
1.36 bertrand 9858: as_status=$1; test $as_status -eq 0 && as_status=1
9859: if test "$4"; then
9860: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9861: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15 bertrand 9862: fi
1.36 bertrand 9863: $as_echo "$as_me: error: $2" >&2
1.15 bertrand 9864: as_fn_exit $as_status
9865: } # as_fn_error
9866:
9867:
9868: # as_fn_set_status STATUS
9869: # -----------------------
9870: # Set $? to STATUS, without forking.
9871: as_fn_set_status ()
9872: {
9873: return $1
9874: } # as_fn_set_status
9875:
9876: # as_fn_exit STATUS
9877: # -----------------
9878: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9879: as_fn_exit ()
9880: {
9881: set +e
9882: as_fn_set_status $1
9883: exit $1
9884: } # as_fn_exit
9885:
9886: # as_fn_unset VAR
9887: # ---------------
9888: # Portably unset VAR.
9889: as_fn_unset ()
9890: {
9891: { eval $1=; unset $1;}
9892: }
9893: as_unset=as_fn_unset
9894: # as_fn_append VAR VALUE
9895: # ----------------------
9896: # Append the text in VALUE to the end of the definition contained in VAR. Take
9897: # advantage of any shell optimizations that allow amortized linear growth over
9898: # repeated appends, instead of the typical quadratic growth present in naive
9899: # implementations.
9900: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9901: eval 'as_fn_append ()
9902: {
9903: eval $1+=\$2
9904: }'
9905: else
9906: as_fn_append ()
9907: {
9908: eval $1=\$$1\$2
9909: }
9910: fi # as_fn_append
9911:
9912: # as_fn_arith ARG...
9913: # ------------------
9914: # Perform arithmetic evaluation on the ARGs, and store the result in the
9915: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9916: # must be portable across $(()) and expr.
9917: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9918: eval 'as_fn_arith ()
9919: {
9920: as_val=$(( $* ))
9921: }'
9922: else
9923: as_fn_arith ()
9924: {
9925: as_val=`expr "$@" || test $? -eq 1`
9926: }
9927: fi # as_fn_arith
9928:
1.1 bertrand 9929:
9930: if expr a : '\(a\)' >/dev/null 2>&1 &&
9931: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9932: as_expr=expr
9933: else
9934: as_expr=false
9935: fi
9936:
9937: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9938: as_basename=basename
9939: else
9940: as_basename=false
9941: fi
9942:
1.15 bertrand 9943: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9944: as_dirname=dirname
9945: else
9946: as_dirname=false
9947: fi
1.1 bertrand 9948:
9949: as_me=`$as_basename -- "$0" ||
9950: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9951: X"$0" : 'X\(//\)$' \| \
9952: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 9953: $as_echo X/"$0" |
1.1 bertrand 9954: sed '/^.*\/\([^/][^/]*\)\/*$/{
9955: s//\1/
9956: q
9957: }
9958: /^X\/\(\/\/\)$/{
9959: s//\1/
9960: q
9961: }
9962: /^X\/\(\/\).*/{
9963: s//\1/
9964: q
9965: }
1.14 bertrand 9966: s/.*/./; q'`
9967:
1.15 bertrand 9968: # Avoid depending upon Character Ranges.
9969: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9970: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9971: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9972: as_cr_digits='0123456789'
9973: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 bertrand 9974:
9975: ECHO_C= ECHO_N= ECHO_T=
1.15 bertrand 9976: case `echo -n x` in #(((((
1.1 bertrand 9977: -n*)
1.15 bertrand 9978: case `echo 'xy\c'` in
1.1 bertrand 9979: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.15 bertrand 9980: xy) ECHO_C='\c';;
9981: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9982: ECHO_T=' ';;
1.1 bertrand 9983: esac;;
9984: *)
9985: ECHO_N='-n';;
9986: esac
9987:
9988: rm -f conf$$ conf$$.exe conf$$.file
9989: if test -d conf$$.dir; then
9990: rm -f conf$$.dir/conf$$.file
9991: else
9992: rm -f conf$$.dir
1.15 bertrand 9993: mkdir conf$$.dir 2>/dev/null
1.1 bertrand 9994: fi
1.15 bertrand 9995: if (echo >conf$$.file) 2>/dev/null; then
9996: if ln -s conf$$.file conf$$ 2>/dev/null; then
9997: as_ln_s='ln -s'
9998: # ... but there are two gotchas:
9999: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10000: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10001: # In both cases, we have to default to `cp -p'.
10002: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10003: as_ln_s='cp -p'
10004: elif ln conf$$.file conf$$ 2>/dev/null; then
10005: as_ln_s=ln
10006: else
1.1 bertrand 10007: as_ln_s='cp -p'
1.15 bertrand 10008: fi
1.1 bertrand 10009: else
10010: as_ln_s='cp -p'
10011: fi
10012: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10013: rmdir conf$$.dir 2>/dev/null
10014:
1.15 bertrand 10015:
10016: # as_fn_mkdir_p
10017: # -------------
10018: # Create "$as_dir" as a directory, including parents if necessary.
10019: as_fn_mkdir_p ()
10020: {
10021:
10022: case $as_dir in #(
10023: -*) as_dir=./$as_dir;;
10024: esac
10025: test -d "$as_dir" || eval $as_mkdir_p || {
10026: as_dirs=
10027: while :; do
10028: case $as_dir in #(
10029: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10030: *) as_qdir=$as_dir;;
10031: esac
10032: as_dirs="'$as_qdir' $as_dirs"
10033: as_dir=`$as_dirname -- "$as_dir" ||
10034: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10035: X"$as_dir" : 'X\(//\)[^/]' \| \
10036: X"$as_dir" : 'X\(//\)$' \| \
10037: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10038: $as_echo X"$as_dir" |
10039: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10040: s//\1/
10041: q
10042: }
10043: /^X\(\/\/\)[^/].*/{
10044: s//\1/
10045: q
10046: }
10047: /^X\(\/\/\)$/{
10048: s//\1/
10049: q
10050: }
10051: /^X\(\/\).*/{
10052: s//\1/
10053: q
10054: }
10055: s/.*/./; q'`
10056: test -d "$as_dir" && break
10057: done
10058: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36 bertrand 10059: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15 bertrand 10060:
10061:
10062: } # as_fn_mkdir_p
1.1 bertrand 10063: if mkdir -p . 2>/dev/null; then
1.15 bertrand 10064: as_mkdir_p='mkdir -p "$as_dir"'
1.1 bertrand 10065: else
10066: test -d ./-p && rmdir ./-p
10067: as_mkdir_p=false
10068: fi
10069:
10070: if test -x / >/dev/null 2>&1; then
10071: as_test_x='test -x'
10072: else
10073: if ls -dL / >/dev/null 2>&1; then
10074: as_ls_L_option=L
10075: else
10076: as_ls_L_option=
10077: fi
10078: as_test_x='
10079: eval sh -c '\''
10080: if test -d "$1"; then
1.15 bertrand 10081: test -d "$1/.";
1.1 bertrand 10082: else
1.15 bertrand 10083: case $1 in #(
10084: -*)set "./$1";;
1.1 bertrand 10085: esac;
1.15 bertrand 10086: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1 bertrand 10087: ???[sx]*):;;*)false;;esac;fi
10088: '\'' sh
10089: '
10090: fi
10091: as_executable_p=$as_test_x
10092:
10093: # Sed expression to map a string onto a valid CPP name.
10094: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10095:
10096: # Sed expression to map a string onto a valid variable name.
10097: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10098:
10099:
10100: exec 6>&1
1.15 bertrand 10101: ## ----------------------------------- ##
10102: ## Main body of $CONFIG_STATUS script. ##
10103: ## ----------------------------------- ##
10104: _ASEOF
10105: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1 bertrand 10106:
1.15 bertrand 10107: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10108: # Save the log message, to keep $0 and so on meaningful, and to
1.1 bertrand 10109: # report actual input values of CONFIG_FILES etc. instead of their
10110: # values after options handling.
10111: ac_log="
1.86 bertrand 10112: This file was extended by rpl $as_me 4.1.4, which was
1.57 bertrand 10113: generated by GNU Autoconf 2.68. Invocation command line was
1.1 bertrand 10114:
10115: CONFIG_FILES = $CONFIG_FILES
10116: CONFIG_HEADERS = $CONFIG_HEADERS
10117: CONFIG_LINKS = $CONFIG_LINKS
10118: CONFIG_COMMANDS = $CONFIG_COMMANDS
10119: $ $0 $@
10120:
10121: on `(hostname || uname -n) 2>/dev/null | sed 1q`
10122: "
10123:
10124: _ACEOF
10125:
1.15 bertrand 10126: case $ac_config_files in *"
10127: "*) set x $ac_config_files; shift; ac_config_files=$*;;
10128: esac
10129:
10130: case $ac_config_headers in *"
10131: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10132: esac
10133:
10134:
10135: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10136: # Files that config.status was made for.
10137: config_files="$ac_config_files"
10138: config_headers="$ac_config_headers"
10139: config_commands="$ac_config_commands"
10140:
10141: _ACEOF
10142:
1.15 bertrand 10143: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10144: ac_cs_usage="\
1.15 bertrand 10145: \`$as_me' instantiates files and other configuration actions
10146: from templates according to the current configuration. Unless the files
10147: and actions are specified as TAGs, all are instantiated by default.
1.1 bertrand 10148:
1.15 bertrand 10149: Usage: $0 [OPTION]... [TAG]...
1.1 bertrand 10150:
10151: -h, --help print this help, then exit
10152: -V, --version print version number and configuration settings, then exit
1.15 bertrand 10153: --config print configuration, then exit
10154: -q, --quiet, --silent
10155: do not print progress messages
1.1 bertrand 10156: -d, --debug don't remove temporary files
10157: --recheck update $as_me by reconfiguring in the same conditions
1.15 bertrand 10158: --file=FILE[:TEMPLATE]
10159: instantiate the configuration file FILE
10160: --header=FILE[:TEMPLATE]
10161: instantiate the configuration header FILE
1.1 bertrand 10162:
10163: Configuration files:
10164: $config_files
10165:
10166: Configuration headers:
10167: $config_headers
10168:
10169: Configuration commands:
10170: $config_commands
10171:
1.15 bertrand 10172: Report bugs to the package provider."
1.1 bertrand 10173:
10174: _ACEOF
1.15 bertrand 10175: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10176: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1 bertrand 10177: ac_cs_version="\\
1.86 bertrand 10178: rpl config.status 4.1.4
1.57 bertrand 10179: configured by $0, generated by GNU Autoconf 2.68,
1.15 bertrand 10180: with options \\"\$ac_cs_config\\"
1.1 bertrand 10181:
1.36 bertrand 10182: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 bertrand 10183: This config.status script is free software; the Free Software Foundation
10184: gives unlimited permission to copy, distribute and modify it."
10185:
10186: ac_pwd='$ac_pwd'
10187: srcdir='$srcdir'
10188: INSTALL='$INSTALL'
10189: MKDIR_P='$MKDIR_P'
1.15 bertrand 10190: AWK='$AWK'
10191: test -n "\$AWK" || AWK=awk
1.1 bertrand 10192: _ACEOF
10193:
1.15 bertrand 10194: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10195: # The default lists apply if the user does not specify any file.
1.1 bertrand 10196: ac_need_defaults=:
10197: while test $# != 0
10198: do
10199: case $1 in
1.36 bertrand 10200: --*=?*)
1.1 bertrand 10201: ac_option=`expr "X$1" : 'X\([^=]*\)='`
10202: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10203: ac_shift=:
10204: ;;
1.36 bertrand 10205: --*=)
10206: ac_option=`expr "X$1" : 'X\([^=]*\)='`
10207: ac_optarg=
10208: ac_shift=:
10209: ;;
1.1 bertrand 10210: *)
10211: ac_option=$1
10212: ac_optarg=$2
10213: ac_shift=shift
10214: ;;
10215: esac
10216:
10217: case $ac_option in
10218: # Handling of the options.
10219: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10220: ac_cs_recheck=: ;;
10221: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15 bertrand 10222: $as_echo "$ac_cs_version"; exit ;;
10223: --config | --confi | --conf | --con | --co | --c )
10224: $as_echo "$ac_cs_config"; exit ;;
1.1 bertrand 10225: --debug | --debu | --deb | --de | --d | -d )
10226: debug=: ;;
10227: --file | --fil | --fi | --f )
10228: $ac_shift
1.15 bertrand 10229: case $ac_optarg in
10230: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36 bertrand 10231: '') as_fn_error $? "missing file argument" ;;
1.15 bertrand 10232: esac
10233: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1 bertrand 10234: ac_need_defaults=false;;
10235: --header | --heade | --head | --hea )
10236: $ac_shift
1.15 bertrand 10237: case $ac_optarg in
10238: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10239: esac
10240: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1 bertrand 10241: ac_need_defaults=false;;
10242: --he | --h)
10243: # Conflict between --help and --header
1.36 bertrand 10244: as_fn_error $? "ambiguous option: \`$1'
1.15 bertrand 10245: Try \`$0 --help' for more information.";;
1.1 bertrand 10246: --help | --hel | -h )
1.15 bertrand 10247: $as_echo "$ac_cs_usage"; exit ;;
1.1 bertrand 10248: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10249: | -silent | --silent | --silen | --sile | --sil | --si | --s)
10250: ac_cs_silent=: ;;
10251:
10252: # This is an error.
1.36 bertrand 10253: -*) as_fn_error $? "unrecognized option: \`$1'
1.15 bertrand 10254: Try \`$0 --help' for more information." ;;
1.1 bertrand 10255:
1.15 bertrand 10256: *) as_fn_append ac_config_targets " $1"
1.1 bertrand 10257: ac_need_defaults=false ;;
10258:
10259: esac
10260: shift
10261: done
10262:
10263: ac_configure_extra_args=
10264:
10265: if $ac_cs_silent; then
10266: exec 6>/dev/null
10267: ac_configure_extra_args="$ac_configure_extra_args --silent"
10268: fi
10269:
10270: _ACEOF
1.15 bertrand 10271: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10272: if \$ac_cs_recheck; then
1.15 bertrand 10273: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10274: shift
10275: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10276: CONFIG_SHELL='$SHELL'
1.1 bertrand 10277: export CONFIG_SHELL
1.15 bertrand 10278: exec "\$@"
1.1 bertrand 10279: fi
10280:
10281: _ACEOF
1.15 bertrand 10282: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10283: exec 5>>config.log
10284: {
10285: echo
10286: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10287: ## Running $as_me. ##
10288: _ASBOX
1.15 bertrand 10289: $as_echo "$ac_log"
1.1 bertrand 10290: } >&5
10291:
10292: _ACEOF
1.15 bertrand 10293: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10294: #
10295: # INIT-COMMANDS
10296: #
10297: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10298:
10299: _ACEOF
10300:
1.15 bertrand 10301: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10302:
10303: # Handling of arguments.
10304: for ac_config_target in $ac_config_targets
10305: do
10306: case $ac_config_target in
10307: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
10308: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10309: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10310: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
10311: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10312: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10313: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10314: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
10315: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10316: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
10317: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
10318: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
10319: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
10320: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
10321: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9 bertrand 10322: "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.55 bertrand 10323: "rplcas/Makefile") CONFIG_FILES="$CONFIG_FILES rplcas/Makefile" ;;
1.39 bertrand 10324: "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1 bertrand 10325: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
10326: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
10327: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
10328: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
10329: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
10330: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
10331: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
10332: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
10333: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
10334: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
10335: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
10336: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
10337:
1.57 bertrand 10338: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 bertrand 10339: esac
10340: done
10341:
10342:
10343: # If the user did not use the arguments to specify the items to instantiate,
10344: # then the envvar interface is used. Set only those that are not.
10345: # We use the long form for the default assignment because of an extremely
10346: # bizarre bug on SunOS 4.1.3.
10347: if $ac_need_defaults; then
10348: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10349: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10350: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10351: fi
10352:
10353: # Have a temporary directory for convenience. Make it in the build tree
10354: # simply because there is no reason against having it here, and in addition,
10355: # creating and moving files from /tmp can sometimes cause problems.
10356: # Hook for its removal unless debugging.
10357: # Note that there is a small window in which the directory will not be cleaned:
10358: # after its creation but before its name has been assigned to `$tmp'.
10359: $debug ||
10360: {
1.57 bertrand 10361: tmp= ac_tmp=
1.1 bertrand 10362: trap 'exit_status=$?
1.57 bertrand 10363: : "${ac_tmp:=$tmp}"
10364: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
1.1 bertrand 10365: ' 0
1.15 bertrand 10366: trap 'as_fn_exit 1' 1 2 13 15
1.1 bertrand 10367: }
10368: # Create a (secure) tmp directory for tmp files.
10369:
10370: {
10371: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1.57 bertrand 10372: test -d "$tmp"
1.1 bertrand 10373: } ||
10374: {
10375: tmp=./conf$$-$RANDOM
10376: (umask 077 && mkdir "$tmp")
1.36 bertrand 10377: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.57 bertrand 10378: ac_tmp=$tmp
1.15 bertrand 10379:
10380: # Set up the scripts for CONFIG_FILES section.
10381: # No need to generate them if there are no CONFIG_FILES.
10382: # This happens for instance with `./config.status config.h'.
10383: if test -n "$CONFIG_FILES"; then
1.14 bertrand 10384:
1.1 bertrand 10385:
1.15 bertrand 10386: ac_cr=`echo X | tr X '\015'`
10387: # On cygwin, bash can eat \r inside `` if the user requested igncr.
10388: # But we know of no other shell where ac_cr would be empty at this
10389: # point, so we can use a bashism as a fallback.
10390: if test "x$ac_cr" = x; then
10391: eval ac_cr=\$\'\\r\'
10392: fi
10393: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10394: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36 bertrand 10395: ac_cs_awk_cr='\\r'
1.15 bertrand 10396: else
10397: ac_cs_awk_cr=$ac_cr
10398: fi
1.1 bertrand 10399:
1.57 bertrand 10400: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1.14 bertrand 10401: _ACEOF
10402:
10403:
1.15 bertrand 10404: {
10405: echo "cat >conf$$subs.awk <<_ACEOF" &&
10406: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10407: echo "_ACEOF"
10408: } >conf$$subs.sh ||
1.36 bertrand 10409: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10410: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14 bertrand 10411: ac_delim='%!_!# '
10412: for ac_last_try in false false false false false :; do
1.15 bertrand 10413: . ./conf$$subs.sh ||
1.36 bertrand 10414: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 bertrand 10415:
1.15 bertrand 10416: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10417: if test $ac_delim_n = $ac_delim_num; then
1.14 bertrand 10418: break
10419: elif $ac_last_try; then
1.36 bertrand 10420: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 bertrand 10421: else
10422: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10423: fi
10424: done
1.15 bertrand 10425: rm -f conf$$subs.sh
1.1 bertrand 10426:
1.15 bertrand 10427: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.57 bertrand 10428: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
1.15 bertrand 10429: _ACEOF
10430: sed -n '
10431: h
10432: s/^/S["/; s/!.*/"]=/
10433: p
10434: g
10435: s/^[^!]*!//
10436: :repl
10437: t repl
10438: s/'"$ac_delim"'$//
10439: t delim
10440: :nl
10441: h
10442: s/\(.\{148\}\)..*/\1/
10443: t more1
10444: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10445: p
10446: n
10447: b repl
10448: :more1
10449: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10450: p
10451: g
10452: s/.\{148\}//
10453: t nl
10454: :delim
10455: h
10456: s/\(.\{148\}\)..*/\1/
10457: t more2
10458: s/["\\]/\\&/g; s/^/"/; s/$/"/
10459: p
10460: b
10461: :more2
10462: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10463: p
10464: g
10465: s/.\{148\}//
10466: t delim
10467: ' <conf$$subs.awk | sed '
10468: /^[^""]/{
10469: N
10470: s/\n//
10471: }
10472: ' >>$CONFIG_STATUS || ac_write_fail=1
10473: rm -f conf$$subs.awk
10474: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10475: _ACAWK
1.57 bertrand 10476: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
1.15 bertrand 10477: for (key in S) S_is_set[key] = 1
10478: FS = ""
1.1 bertrand 10479:
1.15 bertrand 10480: }
10481: {
10482: line = $ 0
10483: nfields = split(line, field, "@")
10484: substed = 0
10485: len = length(field[1])
10486: for (i = 2; i < nfields; i++) {
10487: key = field[i]
10488: keylen = length(key)
10489: if (S_is_set[key]) {
10490: value = S[key]
10491: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10492: len += length(value) + length(field[++i])
10493: substed = 1
10494: } else
10495: len += 1 + keylen
10496: }
1.1 bertrand 10497:
1.15 bertrand 10498: print line
10499: }
1.1 bertrand 10500:
1.15 bertrand 10501: _ACAWK
1.14 bertrand 10502: _ACEOF
1.15 bertrand 10503: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10504: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10505: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10506: else
10507: cat
1.57 bertrand 10508: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
1.36 bertrand 10509: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1 bertrand 10510: _ACEOF
10511:
1.36 bertrand 10512: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10513: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1 bertrand 10514: # trailing colons and then remove the whole line if VPATH becomes empty
10515: # (actually we leave an empty line to preserve line numbers).
10516: if test "x$srcdir" = x.; then
1.36 bertrand 10517: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10518: h
10519: s///
10520: s/^/:/
10521: s/[ ]*$/:/
10522: s/:\$(srcdir):/:/g
10523: s/:\${srcdir}:/:/g
10524: s/:@srcdir@:/:/g
10525: s/^:*//
1.1 bertrand 10526: s/:*$//
1.36 bertrand 10527: x
10528: s/\(=[ ]*\).*/\1/
10529: G
10530: s/\n//
1.1 bertrand 10531: s/^[^=]*=[ ]*$//
10532: }'
10533: fi
10534:
1.15 bertrand 10535: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10536: fi # test -n "$CONFIG_FILES"
10537:
1.15 bertrand 10538: # Set up the scripts for CONFIG_HEADERS section.
10539: # No need to generate them if there are no CONFIG_HEADERS.
10540: # This happens for instance with `./config.status Makefile'.
10541: if test -n "$CONFIG_HEADERS"; then
1.57 bertrand 10542: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
1.15 bertrand 10543: BEGIN {
10544: _ACEOF
10545:
10546: # Transform confdefs.h into an awk script `defines.awk', embedded as
10547: # here-document in config.status, that substitutes the proper values into
10548: # config.h.in to produce config.h.
10549:
10550: # Create a delimiter string that does not exist in confdefs.h, to ease
10551: # handling of long lines.
10552: ac_delim='%!_!# '
10553: for ac_last_try in false false :; do
1.57 bertrand 10554: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10555: if test -z "$ac_tt"; then
1.15 bertrand 10556: break
10557: elif $ac_last_try; then
1.36 bertrand 10558: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15 bertrand 10559: else
10560: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10561: fi
10562: done
10563:
10564: # For the awk script, D is an array of macro values keyed by name,
10565: # likewise P contains macro parameters if any. Preserve backslash
10566: # newline sequences.
10567:
10568: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10569: sed -n '
10570: s/.\{148\}/&'"$ac_delim"'/g
10571: t rset
10572: :rset
10573: s/^[ ]*#[ ]*define[ ][ ]*/ /
10574: t def
10575: d
10576: :def
10577: s/\\$//
10578: t bsnl
10579: s/["\\]/\\&/g
10580: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10581: D["\1"]=" \3"/p
10582: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10583: d
10584: :bsnl
10585: s/["\\]/\\&/g
10586: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10587: D["\1"]=" \3\\\\\\n"\\/p
10588: t cont
10589: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10590: t cont
10591: d
10592: :cont
10593: n
10594: s/.\{148\}/&'"$ac_delim"'/g
10595: t clear
10596: :clear
10597: s/\\$//
10598: t bsnlc
10599: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10600: d
10601: :bsnlc
10602: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10603: b cont
10604: ' <confdefs.h | sed '
10605: s/'"$ac_delim"'/"\\\
10606: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10607:
10608: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10609: for (key in D) D_is_set[key] = 1
10610: FS = ""
10611: }
10612: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10613: line = \$ 0
10614: split(line, arg, " ")
10615: if (arg[1] == "#") {
10616: defundef = arg[2]
10617: mac1 = arg[3]
10618: } else {
10619: defundef = substr(arg[1], 2)
10620: mac1 = arg[2]
10621: }
10622: split(mac1, mac2, "(") #)
10623: macro = mac2[1]
10624: prefix = substr(line, 1, index(line, defundef) - 1)
10625: if (D_is_set[macro]) {
10626: # Preserve the white space surrounding the "#".
10627: print prefix "define", macro P[macro] D[macro]
10628: next
10629: } else {
10630: # Replace #undef with comments. This is necessary, for example,
10631: # in the case of _POSIX_SOURCE, which is predefined and required
10632: # on some systems where configure will not decide to define it.
10633: if (defundef == "undef") {
10634: print "/*", prefix defundef, macro, "*/"
10635: next
10636: }
10637: }
10638: }
10639: { print }
10640: _ACAWK
10641: _ACEOF
10642: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36 bertrand 10643: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15 bertrand 10644: fi # test -n "$CONFIG_HEADERS"
10645:
1.1 bertrand 10646:
1.15 bertrand 10647: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10648: shift
10649: for ac_tag
1.1 bertrand 10650: do
10651: case $ac_tag in
10652: :[FHLC]) ac_mode=$ac_tag; continue;;
10653: esac
10654: case $ac_mode$ac_tag in
10655: :[FHL]*:*);;
1.57 bertrand 10656: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1 bertrand 10657: :[FH]-) ac_tag=-:-;;
10658: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10659: esac
10660: ac_save_IFS=$IFS
10661: IFS=:
10662: set x $ac_tag
10663: IFS=$ac_save_IFS
10664: shift
10665: ac_file=$1
10666: shift
10667:
10668: case $ac_mode in
10669: :L) ac_source=$1;;
10670: :[FH])
10671: ac_file_inputs=
10672: for ac_f
10673: do
10674: case $ac_f in
1.57 bertrand 10675: -) ac_f="$ac_tmp/stdin";;
1.1 bertrand 10676: *) # Look for the file first in the build tree, then in the source tree
10677: # (if the path is not absolute). The absolute path cannot be DOS-style,
10678: # because $ac_f cannot contain `:'.
10679: test -f "$ac_f" ||
10680: case $ac_f in
10681: [\\/$]*) false;;
10682: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10683: esac ||
1.57 bertrand 10684: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1 bertrand 10685: esac
1.15 bertrand 10686: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10687: as_fn_append ac_file_inputs " '$ac_f'"
1.1 bertrand 10688: done
10689:
10690: # Let's still pretend it is `configure' which instantiates (i.e., don't
10691: # use $as_me), people would be surprised to read:
10692: # /* config.h. Generated by config.status. */
1.15 bertrand 10693: configure_input='Generated from '`
10694: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10695: `' by configure.'
1.1 bertrand 10696: if test x"$ac_file" != x-; then
10697: configure_input="$ac_file. $configure_input"
1.15 bertrand 10698: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10699: $as_echo "$as_me: creating $ac_file" >&6;}
1.1 bertrand 10700: fi
1.15 bertrand 10701: # Neutralize special characters interpreted by sed in replacement strings.
10702: case $configure_input in #(
10703: *\&* | *\|* | *\\* )
10704: ac_sed_conf_input=`$as_echo "$configure_input" |
10705: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10706: *) ac_sed_conf_input=$configure_input;;
10707: esac
1.1 bertrand 10708:
10709: case $ac_tag in
1.57 bertrand 10710: *:-:* | *:-) cat >"$ac_tmp/stdin" \
10711: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1 bertrand 10712: esac
10713: ;;
10714: esac
10715:
10716: ac_dir=`$as_dirname -- "$ac_file" ||
10717: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10718: X"$ac_file" : 'X\(//\)[^/]' \| \
10719: X"$ac_file" : 'X\(//\)$' \| \
10720: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10721: $as_echo X"$ac_file" |
1.1 bertrand 10722: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10723: s//\1/
10724: q
10725: }
10726: /^X\(\/\/\)[^/].*/{
10727: s//\1/
10728: q
10729: }
10730: /^X\(\/\/\)$/{
10731: s//\1/
10732: q
10733: }
10734: /^X\(\/\).*/{
10735: s//\1/
10736: q
10737: }
10738: s/.*/./; q'`
1.15 bertrand 10739: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 bertrand 10740: ac_builddir=.
10741:
10742: case "$ac_dir" in
10743: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10744: *)
1.15 bertrand 10745: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 10746: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 10747: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 10748: case $ac_top_builddir_sub in
10749: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10750: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10751: esac ;;
10752: esac
10753: ac_abs_top_builddir=$ac_pwd
10754: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10755: # for backward compatibility:
10756: ac_top_builddir=$ac_top_build_prefix
10757:
10758: case $srcdir in
10759: .) # We are building in place.
10760: ac_srcdir=.
10761: ac_top_srcdir=$ac_top_builddir_sub
10762: ac_abs_top_srcdir=$ac_pwd ;;
10763: [\\/]* | ?:[\\/]* ) # Absolute name.
10764: ac_srcdir=$srcdir$ac_dir_suffix;
10765: ac_top_srcdir=$srcdir
10766: ac_abs_top_srcdir=$srcdir ;;
10767: *) # Relative name.
10768: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10769: ac_top_srcdir=$ac_top_build_prefix$srcdir
10770: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10771: esac
10772: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10773:
10774:
10775: case $ac_mode in
10776: :F)
10777: #
10778: # CONFIG_FILE
10779: #
10780:
10781: case $INSTALL in
10782: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10783: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10784: esac
10785: ac_MKDIR_P=$MKDIR_P
10786: case $MKDIR_P in
10787: [\\/$]* | ?:[\\/]* ) ;;
10788: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10789: esac
10790: _ACEOF
10791:
1.15 bertrand 10792: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10793: # If the template does not know about datarootdir, expand it.
10794: # FIXME: This hack should be removed a few years after 2.60.
10795: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15 bertrand 10796: ac_sed_dataroot='
10797: /datarootdir/ {
1.1 bertrand 10798: p
10799: q
10800: }
10801: /@datadir@/p
10802: /@docdir@/p
10803: /@infodir@/p
10804: /@localedir@/p
1.15 bertrand 10805: /@mandir@/p'
10806: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1 bertrand 10807: *datarootdir*) ac_datarootdir_seen=yes;;
10808: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15 bertrand 10809: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10810: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 bertrand 10811: _ACEOF
1.15 bertrand 10812: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10813: ac_datarootdir_hack='
10814: s&@datadir@&$datadir&g
10815: s&@docdir@&$docdir&g
10816: s&@infodir@&$infodir&g
10817: s&@localedir@&$localedir&g
10818: s&@mandir@&$mandir&g
1.15 bertrand 10819: s&\\\${datarootdir}&$datarootdir&g' ;;
1.1 bertrand 10820: esac
10821: _ACEOF
10822:
10823: # Neutralize VPATH when `$srcdir' = `.'.
10824: # Shell code in configure.ac might set extrasub.
10825: # FIXME: do we really want to maintain this feature?
1.15 bertrand 10826: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10827: ac_sed_extra="$ac_vpsub
1.1 bertrand 10828: $extrasub
10829: _ACEOF
1.15 bertrand 10830: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10831: :t
10832: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15 bertrand 10833: s|@configure_input@|$ac_sed_conf_input|;t t
1.1 bertrand 10834: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15 bertrand 10835: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1 bertrand 10836: s&@srcdir@&$ac_srcdir&;t t
10837: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10838: s&@top_srcdir@&$ac_top_srcdir&;t t
10839: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10840: s&@builddir@&$ac_builddir&;t t
10841: s&@abs_builddir@&$ac_abs_builddir&;t t
10842: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10843: s&@INSTALL@&$ac_INSTALL&;t t
10844: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10845: $ac_datarootdir_hack
1.15 bertrand 10846: "
1.57 bertrand 10847: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10848: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10849:
10850: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
1.57 bertrand 10851: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10852: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10853: "$ac_tmp/out"`; test -z "$ac_out"; } &&
1.15 bertrand 10854: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36 bertrand 10855: which seems to be undefined. Please make sure it is defined" >&5
1.15 bertrand 10856: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36 bertrand 10857: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 bertrand 10858:
1.57 bertrand 10859: rm -f "$ac_tmp/stdin"
1.1 bertrand 10860: case $ac_file in
1.57 bertrand 10861: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10862: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
1.15 bertrand 10863: esac \
1.36 bertrand 10864: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10865: ;;
10866: :H)
10867: #
10868: # CONFIG_HEADER
10869: #
10870: if test x"$ac_file" != x-; then
1.15 bertrand 10871: {
10872: $as_echo "/* $configure_input */" \
1.57 bertrand 10873: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10874: } >"$ac_tmp/config.h" \
1.36 bertrand 10875: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.57 bertrand 10876: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
1.15 bertrand 10877: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10878: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1 bertrand 10879: else
1.15 bertrand 10880: rm -f "$ac_file"
1.57 bertrand 10881: mv "$ac_tmp/config.h" "$ac_file" \
1.36 bertrand 10882: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10883: fi
10884: else
1.15 bertrand 10885: $as_echo "/* $configure_input */" \
1.57 bertrand 10886: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
1.36 bertrand 10887: || as_fn_error $? "could not create -" "$LINENO" 5
1.1 bertrand 10888: fi
1.15 bertrand 10889: # Compute "$ac_file"'s index in $config_headers.
10890: _am_arg="$ac_file"
1.1 bertrand 10891: _am_stamp_count=1
10892: for _am_header in $config_headers :; do
10893: case $_am_header in
10894: $_am_arg | $_am_arg:* )
10895: break ;;
10896: * )
10897: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10898: esac
10899: done
10900: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10901: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10902: X"$_am_arg" : 'X\(//\)[^/]' \| \
10903: X"$_am_arg" : 'X\(//\)$' \| \
10904: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10905: $as_echo X"$_am_arg" |
1.1 bertrand 10906: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10907: s//\1/
10908: q
10909: }
10910: /^X\(\/\/\)[^/].*/{
10911: s//\1/
10912: q
10913: }
10914: /^X\(\/\/\)$/{
10915: s//\1/
10916: q
10917: }
10918: /^X\(\/\).*/{
10919: s//\1/
10920: q
10921: }
10922: s/.*/./; q'`/stamp-h$_am_stamp_count
10923: ;;
10924:
1.15 bertrand 10925: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10926: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1 bertrand 10927: ;;
10928: esac
10929:
10930:
10931: case $ac_file$ac_mode in
1.15 bertrand 10932: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10933: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10934: # are listed without --file. Let's play safe and only enable the eval
10935: # if we detect the quoting.
10936: case $CONFIG_FILES in
10937: *\'*) eval set x "$CONFIG_FILES" ;;
10938: *) set x $CONFIG_FILES ;;
10939: esac
10940: shift
10941: for mf
10942: do
10943: # Strip MF so we end up with the name of the file.
10944: mf=`echo "$mf" | sed -e 's/:.*$//'`
10945: # Check whether this is an Automake generated Makefile or not.
10946: # We used to match only the files named `Makefile.in', but
10947: # some people rename them; so instead we look at the file content.
10948: # Grep'ing the first line is not enough: some people post-process
10949: # each Makefile.in and add a new line on top of each file to say so.
10950: # Grep'ing the whole file is not good either: AIX grep has a line
10951: # limit of 2048, but all sed's we know have understand at least 4000.
10952: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10953: dirpart=`$as_dirname -- "$mf" ||
1.1 bertrand 10954: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10955: X"$mf" : 'X\(//\)[^/]' \| \
10956: X"$mf" : 'X\(//\)$' \| \
10957: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10958: $as_echo X"$mf" |
1.1 bertrand 10959: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10960: s//\1/
10961: q
10962: }
10963: /^X\(\/\/\)[^/].*/{
10964: s//\1/
10965: q
10966: }
10967: /^X\(\/\/\)$/{
10968: s//\1/
10969: q
10970: }
10971: /^X\(\/\).*/{
10972: s//\1/
10973: q
10974: }
10975: s/.*/./; q'`
1.15 bertrand 10976: else
10977: continue
10978: fi
10979: # Extract the definition of DEPDIR, am__include, and am__quote
10980: # from the Makefile without running `make'.
10981: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10982: test -z "$DEPDIR" && continue
10983: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10984: test -z "am__include" && continue
10985: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10986: # When using ansi2knr, U may be empty or an underscore; expand it
10987: U=`sed -n 's/^U = //p' < "$mf"`
10988: # Find all dependency output files, they are included files with
10989: # $(DEPDIR) in their names. We invoke sed twice because it is the
10990: # simplest approach to changing $(DEPDIR) to its actual value in the
10991: # expansion.
10992: for file in `sed -n "
10993: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10994: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10995: # Make sure the directory exists.
10996: test -f "$dirpart/$file" && continue
10997: fdir=`$as_dirname -- "$file" ||
1.1 bertrand 10998: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10999: X"$file" : 'X\(//\)[^/]' \| \
11000: X"$file" : 'X\(//\)$' \| \
11001: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 11002: $as_echo X"$file" |
1.1 bertrand 11003: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11004: s//\1/
11005: q
11006: }
11007: /^X\(\/\/\)[^/].*/{
11008: s//\1/
11009: q
11010: }
11011: /^X\(\/\/\)$/{
11012: s//\1/
11013: q
11014: }
11015: /^X\(\/\).*/{
11016: s//\1/
11017: q
11018: }
11019: s/.*/./; q'`
1.15 bertrand 11020: as_dir=$dirpart/$fdir; as_fn_mkdir_p
11021: # echo "creating $dirpart/$file"
11022: echo '# dummy' > "$dirpart/$file"
1.1 bertrand 11023: done
11024: done
1.15 bertrand 11025: }
1.1 bertrand 11026: ;;
11027:
11028: esac
11029: done # for ac_tag
11030:
11031:
1.15 bertrand 11032: as_fn_exit 0
1.1 bertrand 11033: _ACEOF
11034: ac_clean_files=$ac_clean_files_save
11035:
1.15 bertrand 11036: test $ac_write_fail = 0 ||
1.36 bertrand 11037: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15 bertrand 11038:
1.1 bertrand 11039:
11040: # configure is writing to config.log, and then calls config.status.
11041: # config.status does its own redirection, appending to config.log.
11042: # Unfortunately, on DOS this fails, as config.log is still kept open
11043: # by configure, so config.status won't be able to write to it; its
11044: # output is simply discarded. So we exec the FD to /dev/null,
11045: # effectively closing config.log, so it can be properly (re)opened and
11046: # appended to by config.status. When coming back to configure, we
11047: # need to make the FD available again.
11048: if test "$no_create" != yes; then
11049: ac_cs_success=:
11050: ac_config_status_args=
11051: test "$silent" = yes &&
11052: ac_config_status_args="$ac_config_status_args --quiet"
11053: exec 5>/dev/null
11054: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11055: exec 5>>config.log
11056: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11057: # would make configure fail if this is the last instruction.
1.36 bertrand 11058: $ac_cs_success || as_fn_exit 1
1.1 bertrand 11059: fi
11060:
11061: #
11062: # CONFIG_SUBDIRS section.
11063: #
11064: if test "$no_recursion" != yes; then
11065:
1.15 bertrand 11066: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
11067: # so they do not pile up.
1.1 bertrand 11068: ac_sub_configure_args=
11069: ac_prev=
11070: eval "set x $ac_configure_args"
11071: shift
11072: for ac_arg
11073: do
11074: if test -n "$ac_prev"; then
11075: ac_prev=
11076: continue
11077: fi
11078: case $ac_arg in
11079: -cache-file | --cache-file | --cache-fil | --cache-fi \
11080: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
11081: ac_prev=cache_file ;;
11082: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
11083: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
11084: | --c=*)
11085: ;;
11086: --config-cache | -C)
11087: ;;
11088: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
11089: ac_prev=srcdir ;;
11090: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
11091: ;;
11092: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
11093: ac_prev=prefix ;;
11094: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
11095: ;;
1.15 bertrand 11096: --disable-option-checking)
11097: ;;
1.1 bertrand 11098: *)
11099: case $ac_arg in
1.15 bertrand 11100: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 bertrand 11101: esac
1.15 bertrand 11102: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 bertrand 11103: esac
11104: done
11105:
11106: # Always prepend --prefix to ensure using the same prefix
11107: # in subdir configurations.
11108: ac_arg="--prefix=$prefix"
11109: case $ac_arg in
1.15 bertrand 11110: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 bertrand 11111: esac
11112: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
11113:
11114: # Pass --silent
11115: if test "$silent" = yes; then
11116: ac_sub_configure_args="--silent $ac_sub_configure_args"
11117: fi
11118:
1.15 bertrand 11119: # Always prepend --disable-option-checking to silence warnings, since
11120: # different subdirs can have different --enable and --with options.
11121: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
11122:
1.1 bertrand 11123: ac_popdir=`pwd`
11124: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
11125:
11126: # Do not complain, so a configure script can configure whichever
11127: # parts of a large source tree are present.
11128: test -d "$srcdir/$ac_dir" || continue
11129:
11130: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15 bertrand 11131: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
11132: $as_echo "$ac_msg" >&6
11133: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 bertrand 11134: ac_builddir=.
11135:
11136: case "$ac_dir" in
11137: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11138: *)
1.15 bertrand 11139: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 11140: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 11141: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 11142: case $ac_top_builddir_sub in
11143: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11144: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11145: esac ;;
11146: esac
11147: ac_abs_top_builddir=$ac_pwd
11148: ac_abs_builddir=$ac_pwd$ac_dir_suffix
11149: # for backward compatibility:
11150: ac_top_builddir=$ac_top_build_prefix
11151:
11152: case $srcdir in
11153: .) # We are building in place.
11154: ac_srcdir=.
11155: ac_top_srcdir=$ac_top_builddir_sub
11156: ac_abs_top_srcdir=$ac_pwd ;;
11157: [\\/]* | ?:[\\/]* ) # Absolute name.
11158: ac_srcdir=$srcdir$ac_dir_suffix;
11159: ac_top_srcdir=$srcdir
11160: ac_abs_top_srcdir=$srcdir ;;
11161: *) # Relative name.
11162: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11163: ac_top_srcdir=$ac_top_build_prefix$srcdir
11164: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11165: esac
11166: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11167:
11168:
11169: cd "$ac_dir"
11170:
11171: # Check for guested configure; otherwise get Cygnus style configure.
11172: if test -f "$ac_srcdir/configure.gnu"; then
11173: ac_sub_configure=$ac_srcdir/configure.gnu
11174: elif test -f "$ac_srcdir/configure"; then
11175: ac_sub_configure=$ac_srcdir/configure
11176: elif test -f "$ac_srcdir/configure.in"; then
11177: # This should be Cygnus configure.
11178: ac_sub_configure=$ac_aux_dir/configure
11179: else
1.15 bertrand 11180: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
11181: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 bertrand 11182: ac_sub_configure=
11183: fi
11184:
11185: # The recursion is here.
11186: if test -n "$ac_sub_configure"; then
11187: # Make the cache file name correct relative to the subdirectory.
11188: case $cache_file in
11189: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
11190: *) # Relative name.
11191: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
11192: esac
11193:
1.15 bertrand 11194: { $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
11195: $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 11196: # The eval makes quoting arguments work.
11197: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
11198: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36 bertrand 11199: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 bertrand 11200: fi
11201:
11202: cd "$ac_popdir"
11203: done
11204: fi
1.15 bertrand 11205: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11206: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11207: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11208: fi
1.1 bertrand 11209:
CVSweb interface <joel.bertrand@systella.fr>