Annotation of rpl/configure, revision 1.39
1.1 bertrand 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.38 bertrand 3: # Generated by GNU Autoconf 2.67 for rpl 4.0.19.
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.15 bertrand 92: case $0 in #((
1.1 bertrand 93: *[\\/]* ) as_myself=$0 ;;
94: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95: for as_dir in $PATH
96: do
97: IFS=$as_save_IFS
98: test -z "$as_dir" && as_dir=.
1.15 bertrand 99: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100: done
1.1 bertrand 101: IFS=$as_save_IFS
102:
103: ;;
104: esac
105: # We did not find ourselves, most probably we were run as `sh COMMAND'
106: # in which case we are not to be found in the path.
107: if test "x$as_myself" = x; then
108: as_myself=$0
109: fi
110: if test ! -f "$as_myself"; then
1.15 bertrand 111: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112: exit 1
1.1 bertrand 113: fi
114:
1.15 bertrand 115: # Unset variables that we do not need and which cause bugs (e.g. in
116: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117: # suppresses any "Segmentation fault" message there. '((' could
118: # trigger a bug in pdksh 5.2.14.
119: for as_var in BASH_ENV ENV MAIL MAILPATH
120: do eval test x\${$as_var+set} = xset \
121: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1 bertrand 122: done
123: PS1='$ '
124: PS2='> '
125: PS4='+ '
126:
127: # NLS nuisances.
1.15 bertrand 128: LC_ALL=C
129: export LC_ALL
130: LANGUAGE=C
131: export LANGUAGE
1.1 bertrand 132:
133: # CDPATH.
1.15 bertrand 134: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.1 bertrand 135:
136: if test "x$CONFIG_SHELL" = x; then
1.15 bertrand 137: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138: emulate sh
139: NULLCMD=:
140: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141: # is contrary to our usage. Disable this feature.
142: alias -g '\${1+\"\$@\"}'='\"\$@\"'
143: setopt NO_GLOB_SUBST
1.1 bertrand 144: else
1.15 bertrand 145: case \`(set -o) 2>/dev/null\` in #(
146: *posix*) :
147: set -o posix ;; #(
148: *) :
149: ;;
150: esac
1.1 bertrand 151: fi
1.15 bertrand 152: "
153: as_required="as_fn_return () { (exit \$1); }
154: as_fn_success () { as_fn_return 0; }
155: as_fn_failure () { as_fn_return 1; }
156: as_fn_ret_success () { return 0; }
157: as_fn_ret_failure () { return 1; }
1.1 bertrand 158:
159: exitcode=0
1.15 bertrand 160: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165:
166: else
167: exitcode=1; echo positional parameters were not saved.
168: fi
169: test x\$exitcode = x0 || exit 1"
170: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174: test \$(( 1 + 1 )) = 2 || exit 1"
175: if (eval "$as_required") 2>/dev/null; then :
176: as_have_required=yes
1.14 bertrand 177: else
1.15 bertrand 178: as_have_required=no
1.14 bertrand 179: fi
1.15 bertrand 180: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
1.14 bertrand 181:
182: else
1.15 bertrand 183: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184: as_found=false
1.1 bertrand 185: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186: do
187: IFS=$as_save_IFS
188: test -z "$as_dir" && as_dir=.
1.15 bertrand 189: as_found=:
190: case $as_dir in #(
1.1 bertrand 191: /*)
192: for as_base in sh bash ksh sh5; do
1.15 bertrand 193: # Try only shells that exist, to save several forks.
194: as_shell=$as_dir/$as_base
195: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197: CONFIG_SHELL=$as_shell as_have_required=yes
198: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199: break 2
200: fi
201: fi
1.1 bertrand 202: done;;
203: esac
1.15 bertrand 204: as_found=false
1.1 bertrand 205: done
1.15 bertrand 206: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208: CONFIG_SHELL=$SHELL as_have_required=yes
209: fi; }
1.1 bertrand 210: IFS=$as_save_IFS
211:
212:
1.15 bertrand 213: if test "x$CONFIG_SHELL" != x; then :
214: # We cannot yet assume a decent shell, so we have to provide a
215: # neutralization value for shells without unset; and this also
216: # works around shells that cannot unset nonexistent variables.
217: BASH_ENV=/dev/null
218: ENV=/dev/null
219: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220: export CONFIG_SHELL
221: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222: fi
223:
224: if test x$as_have_required = xno; then :
225: $as_echo "$0: This script requires a shell more modern than all"
226: $as_echo "$0: the shells that I found on your system."
227: if test x${ZSH_VERSION+set} = xset ; then
228: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230: else
231: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232: $0: including any error possibly output before this
233: $0: message. Then install a modern shell, or manually run
234: $0: the script under such a shell if you do have one."
235: fi
236: exit 1
237: fi
1.1 bertrand 238: fi
239: fi
1.15 bertrand 240: SHELL=${CONFIG_SHELL-/bin/sh}
241: export SHELL
242: # Unset more variables known to interfere with behavior of common tools.
243: CLICOLOR_FORCE= GREP_OPTIONS=
244: unset CLICOLOR_FORCE GREP_OPTIONS
1.14 bertrand 245:
1.15 bertrand 246: ## --------------------- ##
247: ## M4sh Shell Functions. ##
248: ## --------------------- ##
249: # as_fn_unset VAR
250: # ---------------
251: # Portably unset VAR.
252: as_fn_unset ()
253: {
254: { eval $1=; unset $1;}
255: }
256: as_unset=as_fn_unset
257:
258: # as_fn_set_status STATUS
259: # -----------------------
260: # Set $? to STATUS, without forking.
261: as_fn_set_status ()
262: {
263: return $1
264: } # as_fn_set_status
265:
266: # as_fn_exit STATUS
267: # -----------------
268: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269: as_fn_exit ()
270: {
271: set +e
272: as_fn_set_status $1
273: exit $1
274: } # as_fn_exit
275:
276: # as_fn_mkdir_p
277: # -------------
278: # Create "$as_dir" as a directory, including parents if necessary.
279: as_fn_mkdir_p ()
280: {
1.14 bertrand 281:
1.15 bertrand 282: case $as_dir in #(
283: -*) as_dir=./$as_dir;;
284: esac
285: test -d "$as_dir" || eval $as_mkdir_p || {
286: as_dirs=
287: while :; do
288: case $as_dir in #(
289: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290: *) as_qdir=$as_dir;;
291: esac
292: as_dirs="'$as_qdir' $as_dirs"
293: as_dir=`$as_dirname -- "$as_dir" ||
294: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295: X"$as_dir" : 'X\(//\)[^/]' \| \
296: X"$as_dir" : 'X\(//\)$' \| \
297: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298: $as_echo X"$as_dir" |
299: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300: s//\1/
301: q
302: }
303: /^X\(\/\/\)[^/].*/{
304: s//\1/
305: q
306: }
307: /^X\(\/\/\)$/{
308: s//\1/
309: q
310: }
311: /^X\(\/\).*/{
312: s//\1/
313: q
314: }
315: s/.*/./; q'`
316: test -d "$as_dir" && break
317: done
318: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36 bertrand 319: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.1 bertrand 320:
321:
1.15 bertrand 322: } # as_fn_mkdir_p
323: # as_fn_append VAR VALUE
324: # ----------------------
325: # Append the text in VALUE to the end of the definition contained in VAR. Take
326: # advantage of any shell optimizations that allow amortized linear growth over
327: # repeated appends, instead of the typical quadratic growth present in naive
328: # implementations.
329: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330: eval 'as_fn_append ()
331: {
332: eval $1+=\$2
333: }'
1.14 bertrand 334: else
1.15 bertrand 335: as_fn_append ()
336: {
337: eval $1=\$$1\$2
338: }
339: fi # as_fn_append
1.1 bertrand 340:
1.15 bertrand 341: # as_fn_arith ARG...
342: # ------------------
343: # Perform arithmetic evaluation on the ARGs, and store the result in the
344: # global $as_val. Take advantage of shells that can avoid forks. The arguments
345: # must be portable across $(()) and expr.
346: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347: eval 'as_fn_arith ()
348: {
349: as_val=$(( $* ))
350: }'
1.1 bertrand 351: else
1.15 bertrand 352: as_fn_arith ()
353: {
354: as_val=`expr "$@" || test $? -eq 1`
355: }
356: fi # as_fn_arith
1.14 bertrand 357:
358:
1.36 bertrand 359: # as_fn_error STATUS ERROR [LINENO LOG_FD]
360: # ----------------------------------------
1.15 bertrand 361: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36 bertrand 363: # script with STATUS, using 1 if that was 0.
1.15 bertrand 364: as_fn_error ()
365: {
1.36 bertrand 366: as_status=$1; test $as_status -eq 0 && as_status=1
367: if test "$4"; then
368: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15 bertrand 370: fi
1.36 bertrand 371: $as_echo "$as_me: error: $2" >&2
1.15 bertrand 372: as_fn_exit $as_status
373: } # as_fn_error
1.14 bertrand 374:
1.15 bertrand 375: if expr a : '\(a\)' >/dev/null 2>&1 &&
376: test "X`expr 00001 : '.*\(...\)'`" = X001; then
377: as_expr=expr
1.1 bertrand 378: else
1.15 bertrand 379: as_expr=false
1.14 bertrand 380: fi
381:
1.15 bertrand 382: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383: as_basename=basename
1.1 bertrand 384: else
1.15 bertrand 385: as_basename=false
1.14 bertrand 386: fi
387:
1.15 bertrand 388: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389: as_dirname=dirname
1.1 bertrand 390: else
1.15 bertrand 391: as_dirname=false
1.1 bertrand 392: fi
393:
1.15 bertrand 394: as_me=`$as_basename -- "$0" ||
395: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396: X"$0" : 'X\(//\)$' \| \
397: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398: $as_echo X/"$0" |
399: sed '/^.*\/\([^/][^/]*\)\/*$/{
400: s//\1/
401: q
402: }
403: /^X\/\(\/\/\)$/{
404: s//\1/
405: q
406: }
407: /^X\/\(\/\).*/{
408: s//\1/
409: q
410: }
411: s/.*/./; q'`
1.1 bertrand 412:
1.15 bertrand 413: # Avoid depending upon Character Ranges.
414: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417: as_cr_digits='0123456789'
418: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 bertrand 419:
420:
1.15 bertrand 421: as_lineno_1=$LINENO as_lineno_1a=$LINENO
422: as_lineno_2=$LINENO as_lineno_2a=$LINENO
423: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1.1 bertrand 426: sed -n '
427: p
428: /[$]LINENO/=
429: ' <$as_myself |
430: sed '
431: s/[$]LINENO.*/&-/
432: t lineno
433: b
434: :lineno
435: N
436: :loop
437: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438: t loop
439: s/-\n.*//
440: ' >$as_me.lineno &&
441: chmod +x "$as_me.lineno" ||
1.15 bertrand 442: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1.1 bertrand 443:
444: # Don't try to exec as it changes $[0], causing all sort of problems
445: # (the dirname of $[0] is not the place where we might find the
446: # original and so on. Autoconf is especially sensitive to this).
447: . "./$as_me.lineno"
448: # Exit status is that of the last command.
449: exit
450: }
451:
1.15 bertrand 452: ECHO_C= ECHO_N= ECHO_T=
453: case `echo -n x` in #(((((
454: -n*)
455: case `echo 'xy\c'` in
1.1 bertrand 456: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.15 bertrand 457: xy) ECHO_C='\c';;
458: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459: ECHO_T=' ';;
1.1 bertrand 460: esac;;
461: *)
462: ECHO_N='-n';;
463: esac
464:
465: rm -f conf$$ conf$$.exe conf$$.file
466: if test -d conf$$.dir; then
467: rm -f conf$$.dir/conf$$.file
468: else
469: rm -f conf$$.dir
1.15 bertrand 470: mkdir conf$$.dir 2>/dev/null
1.1 bertrand 471: fi
1.15 bertrand 472: if (echo >conf$$.file) 2>/dev/null; then
473: if ln -s conf$$.file conf$$ 2>/dev/null; then
474: as_ln_s='ln -s'
475: # ... but there are two gotchas:
476: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478: # In both cases, we have to default to `cp -p'.
479: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480: as_ln_s='cp -p'
481: elif ln conf$$.file conf$$ 2>/dev/null; then
482: as_ln_s=ln
483: else
1.1 bertrand 484: as_ln_s='cp -p'
1.15 bertrand 485: fi
1.1 bertrand 486: else
487: as_ln_s='cp -p'
488: fi
489: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490: rmdir conf$$.dir 2>/dev/null
491:
492: if mkdir -p . 2>/dev/null; then
1.15 bertrand 493: as_mkdir_p='mkdir -p "$as_dir"'
1.1 bertrand 494: else
495: test -d ./-p && rmdir ./-p
496: as_mkdir_p=false
497: fi
498:
499: if test -x / >/dev/null 2>&1; then
500: as_test_x='test -x'
501: else
502: if ls -dL / >/dev/null 2>&1; then
503: as_ls_L_option=L
504: else
505: as_ls_L_option=
506: fi
507: as_test_x='
508: eval sh -c '\''
509: if test -d "$1"; then
1.15 bertrand 510: test -d "$1/.";
1.1 bertrand 511: else
1.15 bertrand 512: case $1 in #(
513: -*)set "./$1";;
1.1 bertrand 514: esac;
1.15 bertrand 515: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1 bertrand 516: ???[sx]*):;;*)false;;esac;fi
517: '\'' sh
518: '
519: fi
520: as_executable_p=$as_test_x
521:
522: # Sed expression to map a string onto a valid CPP name.
523: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524:
525: # Sed expression to map a string onto a valid variable name.
526: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527:
528:
1.15 bertrand 529: test -n "$DJDIR" || exec 7<&0 </dev/null
530: exec 6>&1
1.1 bertrand 531:
532: # Name of the host.
1.36 bertrand 533: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
1.1 bertrand 534: # so uname gets run too.
535: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536:
537: #
538: # Initializations.
539: #
540: ac_default_prefix=/usr/local
541: ac_clean_files=
542: ac_config_libobj_dir=.
543: LIBOBJS=
544: cross_compiling=no
545: subdirs=
546: MFLAGS=
547: MAKEFLAGS=
548:
549: # Identity of this package.
550: PACKAGE_NAME='rpl'
551: PACKAGE_TARNAME='rpl'
1.38 bertrand 552: PACKAGE_VERSION='4.0.19'
553: PACKAGE_STRING='rpl 4.0.19'
1.1 bertrand 554: PACKAGE_BUGREPORT=''
1.15 bertrand 555: PACKAGE_URL=''
1.1 bertrand 556:
557: ac_default_prefix=/usr/local
558: # Factoring default headers for most tests.
559: ac_includes_default="\
560: #include <stdio.h>
561: #ifdef HAVE_SYS_TYPES_H
562: # include <sys/types.h>
563: #endif
564: #ifdef HAVE_SYS_STAT_H
565: # include <sys/stat.h>
566: #endif
567: #ifdef STDC_HEADERS
568: # include <stdlib.h>
569: # include <stddef.h>
570: #else
571: # ifdef HAVE_STDLIB_H
572: # include <stdlib.h>
573: # endif
574: #endif
575: #ifdef HAVE_STRING_H
576: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577: # include <memory.h>
578: # endif
579: # include <string.h>
580: #endif
581: #ifdef HAVE_STRINGS_H
582: # include <strings.h>
583: #endif
584: #ifdef HAVE_INTTYPES_H
585: # include <inttypes.h>
586: #endif
587: #ifdef HAVE_STDINT_H
588: # include <stdint.h>
589: #endif
590: #ifdef HAVE_UNISTD_H
591: # include <unistd.h>
592: #endif"
593:
1.15 bertrand 594: enable_option_checking=no
595: ac_subst_vars='am__EXEEXT_FALSE
596: am__EXEEXT_TRUE
597: LTLIBOBJS
598: LIBOBJS
1.30 bertrand 599: EXT_SQL
1.24 bertrand 600: MALLOC
1.15 bertrand 601: DATE_FR
602: FINAL_ENCODING
603: OPENSSL
604: SQLITE
605: ICONV
606: FILE
607: GNUPLOT
608: GPP
609: GSL
610: UNITS
611: READLINE
612: NCURSES
1.35 bertrand 613: BROKEN_SIGINFO
1.34 bertrand 614: IPV6
1.33 bertrand 615: SEMUN
1.36 bertrand 616: IPCS_SYSV
1.17 bertrand 617: SEMAPHORES_NOMMES
618: NESTED_FUNCTIONS
619: EXPORT_DYNAMIC
1.33 bertrand 620: C_STANDARD
1.15 bertrand 621: OS
622: GNUPLOT_COMPILATION
623: subdirs
624: EGREP
625: GREP
626: libPgSQLlib
627: libPgSQLinc
628: POSTGRESQL_SUPPORT
629: libMySQLlib
630: libMySQLinc
631: MYSQL_SUPPORT
632: DATE
633: includeX
634: libX
635: MOTIF_SUPPORT
636: DEBUG
637: EXPERIMENTAL_CODE
638: VIM_SUPPORT
639: POSTSCRIPT_SUPPORT
640: FORCE_GNUPLOT_PATH
641: GNUPLOT_SUPPORT
642: VIM
643: GNUPLOT_P
644: GV
645: GS
646: DVIPS
647: LATEX
648: TEX
649: SED
650: RANLIB
651: LN_S
652: RUNPATH
653: PROFILAGE
654: X_EXTRA_LIBS
655: X_LIBS
656: X_PRE_LIBS
657: X_CFLAGS
658: CPP
659: XMKMF
660: ac_ct_FC
661: FCFLAGS
662: FC
663: ac_ct_F77
664: FFLAGS
665: F77
666: am__fastdepCXX_FALSE
667: am__fastdepCXX_TRUE
668: CXXDEPMODE
669: ac_ct_CXX
670: CXXFLAGS
671: CXX
672: am__fastdepCC_FALSE
673: am__fastdepCC_TRUE
674: CCDEPMODE
675: AMDEPBACKSLASH
676: AMDEP_FALSE
677: AMDEP_TRUE
678: am__quote
679: am__include
680: DEPDIR
681: OBJEXT
682: EXEEXT
683: ac_ct_CC
684: CPPFLAGS
685: LDFLAGS
686: CFLAGS
687: CC
688: am__untar
689: am__tar
690: AMTAR
691: am__leading_dot
692: SET_MAKE
693: AWK
694: mkdir_p
695: MKDIR_P
696: INSTALL_STRIP_PROGRAM
697: STRIP
698: install_sh
699: MAKEINFO
700: AUTOHEADER
701: AUTOMAKE
702: AUTOCONF
703: ACLOCAL
704: VERSION
705: PACKAGE
706: CYGPATH_W
707: am__isrc
708: INSTALL_DATA
709: INSTALL_SCRIPT
710: INSTALL_PROGRAM
711: target_os
712: target_vendor
713: target_cpu
714: target
715: host_os
716: host_vendor
717: host_cpu
718: host
719: build_os
720: build_vendor
721: build_cpu
722: build
723: target_alias
724: host_alias
725: build_alias
726: LIBS
727: ECHO_T
728: ECHO_N
729: ECHO_C
730: DEFS
731: mandir
732: localedir
733: libdir
734: psdir
735: pdfdir
736: dvidir
737: htmldir
738: infodir
739: docdir
740: oldincludedir
741: includedir
742: localstatedir
743: sharedstatedir
744: sysconfdir
745: datadir
746: datarootdir
747: libexecdir
748: sbindir
749: bindir
750: program_transform_name
751: prefix
752: exec_prefix
753: PACKAGE_URL
754: PACKAGE_BUGREPORT
755: PACKAGE_STRING
756: PACKAGE_VERSION
757: PACKAGE_TARNAME
758: PACKAGE_NAME
1.14 bertrand 759: PATH_SEPARATOR
1.15 bertrand 760: SHELL'
761: ac_subst_files=''
762: ac_user_opts='
763: enable_option_checking
764: enable_dependency_tracking
765: with_x
766: enable_optimization
1.36 bertrand 767: enable_sysv_semaphores
1.30 bertrand 768: enable_full_static
1.15 bertrand 769: enable_final_encoding
770: enable_tex
771: enable_vim
772: enable_embedded_gnuplot
773: enable_gnuplot
774: enable_motif
775: enable_experimental
776: enable_debug
777: enable_profile
778: enable_final_run_path
779: with_mysql
780: with_postgresql
781: with_openssl_arch
782: '
783: ac_precious_vars='build_alias
1.1 bertrand 784: host_alias
785: target_alias
786: CC
787: CFLAGS
788: LDFLAGS
1.15 bertrand 789: LIBS
1.1 bertrand 790: CPPFLAGS
791: CXX
792: CXXFLAGS
1.15 bertrand 793: CCC
1.1 bertrand 794: F77
795: FFLAGS
796: FC
797: FCFLAGS
798: XMKMF
799: CPP'
800: ac_subdirs_all='tools/$NCURSES
801: tools/$READLINE
802: tools/$GSL
803: tools/$GPP
804: tools/$FILE
805: tools/$ICONV
1.9 bertrand 806: tools/$SQLITE
1.17 bertrand 807: tools/$UNITS
1.1 bertrand 808: tools/$GNUPLOT'
809:
810: # Initialize some variables set by options.
811: ac_init_help=
812: ac_init_version=false
1.15 bertrand 813: ac_unrecognized_opts=
814: ac_unrecognized_sep=
1.1 bertrand 815: # The variables have the same names as the options, with
816: # dashes changed to underlines.
817: cache_file=/dev/null
818: exec_prefix=NONE
819: no_create=
820: no_recursion=
821: prefix=NONE
822: program_prefix=NONE
823: program_suffix=NONE
824: program_transform_name=s,x,x,
825: silent=
826: site=
827: srcdir=
828: verbose=
829: x_includes=NONE
830: x_libraries=NONE
831:
832: # Installation directory options.
833: # These are left unexpanded so users can "make install exec_prefix=/foo"
834: # and all the variables that are supposed to be based on exec_prefix
835: # by default will actually change.
836: # Use braces instead of parens because sh, perl, etc. also accept them.
837: # (The list follows the same order as the GNU Coding Standards.)
838: bindir='${exec_prefix}/bin'
839: sbindir='${exec_prefix}/sbin'
840: libexecdir='${exec_prefix}/libexec'
841: datarootdir='${prefix}/share'
842: datadir='${datarootdir}'
843: sysconfdir='${prefix}/etc'
844: sharedstatedir='${prefix}/com'
845: localstatedir='${prefix}/var'
846: includedir='${prefix}/include'
847: oldincludedir='/usr/include'
848: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849: infodir='${datarootdir}/info'
850: htmldir='${docdir}'
851: dvidir='${docdir}'
852: pdfdir='${docdir}'
853: psdir='${docdir}'
854: libdir='${exec_prefix}/lib'
855: localedir='${datarootdir}/locale'
856: mandir='${datarootdir}/man'
857:
858: ac_prev=
859: ac_dashdash=
860: for ac_option
861: do
862: # If the previous option needs an argument, assign it.
863: if test -n "$ac_prev"; then
864: eval $ac_prev=\$ac_option
865: ac_prev=
866: continue
867: fi
868:
869: case $ac_option in
1.36 bertrand 870: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871: *=) ac_optarg= ;;
872: *) ac_optarg=yes ;;
1.1 bertrand 873: esac
874:
875: # Accept the important Cygnus configure options, so we can diagnose typos.
876:
877: case $ac_dashdash$ac_option in
878: --)
879: ac_dashdash=yes ;;
880:
881: -bindir | --bindir | --bindi | --bind | --bin | --bi)
882: ac_prev=bindir ;;
883: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884: bindir=$ac_optarg ;;
885:
886: -build | --build | --buil | --bui | --bu)
887: ac_prev=build_alias ;;
888: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889: build_alias=$ac_optarg ;;
890:
891: -cache-file | --cache-file | --cache-fil | --cache-fi \
892: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893: ac_prev=cache_file ;;
894: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896: cache_file=$ac_optarg ;;
897:
898: --config-cache | -C)
899: cache_file=config.cache ;;
900:
901: -datadir | --datadir | --datadi | --datad)
902: ac_prev=datadir ;;
903: -datadir=* | --datadir=* | --datadi=* | --datad=*)
904: datadir=$ac_optarg ;;
905:
906: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907: | --dataroo | --dataro | --datar)
908: ac_prev=datarootdir ;;
909: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911: datarootdir=$ac_optarg ;;
912:
913: -disable-* | --disable-*)
1.15 bertrand 914: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 bertrand 915: # Reject names that are not valid shell variable names.
1.15 bertrand 916: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 917: as_fn_error $? "invalid feature name: $ac_useropt"
1.15 bertrand 918: ac_useropt_orig=$ac_useropt
919: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920: case $ac_user_opts in
921: *"
922: "enable_$ac_useropt"
923: "*) ;;
924: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925: ac_unrecognized_sep=', ';;
926: esac
927: eval enable_$ac_useropt=no ;;
1.1 bertrand 928:
929: -docdir | --docdir | --docdi | --doc | --do)
930: ac_prev=docdir ;;
931: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932: docdir=$ac_optarg ;;
933:
934: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935: ac_prev=dvidir ;;
936: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937: dvidir=$ac_optarg ;;
938:
939: -enable-* | --enable-*)
1.15 bertrand 940: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 bertrand 941: # Reject names that are not valid shell variable names.
1.15 bertrand 942: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 943: as_fn_error $? "invalid feature name: $ac_useropt"
1.15 bertrand 944: ac_useropt_orig=$ac_useropt
945: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946: case $ac_user_opts in
947: *"
948: "enable_$ac_useropt"
949: "*) ;;
950: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951: ac_unrecognized_sep=', ';;
952: esac
953: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 bertrand 954:
955: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957: | --exec | --exe | --ex)
958: ac_prev=exec_prefix ;;
959: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961: | --exec=* | --exe=* | --ex=*)
962: exec_prefix=$ac_optarg ;;
963:
964: -gas | --gas | --ga | --g)
965: # Obsolete; use --with-gas.
966: with_gas=yes ;;
967:
968: -help | --help | --hel | --he | -h)
969: ac_init_help=long ;;
970: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971: ac_init_help=recursive ;;
972: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973: ac_init_help=short ;;
974:
975: -host | --host | --hos | --ho)
976: ac_prev=host_alias ;;
977: -host=* | --host=* | --hos=* | --ho=*)
978: host_alias=$ac_optarg ;;
979:
980: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981: ac_prev=htmldir ;;
982: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983: | --ht=*)
984: htmldir=$ac_optarg ;;
985:
986: -includedir | --includedir | --includedi | --included | --include \
987: | --includ | --inclu | --incl | --inc)
988: ac_prev=includedir ;;
989: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990: | --includ=* | --inclu=* | --incl=* | --inc=*)
991: includedir=$ac_optarg ;;
992:
993: -infodir | --infodir | --infodi | --infod | --info | --inf)
994: ac_prev=infodir ;;
995: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996: infodir=$ac_optarg ;;
997:
998: -libdir | --libdir | --libdi | --libd)
999: ac_prev=libdir ;;
1000: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001: libdir=$ac_optarg ;;
1002:
1003: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004: | --libexe | --libex | --libe)
1005: ac_prev=libexecdir ;;
1006: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007: | --libexe=* | --libex=* | --libe=*)
1008: libexecdir=$ac_optarg ;;
1009:
1010: -localedir | --localedir | --localedi | --localed | --locale)
1011: ac_prev=localedir ;;
1012: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013: localedir=$ac_optarg ;;
1014:
1015: -localstatedir | --localstatedir | --localstatedi | --localstated \
1016: | --localstate | --localstat | --localsta | --localst | --locals)
1017: ac_prev=localstatedir ;;
1018: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020: localstatedir=$ac_optarg ;;
1021:
1022: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023: ac_prev=mandir ;;
1024: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025: mandir=$ac_optarg ;;
1026:
1027: -nfp | --nfp | --nf)
1028: # Obsolete; use --without-fp.
1029: with_fp=no ;;
1030:
1031: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032: | --no-cr | --no-c | -n)
1033: no_create=yes ;;
1034:
1035: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037: no_recursion=yes ;;
1038:
1039: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041: | --oldin | --oldi | --old | --ol | --o)
1042: ac_prev=oldincludedir ;;
1043: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046: oldincludedir=$ac_optarg ;;
1047:
1048: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049: ac_prev=prefix ;;
1050: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051: prefix=$ac_optarg ;;
1052:
1053: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054: | --program-pre | --program-pr | --program-p)
1055: ac_prev=program_prefix ;;
1056: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058: program_prefix=$ac_optarg ;;
1059:
1060: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061: | --program-suf | --program-su | --program-s)
1062: ac_prev=program_suffix ;;
1063: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065: program_suffix=$ac_optarg ;;
1066:
1067: -program-transform-name | --program-transform-name \
1068: | --program-transform-nam | --program-transform-na \
1069: | --program-transform-n | --program-transform- \
1070: | --program-transform | --program-transfor \
1071: | --program-transfo | --program-transf \
1072: | --program-trans | --program-tran \
1073: | --progr-tra | --program-tr | --program-t)
1074: ac_prev=program_transform_name ;;
1075: -program-transform-name=* | --program-transform-name=* \
1076: | --program-transform-nam=* | --program-transform-na=* \
1077: | --program-transform-n=* | --program-transform-=* \
1078: | --program-transform=* | --program-transfor=* \
1079: | --program-transfo=* | --program-transf=* \
1080: | --program-trans=* | --program-tran=* \
1081: | --progr-tra=* | --program-tr=* | --program-t=*)
1082: program_transform_name=$ac_optarg ;;
1083:
1084: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085: ac_prev=pdfdir ;;
1086: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087: pdfdir=$ac_optarg ;;
1088:
1089: -psdir | --psdir | --psdi | --psd | --ps)
1090: ac_prev=psdir ;;
1091: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092: psdir=$ac_optarg ;;
1093:
1094: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095: | -silent | --silent | --silen | --sile | --sil)
1096: silent=yes ;;
1097:
1098: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099: ac_prev=sbindir ;;
1100: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101: | --sbi=* | --sb=*)
1102: sbindir=$ac_optarg ;;
1103:
1104: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106: | --sharedst | --shareds | --shared | --share | --shar \
1107: | --sha | --sh)
1108: ac_prev=sharedstatedir ;;
1109: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112: | --sha=* | --sh=*)
1113: sharedstatedir=$ac_optarg ;;
1114:
1115: -site | --site | --sit)
1116: ac_prev=site ;;
1117: -site=* | --site=* | --sit=*)
1118: site=$ac_optarg ;;
1119:
1120: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121: ac_prev=srcdir ;;
1122: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123: srcdir=$ac_optarg ;;
1124:
1125: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126: | --syscon | --sysco | --sysc | --sys | --sy)
1127: ac_prev=sysconfdir ;;
1128: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130: sysconfdir=$ac_optarg ;;
1131:
1132: -target | --target | --targe | --targ | --tar | --ta | --t)
1133: ac_prev=target_alias ;;
1134: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135: target_alias=$ac_optarg ;;
1136:
1137: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138: verbose=yes ;;
1139:
1140: -version | --version | --versio | --versi | --vers | -V)
1141: ac_init_version=: ;;
1142:
1143: -with-* | --with-*)
1.15 bertrand 1144: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 bertrand 1145: # Reject names that are not valid shell variable names.
1.15 bertrand 1146: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 1147: as_fn_error $? "invalid package name: $ac_useropt"
1.15 bertrand 1148: ac_useropt_orig=$ac_useropt
1149: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150: case $ac_user_opts in
1151: *"
1152: "with_$ac_useropt"
1153: "*) ;;
1154: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155: ac_unrecognized_sep=', ';;
1156: esac
1157: eval with_$ac_useropt=\$ac_optarg ;;
1.1 bertrand 1158:
1159: -without-* | --without-*)
1.15 bertrand 1160: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 bertrand 1161: # Reject names that are not valid shell variable names.
1.15 bertrand 1162: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1.36 bertrand 1163: as_fn_error $? "invalid package name: $ac_useropt"
1.15 bertrand 1164: ac_useropt_orig=$ac_useropt
1165: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166: case $ac_user_opts in
1167: *"
1168: "with_$ac_useropt"
1169: "*) ;;
1170: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171: ac_unrecognized_sep=', ';;
1172: esac
1173: eval with_$ac_useropt=no ;;
1.1 bertrand 1174:
1175: --x)
1176: # Obsolete; use --with-x.
1177: with_x=yes ;;
1178:
1179: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180: | --x-incl | --x-inc | --x-in | --x-i)
1181: ac_prev=x_includes ;;
1182: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184: x_includes=$ac_optarg ;;
1185:
1186: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188: ac_prev=x_libraries ;;
1189: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191: x_libraries=$ac_optarg ;;
1192:
1.36 bertrand 1193: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194: Try \`$0 --help' for more information"
1.1 bertrand 1195: ;;
1196:
1197: *=*)
1198: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199: # Reject names that are not valid shell variable names.
1.15 bertrand 1200: case $ac_envvar in #(
1201: '' | [0-9]* | *[!_$as_cr_alnum]* )
1.36 bertrand 1202: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1.15 bertrand 1203: esac
1.1 bertrand 1204: eval $ac_envvar=\$ac_optarg
1205: export $ac_envvar ;;
1206:
1207: *)
1208: # FIXME: should be removed in autoconf 3.0.
1.15 bertrand 1209: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 bertrand 1210: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15 bertrand 1211: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1 bertrand 1212: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213: ;;
1214:
1215: esac
1216: done
1217:
1218: if test -n "$ac_prev"; then
1219: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.36 bertrand 1220: as_fn_error $? "missing argument to $ac_option"
1.15 bertrand 1221: fi
1222:
1223: if test -n "$ac_unrecognized_opts"; then
1224: case $enable_option_checking in
1225: no) ;;
1.36 bertrand 1226: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1.15 bertrand 1227: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228: esac
1.1 bertrand 1229: fi
1230:
1.15 bertrand 1231: # Check all directory arguments for consistency.
1.1 bertrand 1232: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233: datadir sysconfdir sharedstatedir localstatedir includedir \
1234: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235: libdir localedir mandir
1236: do
1237: eval ac_val=\$$ac_var
1.15 bertrand 1238: # Remove trailing slashes.
1239: case $ac_val in
1240: */ )
1241: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242: eval $ac_var=\$ac_val;;
1243: esac
1244: # Be sure to have absolute directory names.
1.1 bertrand 1245: case $ac_val in
1246: [\\/$]* | ?:[\\/]* ) continue;;
1247: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248: esac
1.36 bertrand 1249: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1.1 bertrand 1250: done
1251:
1252: # There might be people who depend on the old broken behavior: `$host'
1253: # used to hold the argument of --host etc.
1254: # FIXME: To remove some day.
1255: build=$build_alias
1256: host=$host_alias
1257: target=$target_alias
1258:
1259: # FIXME: To remove some day.
1260: if test "x$host_alias" != x; then
1261: if test "x$build_alias" = x; then
1262: cross_compiling=maybe
1.36 bertrand 1263: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1264: If a cross compiler is detected then cross compile mode will be used" >&2
1.1 bertrand 1265: elif test "x$build_alias" != "x$host_alias"; then
1266: cross_compiling=yes
1267: fi
1268: fi
1269:
1270: ac_tool_prefix=
1271: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272:
1273: test "$silent" = yes && exec 6>/dev/null
1274:
1275:
1276: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277: ac_ls_di=`ls -di .` &&
1278: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.36 bertrand 1279: as_fn_error $? "working directory cannot be determined"
1.1 bertrand 1280: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.36 bertrand 1281: as_fn_error $? "pwd does not report name of working directory"
1.1 bertrand 1282:
1283:
1284: # Find the source files, if location was not specified.
1285: if test -z "$srcdir"; then
1286: ac_srcdir_defaulted=yes
1287: # Try the directory containing this script, then the parent directory.
1.15 bertrand 1288: ac_confdir=`$as_dirname -- "$as_myself" ||
1289: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290: X"$as_myself" : 'X\(//\)[^/]' \| \
1291: X"$as_myself" : 'X\(//\)$' \| \
1292: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293: $as_echo X"$as_myself" |
1.1 bertrand 1294: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295: s//\1/
1296: q
1297: }
1298: /^X\(\/\/\)[^/].*/{
1299: s//\1/
1300: q
1301: }
1302: /^X\(\/\/\)$/{
1303: s//\1/
1304: q
1305: }
1306: /^X\(\/\).*/{
1307: s//\1/
1308: q
1309: }
1310: s/.*/./; q'`
1311: srcdir=$ac_confdir
1312: if test ! -r "$srcdir/$ac_unique_file"; then
1313: srcdir=..
1314: fi
1315: else
1316: ac_srcdir_defaulted=no
1317: fi
1318: if test ! -r "$srcdir/$ac_unique_file"; then
1319: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.36 bertrand 1320: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1.1 bertrand 1321: fi
1322: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323: ac_abs_confdir=`(
1.36 bertrand 1324: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1.1 bertrand 1325: pwd)`
1326: # When building in place, set srcdir=.
1327: if test "$ac_abs_confdir" = "$ac_pwd"; then
1328: srcdir=.
1329: fi
1330: # Remove unnecessary trailing slashes from srcdir.
1331: # Double slashes in file names in object file debugging info
1332: # mess up M-x gdb in Emacs.
1333: case $srcdir in
1334: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335: esac
1336: for ac_var in $ac_precious_vars; do
1337: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338: eval ac_env_${ac_var}_value=\$${ac_var}
1339: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341: done
1342:
1343: #
1344: # Report the --help message.
1345: #
1346: if test "$ac_init_help" = "long"; then
1347: # Omit some internal or obsolete options to make the list less imposing.
1348: # This message is too long to be a string in the A/UX 3.1 sh.
1349: cat <<_ACEOF
1.38 bertrand 1350: \`configure' configures rpl 4.0.19 to adapt to many kinds of systems.
1.1 bertrand 1351:
1352: Usage: $0 [OPTION]... [VAR=VALUE]...
1353:
1354: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355: VAR=VALUE. See below for descriptions of some of the useful variables.
1356:
1357: Defaults for the options are specified in brackets.
1358:
1359: Configuration:
1360: -h, --help display this help and exit
1361: --help=short display options specific to this package
1362: --help=recursive display the short help of all the included packages
1363: -V, --version display version information and exit
1.36 bertrand 1364: -q, --quiet, --silent do not print \`checking ...' messages
1.1 bertrand 1365: --cache-file=FILE cache test results in FILE [disabled]
1366: -C, --config-cache alias for \`--cache-file=config.cache'
1367: -n, --no-create do not create output files
1368: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1369:
1370: Installation directories:
1371: --prefix=PREFIX install architecture-independent files in PREFIX
1.15 bertrand 1372: [$ac_default_prefix]
1.1 bertrand 1373: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.15 bertrand 1374: [PREFIX]
1.1 bertrand 1375:
1376: By default, \`make install' will install all the files in
1377: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379: for instance \`--prefix=\$HOME'.
1380:
1381: For better control, use the options below.
1382:
1383: Fine tuning of the installation directories:
1.15 bertrand 1384: --bindir=DIR user executables [EPREFIX/bin]
1385: --sbindir=DIR system admin executables [EPREFIX/sbin]
1386: --libexecdir=DIR program executables [EPREFIX/libexec]
1387: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390: --libdir=DIR object code libraries [EPREFIX/lib]
1391: --includedir=DIR C header files [PREFIX/include]
1392: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1393: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1394: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1395: --infodir=DIR info documentation [DATAROOTDIR/info]
1396: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1397: --mandir=DIR man documentation [DATAROOTDIR/man]
1398: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1399: --htmldir=DIR html documentation [DOCDIR]
1400: --dvidir=DIR dvi documentation [DOCDIR]
1401: --pdfdir=DIR pdf documentation [DOCDIR]
1402: --psdir=DIR ps documentation [DOCDIR]
1.1 bertrand 1403: _ACEOF
1404:
1405: cat <<\_ACEOF
1406:
1407: Program names:
1408: --program-prefix=PREFIX prepend PREFIX to installed program names
1409: --program-suffix=SUFFIX append SUFFIX to installed program names
1410: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1411:
1412: X features:
1413: --x-includes=DIR X include files are in DIR
1414: --x-libraries=DIR X library files are in DIR
1415:
1416: System types:
1417: --build=BUILD configure for building on BUILD [guessed]
1418: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419: --target=TARGET configure for building compilers for TARGET [HOST]
1420: _ACEOF
1421: fi
1422:
1423: if test -n "$ac_init_help"; then
1424: case $ac_init_help in
1.38 bertrand 1425: short | recursive ) echo "Configuration of rpl 4.0.19:";;
1.1 bertrand 1426: esac
1427: cat <<\_ACEOF
1428:
1429: Optional Features:
1.15 bertrand 1430: --disable-option-checking ignore unrecognized --enable/--with options
1.1 bertrand 1431: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433: --disable-dependency-tracking speeds up one-time build
1434: --enable-dependency-tracking do not reject slow dependency extractors
1435: --enable-optimization set compiler flags [default=environment variables -O3]
1.36 bertrand 1436: --enable-sysv-ipcs use SystemV IPC functions [default=no]
1.30 bertrand 1437: --enable-full-static build static RPL/2 engine [default=shared]
1.1 bertrand 1438: --enable-final-encoding force final encoding [default=guessed]
1439: --enable-tex provide the TeX support [default=guessed]
1440: --enable-vim provide the vim support [default=guessed]
1441: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1442: --enable-gnuplot provide the GnuPlot support [default=guessed]
1443: --enable-motif provide the Motif support [default=guessed]
1444: --enable-experimental enable experimental code [default=no]
1445: --enable-debug enable debug code [default=no]
1446: --enable-profile enable profile code [default=no]
1447: --enable-final-run-path=PATH enable another final run path than PREFIX
1448:
1449: Optional Packages:
1450: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1451: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1452: --with-x use the X Window System
1453: --with-mysql=PATH specify directory for installed mysql
1454: --with-postgresql=PATH specify directory for installed postgresql
1.15 bertrand 1455: --with-openssl-arch=ARCH specify os and compiler for openssl (ARCH or list)
1.1 bertrand 1456:
1457: Some influential environment variables:
1458: CC C compiler command
1459: CFLAGS C compiler flags
1460: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461: nonstandard directory <lib dir>
1462: LIBS libraries to pass to the linker, e.g. -l<library>
1.15 bertrand 1463: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1 bertrand 1464: you have headers in a nonstandard directory <include dir>
1465: CXX C++ compiler command
1466: CXXFLAGS C++ compiler flags
1467: F77 Fortran 77 compiler command
1468: FFLAGS Fortran 77 compiler flags
1469: FC Fortran compiler command
1470: FCFLAGS Fortran compiler flags
1471: XMKMF Path to xmkmf, Makefile generator for X Window System
1472: CPP C preprocessor
1473:
1474: Use these variables to override the choices made by `configure' or to help
1475: it to find libraries and programs with nonstandard names/locations.
1476:
1.15 bertrand 1477: Report bugs to the package provider.
1.1 bertrand 1478: _ACEOF
1479: ac_status=$?
1480: fi
1481:
1482: if test "$ac_init_help" = "recursive"; then
1483: # If there are subdirs, report their specific --help.
1484: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15 bertrand 1485: test -d "$ac_dir" ||
1486: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487: continue
1.1 bertrand 1488: ac_builddir=.
1489:
1490: case "$ac_dir" in
1491: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492: *)
1.15 bertrand 1493: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 1494: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 1495: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 1496: case $ac_top_builddir_sub in
1497: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499: esac ;;
1500: esac
1501: ac_abs_top_builddir=$ac_pwd
1502: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503: # for backward compatibility:
1504: ac_top_builddir=$ac_top_build_prefix
1505:
1506: case $srcdir in
1507: .) # We are building in place.
1508: ac_srcdir=.
1509: ac_top_srcdir=$ac_top_builddir_sub
1510: ac_abs_top_srcdir=$ac_pwd ;;
1511: [\\/]* | ?:[\\/]* ) # Absolute name.
1512: ac_srcdir=$srcdir$ac_dir_suffix;
1513: ac_top_srcdir=$srcdir
1514: ac_abs_top_srcdir=$srcdir ;;
1515: *) # Relative name.
1516: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517: ac_top_srcdir=$ac_top_build_prefix$srcdir
1518: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519: esac
1520: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521:
1522: cd "$ac_dir" || { ac_status=$?; continue; }
1523: # Check for guested configure.
1524: if test -f "$ac_srcdir/configure.gnu"; then
1525: echo &&
1526: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527: elif test -f "$ac_srcdir/configure"; then
1528: echo &&
1529: $SHELL "$ac_srcdir/configure" --help=recursive
1530: else
1.15 bertrand 1531: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1 bertrand 1532: fi || ac_status=$?
1533: cd "$ac_pwd" || { ac_status=$?; break; }
1534: done
1535: fi
1536:
1537: test -n "$ac_init_help" && exit $ac_status
1538: if $ac_init_version; then
1539: cat <<\_ACEOF
1.38 bertrand 1540: rpl configure 4.0.19
1.36 bertrand 1541: generated by GNU Autoconf 2.67
1.1 bertrand 1542:
1.36 bertrand 1543: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 bertrand 1544: This configure script is free software; the Free Software Foundation
1545: gives unlimited permission to copy, distribute and modify it.
1546: _ACEOF
1547: exit
1548: fi
1549:
1.15 bertrand 1550: ## ------------------------ ##
1551: ## Autoconf initialization. ##
1552: ## ------------------------ ##
1553:
1554: # ac_fn_c_try_compile LINENO
1555: # --------------------------
1556: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557: ac_fn_c_try_compile ()
1558: {
1559: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560: rm -f conftest.$ac_objext
1561: if { { ac_try="$ac_compile"
1562: case "(($ac_try" in
1563: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564: *) ac_try_echo=$ac_try;;
1565: esac
1566: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567: $as_echo "$ac_try_echo"; } >&5
1568: (eval "$ac_compile") 2>conftest.err
1569: ac_status=$?
1570: if test -s conftest.err; then
1571: grep -v '^ *+' conftest.err >conftest.er1
1572: cat conftest.er1 >&5
1573: mv -f conftest.er1 conftest.err
1574: fi
1575: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576: test $ac_status = 0; } && {
1577: test -z "$ac_c_werror_flag" ||
1578: test ! -s conftest.err
1579: } && test -s conftest.$ac_objext; then :
1580: ac_retval=0
1581: else
1582: $as_echo "$as_me: failed program was:" >&5
1583: sed 's/^/| /' conftest.$ac_ext >&5
1584:
1585: ac_retval=1
1586: fi
1587: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1588: as_fn_set_status $ac_retval
1.1 bertrand 1589:
1.15 bertrand 1590: } # ac_fn_c_try_compile
1.1 bertrand 1591:
1.15 bertrand 1592: # ac_fn_cxx_try_compile LINENO
1593: # ----------------------------
1594: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595: ac_fn_cxx_try_compile ()
1.1 bertrand 1596: {
1.15 bertrand 1597: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598: rm -f conftest.$ac_objext
1599: if { { ac_try="$ac_compile"
1600: case "(($ac_try" in
1601: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602: *) ac_try_echo=$ac_try;;
1603: esac
1604: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605: $as_echo "$ac_try_echo"; } >&5
1606: (eval "$ac_compile") 2>conftest.err
1607: ac_status=$?
1608: if test -s conftest.err; then
1609: grep -v '^ *+' conftest.err >conftest.er1
1610: cat conftest.er1 >&5
1611: mv -f conftest.er1 conftest.err
1612: fi
1613: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614: test $ac_status = 0; } && {
1615: test -z "$ac_cxx_werror_flag" ||
1616: test ! -s conftest.err
1617: } && test -s conftest.$ac_objext; then :
1618: ac_retval=0
1619: else
1620: $as_echo "$as_me: failed program was:" >&5
1621: sed 's/^/| /' conftest.$ac_ext >&5
1622:
1623: ac_retval=1
1624: fi
1625: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1626: as_fn_set_status $ac_retval
1.1 bertrand 1627:
1.15 bertrand 1628: } # ac_fn_cxx_try_compile
1.1 bertrand 1629:
1.15 bertrand 1630: # ac_fn_f77_try_compile LINENO
1631: # ----------------------------
1632: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1633: ac_fn_f77_try_compile ()
1634: {
1635: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636: rm -f conftest.$ac_objext
1637: if { { ac_try="$ac_compile"
1638: case "(($ac_try" in
1639: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640: *) ac_try_echo=$ac_try;;
1641: esac
1642: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643: $as_echo "$ac_try_echo"; } >&5
1644: (eval "$ac_compile") 2>conftest.err
1645: ac_status=$?
1646: if test -s conftest.err; then
1647: grep -v '^ *+' conftest.err >conftest.er1
1648: cat conftest.er1 >&5
1649: mv -f conftest.er1 conftest.err
1650: fi
1651: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652: test $ac_status = 0; } && {
1653: test -z "$ac_f77_werror_flag" ||
1654: test ! -s conftest.err
1655: } && test -s conftest.$ac_objext; then :
1656: ac_retval=0
1657: else
1658: $as_echo "$as_me: failed program was:" >&5
1659: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1660:
1.15 bertrand 1661: ac_retval=1
1662: fi
1663: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664: as_fn_set_status $ac_retval
1.1 bertrand 1665:
1.15 bertrand 1666: } # ac_fn_f77_try_compile
1.1 bertrand 1667:
1.15 bertrand 1668: # ac_fn_fc_try_compile LINENO
1669: # ---------------------------
1670: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1671: ac_fn_fc_try_compile ()
1672: {
1673: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674: rm -f conftest.$ac_objext
1675: if { { ac_try="$ac_compile"
1676: case "(($ac_try" in
1677: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678: *) ac_try_echo=$ac_try;;
1679: esac
1680: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681: $as_echo "$ac_try_echo"; } >&5
1682: (eval "$ac_compile") 2>conftest.err
1683: ac_status=$?
1684: if test -s conftest.err; then
1685: grep -v '^ *+' conftest.err >conftest.er1
1686: cat conftest.er1 >&5
1687: mv -f conftest.er1 conftest.err
1688: fi
1689: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690: test $ac_status = 0; } && {
1691: test -z "$ac_fc_werror_flag" ||
1692: test ! -s conftest.err
1693: } && test -s conftest.$ac_objext; then :
1694: ac_retval=0
1695: else
1696: $as_echo "$as_me: failed program was:" >&5
1697: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1698:
1.15 bertrand 1699: ac_retval=1
1700: fi
1701: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1702: as_fn_set_status $ac_retval
1.1 bertrand 1703:
1.15 bertrand 1704: } # ac_fn_fc_try_compile
1.1 bertrand 1705:
1.15 bertrand 1706: # ac_fn_c_try_cpp LINENO
1707: # ----------------------
1708: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709: ac_fn_c_try_cpp ()
1710: {
1711: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712: if { { ac_try="$ac_cpp conftest.$ac_ext"
1713: case "(($ac_try" in
1714: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715: *) ac_try_echo=$ac_try;;
1716: esac
1717: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718: $as_echo "$ac_try_echo"; } >&5
1719: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720: ac_status=$?
1721: if test -s conftest.err; then
1722: grep -v '^ *+' conftest.err >conftest.er1
1723: cat conftest.er1 >&5
1724: mv -f conftest.er1 conftest.err
1725: fi
1726: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1.36 bertrand 1727: test $ac_status = 0; } > conftest.i && {
1.15 bertrand 1728: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729: test ! -s conftest.err
1730: }; then :
1731: ac_retval=0
1732: else
1733: $as_echo "$as_me: failed program was:" >&5
1734: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1735:
1.15 bertrand 1736: ac_retval=1
1737: fi
1738: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1739: as_fn_set_status $ac_retval
1.1 bertrand 1740:
1.15 bertrand 1741: } # ac_fn_c_try_cpp
1.1 bertrand 1742:
1.15 bertrand 1743: # ac_fn_c_try_link LINENO
1744: # -----------------------
1745: # Try to link conftest.$ac_ext, and return whether this succeeded.
1746: ac_fn_c_try_link ()
1747: {
1748: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749: rm -f conftest.$ac_objext conftest$ac_exeext
1750: if { { ac_try="$ac_link"
1751: case "(($ac_try" in
1752: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753: *) ac_try_echo=$ac_try;;
1754: esac
1755: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756: $as_echo "$ac_try_echo"; } >&5
1757: (eval "$ac_link") 2>conftest.err
1758: ac_status=$?
1759: if test -s conftest.err; then
1760: grep -v '^ *+' conftest.err >conftest.er1
1761: cat conftest.er1 >&5
1762: mv -f conftest.er1 conftest.err
1763: fi
1764: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765: test $ac_status = 0; } && {
1766: test -z "$ac_c_werror_flag" ||
1767: test ! -s conftest.err
1768: } && test -s conftest$ac_exeext && {
1769: test "$cross_compiling" = yes ||
1770: $as_test_x conftest$ac_exeext
1771: }; then :
1772: ac_retval=0
1773: else
1774: $as_echo "$as_me: failed program was:" >&5
1775: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1776:
1.15 bertrand 1777: ac_retval=1
1778: fi
1779: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781: # interfere with the next link command; also delete a directory that is
1782: # left behind by Apple's compiler. We do this before executing the actions.
1783: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785: as_fn_set_status $ac_retval
1.1 bertrand 1786:
1.15 bertrand 1787: } # ac_fn_c_try_link
1.1 bertrand 1788:
1.15 bertrand 1789: # ac_fn_c_check_func LINENO FUNC VAR
1790: # ----------------------------------
1791: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1792: ac_fn_c_check_func ()
1793: {
1794: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796: $as_echo_n "checking for $2... " >&6; }
1.36 bertrand 1797: if eval "test \"\${$3+set}\"" = set; then :
1.15 bertrand 1798: $as_echo_n "(cached) " >&6
1799: else
1800: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801: /* end confdefs.h. */
1802: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1803: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1804: #define $2 innocuous_$2
1.1 bertrand 1805:
1.15 bertrand 1806: /* System header to define __stub macros and hopefully few prototypes,
1807: which can conflict with char $2 (); below.
1808: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1809: <limits.h> exists even on freestanding compilers. */
1.1 bertrand 1810:
1.15 bertrand 1811: #ifdef __STDC__
1812: # include <limits.h>
1813: #else
1814: # include <assert.h>
1815: #endif
1.1 bertrand 1816:
1.15 bertrand 1817: #undef $2
1.1 bertrand 1818:
1.15 bertrand 1819: /* Override any GCC internal prototype to avoid an error.
1820: Use char because int might match the return type of a GCC
1821: builtin and then its argument prototype would still apply. */
1822: #ifdef __cplusplus
1823: extern "C"
1824: #endif
1825: char $2 ();
1826: /* The GNU C library defines this for functions which it implements
1827: to always fail with ENOSYS. Some functions are actually named
1828: something starting with __ and the normal name is an alias. */
1829: #if defined __stub_$2 || defined __stub___$2
1830: choke me
1831: #endif
1.1 bertrand 1832:
1.15 bertrand 1833: int
1834: main ()
1835: {
1836: return $2 ();
1837: ;
1838: return 0;
1839: }
1.1 bertrand 1840: _ACEOF
1.15 bertrand 1841: if ac_fn_c_try_link "$LINENO"; then :
1842: eval "$3=yes"
1843: else
1844: eval "$3=no"
1845: fi
1846: rm -f core conftest.err conftest.$ac_objext \
1847: conftest$ac_exeext conftest.$ac_ext
1848: fi
1849: eval ac_res=\$$3
1850: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851: $as_echo "$ac_res" >&6; }
1852: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1 bertrand 1853:
1.15 bertrand 1854: } # ac_fn_c_check_func
1.1 bertrand 1855:
1.33 bertrand 1856: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1857: # -------------------------------------------
1858: # Tests whether TYPE exists after having included INCLUDES, setting cache
1859: # variable VAR accordingly.
1860: ac_fn_c_check_type ()
1861: {
1862: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864: $as_echo_n "checking for $2... " >&6; }
1.36 bertrand 1865: if eval "test \"\${$3+set}\"" = set; then :
1.33 bertrand 1866: $as_echo_n "(cached) " >&6
1867: else
1868: eval "$3=no"
1869: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870: /* end confdefs.h. */
1871: $4
1872: int
1873: main ()
1874: {
1875: if (sizeof ($2))
1876: return 0;
1877: ;
1878: return 0;
1879: }
1880: _ACEOF
1881: if ac_fn_c_try_compile "$LINENO"; then :
1882: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883: /* end confdefs.h. */
1884: $4
1885: int
1886: main ()
1887: {
1888: if (sizeof (($2)))
1889: return 0;
1890: ;
1891: return 0;
1892: }
1893: _ACEOF
1894: if ac_fn_c_try_compile "$LINENO"; then :
1895:
1896: else
1897: eval "$3=yes"
1898: fi
1899: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900: fi
1901: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902: fi
1903: eval ac_res=\$$3
1904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905: $as_echo "$ac_res" >&6; }
1906: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907:
1908: } # ac_fn_c_check_type
1909:
1.15 bertrand 1910: # ac_fn_c_try_run LINENO
1911: # ----------------------
1912: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1913: # that executables *can* be run.
1914: ac_fn_c_try_run ()
1915: {
1916: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917: if { { ac_try="$ac_link"
1918: case "(($ac_try" in
1919: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920: *) ac_try_echo=$ac_try;;
1921: esac
1922: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923: $as_echo "$ac_try_echo"; } >&5
1924: (eval "$ac_link") 2>&5
1925: ac_status=$?
1926: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1928: { { case "(($ac_try" in
1929: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1930: *) ac_try_echo=$ac_try;;
1931: esac
1932: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933: $as_echo "$ac_try_echo"; } >&5
1934: (eval "$ac_try") 2>&5
1935: ac_status=$?
1936: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937: test $ac_status = 0; }; }; then :
1938: ac_retval=0
1939: else
1940: $as_echo "$as_me: program exited with status $ac_status" >&5
1941: $as_echo "$as_me: failed program was:" >&5
1942: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1943:
1.15 bertrand 1944: ac_retval=$ac_status
1945: fi
1946: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1947: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1948: as_fn_set_status $ac_retval
1.1 bertrand 1949:
1.15 bertrand 1950: } # ac_fn_c_try_run
1.1 bertrand 1951:
1.15 bertrand 1952: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1953: # --------------------------------------------
1954: # Tries to find the compile-time value of EXPR in a program that includes
1955: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1956: # computed
1957: ac_fn_c_compute_int ()
1958: {
1959: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960: if test "$cross_compiling" = yes; then
1961: # Depending upon the size, compute the lo and hi bounds.
1962: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963: /* end confdefs.h. */
1964: $4
1965: int
1966: main ()
1967: {
1968: static int test_array [1 - 2 * !(($2) >= 0)];
1969: test_array [0] = 0
1.1 bertrand 1970:
1.15 bertrand 1971: ;
1972: return 0;
1973: }
1.1 bertrand 1974: _ACEOF
1.15 bertrand 1975: if ac_fn_c_try_compile "$LINENO"; then :
1976: ac_lo=0 ac_mid=0
1977: while :; do
1978: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979: /* end confdefs.h. */
1980: $4
1981: int
1982: main ()
1983: {
1984: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1985: test_array [0] = 0
1.1 bertrand 1986:
1.15 bertrand 1987: ;
1988: return 0;
1989: }
1990: _ACEOF
1991: if ac_fn_c_try_compile "$LINENO"; then :
1992: ac_hi=$ac_mid; break
1993: else
1994: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1995: if test $ac_lo -le $ac_mid; then
1996: ac_lo= ac_hi=
1997: break
1998: fi
1999: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2000: fi
2001: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002: done
2003: else
2004: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005: /* end confdefs.h. */
2006: $4
2007: int
2008: main ()
2009: {
2010: static int test_array [1 - 2 * !(($2) < 0)];
2011: test_array [0] = 0
1.1 bertrand 2012:
1.15 bertrand 2013: ;
2014: return 0;
2015: }
1.1 bertrand 2016: _ACEOF
1.15 bertrand 2017: if ac_fn_c_try_compile "$LINENO"; then :
2018: ac_hi=-1 ac_mid=-1
2019: while :; do
2020: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021: /* end confdefs.h. */
2022: $4
2023: int
2024: main ()
2025: {
2026: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2027: test_array [0] = 0
1.1 bertrand 2028:
1.15 bertrand 2029: ;
2030: return 0;
2031: }
2032: _ACEOF
2033: if ac_fn_c_try_compile "$LINENO"; then :
2034: ac_lo=$ac_mid; break
2035: else
2036: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2037: if test $ac_mid -le $ac_hi; then
2038: ac_lo= ac_hi=
2039: break
2040: fi
2041: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2042: fi
2043: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044: done
1.1 bertrand 2045: else
1.15 bertrand 2046: ac_lo= ac_hi=
2047: fi
2048: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 2049: fi
1.15 bertrand 2050: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051: # Binary search between lo and hi bounds.
2052: while test "x$ac_lo" != "x$ac_hi"; do
2053: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2054: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055: /* end confdefs.h. */
2056: $4
2057: int
2058: main ()
2059: {
2060: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2061: test_array [0] = 0
1.1 bertrand 2062:
1.15 bertrand 2063: ;
2064: return 0;
2065: }
2066: _ACEOF
2067: if ac_fn_c_try_compile "$LINENO"; then :
2068: ac_hi=$ac_mid
1.1 bertrand 2069: else
1.15 bertrand 2070: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1 bertrand 2071: fi
1.15 bertrand 2072: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073: done
2074: case $ac_lo in #((
2075: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2076: '') ac_retval=1 ;;
2077: esac
2078: else
2079: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080: /* end confdefs.h. */
2081: $4
2082: static long int longval () { return $2; }
2083: static unsigned long int ulongval () { return $2; }
2084: #include <stdio.h>
2085: #include <stdlib.h>
2086: int
2087: main ()
2088: {
1.1 bertrand 2089:
1.15 bertrand 2090: FILE *f = fopen ("conftest.val", "w");
2091: if (! f)
2092: return 1;
2093: if (($2) < 0)
2094: {
2095: long int i = longval ();
2096: if (i != ($2))
2097: return 1;
2098: fprintf (f, "%ld", i);
2099: }
2100: else
2101: {
2102: unsigned long int i = ulongval ();
2103: if (i != ($2))
2104: return 1;
2105: fprintf (f, "%lu", i);
2106: }
2107: /* Do not output a trailing newline, as this causes \r\n confusion
2108: on some platforms. */
2109: return ferror (f) || fclose (f) != 0;
2110:
2111: ;
2112: return 0;
2113: }
2114: _ACEOF
2115: if ac_fn_c_try_run "$LINENO"; then :
2116: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2117: else
2118: ac_retval=1
1.14 bertrand 2119: fi
1.15 bertrand 2120: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2121: conftest.$ac_objext conftest.beam conftest.$ac_ext
2122: rm -f conftest.val
1.14 bertrand 2123:
1.15 bertrand 2124: fi
2125: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2126: as_fn_set_status $ac_retval
1.14 bertrand 2127:
1.15 bertrand 2128: } # ac_fn_c_compute_int
1.1 bertrand 2129:
1.15 bertrand 2130: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2131: # -------------------------------------------------------
2132: # Tests whether HEADER exists and can be compiled using the include files in
2133: # INCLUDES, setting the cache variable VAR accordingly.
2134: ac_fn_c_check_header_compile ()
2135: {
2136: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138: $as_echo_n "checking for $2... " >&6; }
1.36 bertrand 2139: if eval "test \"\${$3+set}\"" = set; then :
1.15 bertrand 2140: $as_echo_n "(cached) " >&6
2141: else
2142: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143: /* end confdefs.h. */
2144: $4
2145: #include <$2>
2146: _ACEOF
2147: if ac_fn_c_try_compile "$LINENO"; then :
2148: eval "$3=yes"
2149: else
2150: eval "$3=no"
2151: fi
2152: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153: fi
2154: eval ac_res=\$$3
2155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156: $as_echo "$ac_res" >&6; }
2157: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1 bertrand 2158:
1.15 bertrand 2159: } # ac_fn_c_check_header_compile
1.1 bertrand 2160:
1.15 bertrand 2161: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2162: # -------------------------------------------------------
2163: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2164: # the include files in INCLUDES and setting the cache variable VAR
2165: # accordingly.
2166: ac_fn_c_check_header_mongrel ()
2167: {
2168: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.36 bertrand 2169: if eval "test \"\${$3+set}\"" = set; then :
1.15 bertrand 2170: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171: $as_echo_n "checking for $2... " >&6; }
1.36 bertrand 2172: if eval "test \"\${$3+set}\"" = set; then :
1.15 bertrand 2173: $as_echo_n "(cached) " >&6
2174: fi
2175: eval ac_res=\$$3
2176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177: $as_echo "$ac_res" >&6; }
2178: else
2179: # Is the header compilable?
2180: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2181: $as_echo_n "checking $2 usability... " >&6; }
2182: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183: /* end confdefs.h. */
2184: $4
2185: #include <$2>
2186: _ACEOF
2187: if ac_fn_c_try_compile "$LINENO"; then :
2188: ac_header_compiler=yes
2189: else
2190: ac_header_compiler=no
2191: fi
2192: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2194: $as_echo "$ac_header_compiler" >&6; }
1.1 bertrand 2195:
1.15 bertrand 2196: # Is the header present?
2197: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2198: $as_echo_n "checking $2 presence... " >&6; }
2199: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200: /* end confdefs.h. */
2201: #include <$2>
2202: _ACEOF
2203: if ac_fn_c_try_cpp "$LINENO"; then :
2204: ac_header_preproc=yes
2205: else
2206: ac_header_preproc=no
2207: fi
1.36 bertrand 2208: rm -f conftest.err conftest.i conftest.$ac_ext
1.15 bertrand 2209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2210: $as_echo "$ac_header_preproc" >&6; }
1.1 bertrand 2211:
1.15 bertrand 2212: # So? What about this header?
2213: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2214: yes:no: )
2215: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2216: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2217: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2218: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2219: ;;
2220: no:yes:* )
2221: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2222: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2223: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2224: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2225: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2226: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2227: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2228: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2229: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2230: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2231: ;;
2232: esac
2233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234: $as_echo_n "checking for $2... " >&6; }
1.36 bertrand 2235: if eval "test \"\${$3+set}\"" = set; then :
1.15 bertrand 2236: $as_echo_n "(cached) " >&6
2237: else
2238: eval "$3=\$ac_header_compiler"
2239: fi
2240: eval ac_res=\$$3
2241: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2242: $as_echo "$ac_res" >&6; }
2243: fi
2244: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1 bertrand 2245:
1.15 bertrand 2246: } # ac_fn_c_check_header_mongrel
2247: cat >config.log <<_ACEOF
2248: This file contains any messages produced by compilers while
2249: running configure, to aid debugging if configure makes a mistake.
1.1 bertrand 2250:
1.38 bertrand 2251: It was created by rpl $as_me 4.0.19, which was
1.36 bertrand 2252: generated by GNU Autoconf 2.67. Invocation command line was
1.1 bertrand 2253:
1.15 bertrand 2254: $ $0 $@
1.1 bertrand 2255:
1.15 bertrand 2256: _ACEOF
2257: exec 5>>config.log
2258: {
2259: cat <<_ASUNAME
2260: ## --------- ##
2261: ## Platform. ##
2262: ## --------- ##
1.1 bertrand 2263:
1.15 bertrand 2264: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2265: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2266: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2267: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2268: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1 bertrand 2269:
1.15 bertrand 2270: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2271: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.1 bertrand 2272:
1.15 bertrand 2273: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2274: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2275: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2276: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2277: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2278: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2279: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1.1 bertrand 2280:
1.15 bertrand 2281: _ASUNAME
1.1 bertrand 2282:
1.15 bertrand 2283: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284: for as_dir in $PATH
2285: do
2286: IFS=$as_save_IFS
2287: test -z "$as_dir" && as_dir=.
2288: $as_echo "PATH: $as_dir"
2289: done
2290: IFS=$as_save_IFS
1.1 bertrand 2291:
1.15 bertrand 2292: } >&5
1.1 bertrand 2293:
1.15 bertrand 2294: cat >&5 <<_ACEOF
1.1 bertrand 2295:
2296:
1.15 bertrand 2297: ## ----------- ##
2298: ## Core tests. ##
2299: ## ----------- ##
1.1 bertrand 2300:
1.15 bertrand 2301: _ACEOF
1.1 bertrand 2302:
2303:
1.15 bertrand 2304: # Keep a trace of the command line.
2305: # Strip out --no-create and --no-recursion so they do not pile up.
2306: # Strip out --silent because we don't want to record it for future runs.
2307: # Also quote any args containing shell meta-characters.
2308: # Make two passes to allow for proper duplicate-argument suppression.
2309: ac_configure_args=
2310: ac_configure_args0=
2311: ac_configure_args1=
2312: ac_must_keep_next=false
2313: for ac_pass in 1 2
2314: do
2315: for ac_arg
2316: do
2317: case $ac_arg in
2318: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2319: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2320: | -silent | --silent | --silen | --sile | --sil)
2321: continue ;;
2322: *\'*)
2323: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2324: esac
2325: case $ac_pass in
2326: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2327: 2)
2328: as_fn_append ac_configure_args1 " '$ac_arg'"
2329: if test $ac_must_keep_next = true; then
2330: ac_must_keep_next=false # Got value, back to normal.
2331: else
2332: case $ac_arg in
2333: *=* | --config-cache | -C | -disable-* | --disable-* \
2334: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2335: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2336: | -with-* | --with-* | -without-* | --without-* | --x)
2337: case "$ac_configure_args0 " in
2338: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2339: esac
2340: ;;
2341: -* ) ac_must_keep_next=true ;;
2342: esac
2343: fi
2344: as_fn_append ac_configure_args " '$ac_arg'"
2345: ;;
2346: esac
2347: done
2348: done
2349: { ac_configure_args0=; unset ac_configure_args0;}
2350: { ac_configure_args1=; unset ac_configure_args1;}
1.1 bertrand 2351:
1.15 bertrand 2352: # When interrupted or exit'd, cleanup temporary files, and complete
2353: # config.log. We remove comments because anyway the quotes in there
2354: # would cause problems or look ugly.
2355: # WARNING: Use '\'' to represent an apostrophe within the trap.
2356: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2357: trap 'exit_status=$?
2358: # Save into config.log some information that might help in debugging.
2359: {
2360: echo
1.1 bertrand 2361:
1.36 bertrand 2362: $as_echo "## ---------------- ##
1.15 bertrand 2363: ## Cache variables. ##
1.36 bertrand 2364: ## ---------------- ##"
1.15 bertrand 2365: echo
2366: # The following way of writing the cache mishandles newlines in values,
2367: (
2368: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2369: eval ac_val=\$$ac_var
2370: case $ac_val in #(
2371: *${as_nl}*)
2372: case $ac_var in #(
2373: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2374: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2375: esac
2376: case $ac_var in #(
2377: _ | IFS | as_nl) ;; #(
2378: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2379: *) { eval $ac_var=; unset $ac_var;} ;;
2380: esac ;;
2381: esac
2382: done
2383: (set) 2>&1 |
2384: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2385: *${as_nl}ac_space=\ *)
2386: sed -n \
2387: "s/'\''/'\''\\\\'\'''\''/g;
2388: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2389: ;; #(
2390: *)
2391: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2392: ;;
2393: esac |
2394: sort
2395: )
2396: echo
1.1 bertrand 2397:
1.36 bertrand 2398: $as_echo "## ----------------- ##
1.15 bertrand 2399: ## Output variables. ##
1.36 bertrand 2400: ## ----------------- ##"
1.15 bertrand 2401: echo
2402: for ac_var in $ac_subst_vars
2403: do
2404: eval ac_val=\$$ac_var
2405: case $ac_val in
2406: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2407: esac
2408: $as_echo "$ac_var='\''$ac_val'\''"
2409: done | sort
2410: echo
1.1 bertrand 2411:
1.15 bertrand 2412: if test -n "$ac_subst_files"; then
1.36 bertrand 2413: $as_echo "## ------------------- ##
1.15 bertrand 2414: ## File substitutions. ##
1.36 bertrand 2415: ## ------------------- ##"
1.15 bertrand 2416: echo
2417: for ac_var in $ac_subst_files
2418: do
2419: eval ac_val=\$$ac_var
2420: case $ac_val in
2421: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2422: esac
2423: $as_echo "$ac_var='\''$ac_val'\''"
2424: done | sort
2425: echo
1.14 bertrand 2426: fi
2427:
1.15 bertrand 2428: if test -s confdefs.h; then
1.36 bertrand 2429: $as_echo "## ----------- ##
1.15 bertrand 2430: ## confdefs.h. ##
1.36 bertrand 2431: ## ----------- ##"
1.15 bertrand 2432: echo
2433: cat confdefs.h
2434: echo
2435: fi
2436: test "$ac_signal" != 0 &&
2437: $as_echo "$as_me: caught signal $ac_signal"
2438: $as_echo "$as_me: exit $exit_status"
2439: } >&5
2440: rm -f core *.core core.conftest.* &&
2441: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2442: exit $exit_status
2443: ' 0
2444: for ac_signal in 1 2 13 15; do
2445: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2446: done
2447: ac_signal=0
1.14 bertrand 2448:
1.15 bertrand 2449: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2450: rm -f -r conftest* confdefs.h
1.14 bertrand 2451:
1.15 bertrand 2452: $as_echo "/* confdefs.h */" > confdefs.h
1.14 bertrand 2453:
1.15 bertrand 2454: # Predefined preprocessor variables.
1.14 bertrand 2455:
1.15 bertrand 2456: cat >>confdefs.h <<_ACEOF
2457: #define PACKAGE_NAME "$PACKAGE_NAME"
2458: _ACEOF
1.14 bertrand 2459:
1.15 bertrand 2460: cat >>confdefs.h <<_ACEOF
2461: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14 bertrand 2462: _ACEOF
2463:
1.15 bertrand 2464: cat >>confdefs.h <<_ACEOF
2465: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2466: _ACEOF
1.14 bertrand 2467:
1.15 bertrand 2468: cat >>confdefs.h <<_ACEOF
2469: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14 bertrand 2470: _ACEOF
2471:
1.15 bertrand 2472: cat >>confdefs.h <<_ACEOF
2473: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2474: _ACEOF
1.14 bertrand 2475:
1.15 bertrand 2476: cat >>confdefs.h <<_ACEOF
2477: #define PACKAGE_URL "$PACKAGE_URL"
2478: _ACEOF
1.14 bertrand 2479:
2480:
1.15 bertrand 2481: # Let the site file select an alternate cache file if it wants to.
2482: # Prefer an explicitly selected file to automatically selected ones.
2483: ac_site_file1=NONE
2484: ac_site_file2=NONE
2485: if test -n "$CONFIG_SITE"; then
1.36 bertrand 2486: # We do not want a PATH search for config.site.
2487: case $CONFIG_SITE in #((
2488: -*) ac_site_file1=./$CONFIG_SITE;;
2489: */*) ac_site_file1=$CONFIG_SITE;;
2490: *) ac_site_file1=./$CONFIG_SITE;;
2491: esac
1.15 bertrand 2492: elif test "x$prefix" != xNONE; then
2493: ac_site_file1=$prefix/share/config.site
2494: ac_site_file2=$prefix/etc/config.site
1.14 bertrand 2495: else
1.15 bertrand 2496: ac_site_file1=$ac_default_prefix/share/config.site
2497: ac_site_file2=$ac_default_prefix/etc/config.site
1.14 bertrand 2498: fi
1.15 bertrand 2499: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2500: do
2501: test "x$ac_site_file" = xNONE && continue
2502: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2503: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2504: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2505: sed 's/^/| /' "$ac_site_file" >&5
1.36 bertrand 2506: . "$ac_site_file" \
2507: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2508: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2509: as_fn_error $? "failed to load site script $ac_site_file
2510: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 2511: fi
2512: done
1.14 bertrand 2513:
1.15 bertrand 2514: if test -r "$cache_file"; then
2515: # Some versions of bash will fail to source /dev/null (special files
2516: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2517: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2518: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2519: $as_echo "$as_me: loading cache $cache_file" >&6;}
2520: case $cache_file in
2521: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2522: *) . "./$cache_file";;
2523: esac
2524: fi
1.14 bertrand 2525: else
1.15 bertrand 2526: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2527: $as_echo "$as_me: creating cache $cache_file" >&6;}
2528: >$cache_file
1.14 bertrand 2529: fi
2530:
1.15 bertrand 2531: # Check that the precious variables saved in the cache have kept the same
2532: # value.
2533: ac_cache_corrupted=false
2534: for ac_var in $ac_precious_vars; do
2535: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2536: eval ac_new_set=\$ac_env_${ac_var}_set
2537: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2538: eval ac_new_val=\$ac_env_${ac_var}_value
2539: case $ac_old_set,$ac_new_set in
2540: set,)
2541: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2542: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2543: ac_cache_corrupted=: ;;
2544: ,set)
2545: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2546: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2547: ac_cache_corrupted=: ;;
2548: ,);;
2549: *)
2550: if test "x$ac_old_val" != "x$ac_new_val"; then
2551: # differences in whitespace do not lead to failure.
2552: ac_old_val_w=`echo x $ac_old_val`
2553: ac_new_val_w=`echo x $ac_new_val`
2554: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2555: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2556: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2557: ac_cache_corrupted=:
2558: else
2559: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2560: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2561: eval $ac_var=\$ac_old_val
2562: fi
2563: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2564: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2565: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2566: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2567: fi;;
2568: esac
2569: # Pass precious variables to config.status.
2570: if test "$ac_new_set" = set; then
2571: case $ac_new_val in
2572: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2573: *) ac_arg=$ac_var=$ac_new_val ;;
2574: esac
2575: case " $ac_configure_args " in
2576: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2577: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2578: esac
1.14 bertrand 2579: fi
2580: done
1.15 bertrand 2581: if $ac_cache_corrupted; then
2582: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2583: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2585: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.36 bertrand 2586: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1.15 bertrand 2587: fi
2588: ## -------------------- ##
2589: ## Main body of script. ##
2590: ## -------------------- ##
1.14 bertrand 2591:
1.15 bertrand 2592: ac_ext=c
2593: ac_cpp='$CPP $CPPFLAGS'
2594: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2595: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2596: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14 bertrand 2597:
2598:
1.15 bertrand 2599: ac_aux_dir=
2600: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1.36 bertrand 2601: if test -f "$ac_dir/install-sh"; then
2602: ac_aux_dir=$ac_dir
2603: ac_install_sh="$ac_aux_dir/install-sh -c"
2604: break
2605: elif test -f "$ac_dir/install.sh"; then
2606: ac_aux_dir=$ac_dir
2607: ac_install_sh="$ac_aux_dir/install.sh -c"
2608: break
2609: elif test -f "$ac_dir/shtool"; then
2610: ac_aux_dir=$ac_dir
2611: ac_install_sh="$ac_aux_dir/shtool install -c"
2612: break
2613: fi
1.14 bertrand 2614: done
1.15 bertrand 2615: if test -z "$ac_aux_dir"; then
1.36 bertrand 2616: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1.15 bertrand 2617: fi
1.14 bertrand 2618:
1.15 bertrand 2619: # These three variables are undocumented and unsupported,
2620: # and are intended to be withdrawn in a future Autoconf release.
2621: # They can cause serious problems if a builder's source tree is in a directory
2622: # whose full name contains unusual characters.
2623: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2624: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2625: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1.14 bertrand 2626:
2627:
1.15 bertrand 2628: # Make sure we can run config.sub.
2629: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1.36 bertrand 2630: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14 bertrand 2631:
1.15 bertrand 2632: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2633: $as_echo_n "checking build system type... " >&6; }
2634: if test "${ac_cv_build+set}" = set; then :
2635: $as_echo_n "(cached) " >&6
1.14 bertrand 2636: else
1.15 bertrand 2637: ac_build_alias=$build_alias
2638: test "x$ac_build_alias" = x &&
2639: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2640: test "x$ac_build_alias" = x &&
1.36 bertrand 2641: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1.15 bertrand 2642: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1.36 bertrand 2643: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14 bertrand 2644:
2645: fi
1.15 bertrand 2646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2647: $as_echo "$ac_cv_build" >&6; }
2648: case $ac_cv_build in
2649: *-*-*) ;;
1.36 bertrand 2650: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
1.15 bertrand 2651: esac
2652: build=$ac_cv_build
2653: ac_save_IFS=$IFS; IFS='-'
2654: set x $ac_cv_build
2655: shift
2656: build_cpu=$1
2657: build_vendor=$2
2658: shift; shift
2659: # Remember, the first character of IFS is used to create $*,
2660: # except with old shells:
2661: build_os=$*
2662: IFS=$ac_save_IFS
2663: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14 bertrand 2664:
2665:
1.15 bertrand 2666: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2667: $as_echo_n "checking host system type... " >&6; }
2668: if test "${ac_cv_host+set}" = set; then :
2669: $as_echo_n "(cached) " >&6
1.14 bertrand 2670: else
1.15 bertrand 2671: if test "x$host_alias" = x; then
2672: ac_cv_host=$ac_cv_build
1.14 bertrand 2673: else
1.15 bertrand 2674: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1.36 bertrand 2675: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14 bertrand 2676: fi
2677:
2678: fi
1.15 bertrand 2679: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2680: $as_echo "$ac_cv_host" >&6; }
2681: case $ac_cv_host in
2682: *-*-*) ;;
1.36 bertrand 2683: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
1.15 bertrand 2684: esac
2685: host=$ac_cv_host
2686: ac_save_IFS=$IFS; IFS='-'
2687: set x $ac_cv_host
2688: shift
2689: host_cpu=$1
2690: host_vendor=$2
2691: shift; shift
2692: # Remember, the first character of IFS is used to create $*,
2693: # except with old shells:
2694: host_os=$*
2695: IFS=$ac_save_IFS
2696: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14 bertrand 2697:
2698:
1.15 bertrand 2699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2700: $as_echo_n "checking target system type... " >&6; }
2701: if test "${ac_cv_target+set}" = set; then :
2702: $as_echo_n "(cached) " >&6
2703: else
2704: if test "x$target_alias" = x; then
2705: ac_cv_target=$ac_cv_host
1.14 bertrand 2706: else
1.15 bertrand 2707: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1.36 bertrand 2708: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
1.15 bertrand 2709: fi
1.14 bertrand 2710:
2711: fi
1.15 bertrand 2712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2713: $as_echo "$ac_cv_target" >&6; }
2714: case $ac_cv_target in
2715: *-*-*) ;;
1.36 bertrand 2716: *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
1.15 bertrand 2717: esac
2718: target=$ac_cv_target
2719: ac_save_IFS=$IFS; IFS='-'
2720: set x $ac_cv_target
2721: shift
2722: target_cpu=$1
2723: target_vendor=$2
2724: shift; shift
2725: # Remember, the first character of IFS is used to create $*,
2726: # except with old shells:
2727: target_os=$*
2728: IFS=$ac_save_IFS
2729: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2730:
1.14 bertrand 2731:
1.15 bertrand 2732: # The aliases save the names the user supplied, while $host etc.
2733: # will get canonicalized.
2734: test -n "$target_alias" &&
2735: test "$program_prefix$program_suffix$program_transform_name" = \
2736: NONENONEs,x,x, &&
2737: program_prefix=${target_alias}-
1.1 bertrand 2738:
1.15 bertrand 2739: am__api_version='1.11'
1.1 bertrand 2740:
1.14 bertrand 2741: # Find a good install program. We prefer a C program (faster),
2742: # so one script is as good as another. But avoid the broken or
2743: # incompatible versions:
2744: # SysV /etc/install, /usr/sbin/install
2745: # SunOS /usr/etc/install
2746: # IRIX /sbin/install
2747: # AIX /bin/install
2748: # AmigaOS /C/install, which installs bootblocks on floppy discs
2749: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2750: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2751: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2752: # OS/2's system install, which has a completely different semantic
2753: # ./install, which can be erroneously created by make from ./install.sh.
1.15 bertrand 2754: # Reject install programs that cannot install multiple files.
2755: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2756: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14 bertrand 2757: if test -z "$INSTALL"; then
1.15 bertrand 2758: if test "${ac_cv_path_install+set}" = set; then :
2759: $as_echo_n "(cached) " >&6
1.14 bertrand 2760: else
2761: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762: for as_dir in $PATH
2763: do
2764: IFS=$as_save_IFS
2765: test -z "$as_dir" && as_dir=.
1.15 bertrand 2766: # Account for people who put trailing slashes in PATH elements.
2767: case $as_dir/ in #((
2768: ./ | .// | /[cC]/* | \
1.14 bertrand 2769: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15 bertrand 2770: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14 bertrand 2771: /usr/ucb/* ) ;;
2772: *)
2773: # OSF1 and SCO ODT 3.0 have their own names for install.
2774: # Don't use installbsd from OSF since it installs stuff as root
2775: # by default.
2776: for ac_prog in ginstall scoinst install; do
2777: for ac_exec_ext in '' $ac_executable_extensions; do
2778: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2779: if test $ac_prog = install &&
2780: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2781: # AIX install. It has an incompatible calling convention.
2782: :
2783: elif test $ac_prog = install &&
2784: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2785: # program-specific install script used by HP pwplus--don't use.
2786: :
2787: else
1.15 bertrand 2788: rm -rf conftest.one conftest.two conftest.dir
2789: echo one > conftest.one
2790: echo two > conftest.two
2791: mkdir conftest.dir
2792: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2793: test -s conftest.one && test -s conftest.two &&
2794: test -s conftest.dir/conftest.one &&
2795: test -s conftest.dir/conftest.two
2796: then
2797: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2798: break 3
2799: fi
1.14 bertrand 2800: fi
2801: fi
2802: done
2803: done
2804: ;;
2805: esac
1.15 bertrand 2806:
2807: done
1.14 bertrand 2808: IFS=$as_save_IFS
1.1 bertrand 2809:
1.15 bertrand 2810: rm -rf conftest.one conftest.two conftest.dir
1.1 bertrand 2811:
1.14 bertrand 2812: fi
2813: if test "${ac_cv_path_install+set}" = set; then
2814: INSTALL=$ac_cv_path_install
2815: else
2816: # As a last resort, use the slow shell script. Don't cache a
2817: # value for INSTALL within a source directory, because that will
2818: # break other packages using the cache if that directory is
2819: # removed, or if the value is a relative name.
2820: INSTALL=$ac_install_sh
2821: fi
2822: fi
1.15 bertrand 2823: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2824: $as_echo "$INSTALL" >&6; }
1.1 bertrand 2825:
1.14 bertrand 2826: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2827: # It thinks the first close brace ends the variable substitution.
2828: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1 bertrand 2829:
1.14 bertrand 2830: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 bertrand 2831:
1.14 bertrand 2832: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1 bertrand 2833:
1.15 bertrand 2834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2835: $as_echo_n "checking whether build environment is sane... " >&6; }
2836: # Just in case
2837: sleep 1
2838: echo timestamp > conftest.file
2839: # Reject unsafe characters in $srcdir or the absolute working directory
2840: # name. Accept space and tab only in the latter.
2841: am_lf='
2842: '
2843: case `pwd` in
2844: *[\\\"\#\$\&\'\`$am_lf]*)
1.36 bertrand 2845: as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
1.15 bertrand 2846: esac
2847: case $srcdir in
2848: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
1.36 bertrand 2849: as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
1.15 bertrand 2850: esac
2851:
2852: # Do `set' in a subshell so we don't clobber the current shell's
2853: # arguments. Must try -L first in case configure is actually a
2854: # symlink; some systems play weird games with the mod time of symlinks
2855: # (eg FreeBSD returns the mod time of the symlink's containing
2856: # directory).
2857: if (
2858: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2859: if test "$*" = "X"; then
2860: # -L didn't work.
2861: set X `ls -t "$srcdir/configure" conftest.file`
2862: fi
2863: rm -f conftest.file
2864: if test "$*" != "X $srcdir/configure conftest.file" \
2865: && test "$*" != "X conftest.file $srcdir/configure"; then
2866:
2867: # If neither matched, then we have a broken ls. This can happen
2868: # if, for instance, CONFIG_SHELL is bash and it inherits a
2869: # broken ls alias from the environment. This has actually
2870: # happened. Such a system could not be considered "sane".
1.36 bertrand 2871: as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
1.15 bertrand 2872: alias in your environment" "$LINENO" 5
2873: fi
2874:
2875: test "$2" = conftest.file
2876: )
2877: then
2878: # Ok.
2879: :
1.14 bertrand 2880: else
1.36 bertrand 2881: as_fn_error $? "newly created file is older than distributed files!
1.15 bertrand 2882: Check your system clock" "$LINENO" 5
1.14 bertrand 2883: fi
1.15 bertrand 2884: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2885: $as_echo "yes" >&6; }
2886: test "$program_prefix" != NONE &&
2887: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2888: # Use a double $ so make ignores it.
2889: test "$program_suffix" != NONE &&
2890: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2891: # Double any \ or $.
2892: # By default was `s,x,x', remove it if useless.
2893: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2894: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2895:
2896: # expand $ac_aux_dir to an absolute path
2897: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1 bertrand 2898:
1.15 bertrand 2899: if test x"${MISSING+set}" != xset; then
2900: case $am_aux_dir in
2901: *\ * | *\ *)
2902: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14 bertrand 2903: *)
1.15 bertrand 2904: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2905: esac
1.14 bertrand 2906: fi
1.15 bertrand 2907: # Use eval to expand $SHELL
2908: if eval "$MISSING --run true"; then
2909: am_missing_run="$MISSING --run "
1.14 bertrand 2910: else
1.15 bertrand 2911: am_missing_run=
2912: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2913: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2914: fi
2915:
2916: if test x"${install_sh}" != xset; then
2917: case $am_aux_dir in
2918: *\ * | *\ *)
2919: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2920: *)
2921: install_sh="\${SHELL} $am_aux_dir/install-sh"
2922: esac
1.14 bertrand 2923: fi
1.15 bertrand 2924:
2925: # Installed binaries are usually stripped using `strip' when the user
2926: # run `make install-strip'. However `strip' might not be the right
2927: # tool to use in cross-compilation environments, therefore Automake
2928: # will honor the `STRIP' environment variable to overrule this program.
2929: if test "$cross_compiling" != no; then
2930: if test -n "$ac_tool_prefix"; then
2931: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2932: set dummy ${ac_tool_prefix}strip; ac_word=$2
2933: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2934: $as_echo_n "checking for $ac_word... " >&6; }
2935: if test "${ac_cv_prog_STRIP+set}" = set; then :
2936: $as_echo_n "(cached) " >&6
1.14 bertrand 2937: else
1.15 bertrand 2938: if test -n "$STRIP"; then
2939: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14 bertrand 2940: else
2941: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942: for as_dir in $PATH
2943: do
2944: IFS=$as_save_IFS
2945: test -z "$as_dir" && as_dir=.
1.15 bertrand 2946: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 2947: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 2948: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2949: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 2950: break 2
2951: fi
2952: done
1.15 bertrand 2953: done
1.14 bertrand 2954: IFS=$as_save_IFS
1.1 bertrand 2955:
1.14 bertrand 2956: fi
2957: fi
1.15 bertrand 2958: STRIP=$ac_cv_prog_STRIP
2959: if test -n "$STRIP"; then
2960: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2961: $as_echo "$STRIP" >&6; }
1.14 bertrand 2962: else
1.15 bertrand 2963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964: $as_echo "no" >&6; }
1.14 bertrand 2965: fi
1.1 bertrand 2966:
2967:
1.14 bertrand 2968: fi
1.15 bertrand 2969: if test -z "$ac_cv_prog_STRIP"; then
2970: ac_ct_STRIP=$STRIP
2971: # Extract the first word of "strip", so it can be a program name with args.
2972: set dummy strip; ac_word=$2
2973: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2974: $as_echo_n "checking for $ac_word... " >&6; }
2975: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2976: $as_echo_n "(cached) " >&6
1.14 bertrand 2977: else
1.15 bertrand 2978: if test -n "$ac_ct_STRIP"; then
2979: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 bertrand 2980: else
1.14 bertrand 2981: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2982: for as_dir in $PATH
1.1 bertrand 2983: do
1.14 bertrand 2984: IFS=$as_save_IFS
2985: test -z "$as_dir" && as_dir=.
1.15 bertrand 2986: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 2987: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 2988: ac_cv_prog_ac_ct_STRIP="strip"
2989: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 2990: break 2
1.1 bertrand 2991: fi
2992: done
1.15 bertrand 2993: done
1.14 bertrand 2994: IFS=$as_save_IFS
1.1 bertrand 2995:
1.14 bertrand 2996: fi
2997: fi
1.15 bertrand 2998: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2999: if test -n "$ac_ct_STRIP"; then
3000: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3001: $as_echo "$ac_ct_STRIP" >&6; }
1.1 bertrand 3002: else
1.15 bertrand 3003: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3004: $as_echo "no" >&6; }
1.1 bertrand 3005: fi
3006:
1.15 bertrand 3007: if test "x$ac_ct_STRIP" = x; then
3008: STRIP=":"
1.14 bertrand 3009: else
3010: case $cross_compiling:$ac_tool_warned in
3011: yes:)
1.15 bertrand 3012: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14 bertrand 3014: ac_tool_warned=yes ;;
3015: esac
1.15 bertrand 3016: STRIP=$ac_ct_STRIP
1.1 bertrand 3017: fi
1.14 bertrand 3018: else
1.15 bertrand 3019: STRIP="$ac_cv_prog_STRIP"
1.1 bertrand 3020: fi
3021:
1.15 bertrand 3022: fi
3023: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1 bertrand 3024:
1.15 bertrand 3025: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3026: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3027: if test -z "$MKDIR_P"; then
3028: if test "${ac_cv_path_mkdir+set}" = set; then :
3029: $as_echo_n "(cached) " >&6
1.14 bertrand 3030: else
1.15 bertrand 3031: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14 bertrand 3033: do
3034: IFS=$as_save_IFS
3035: test -z "$as_dir" && as_dir=.
1.15 bertrand 3036: for ac_prog in mkdir gmkdir; do
3037: for ac_exec_ext in '' $ac_executable_extensions; do
3038: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3039: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3040: 'mkdir (GNU coreutils) '* | \
3041: 'mkdir (coreutils) '* | \
3042: 'mkdir (fileutils) '4.1*)
3043: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3044: break 3;;
3045: esac
3046: done
3047: done
3048: done
1.14 bertrand 3049: IFS=$as_save_IFS
1.1 bertrand 3050:
3051: fi
1.15 bertrand 3052:
3053: test -d ./--version && rmdir ./--version
3054: if test "${ac_cv_path_mkdir+set}" = set; then
3055: MKDIR_P="$ac_cv_path_mkdir -p"
3056: else
3057: # As a last resort, use the slow shell script. Don't cache a
3058: # value for MKDIR_P within a source directory, because that will
3059: # break other packages using the cache if that directory is
3060: # removed, or if the value is a relative name.
3061: MKDIR_P="$ac_install_sh -d"
3062: fi
1.14 bertrand 3063: fi
1.15 bertrand 3064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3065: $as_echo "$MKDIR_P" >&6; }
1.1 bertrand 3066:
1.15 bertrand 3067: mkdir_p="$MKDIR_P"
3068: case $mkdir_p in
3069: [\\/$]* | ?:[\\/]*) ;;
3070: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3071: esac
1.1 bertrand 3072:
1.15 bertrand 3073: for ac_prog in gawk mawk nawk awk
3074: do
3075: # Extract the first word of "$ac_prog", so it can be a program name with args.
3076: set dummy $ac_prog; ac_word=$2
3077: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078: $as_echo_n "checking for $ac_word... " >&6; }
3079: if test "${ac_cv_prog_AWK+set}" = set; then :
3080: $as_echo_n "(cached) " >&6
1.1 bertrand 3081: else
1.15 bertrand 3082: if test -n "$AWK"; then
3083: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1 bertrand 3084: else
1.14 bertrand 3085: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086: for as_dir in $PATH
3087: do
3088: IFS=$as_save_IFS
3089: test -z "$as_dir" && as_dir=.
1.15 bertrand 3090: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 3091: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3092: ac_cv_prog_AWK="$ac_prog"
3093: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 3094: break 2
3095: fi
3096: done
1.15 bertrand 3097: done
1.14 bertrand 3098: IFS=$as_save_IFS
3099:
3100: fi
1.1 bertrand 3101: fi
1.15 bertrand 3102: AWK=$ac_cv_prog_AWK
3103: if test -n "$AWK"; then
3104: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3105: $as_echo "$AWK" >&6; }
1.14 bertrand 3106: else
1.15 bertrand 3107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108: $as_echo "no" >&6; }
1.1 bertrand 3109: fi
3110:
3111:
1.15 bertrand 3112: test -n "$AWK" && break
3113: done
1.1 bertrand 3114:
1.15 bertrand 3115: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3116: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3117: set x ${MAKE-make}
3118: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.36 bertrand 3119: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
1.15 bertrand 3120: $as_echo_n "(cached) " >&6
1.14 bertrand 3121: else
1.15 bertrand 3122: cat >conftest.make <<\_ACEOF
3123: SHELL = /bin/sh
3124: all:
3125: @echo '@@@%%%=$(MAKE)=@@@%%%'
3126: _ACEOF
1.36 bertrand 3127: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 3128: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3129: *@@@%%%=?*=@@@%%%*)
3130: eval ac_cv_prog_make_${ac_make}_set=yes;;
3131: *)
3132: eval ac_cv_prog_make_${ac_make}_set=no;;
3133: esac
3134: rm -f conftest.make
3135: fi
3136: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3138: $as_echo "yes" >&6; }
3139: SET_MAKE=
1.1 bertrand 3140: else
1.15 bertrand 3141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142: $as_echo "no" >&6; }
3143: SET_MAKE="MAKE=${MAKE-make}"
3144: fi
1.1 bertrand 3145:
1.15 bertrand 3146: rm -rf .tst 2>/dev/null
3147: mkdir .tst 2>/dev/null
3148: if test -d .tst; then
3149: am__leading_dot=.
3150: else
3151: am__leading_dot=_
1.14 bertrand 3152: fi
1.15 bertrand 3153: rmdir .tst 2>/dev/null
3154:
3155: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3156: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3157: # is not polluted with repeated "-I."
3158: am__isrc=' -I$(srcdir)'
3159: # test to see if srcdir already configured
3160: if test -f $srcdir/config.status; then
1.36 bertrand 3161: as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
1.15 bertrand 3162: fi
1.1 bertrand 3163: fi
1.15 bertrand 3164:
3165: # test whether we have cygpath
3166: if test -z "$CYGPATH_W"; then
3167: if (cygpath --version) >/dev/null 2>/dev/null; then
3168: CYGPATH_W='cygpath -w'
3169: else
3170: CYGPATH_W=echo
3171: fi
1.1 bertrand 3172: fi
3173:
3174:
1.15 bertrand 3175: # Define the identity of the package.
3176: PACKAGE='rpl'
1.38 bertrand 3177: VERSION='4.0.19'
1.15 bertrand 3178:
3179:
3180: cat >>confdefs.h <<_ACEOF
3181: #define PACKAGE "$PACKAGE"
3182: _ACEOF
3183:
3184:
3185: cat >>confdefs.h <<_ACEOF
3186: #define VERSION "$VERSION"
3187: _ACEOF
3188:
3189: # Some tools Automake needs.
3190:
3191: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3192:
3193:
3194: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3195:
3196:
3197: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3198:
3199:
3200: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3201:
3202:
3203: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3204:
3205: # We need awk for the "check" target. The system "awk" is bad on
3206: # some platforms.
3207: # Always define AMTAR for backward compatibility.
3208:
3209: AMTAR=${AMTAR-"${am_missing_run}tar"}
3210:
3211: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3212:
3213:
3214:
3215:
1.1 bertrand 3216:
3217:
1.15 bertrand 3218: ac_config_headers="$ac_config_headers rplconfig.h"
1.1 bertrand 3219:
3220:
1.27 bertrand 3221: NCURSES=ncurses-5.7-20100619
1.15 bertrand 3222: READLINE=readline-6.1
1.30 bertrand 3223: UNITS=units-1.88
1.15 bertrand 3224: GSL=gsl-1.14
3225: GPP=gpp-2.24
3226: GNUPLOT=gnuplot-4.4.0
3227: FILE=file-5.03
3228: ICONV=libiconv-1.13.1
1.39 ! bertrand 3229: SQLITE=sqlite-3.7.2
1.26 bertrand 3230: OPENSSL=openssl-1.0.0a
1.14 bertrand 3231:
1.15 bertrand 3232: ac_ext=c
3233: ac_cpp='$CPP $CPPFLAGS'
3234: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237: if test -n "$ac_tool_prefix"; then
1.23 bertrand 3238: for ac_prog in gcc
1.15 bertrand 3239: do
3240: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3241: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243: $as_echo_n "checking for $ac_word... " >&6; }
3244: if test "${ac_cv_prog_CC+set}" = set; then :
3245: $as_echo_n "(cached) " >&6
1.1 bertrand 3246: else
1.15 bertrand 3247: if test -n "$CC"; then
3248: ac_cv_prog_CC="$CC" # Let the user override the test.
1.1 bertrand 3249: else
3250: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251: for as_dir in $PATH
3252: do
3253: IFS=$as_save_IFS
3254: test -z "$as_dir" && as_dir=.
1.15 bertrand 3255: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 bertrand 3256: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3257: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3258: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 bertrand 3259: break 2
3260: fi
3261: done
1.15 bertrand 3262: done
1.1 bertrand 3263: IFS=$as_save_IFS
3264:
3265: fi
3266: fi
1.15 bertrand 3267: CC=$ac_cv_prog_CC
3268: if test -n "$CC"; then
3269: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3270: $as_echo "$CC" >&6; }
1.1 bertrand 3271: else
1.15 bertrand 3272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273: $as_echo "no" >&6; }
1.1 bertrand 3274: fi
3275:
3276:
1.15 bertrand 3277: test -n "$CC" && break
3278: done
3279: fi
3280: if test -z "$CC"; then
3281: ac_ct_CC=$CC
1.23 bertrand 3282: for ac_prog in gcc
1.15 bertrand 3283: do
3284: # Extract the first word of "$ac_prog", so it can be a program name with args.
3285: set dummy $ac_prog; ac_word=$2
3286: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3287: $as_echo_n "checking for $ac_word... " >&6; }
3288: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3289: $as_echo_n "(cached) " >&6
1.1 bertrand 3290: else
1.15 bertrand 3291: if test -n "$ac_ct_CC"; then
3292: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 bertrand 3293: else
3294: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295: for as_dir in $PATH
3296: do
3297: IFS=$as_save_IFS
3298: test -z "$as_dir" && as_dir=.
1.15 bertrand 3299: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 bertrand 3300: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3301: ac_cv_prog_ac_ct_CC="$ac_prog"
3302: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 bertrand 3303: break 2
3304: fi
3305: done
1.15 bertrand 3306: done
1.1 bertrand 3307: IFS=$as_save_IFS
3308:
3309: fi
3310: fi
1.15 bertrand 3311: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3312: if test -n "$ac_ct_CC"; then
3313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3314: $as_echo "$ac_ct_CC" >&6; }
1.1 bertrand 3315: else
1.15 bertrand 3316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317: $as_echo "no" >&6; }
1.1 bertrand 3318: fi
3319:
3320:
1.15 bertrand 3321: test -n "$ac_ct_CC" && break
3322: done
1.1 bertrand 3323:
1.15 bertrand 3324: if test "x$ac_ct_CC" = x; then
3325: CC=""
3326: else
3327: case $cross_compiling:$ac_tool_warned in
3328: yes:)
3329: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3330: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3331: ac_tool_warned=yes ;;
3332: esac
3333: CC=$ac_ct_CC
1.1 bertrand 3334: fi
3335: fi
3336:
3337:
1.15 bertrand 3338: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3340: as_fn_error $? "no acceptable C compiler found in \$PATH
3341: See \`config.log' for more details" "$LINENO" 5 ; }
1.1 bertrand 3342:
1.15 bertrand 3343: # Provide some information about the compiler.
3344: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3345: set X $ac_compile
3346: ac_compiler=$2
3347: for ac_option in --version -v -V -qversion; do
3348: { { ac_try="$ac_compiler $ac_option >&5"
3349: case "(($ac_try" in
3350: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351: *) ac_try_echo=$ac_try;;
3352: esac
3353: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354: $as_echo "$ac_try_echo"; } >&5
3355: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3356: ac_status=$?
3357: if test -s conftest.err; then
3358: sed '10a\
3359: ... rest of stderr output deleted ...
3360: 10q' conftest.err >conftest.er1
3361: cat conftest.er1 >&5
1.1 bertrand 3362: fi
1.15 bertrand 3363: rm -f conftest.er1 conftest.err
3364: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365: test $ac_status = 0; }
1.1 bertrand 3366: done
3367:
1.15 bertrand 3368: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369: /* end confdefs.h. */
3370:
3371: int
3372: main ()
3373: {
1.14 bertrand 3374:
1.15 bertrand 3375: ;
3376: return 0;
3377: }
3378: _ACEOF
3379: ac_clean_files_save=$ac_clean_files
3380: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3381: # Try to create an executable without -o first, disregard a.out.
3382: # It will help us diagnose broken compilers, and finding out an intuition
3383: # of exeext.
3384: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3385: $as_echo_n "checking whether the C compiler works... " >&6; }
3386: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14 bertrand 3387:
1.15 bertrand 3388: # The possible output files:
3389: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1 bertrand 3390:
1.15 bertrand 3391: ac_rmfiles=
3392: for ac_file in $ac_files
1.1 bertrand 3393: do
1.15 bertrand 3394: case $ac_file in
3395: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3396: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3397: esac
1.1 bertrand 3398: done
1.15 bertrand 3399: rm -f $ac_rmfiles
3400:
3401: if { { ac_try="$ac_link_default"
3402: case "(($ac_try" in
3403: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404: *) ac_try_echo=$ac_try;;
3405: esac
3406: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407: $as_echo "$ac_try_echo"; } >&5
3408: (eval "$ac_link_default") 2>&5
3409: ac_status=$?
3410: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411: test $ac_status = 0; }; then :
3412: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3413: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3414: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3415: # so that the user can short-circuit this test for compilers unknown to
3416: # Autoconf.
3417: for ac_file in $ac_files ''
3418: do
3419: test -f "$ac_file" || continue
3420: case $ac_file in
3421: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3422: ;;
3423: [ab].out )
3424: # We found the default executable, but exeext='' is most
3425: # certainly right.
3426: break;;
3427: *.* )
3428: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3429: then :; else
3430: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3431: fi
3432: # We set ac_cv_exeext here because the later test for it is not
3433: # safe: cross compilers may not add the suffix if given an `-o'
3434: # argument, so we may need to know it at that point already.
3435: # Even if this section looks crufty: it has the advantage of
3436: # actually working.
3437: break;;
3438: * )
3439: break;;
3440: esac
1.14 bertrand 3441: done
1.15 bertrand 3442: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1 bertrand 3443:
1.14 bertrand 3444: else
1.15 bertrand 3445: ac_file=''
1.1 bertrand 3446: fi
1.15 bertrand 3447: if test -z "$ac_file"; then :
3448: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449: $as_echo "no" >&6; }
3450: $as_echo "$as_me: failed program was:" >&5
3451: sed 's/^/| /' conftest.$ac_ext >&5
3452:
3453: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3455: as_fn_error 77 "C compiler cannot create executables
3456: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 3457: else
3458: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459: $as_echo "yes" >&6; }
3460: fi
3461: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3462: $as_echo_n "checking for C compiler default output file name... " >&6; }
3463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3464: $as_echo "$ac_file" >&6; }
3465: ac_exeext=$ac_cv_exeext
1.1 bertrand 3466:
1.15 bertrand 3467: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3468: ac_clean_files=$ac_clean_files_save
3469: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3470: $as_echo_n "checking for suffix of executables... " >&6; }
3471: if { { ac_try="$ac_link"
3472: case "(($ac_try" in
3473: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474: *) ac_try_echo=$ac_try;;
3475: esac
3476: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477: $as_echo "$ac_try_echo"; } >&5
3478: (eval "$ac_link") 2>&5
3479: ac_status=$?
3480: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481: test $ac_status = 0; }; then :
3482: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3483: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3484: # work properly (i.e., refer to `conftest.exe'), while it won't with
3485: # `rm'.
3486: for ac_file in conftest.exe conftest conftest.*; do
3487: test -f "$ac_file" || continue
3488: case $ac_file in
3489: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3490: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3491: break;;
3492: * ) break;;
3493: esac
3494: done
1.14 bertrand 3495: else
1.15 bertrand 3496: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3498: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3499: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 3500: fi
3501: rm -f conftest conftest$ac_cv_exeext
3502: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3503: $as_echo "$ac_cv_exeext" >&6; }
3504:
3505: rm -f conftest.$ac_ext
3506: EXEEXT=$ac_cv_exeext
3507: ac_exeext=$EXEEXT
3508: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 3509: /* end confdefs.h. */
1.15 bertrand 3510: #include <stdio.h>
1.14 bertrand 3511: int
3512: main ()
3513: {
1.15 bertrand 3514: FILE *f = fopen ("conftest.out", "w");
3515: return ferror (f) || fclose (f) != 0;
3516:
1.14 bertrand 3517: ;
3518: return 0;
3519: }
3520: _ACEOF
1.15 bertrand 3521: ac_clean_files="$ac_clean_files conftest.out"
3522: # Check that the compiler produces executables we can run. If not, either
3523: # the compiler is broken, or we cross compile.
3524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3525: $as_echo_n "checking whether we are cross compiling... " >&6; }
3526: if test "$cross_compiling" != yes; then
3527: { { ac_try="$ac_link"
1.1 bertrand 3528: case "(($ac_try" in
3529: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530: *) ac_try_echo=$ac_try;;
3531: esac
1.15 bertrand 3532: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533: $as_echo "$ac_try_echo"; } >&5
3534: (eval "$ac_link") 2>&5
3535: ac_status=$?
3536: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537: test $ac_status = 0; }
3538: if { ac_try='./conftest$ac_cv_exeext'
3539: { { case "(($ac_try" in
3540: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541: *) ac_try_echo=$ac_try;;
3542: esac
3543: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544: $as_echo "$ac_try_echo"; } >&5
3545: (eval "$ac_try") 2>&5
1.1 bertrand 3546: ac_status=$?
1.15 bertrand 3547: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548: test $ac_status = 0; }; }; then
3549: cross_compiling=no
3550: else
3551: if test "$cross_compiling" = maybe; then
3552: cross_compiling=yes
3553: else
3554: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3556: as_fn_error $? "cannot run C compiled programs.
1.15 bertrand 3557: If you meant to cross compile, use \`--host'.
1.36 bertrand 3558: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 3559: fi
3560: fi
1.14 bertrand 3561: fi
1.15 bertrand 3562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3563: $as_echo "$cross_compiling" >&6; }
1.14 bertrand 3564:
1.15 bertrand 3565: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3566: ac_clean_files=$ac_clean_files_save
3567: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3568: $as_echo_n "checking for suffix of object files... " >&6; }
3569: if test "${ac_cv_objext+set}" = set; then :
3570: $as_echo_n "(cached) " >&6
1.14 bertrand 3571: else
1.15 bertrand 3572: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 3573: /* end confdefs.h. */
3574:
3575: int
3576: main ()
3577: {
1.15 bertrand 3578:
1.1 bertrand 3579: ;
3580: return 0;
3581: }
3582: _ACEOF
1.15 bertrand 3583: rm -f conftest.o conftest.obj
3584: if { { ac_try="$ac_compile"
1.1 bertrand 3585: case "(($ac_try" in
3586: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587: *) ac_try_echo=$ac_try;;
3588: esac
1.15 bertrand 3589: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590: $as_echo "$ac_try_echo"; } >&5
3591: (eval "$ac_compile") 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: for ac_file in conftest.o conftest.obj conftest.*; do
3596: test -f "$ac_file" || continue;
3597: case $ac_file in
3598: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3599: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3600: break;;
3601: esac
3602: done
1.14 bertrand 3603: else
1.15 bertrand 3604: $as_echo "$as_me: failed program was:" >&5
1.14 bertrand 3605: sed 's/^/| /' conftest.$ac_ext >&5
3606:
1.15 bertrand 3607: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 3609: as_fn_error $? "cannot compute suffix of object files: cannot compile
3610: See \`config.log' for more details" "$LINENO" 5 ; }
1.14 bertrand 3611: fi
1.15 bertrand 3612: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3613: fi
3614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3615: $as_echo "$ac_cv_objext" >&6; }
3616: OBJEXT=$ac_cv_objext
3617: ac_objext=$OBJEXT
3618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3619: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3620: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3621: $as_echo_n "(cached) " >&6
3622: else
3623: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624: /* end confdefs.h. */
3625:
3626: int
3627: main ()
3628: {
3629: #ifndef __GNUC__
3630: choke me
3631: #endif
1.14 bertrand 3632:
1.15 bertrand 3633: ;
3634: return 0;
3635: }
3636: _ACEOF
3637: if ac_fn_c_try_compile "$LINENO"; then :
3638: ac_compiler_gnu=yes
1.14 bertrand 3639: else
1.15 bertrand 3640: ac_compiler_gnu=no
1.14 bertrand 3641: fi
1.15 bertrand 3642: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14 bertrand 3644:
1.15 bertrand 3645: fi
3646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3647: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3648: if test $ac_compiler_gnu = yes; then
3649: GCC=yes
1.14 bertrand 3650: else
1.15 bertrand 3651: GCC=
1.14 bertrand 3652: fi
1.15 bertrand 3653: ac_test_CFLAGS=${CFLAGS+set}
3654: ac_save_CFLAGS=$CFLAGS
3655: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3656: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3657: if test "${ac_cv_prog_cc_g+set}" = set; then :
3658: $as_echo_n "(cached) " >&6
3659: else
3660: ac_save_c_werror_flag=$ac_c_werror_flag
3661: ac_c_werror_flag=yes
3662: ac_cv_prog_cc_g=no
3663: CFLAGS="-g"
3664: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665: /* end confdefs.h. */
1.14 bertrand 3666:
1.15 bertrand 3667: int
3668: main ()
3669: {
1.14 bertrand 3670:
1.15 bertrand 3671: ;
3672: return 0;
3673: }
3674: _ACEOF
3675: if ac_fn_c_try_compile "$LINENO"; then :
3676: ac_cv_prog_cc_g=yes
3677: else
3678: CFLAGS=""
3679: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680: /* end confdefs.h. */
1.14 bertrand 3681:
1.15 bertrand 3682: int
3683: main ()
3684: {
1.14 bertrand 3685:
1.15 bertrand 3686: ;
3687: return 0;
3688: }
3689: _ACEOF
3690: if ac_fn_c_try_compile "$LINENO"; then :
1.14 bertrand 3691:
1.15 bertrand 3692: else
3693: ac_c_werror_flag=$ac_save_c_werror_flag
3694: CFLAGS="-g"
3695: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696: /* end confdefs.h. */
1.14 bertrand 3697:
1.15 bertrand 3698: int
3699: main ()
3700: {
1.14 bertrand 3701:
1.15 bertrand 3702: ;
3703: return 0;
3704: }
3705: _ACEOF
3706: if ac_fn_c_try_compile "$LINENO"; then :
3707: ac_cv_prog_cc_g=yes
3708: fi
3709: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3710: fi
3711: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3712: fi
3713: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714: ac_c_werror_flag=$ac_save_c_werror_flag
3715: fi
3716: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3717: $as_echo "$ac_cv_prog_cc_g" >&6; }
3718: if test "$ac_test_CFLAGS" = set; then
3719: CFLAGS=$ac_save_CFLAGS
3720: elif test $ac_cv_prog_cc_g = yes; then
3721: if test "$GCC" = yes; then
3722: CFLAGS="-g -O2"
3723: else
3724: CFLAGS="-g"
3725: fi
3726: else
3727: if test "$GCC" = yes; then
3728: CFLAGS="-O2"
3729: else
3730: CFLAGS=
3731: fi
3732: fi
3733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3734: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3735: if test "${ac_cv_prog_cc_c89+set}" = set; then :
3736: $as_echo_n "(cached) " >&6
1.1 bertrand 3737: else
1.15 bertrand 3738: ac_cv_prog_cc_c89=no
3739: ac_save_CC=$CC
3740: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 3741: /* end confdefs.h. */
1.15 bertrand 3742: #include <stdarg.h>
3743: #include <stdio.h>
3744: #include <sys/types.h>
3745: #include <sys/stat.h>
3746: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3747: struct buf { int x; };
3748: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3749: static char *e (p, i)
3750: char **p;
3751: int i;
3752: {
3753: return p[i];
3754: }
3755: static char *f (char * (*g) (char **, int), char **p, ...)
3756: {
3757: char *s;
3758: va_list v;
3759: va_start (v,p);
3760: s = g (p, va_arg (v,int));
3761: va_end (v);
3762: return s;
3763: }
3764:
3765: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3766: function prototypes and stuff, but not '\xHH' hex character constants.
3767: These don't provoke an error unfortunately, instead are silently treated
3768: as 'x'. The following induces an error, until -std is added to get
3769: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3770: array size at least. It's necessary to write '\x00'==0 to get something
3771: that's true only with -std. */
3772: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14 bertrand 3773:
1.15 bertrand 3774: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3775: inside strings and character constants. */
3776: #define FOO(x) 'x'
3777: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1 bertrand 3778:
1.15 bertrand 3779: int test (int i, double x);
3780: struct s1 {int (*f) (int a);};
3781: struct s2 {int (*f) (double a);};
3782: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3783: int argc;
3784: char **argv;
1.14 bertrand 3785: int
3786: main ()
3787: {
1.15 bertrand 3788: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.14 bertrand 3789: ;
3790: return 0;
3791: }
3792: _ACEOF
1.15 bertrand 3793: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3794: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3795: do
3796: CC="$ac_save_CC $ac_arg"
3797: if ac_fn_c_try_compile "$LINENO"; then :
3798: ac_cv_prog_cc_c89=$ac_arg
3799: fi
3800: rm -f core conftest.err conftest.$ac_objext
3801: test "x$ac_cv_prog_cc_c89" != "xno" && break
3802: done
3803: rm -f conftest.$ac_ext
3804: CC=$ac_save_CC
3805:
3806: fi
3807: # AC_CACHE_VAL
3808: case "x$ac_cv_prog_cc_c89" in
3809: x)
3810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3811: $as_echo "none needed" >&6; } ;;
3812: xno)
3813: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3814: $as_echo "unsupported" >&6; } ;;
3815: *)
3816: CC="$CC $ac_cv_prog_cc_c89"
3817: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3818: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1 bertrand 3819: esac
1.15 bertrand 3820: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14 bertrand 3821:
3822: fi
3823:
1.15 bertrand 3824: ac_ext=c
3825: ac_cpp='$CPP $CPPFLAGS'
3826: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829: DEPDIR="${am__leading_dot}deps"
3830:
3831: ac_config_commands="$ac_config_commands depfiles"
3832:
3833:
3834: am_make=${MAKE-make}
3835: cat > confinc << 'END'
3836: am__doit:
3837: @echo this is the am__doit target
3838: .PHONY: am__doit
3839: END
3840: # If we don't find an include directive, just comment out the code.
3841: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3842: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3843: am__include="#"
3844: am__quote=
3845: _am_result=none
3846: # First try GNU make style include.
3847: echo "include confinc" > confmf
3848: # Ignore all kinds of additional output from `make'.
3849: case `$am_make -s -f confmf 2> /dev/null` in #(
3850: *the\ am__doit\ target*)
3851: am__include=include
3852: am__quote=
3853: _am_result=GNU
3854: ;;
3855: esac
3856: # Now try BSD make style include.
3857: if test "$am__include" = "#"; then
3858: echo '.include "confinc"' > confmf
3859: case `$am_make -s -f confmf 2> /dev/null` in #(
3860: *the\ am__doit\ target*)
3861: am__include=.include
3862: am__quote="\""
3863: _am_result=BSD
3864: ;;
3865: esac
1.14 bertrand 3866: fi
3867:
3868:
1.15 bertrand 3869: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3870: $as_echo "$_am_result" >&6; }
3871: rm -f confinc confmf
3872:
3873: # Check whether --enable-dependency-tracking was given.
3874: if test "${enable_dependency_tracking+set}" = set; then :
3875: enableval=$enable_dependency_tracking;
3876: fi
3877:
3878: if test "x$enable_dependency_tracking" != xno; then
3879: am_depcomp="$ac_aux_dir/depcomp"
3880: AMDEPBACKSLASH='\'
3881: fi
3882: if test "x$enable_dependency_tracking" != xno; then
3883: AMDEP_TRUE=
3884: AMDEP_FALSE='#'
1.1 bertrand 3885: else
1.15 bertrand 3886: AMDEP_TRUE='#'
3887: AMDEP_FALSE=
1.14 bertrand 3888: fi
1.1 bertrand 3889:
1.14 bertrand 3890:
3891:
1.15 bertrand 3892: depcc="$CC" am_compiler_list=
1.14 bertrand 3893:
1.15 bertrand 3894: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3895: $as_echo_n "checking dependency style of $depcc... " >&6; }
3896: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3897: $as_echo_n "(cached) " >&6
1.14 bertrand 3898: else
1.15 bertrand 3899: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3900: # We make a subdir and do the tests there. Otherwise we can end up
3901: # making bogus files that we don't know about and never remove. For
3902: # instance it was reported that on HP-UX the gcc test will end up
3903: # making a dummy file named `D' -- because `-MD' means `put the output
3904: # in D'.
3905: mkdir conftest.dir
3906: # Copy depcomp to subdir because otherwise we won't find it if we're
3907: # using a relative directory.
3908: cp "$am_depcomp" conftest.dir
3909: cd conftest.dir
3910: # We will build objects and dependencies in a subdirectory because
3911: # it helps to detect inapplicable dependency modes. For instance
3912: # both Tru64's cc and ICC support -MD to output dependencies as a
3913: # side effect of compilation, but ICC will put the dependencies in
3914: # the current directory while Tru64 will put them in the object
3915: # directory.
3916: mkdir sub
1.14 bertrand 3917:
1.15 bertrand 3918: am_cv_CC_dependencies_compiler_type=none
3919: if test "$am_compiler_list" = ""; then
3920: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3921: fi
3922: am__universal=false
3923: case " $depcc " in #(
3924: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3925: esac
1.14 bertrand 3926:
1.15 bertrand 3927: for depmode in $am_compiler_list; do
3928: # Setup a source with many dependencies, because some compilers
3929: # like to wrap large dependency lists on column 80 (with \), and
3930: # we should not choose a depcomp mode which is confused by this.
3931: #
3932: # We need to recreate these files for each test, as the compiler may
3933: # overwrite some of them when testing with obscure command lines.
3934: # This happens at least with the AIX C compiler.
3935: : > sub/conftest.c
3936: for i in 1 2 3 4 5 6; do
3937: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3938: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3939: # Solaris 8's {/usr,}/bin/sh.
3940: touch sub/conftst$i.h
3941: done
3942: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14 bertrand 3943:
1.15 bertrand 3944: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3945: # mode. It turns out that the SunPro C++ compiler does not properly
3946: # handle `-M -o', and we need to detect this. Also, some Intel
3947: # versions had trouble with output in subdirs
3948: am__obj=sub/conftest.${OBJEXT-o}
3949: am__minus_obj="-o $am__obj"
3950: case $depmode in
3951: gcc)
3952: # This depmode causes a compiler race in universal mode.
3953: test "$am__universal" = false || continue
3954: ;;
3955: nosideeffect)
3956: # after this tag, mechanisms are not by side-effect, so they'll
3957: # only be used when explicitly requested
3958: if test "x$enable_dependency_tracking" = xyes; then
3959: continue
3960: else
3961: break
3962: fi
3963: ;;
3964: msvisualcpp | msvcmsys)
3965: # This compiler won't grok `-c -o', but also, the minuso test has
3966: # not run yet. These depmodes are late enough in the game, and
3967: # so weak that their functioning should not be impacted.
3968: am__obj=conftest.${OBJEXT-o}
3969: am__minus_obj=
3970: ;;
3971: none) break ;;
3972: esac
3973: if depmode=$depmode \
3974: source=sub/conftest.c object=$am__obj \
3975: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3976: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3977: >/dev/null 2>conftest.err &&
3978: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3979: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3980: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3981: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3982: # icc doesn't choke on unknown options, it will just issue warnings
3983: # or remarks (even with -Werror). So we grep stderr for any message
3984: # that says an option was ignored or not supported.
3985: # When given -MP, icc 7.0 and 7.1 complain thusly:
3986: # icc: Command line warning: ignoring option '-M'; no argument required
3987: # The diagnosis changed in icc 8.0:
3988: # icc: Command line remark: option '-MP' not supported
3989: if (grep 'ignoring option' conftest.err ||
3990: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3991: am_cv_CC_dependencies_compiler_type=$depmode
3992: break
3993: fi
3994: fi
3995: done
1.14 bertrand 3996:
1.15 bertrand 3997: cd ..
3998: rm -rf conftest.dir
1.14 bertrand 3999: else
1.15 bertrand 4000: am_cv_CC_dependencies_compiler_type=none
1.1 bertrand 4001: fi
4002:
1.15 bertrand 4003: fi
4004: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4005: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4006: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14 bertrand 4007:
1.15 bertrand 4008: if
4009: test "x$enable_dependency_tracking" != xno \
4010: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4011: am__fastdepCC_TRUE=
4012: am__fastdepCC_FALSE='#'
1.1 bertrand 4013: else
1.15 bertrand 4014: am__fastdepCC_TRUE='#'
4015: am__fastdepCC_FALSE=
4016: fi
4017:
1.1 bertrand 4018:
4019:
1.30 bertrand 4020: EXT_SQL=
4021:
1.15 bertrand 4022: if test x"$CC" != x""; then
4023: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4024: awk -F. '{ printf("%s", $1);}'`
4025: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4026: awk -F. '{ printf("%s", $2);}'`
1.23 bertrand 4027: if test $GCC_VERSION_MAJEURE -ge 5; then
1.15 bertrand 4028: OPTIMISATION_C=-O3
4029: else
1.23 bertrand 4030: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
4031: then
1.15 bertrand 4032: OPTIMISATION_C=-O3
4033: else
1.23 bertrand 4034: if test $GCC_VERSION_MAJEURE -ge 2; then
4035: OPTIMISATION_C=-O2
4036: else
1.36 bertrand 4037: as_fn_error $? "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
1.23 bertrand 4038: fi
1.15 bertrand 4039: fi
4040: fi
1.14 bertrand 4041: fi
4042:
1.15 bertrand 4043: if test "x$CC" != xcc; then
4044: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4045: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14 bertrand 4046: else
1.15 bertrand 4047: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4048: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1 bertrand 4049: fi
1.15 bertrand 4050: set dummy $CC; ac_cc=`$as_echo "$2" |
4051: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
1.36 bertrand 4052: if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
1.15 bertrand 4053: $as_echo_n "(cached) " >&6
1.1 bertrand 4054: else
1.15 bertrand 4055: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 4056: /* end confdefs.h. */
4057:
4058: int
4059: main ()
4060: {
1.15 bertrand 4061:
1.1 bertrand 4062: ;
4063: return 0;
4064: }
4065: _ACEOF
1.15 bertrand 4066: # Make sure it works both with $CC and with simple cc.
4067: # We do the test twice because some compilers refuse to overwrite an
4068: # existing .o file with -o, though they will create one.
4069: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4070: rm -f conftest2.*
4071: if { { case "(($ac_try" in
4072: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073: *) ac_try_echo=$ac_try;;
4074: esac
4075: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4076: $as_echo "$ac_try_echo"; } >&5
4077: (eval "$ac_try") 2>&5
4078: ac_status=$?
4079: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4080: test $ac_status = 0; } &&
4081: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4082: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083: *) ac_try_echo=$ac_try;;
4084: esac
4085: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086: $as_echo "$ac_try_echo"; } >&5
4087: (eval "$ac_try") 2>&5
4088: ac_status=$?
4089: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4090: test $ac_status = 0; };
4091: then
4092: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4093: if test "x$CC" != xcc; then
4094: # Test first that cc exists at all.
4095: if { ac_try='cc -c conftest.$ac_ext >&5'
4096: { { case "(($ac_try" in
4097: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098: *) ac_try_echo=$ac_try;;
4099: esac
4100: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4101: $as_echo "$ac_try_echo"; } >&5
4102: (eval "$ac_try") 2>&5
4103: ac_status=$?
4104: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4105: test $ac_status = 0; }; }; then
4106: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4107: rm -f conftest2.*
4108: if { { case "(($ac_try" in
4109: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110: *) ac_try_echo=$ac_try;;
4111: esac
4112: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4113: $as_echo "$ac_try_echo"; } >&5
4114: (eval "$ac_try") 2>&5
4115: ac_status=$?
4116: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4117: test $ac_status = 0; } &&
4118: test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14 bertrand 4119: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120: *) ac_try_echo=$ac_try;;
4121: esac
1.15 bertrand 4122: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4123: $as_echo "$ac_try_echo"; } >&5
4124: (eval "$ac_try") 2>&5
1.14 bertrand 4125: ac_status=$?
1.15 bertrand 4126: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4127: test $ac_status = 0; };
4128: then
4129: # cc works too.
4130: :
4131: else
4132: # cc exists but doesn't like -o.
4133: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4134: fi
4135: fi
4136: fi
1.1 bertrand 4137: else
1.15 bertrand 4138: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4139: fi
4140: rm -f core conftest*
1.14 bertrand 4141:
1.1 bertrand 4142: fi
1.15 bertrand 4143: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4145: $as_echo "yes" >&6; }
4146: else
4147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148: $as_echo "no" >&6; }
4149:
4150: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1 bertrand 4151:
4152: fi
1.15 bertrand 4153:
4154: # FIXME: we rely on the cache variable name because
4155: # there is no other way.
4156: set dummy $CC
4157: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4158: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4159: if test "$am_t" != yes; then
4160: # Losing compiler, so override with the script.
4161: # FIXME: It is wrong to rewrite CC.
4162: # But if we don't then we get into trouble of one sort or another.
4163: # A longer-term fix would be to have automake use am__CC in this case,
4164: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4165: CC="$am_aux_dir/compile $CC"
1.1 bertrand 4166: fi
1.14 bertrand 4167:
4168:
1.15 bertrand 4169:
4170: if test "$GCC" != yes; then
1.36 bertrand 4171: as_fn_error $? "Cannot find gcc! You have to install it." "$LINENO" 5
1.15 bertrand 4172: fi
4173:
4174: ac_ext=cpp
4175: ac_cpp='$CXXCPP $CPPFLAGS'
4176: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4179: if test -z "$CXX"; then
4180: if test -n "$CCC"; then
4181: CXX=$CCC
4182: else
4183: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4184: for ac_prog in g++
1.15 bertrand 4185: do
4186: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4187: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4188: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189: $as_echo_n "checking for $ac_word... " >&6; }
4190: if test "${ac_cv_prog_CXX+set}" = set; then :
4191: $as_echo_n "(cached) " >&6
1.1 bertrand 4192: else
1.15 bertrand 4193: if test -n "$CXX"; then
4194: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14 bertrand 4195: else
1.15 bertrand 4196: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197: for as_dir in $PATH
4198: do
4199: IFS=$as_save_IFS
4200: test -z "$as_dir" && as_dir=.
4201: for ac_exec_ext in '' $ac_executable_extensions; do
4202: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4204: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205: break 2
4206: fi
4207: done
4208: done
4209: IFS=$as_save_IFS
1.14 bertrand 4210:
4211: fi
4212: fi
1.15 bertrand 4213: CXX=$ac_cv_prog_CXX
4214: if test -n "$CXX"; then
4215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4216: $as_echo "$CXX" >&6; }
1.14 bertrand 4217: else
1.15 bertrand 4218: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219: $as_echo "no" >&6; }
1.14 bertrand 4220: fi
4221:
4222:
1.15 bertrand 4223: test -n "$CXX" && break
4224: done
4225: fi
4226: if test -z "$CXX"; then
4227: ac_ct_CXX=$CXX
1.23 bertrand 4228: for ac_prog in g++
1.15 bertrand 4229: do
4230: # Extract the first word of "$ac_prog", so it can be a program name with args.
4231: set dummy $ac_prog; ac_word=$2
4232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233: $as_echo_n "checking for $ac_word... " >&6; }
4234: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4235: $as_echo_n "(cached) " >&6
4236: else
4237: if test -n "$ac_ct_CXX"; then
4238: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4239: else
4240: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241: for as_dir in $PATH
4242: do
4243: IFS=$as_save_IFS
4244: test -z "$as_dir" && as_dir=.
4245: for ac_exec_ext in '' $ac_executable_extensions; do
4246: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4247: ac_cv_prog_ac_ct_CXX="$ac_prog"
4248: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249: break 2
4250: fi
4251: done
4252: done
4253: IFS=$as_save_IFS
1.14 bertrand 4254:
1.15 bertrand 4255: fi
4256: fi
4257: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4258: if test -n "$ac_ct_CXX"; then
4259: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4260: $as_echo "$ac_ct_CXX" >&6; }
1.1 bertrand 4261: else
1.15 bertrand 4262: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263: $as_echo "no" >&6; }
1.14 bertrand 4264: fi
4265:
4266:
1.15 bertrand 4267: test -n "$ac_ct_CXX" && break
4268: done
1.14 bertrand 4269:
1.15 bertrand 4270: if test "x$ac_ct_CXX" = x; then
4271: CXX="g++"
4272: else
4273: case $cross_compiling:$ac_tool_warned in
4274: yes:)
4275: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4276: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4277: ac_tool_warned=yes ;;
4278: esac
4279: CXX=$ac_ct_CXX
4280: fi
4281: fi
1.1 bertrand 4282:
1.15 bertrand 4283: fi
4284: fi
4285: # Provide some information about the compiler.
4286: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4287: set X $ac_compile
4288: ac_compiler=$2
4289: for ac_option in --version -v -V -qversion; do
4290: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4291: case "(($ac_try" in
4292: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293: *) ac_try_echo=$ac_try;;
4294: esac
1.15 bertrand 4295: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296: $as_echo "$ac_try_echo"; } >&5
4297: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4298: ac_status=$?
1.15 bertrand 4299: if test -s conftest.err; then
4300: sed '10a\
4301: ... rest of stderr output deleted ...
4302: 10q' conftest.err >conftest.er1
4303: cat conftest.er1 >&5
4304: fi
4305: rm -f conftest.er1 conftest.err
4306: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4307: test $ac_status = 0; }
4308: done
4309:
4310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4311: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4312: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4313: $as_echo_n "(cached) " >&6
1.14 bertrand 4314: else
1.15 bertrand 4315: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316: /* end confdefs.h. */
1.1 bertrand 4317:
4318: int
4319: main ()
4320: {
1.15 bertrand 4321: #ifndef __GNUC__
4322: choke me
4323: #endif
1.1 bertrand 4324:
4325: ;
4326: return 0;
4327: }
4328: _ACEOF
1.15 bertrand 4329: if ac_fn_cxx_try_compile "$LINENO"; then :
4330: ac_compiler_gnu=yes
1.1 bertrand 4331: else
1.15 bertrand 4332: ac_compiler_gnu=no
1.1 bertrand 4333: fi
1.14 bertrand 4334: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 4335: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4336:
1.15 bertrand 4337: fi
4338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4339: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4340: if test $ac_compiler_gnu = yes; then
4341: GXX=yes
4342: else
4343: GXX=
4344: fi
4345: ac_test_CXXFLAGS=${CXXFLAGS+set}
4346: ac_save_CXXFLAGS=$CXXFLAGS
4347: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4348: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4349: if test "${ac_cv_prog_cxx_g+set}" = set; then :
4350: $as_echo_n "(cached) " >&6
4351: else
4352: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4353: ac_cxx_werror_flag=yes
4354: ac_cv_prog_cxx_g=no
4355: CXXFLAGS="-g"
4356: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 4357: /* end confdefs.h. */
1.15 bertrand 4358:
1.1 bertrand 4359: int
4360: main ()
4361: {
1.14 bertrand 4362:
1.1 bertrand 4363: ;
4364: return 0;
4365: }
4366: _ACEOF
1.15 bertrand 4367: if ac_fn_cxx_try_compile "$LINENO"; then :
4368: ac_cv_prog_cxx_g=yes
1.14 bertrand 4369: else
1.15 bertrand 4370: CXXFLAGS=""
4371: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372: /* end confdefs.h. */
1.1 bertrand 4373:
1.14 bertrand 4374: int
4375: main ()
4376: {
1.1 bertrand 4377:
1.14 bertrand 4378: ;
4379: return 0;
4380: }
4381: _ACEOF
1.15 bertrand 4382: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1 bertrand 4383:
4384: else
1.15 bertrand 4385: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4386: CXXFLAGS="-g"
4387: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388: /* end confdefs.h. */
1.1 bertrand 4389:
1.14 bertrand 4390: int
4391: main ()
4392: {
1.1 bertrand 4393:
1.14 bertrand 4394: ;
4395: return 0;
4396: }
4397: _ACEOF
1.15 bertrand 4398: if ac_fn_cxx_try_compile "$LINENO"; then :
4399: ac_cv_prog_cxx_g=yes
4400: fi
4401: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4402: fi
4403: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4404: fi
4405: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4407: fi
4408: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4409: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4410: if test "$ac_test_CXXFLAGS" = set; then
4411: CXXFLAGS=$ac_save_CXXFLAGS
4412: elif test $ac_cv_prog_cxx_g = yes; then
4413: if test "$GXX" = yes; then
4414: CXXFLAGS="-g -O2"
4415: else
4416: CXXFLAGS="-g"
4417: fi
4418: else
4419: if test "$GXX" = yes; then
4420: CXXFLAGS="-O2"
4421: else
4422: CXXFLAGS=
4423: fi
4424: fi
4425: ac_ext=c
4426: ac_cpp='$CPP $CPPFLAGS'
4427: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430:
4431: depcc="$CXX" am_compiler_list=
4432:
4433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4434: $as_echo_n "checking dependency style of $depcc... " >&6; }
4435: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4436: $as_echo_n "(cached) " >&6
4437: else
4438: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4439: # We make a subdir and do the tests there. Otherwise we can end up
4440: # making bogus files that we don't know about and never remove. For
4441: # instance it was reported that on HP-UX the gcc test will end up
4442: # making a dummy file named `D' -- because `-MD' means `put the output
4443: # in D'.
4444: mkdir conftest.dir
4445: # Copy depcomp to subdir because otherwise we won't find it if we're
4446: # using a relative directory.
4447: cp "$am_depcomp" conftest.dir
4448: cd conftest.dir
4449: # We will build objects and dependencies in a subdirectory because
4450: # it helps to detect inapplicable dependency modes. For instance
4451: # both Tru64's cc and ICC support -MD to output dependencies as a
4452: # side effect of compilation, but ICC will put the dependencies in
4453: # the current directory while Tru64 will put them in the object
4454: # directory.
4455: mkdir sub
4456:
4457: am_cv_CXX_dependencies_compiler_type=none
4458: if test "$am_compiler_list" = ""; then
4459: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4460: fi
4461: am__universal=false
4462: case " $depcc " in #(
4463: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4464: esac
4465:
4466: for depmode in $am_compiler_list; do
4467: # Setup a source with many dependencies, because some compilers
4468: # like to wrap large dependency lists on column 80 (with \), and
4469: # we should not choose a depcomp mode which is confused by this.
4470: #
4471: # We need to recreate these files for each test, as the compiler may
4472: # overwrite some of them when testing with obscure command lines.
4473: # This happens at least with the AIX C compiler.
4474: : > sub/conftest.c
4475: for i in 1 2 3 4 5 6; do
4476: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4477: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4478: # Solaris 8's {/usr,}/bin/sh.
4479: touch sub/conftst$i.h
4480: done
4481: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4482:
4483: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4484: # mode. It turns out that the SunPro C++ compiler does not properly
4485: # handle `-M -o', and we need to detect this. Also, some Intel
4486: # versions had trouble with output in subdirs
4487: am__obj=sub/conftest.${OBJEXT-o}
4488: am__minus_obj="-o $am__obj"
4489: case $depmode in
4490: gcc)
4491: # This depmode causes a compiler race in universal mode.
4492: test "$am__universal" = false || continue
4493: ;;
4494: nosideeffect)
4495: # after this tag, mechanisms are not by side-effect, so they'll
4496: # only be used when explicitly requested
4497: if test "x$enable_dependency_tracking" = xyes; then
4498: continue
4499: else
4500: break
4501: fi
4502: ;;
4503: msvisualcpp | msvcmsys)
4504: # This compiler won't grok `-c -o', but also, the minuso test has
4505: # not run yet. These depmodes are late enough in the game, and
4506: # so weak that their functioning should not be impacted.
4507: am__obj=conftest.${OBJEXT-o}
4508: am__minus_obj=
4509: ;;
4510: none) break ;;
4511: esac
4512: if depmode=$depmode \
4513: source=sub/conftest.c object=$am__obj \
4514: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4515: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4516: >/dev/null 2>conftest.err &&
4517: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4518: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4519: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4520: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4521: # icc doesn't choke on unknown options, it will just issue warnings
4522: # or remarks (even with -Werror). So we grep stderr for any message
4523: # that says an option was ignored or not supported.
4524: # When given -MP, icc 7.0 and 7.1 complain thusly:
4525: # icc: Command line warning: ignoring option '-M'; no argument required
4526: # The diagnosis changed in icc 8.0:
4527: # icc: Command line remark: option '-MP' not supported
4528: if (grep 'ignoring option' conftest.err ||
4529: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4530: am_cv_CXX_dependencies_compiler_type=$depmode
4531: break
4532: fi
4533: fi
4534: done
4535:
4536: cd ..
4537: rm -rf conftest.dir
4538: else
4539: am_cv_CXX_dependencies_compiler_type=none
4540: fi
4541:
4542: fi
4543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4544: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4545: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4546:
4547: if
4548: test "x$enable_dependency_tracking" != xno \
4549: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4550: am__fastdepCXX_TRUE=
4551: am__fastdepCXX_FALSE='#'
4552: else
4553: am__fastdepCXX_TRUE='#'
4554: am__fastdepCXX_FALSE=
4555: fi
4556:
4557:
4558:
4559: if test "$GXX" != yes; then
1.36 bertrand 4560: as_fn_error $? "Cannot find g++! You have to install it." "$LINENO" 5
1.15 bertrand 4561: fi
4562:
4563: ac_ext=f
4564: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4565: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4566: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4567: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4568: for ac_prog in gfortran
1.15 bertrand 4569: do
4570: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4571: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4572: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573: $as_echo_n "checking for $ac_word... " >&6; }
4574: if test "${ac_cv_prog_F77+set}" = set; then :
4575: $as_echo_n "(cached) " >&6
4576: else
4577: if test -n "$F77"; then
4578: ac_cv_prog_F77="$F77" # Let the user override the test.
4579: else
4580: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581: for as_dir in $PATH
4582: do
4583: IFS=$as_save_IFS
4584: test -z "$as_dir" && as_dir=.
4585: for ac_exec_ext in '' $ac_executable_extensions; do
4586: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4588: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4589: break 2
4590: fi
4591: done
4592: done
4593: IFS=$as_save_IFS
4594:
4595: fi
4596: fi
4597: F77=$ac_cv_prog_F77
4598: if test -n "$F77"; then
4599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4600: $as_echo "$F77" >&6; }
4601: else
4602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603: $as_echo "no" >&6; }
4604: fi
4605:
4606:
4607: test -n "$F77" && break
4608: done
4609: fi
4610: if test -z "$F77"; then
4611: ac_ct_F77=$F77
1.23 bertrand 4612: for ac_prog in gfortran
1.15 bertrand 4613: do
4614: # Extract the first word of "$ac_prog", so it can be a program name with args.
4615: set dummy $ac_prog; ac_word=$2
4616: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617: $as_echo_n "checking for $ac_word... " >&6; }
4618: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
4619: $as_echo_n "(cached) " >&6
4620: else
4621: if test -n "$ac_ct_F77"; then
4622: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4623: else
4624: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625: for as_dir in $PATH
4626: do
4627: IFS=$as_save_IFS
4628: test -z "$as_dir" && as_dir=.
4629: for ac_exec_ext in '' $ac_executable_extensions; do
4630: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631: ac_cv_prog_ac_ct_F77="$ac_prog"
4632: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633: break 2
4634: fi
4635: done
4636: done
4637: IFS=$as_save_IFS
4638:
4639: fi
4640: fi
4641: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4642: if test -n "$ac_ct_F77"; then
4643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4644: $as_echo "$ac_ct_F77" >&6; }
1.1 bertrand 4645: else
1.15 bertrand 4646: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647: $as_echo "no" >&6; }
4648: fi
4649:
4650:
4651: test -n "$ac_ct_F77" && break
4652: done
1.1 bertrand 4653:
1.15 bertrand 4654: if test "x$ac_ct_F77" = x; then
4655: F77=""
4656: else
4657: case $cross_compiling:$ac_tool_warned in
4658: yes:)
4659: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4660: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4661: ac_tool_warned=yes ;;
4662: esac
4663: F77=$ac_ct_F77
4664: fi
1.14 bertrand 4665: fi
1.1 bertrand 4666:
4667:
1.15 bertrand 4668: # Provide some information about the compiler.
4669: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4670: set X $ac_compile
4671: ac_compiler=$2
4672: for ac_option in --version -v -V -qversion; do
4673: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4674: case "(($ac_try" in
4675: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4676: *) ac_try_echo=$ac_try;;
4677: esac
1.15 bertrand 4678: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4679: $as_echo "$ac_try_echo"; } >&5
4680: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4681: ac_status=$?
1.15 bertrand 4682: if test -s conftest.err; then
4683: sed '10a\
4684: ... rest of stderr output deleted ...
4685: 10q' conftest.err >conftest.er1
4686: cat conftest.er1 >&5
4687: fi
4688: rm -f conftest.er1 conftest.err
4689: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690: test $ac_status = 0; }
4691: done
4692: rm -f a.out
4693:
4694: # If we don't use `.F' as extension, the preprocessor is not run on the
4695: # input file. (Note that this only needs to work for GNU compilers.)
4696: ac_save_ext=$ac_ext
4697: ac_ext=F
4698: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4699: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4700: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
4701: $as_echo_n "(cached) " >&6
1.1 bertrand 4702: else
1.15 bertrand 4703: cat > conftest.$ac_ext <<_ACEOF
4704: program main
4705: #ifndef __GNUC__
4706: choke me
4707: #endif
1.14 bertrand 4708:
1.15 bertrand 4709: end
4710: _ACEOF
4711: if ac_fn_f77_try_compile "$LINENO"; then :
4712: ac_compiler_gnu=yes
4713: else
4714: ac_compiler_gnu=no
1.1 bertrand 4715: fi
1.15 bertrand 4716: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4717: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4718:
4719: fi
1.15 bertrand 4720: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4721: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4722: ac_ext=$ac_save_ext
4723: ac_test_FFLAGS=${FFLAGS+set}
4724: ac_save_FFLAGS=$FFLAGS
4725: FFLAGS=
4726: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4727: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
4728: if test "${ac_cv_prog_f77_g+set}" = set; then :
4729: $as_echo_n "(cached) " >&6
4730: else
4731: FFLAGS=-g
4732: cat > conftest.$ac_ext <<_ACEOF
4733: program main
1.1 bertrand 4734:
1.15 bertrand 4735: end
1.14 bertrand 4736: _ACEOF
1.15 bertrand 4737: if ac_fn_f77_try_compile "$LINENO"; then :
4738: ac_cv_prog_f77_g=yes
1.1 bertrand 4739: else
1.15 bertrand 4740: ac_cv_prog_f77_g=no
1.1 bertrand 4741: fi
1.15 bertrand 4742: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 4743:
4744: fi
1.15 bertrand 4745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4746: $as_echo "$ac_cv_prog_f77_g" >&6; }
4747: if test "$ac_test_FFLAGS" = set; then
4748: FFLAGS=$ac_save_FFLAGS
4749: elif test $ac_cv_prog_f77_g = yes; then
4750: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4751: FFLAGS="-g -O2"
4752: else
4753: FFLAGS="-g"
4754: fi
4755: else
4756: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4757: FFLAGS="-O2"
4758: else
4759: FFLAGS=
4760: fi
1.1 bertrand 4761: fi
4762:
1.15 bertrand 4763: if test $ac_compiler_gnu = yes; then
4764: G77=yes
1.1 bertrand 4765: else
1.15 bertrand 4766: G77=
1.1 bertrand 4767: fi
1.15 bertrand 4768: ac_ext=c
4769: ac_cpp='$CPP $CPPFLAGS'
4770: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4771: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4772: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 bertrand 4773:
4774:
1.15 bertrand 4775: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
1.36 bertrand 4776: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.15 bertrand 4777: fi
1.14 bertrand 4778:
1.15 bertrand 4779: ac_ext=${ac_fc_srcext-f}
4780: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4781: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4782: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4783: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4784: for ac_prog in gfortran
1.15 bertrand 4785: do
4786: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4787: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4788: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4789: $as_echo_n "checking for $ac_word... " >&6; }
4790: if test "${ac_cv_prog_FC+set}" = set; then :
4791: $as_echo_n "(cached) " >&6
4792: else
4793: if test -n "$FC"; then
4794: ac_cv_prog_FC="$FC" # Let the user override the test.
1.1 bertrand 4795: else
1.15 bertrand 4796: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797: for as_dir in $PATH
4798: do
4799: IFS=$as_save_IFS
4800: test -z "$as_dir" && as_dir=.
4801: for ac_exec_ext in '' $ac_executable_extensions; do
4802: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4804: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805: break 2
4806: fi
4807: done
4808: done
4809: IFS=$as_save_IFS
1.1 bertrand 4810:
4811: fi
1.15 bertrand 4812: fi
4813: FC=$ac_cv_prog_FC
4814: if test -n "$FC"; then
4815: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4816: $as_echo "$FC" >&6; }
1.14 bertrand 4817: else
1.15 bertrand 4818: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819: $as_echo "no" >&6; }
1.14 bertrand 4820: fi
4821:
1.1 bertrand 4822:
1.15 bertrand 4823: test -n "$FC" && break
4824: done
4825: fi
4826: if test -z "$FC"; then
4827: ac_ct_FC=$FC
1.23 bertrand 4828: for ac_prog in gfortran
1.15 bertrand 4829: do
4830: # Extract the first word of "$ac_prog", so it can be a program name with args.
4831: set dummy $ac_prog; ac_word=$2
4832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4833: $as_echo_n "checking for $ac_word... " >&6; }
4834: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4835: $as_echo_n "(cached) " >&6
4836: else
4837: if test -n "$ac_ct_FC"; then
4838: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4839: else
4840: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841: for as_dir in $PATH
4842: do
4843: IFS=$as_save_IFS
4844: test -z "$as_dir" && as_dir=.
4845: for ac_exec_ext in '' $ac_executable_extensions; do
4846: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4847: ac_cv_prog_ac_ct_FC="$ac_prog"
4848: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4849: break 2
4850: fi
4851: done
4852: done
4853: IFS=$as_save_IFS
1.1 bertrand 4854:
1.15 bertrand 4855: fi
4856: fi
4857: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4858: if test -n "$ac_ct_FC"; then
4859: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4860: $as_echo "$ac_ct_FC" >&6; }
1.1 bertrand 4861: else
1.15 bertrand 4862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863: $as_echo "no" >&6; }
1.1 bertrand 4864: fi
1.14 bertrand 4865:
1.1 bertrand 4866:
1.15 bertrand 4867: test -n "$ac_ct_FC" && break
4868: done
1.1 bertrand 4869:
1.15 bertrand 4870: if test "x$ac_ct_FC" = x; then
4871: FC=""
4872: else
4873: case $cross_compiling:$ac_tool_warned in
4874: yes:)
4875: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4876: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4877: ac_tool_warned=yes ;;
1.14 bertrand 4878: esac
1.15 bertrand 4879: FC=$ac_ct_FC
4880: fi
1.14 bertrand 4881: fi
4882:
4883:
1.15 bertrand 4884: # Provide some information about the compiler.
4885: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4886: set X $ac_compile
4887: ac_compiler=$2
4888: for ac_option in --version -v -V -qversion; do
4889: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4890: case "(($ac_try" in
4891: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4892: *) ac_try_echo=$ac_try;;
4893: esac
1.15 bertrand 4894: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4895: $as_echo "$ac_try_echo"; } >&5
4896: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4897: ac_status=$?
1.15 bertrand 4898: if test -s conftest.err; then
4899: sed '10a\
4900: ... rest of stderr output deleted ...
4901: 10q' conftest.err >conftest.er1
4902: cat conftest.er1 >&5
4903: fi
4904: rm -f conftest.er1 conftest.err
4905: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4906: test $ac_status = 0; }
4907: done
4908: rm -f a.out
4909:
4910: # If we don't use `.F' as extension, the preprocessor is not run on the
4911: # input file. (Note that this only needs to work for GNU compilers.)
4912: ac_save_ext=$ac_ext
4913: ac_ext=F
4914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4915: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4916: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4917: $as_echo_n "(cached) " >&6
1.14 bertrand 4918: else
1.15 bertrand 4919: cat > conftest.$ac_ext <<_ACEOF
4920: program main
4921: #ifndef __GNUC__
4922: choke me
4923: #endif
1.14 bertrand 4924:
1.15 bertrand 4925: end
4926: _ACEOF
4927: if ac_fn_fc_try_compile "$LINENO"; then :
4928: ac_compiler_gnu=yes
4929: else
4930: ac_compiler_gnu=no
1.14 bertrand 4931: fi
4932: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 4933: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4934:
1.15 bertrand 4935: fi
4936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4937: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4938: ac_ext=$ac_save_ext
4939: ac_test_FCFLAGS=${FCFLAGS+set}
4940: ac_save_FCFLAGS=$FCFLAGS
4941: FCFLAGS=
4942: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4943: $as_echo_n "checking whether $FC accepts -g... " >&6; }
4944: if test "${ac_cv_prog_fc_g+set}" = set; then :
4945: $as_echo_n "(cached) " >&6
4946: else
4947: FCFLAGS=-g
4948: cat > conftest.$ac_ext <<_ACEOF
4949: program main
1.1 bertrand 4950:
1.15 bertrand 4951: end
1.1 bertrand 4952: _ACEOF
1.15 bertrand 4953: if ac_fn_fc_try_compile "$LINENO"; then :
4954: ac_cv_prog_fc_g=yes
1.1 bertrand 4955: else
1.15 bertrand 4956: ac_cv_prog_fc_g=no
1.1 bertrand 4957: fi
1.14 bertrand 4958: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 4959:
1.15 bertrand 4960: fi
4961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4962: $as_echo "$ac_cv_prog_fc_g" >&6; }
4963: if test "$ac_test_FCFLAGS" = set; then
4964: FCFLAGS=$ac_save_FCFLAGS
4965: elif test $ac_cv_prog_fc_g = yes; then
4966: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4967: FCFLAGS="-g -O2"
4968: else
4969: FCFLAGS="-g"
4970: fi
1.1 bertrand 4971: else
1.15 bertrand 4972: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4973: FCFLAGS="-O2"
4974: else
4975: FCFLAGS=
4976: fi
1.1 bertrand 4977: fi
4978:
1.15 bertrand 4979: ac_ext=c
4980: ac_cpp='$CPP $CPPFLAGS'
4981: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4982: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4983: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 bertrand 4984:
4985:
1.15 bertrand 4986: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
1.36 bertrand 4987: as_fn_error $? "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1 bertrand 4988: fi
4989:
1.15 bertrand 4990: if test x"$FC" != x""; then
4991: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4992: awk -F. '{ printf("%s", $1);}'`
4993: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4994: awk -F. '{ printf("%s", $2);}'`
1.23 bertrand 4995: if test $GCC_VERSION_MAJEURE -ge 5; then
1.15 bertrand 4996: OPTIMISATION_F=-O3
4997: else
1.23 bertrand 4998: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15 bertrand 4999: OPTIMISATION_F=-O3
5000: else
1.23 bertrand 5001: if test $GCC_VERSION_MAJEURE -ge 3; then
5002: OPTIMISATION_F=-O2
5003: else
1.36 bertrand 5004: as_fn_error $? "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
1.23 bertrand 5005: fi
1.14 bertrand 5006: fi
5007: fi
5008: fi
1.1 bertrand 5009:
5010:
1.15 bertrand 5011: ac_ext=c
5012: ac_cpp='$CPP $CPPFLAGS'
5013: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5017: $as_echo_n "checking how to run the C preprocessor... " >&6; }
5018: # On Suns, sometimes $CPP names a directory.
5019: if test -n "$CPP" && test -d "$CPP"; then
5020: CPP=
5021: fi
5022: if test -z "$CPP"; then
5023: if test "${ac_cv_prog_CPP+set}" = set; then :
5024: $as_echo_n "(cached) " >&6
5025: else
5026: # Double quotes because CPP needs to be expanded
5027: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5028: do
5029: ac_preproc_ok=false
5030: for ac_c_preproc_warn_flag in '' yes
5031: do
5032: # Use a header file that comes with gcc, so configuring glibc
5033: # with a fresh cross-compiler works.
5034: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035: # <limits.h> exists even on freestanding compilers.
5036: # On the NeXT, cc -E runs the code through the compiler's parser,
5037: # not just through cpp. "Syntax error" is here to catch this case.
5038: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5039: /* end confdefs.h. */
1.15 bertrand 5040: #ifdef __STDC__
5041: # include <limits.h>
5042: #else
5043: # include <assert.h>
5044: #endif
5045: Syntax error
1.1 bertrand 5046: _ACEOF
1.15 bertrand 5047: if ac_fn_c_try_cpp "$LINENO"; then :
5048:
1.1 bertrand 5049: else
1.15 bertrand 5050: # Broken: fails on valid input.
5051: continue
1.1 bertrand 5052: fi
1.36 bertrand 5053: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5054:
1.15 bertrand 5055: # OK, works on sane cases. Now check whether nonexistent headers
5056: # can be detected and how.
5057: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058: /* end confdefs.h. */
5059: #include <ac_nonexistent.h>
5060: _ACEOF
5061: if ac_fn_c_try_cpp "$LINENO"; then :
5062: # Broken: success on invalid input.
5063: continue
5064: else
5065: # Passes both tests.
5066: ac_preproc_ok=:
5067: break
1.1 bertrand 5068: fi
1.36 bertrand 5069: rm -f conftest.err conftest.i conftest.$ac_ext
1.14 bertrand 5070:
1.15 bertrand 5071: done
5072: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36 bertrand 5073: rm -f conftest.i conftest.err conftest.$ac_ext
1.15 bertrand 5074: if $ac_preproc_ok; then :
5075: break
1.1 bertrand 5076: fi
5077:
1.15 bertrand 5078: done
5079: ac_cv_prog_CPP=$CPP
1.14 bertrand 5080:
1.15 bertrand 5081: fi
5082: CPP=$ac_cv_prog_CPP
1.1 bertrand 5083: else
1.15 bertrand 5084: ac_cv_prog_CPP=$CPP
5085: fi
5086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5087: $as_echo "$CPP" >&6; }
5088: ac_preproc_ok=false
5089: for ac_c_preproc_warn_flag in '' yes
1.14 bertrand 5090: do
1.15 bertrand 5091: # Use a header file that comes with gcc, so configuring glibc
5092: # with a fresh cross-compiler works.
5093: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094: # <limits.h> exists even on freestanding compilers.
5095: # On the NeXT, cc -E runs the code through the compiler's parser,
5096: # not just through cpp. "Syntax error" is here to catch this case.
5097: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098: /* end confdefs.h. */
5099: #ifdef __STDC__
5100: # include <limits.h>
5101: #else
5102: # include <assert.h>
5103: #endif
5104: Syntax error
5105: _ACEOF
5106: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 bertrand 5107:
1.15 bertrand 5108: else
5109: # Broken: fails on valid input.
5110: continue
5111: fi
1.36 bertrand 5112: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5113:
1.15 bertrand 5114: # OK, works on sane cases. Now check whether nonexistent headers
5115: # can be detected and how.
5116: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117: /* end confdefs.h. */
5118: #include <ac_nonexistent.h>
5119: _ACEOF
5120: if ac_fn_c_try_cpp "$LINENO"; then :
5121: # Broken: success on invalid input.
5122: continue
5123: else
5124: # Passes both tests.
5125: ac_preproc_ok=:
5126: break
5127: fi
1.36 bertrand 5128: rm -f conftest.err conftest.i conftest.$ac_ext
1.1 bertrand 5129:
5130: done
1.15 bertrand 5131: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
1.36 bertrand 5132: rm -f conftest.i conftest.err conftest.$ac_ext
1.15 bertrand 5133: if $ac_preproc_ok; then :
1.1 bertrand 5134:
1.15 bertrand 5135: else
5136: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5137: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 5138: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5139: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 5140: fi
1.14 bertrand 5141:
1.15 bertrand 5142: ac_ext=c
5143: ac_cpp='$CPP $CPPFLAGS'
5144: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14 bertrand 5147:
5148:
1.15 bertrand 5149: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5150: $as_echo_n "checking for X... " >&6; }
1.1 bertrand 5151:
5152:
1.15 bertrand 5153: # Check whether --with-x was given.
5154: if test "${with_x+set}" = set; then :
5155: withval=$with_x;
1.1 bertrand 5156: fi
1.14 bertrand 5157:
1.15 bertrand 5158: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5159: if test "x$with_x" = xno; then
5160: # The user explicitly disabled X.
5161: have_x=disabled
1.1 bertrand 5162: else
1.15 bertrand 5163: case $x_includes,$x_libraries in #(
1.36 bertrand 5164: *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
1.15 bertrand 5165: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5166: $as_echo_n "(cached) " >&6
1.1 bertrand 5167: else
1.15 bertrand 5168: # One or both of the vars are not set, and there is no cached value.
5169: ac_x_includes=no ac_x_libraries=no
5170: rm -f -r conftest.dir
5171: if mkdir conftest.dir; then
5172: cd conftest.dir
5173: cat >Imakefile <<'_ACEOF'
5174: incroot:
5175: @echo incroot='${INCROOT}'
5176: usrlibdir:
5177: @echo usrlibdir='${USRLIBDIR}'
5178: libdir:
5179: @echo libdir='${LIBDIR}'
5180: _ACEOF
5181: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1.36 bertrand 5182: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 5183: for ac_var in incroot usrlibdir libdir; do
5184: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5185: done
5186: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5187: for ac_extension in a so sl dylib la dll; do
5188: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5189: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5190: ac_im_usrlibdir=$ac_im_libdir; break
5191: fi
5192: done
5193: # Screen out bogus values from the imake configuration. They are
5194: # bogus both because they are the default anyway, and because
5195: # using them would break gcc on systems where it needs fixed includes.
5196: case $ac_im_incroot in
5197: /usr/include) ac_x_includes= ;;
5198: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5199: esac
5200: case $ac_im_usrlibdir in
5201: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5202: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5203: esac
5204: fi
5205: cd ..
5206: rm -f -r conftest.dir
5207: fi
5208:
5209: # Standard set of common directories for X headers.
5210: # Check X11 before X11Rn because it is often a symlink to the current release.
5211: ac_x_header_dirs='
5212: /usr/X11/include
5213: /usr/X11R7/include
5214: /usr/X11R6/include
5215: /usr/X11R5/include
5216: /usr/X11R4/include
1.1 bertrand 5217:
1.15 bertrand 5218: /usr/include/X11
5219: /usr/include/X11R7
5220: /usr/include/X11R6
5221: /usr/include/X11R5
5222: /usr/include/X11R4
1.1 bertrand 5223:
1.15 bertrand 5224: /usr/local/X11/include
5225: /usr/local/X11R7/include
5226: /usr/local/X11R6/include
5227: /usr/local/X11R5/include
5228: /usr/local/X11R4/include
1.1 bertrand 5229:
1.15 bertrand 5230: /usr/local/include/X11
5231: /usr/local/include/X11R7
5232: /usr/local/include/X11R6
5233: /usr/local/include/X11R5
5234: /usr/local/include/X11R4
1.1 bertrand 5235:
1.15 bertrand 5236: /usr/X386/include
5237: /usr/x386/include
5238: /usr/XFree86/include/X11
1.1 bertrand 5239:
1.15 bertrand 5240: /usr/include
5241: /usr/local/include
5242: /usr/unsupported/include
5243: /usr/athena/include
5244: /usr/local/x11r5/include
5245: /usr/lpp/Xamples/include
1.1 bertrand 5246:
1.15 bertrand 5247: /usr/openwin/include
5248: /usr/openwin/share/include'
1.1 bertrand 5249:
1.15 bertrand 5250: if test "$ac_x_includes" = no; then
5251: # Guess where to find include files, by looking for Xlib.h.
5252: # First, try using that file with no special directory specified.
5253: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5254: /* end confdefs.h. */
5255: #include <X11/Xlib.h>
5256: _ACEOF
5257: if ac_fn_c_try_cpp "$LINENO"; then :
5258: # We can compile using X headers with no special include directory.
5259: ac_x_includes=
1.1 bertrand 5260: else
1.15 bertrand 5261: for ac_dir in $ac_x_header_dirs; do
5262: if test -r "$ac_dir/X11/Xlib.h"; then
5263: ac_x_includes=$ac_dir
5264: break
5265: fi
5266: done
1.1 bertrand 5267: fi
1.36 bertrand 5268: rm -f conftest.err conftest.i conftest.$ac_ext
1.15 bertrand 5269: fi # $ac_x_includes = no
1.1 bertrand 5270:
1.15 bertrand 5271: if test "$ac_x_libraries" = no; then
5272: # Check for the libraries.
5273: # See if we find them without any special options.
5274: # Don't add to $LIBS permanently.
5275: ac_save_LIBS=$LIBS
5276: LIBS="-lX11 $LIBS"
5277: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5278: /* end confdefs.h. */
1.15 bertrand 5279: #include <X11/Xlib.h>
1.14 bertrand 5280: int
5281: main ()
5282: {
1.15 bertrand 5283: XrmInitialize ()
1.14 bertrand 5284: ;
5285: return 0;
5286: }
1.1 bertrand 5287: _ACEOF
1.15 bertrand 5288: if ac_fn_c_try_link "$LINENO"; then :
5289: LIBS=$ac_save_LIBS
5290: # We can link X programs with no special library path.
5291: ac_x_libraries=
1.1 bertrand 5292: else
1.15 bertrand 5293: LIBS=$ac_save_LIBS
5294: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5295: do
5296: # Don't even attempt the hair of trying to link an X program!
5297: for ac_extension in a so sl dylib la dll; do
5298: if test -r "$ac_dir/libX11.$ac_extension"; then
5299: ac_x_libraries=$ac_dir
5300: break 2
5301: fi
5302: done
5303: done
5304: fi
5305: rm -f core conftest.err conftest.$ac_objext \
5306: conftest$ac_exeext conftest.$ac_ext
5307: fi # $ac_x_libraries = no
1.1 bertrand 5308:
1.15 bertrand 5309: case $ac_x_includes,$ac_x_libraries in #(
5310: no,* | *,no | *\'*)
5311: # Didn't find X, or a directory has "'" in its name.
5312: ac_cv_have_x="have_x=no";; #(
5313: *)
5314: # Record where we found X for the cache.
5315: ac_cv_have_x="have_x=yes\
5316: ac_x_includes='$ac_x_includes'\
5317: ac_x_libraries='$ac_x_libraries'"
5318: esac
1.1 bertrand 5319: fi
1.15 bertrand 5320: ;; #(
5321: *) have_x=yes;;
5322: esac
5323: eval "$ac_cv_have_x"
5324: fi # $with_x != no
1.1 bertrand 5325:
1.15 bertrand 5326: if test "$have_x" != yes; then
5327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5328: $as_echo "$have_x" >&6; }
5329: no_x=yes
1.14 bertrand 5330: else
1.15 bertrand 5331: # If each of the values was on the command line, it overrides each guess.
5332: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5333: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5334: # Update the cache value to reflect the command line values.
5335: ac_cv_have_x="have_x=yes\
5336: ac_x_includes='$x_includes'\
5337: ac_x_libraries='$x_libraries'"
5338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5339: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14 bertrand 5340: fi
1.1 bertrand 5341:
1.15 bertrand 5342: if test "$no_x" = yes; then
5343: # Not all programs may use this symbol, but it does not hurt to define it.
1.1 bertrand 5344:
1.15 bertrand 5345: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14 bertrand 5346:
1.15 bertrand 5347: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1 bertrand 5348: else
1.15 bertrand 5349: if test -n "$x_includes"; then
5350: X_CFLAGS="$X_CFLAGS -I$x_includes"
5351: fi
5352:
5353: # It would also be nice to do this for all -L options, not just this one.
5354: if test -n "$x_libraries"; then
5355: X_LIBS="$X_LIBS -L$x_libraries"
5356: # For Solaris; some versions of Sun CC require a space after -R and
5357: # others require no space. Words are not sufficient . . . .
5358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5359: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5360: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5361: ac_xsave_c_werror_flag=$ac_c_werror_flag
5362: ac_c_werror_flag=yes
5363: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364: /* end confdefs.h. */
1.1 bertrand 5365:
1.15 bertrand 5366: int
5367: main ()
5368: {
1.1 bertrand 5369:
1.15 bertrand 5370: ;
5371: return 0;
5372: }
5373: _ACEOF
5374: if ac_fn_c_try_link "$LINENO"; then :
5375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376: $as_echo "no" >&6; }
5377: X_LIBS="$X_LIBS -R$x_libraries"
1.1 bertrand 5378: else
1.15 bertrand 5379: LIBS="$ac_xsave_LIBS -R $x_libraries"
5380: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5381: /* end confdefs.h. */
1.1 bertrand 5382:
1.14 bertrand 5383: int
5384: main ()
5385: {
1.15 bertrand 5386:
5387: ;
1.14 bertrand 5388: return 0;
5389: }
5390: _ACEOF
1.15 bertrand 5391: if ac_fn_c_try_link "$LINENO"; then :
5392: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5393: $as_echo "yes" >&6; }
5394: X_LIBS="$X_LIBS -R $x_libraries"
1.14 bertrand 5395: else
1.15 bertrand 5396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5397: $as_echo "neither works" >&6; }
1.14 bertrand 5398: fi
1.15 bertrand 5399: rm -f core conftest.err conftest.$ac_objext \
5400: conftest$ac_exeext conftest.$ac_ext
1.14 bertrand 5401: fi
1.15 bertrand 5402: rm -f core conftest.err conftest.$ac_objext \
5403: conftest$ac_exeext conftest.$ac_ext
5404: ac_c_werror_flag=$ac_xsave_c_werror_flag
5405: LIBS=$ac_xsave_LIBS
5406: fi
1.1 bertrand 5407:
1.15 bertrand 5408: # Check for system-dependent libraries X programs must link with.
5409: # Do this before checking for the system-independent R6 libraries
5410: # (-lICE), since we may need -lsocket or whatever for X linking.
1.1 bertrand 5411:
1.15 bertrand 5412: if test "$ISC" = yes; then
5413: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5414: else
5415: # Martyn Johnson says this is needed for Ultrix, if the X
5416: # libraries were built with DECnet support. And Karl Berry says
5417: # the Alpha needs dnet_stub (dnet does not exist).
5418: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5419: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420: /* end confdefs.h. */
1.1 bertrand 5421:
1.15 bertrand 5422: /* Override any GCC internal prototype to avoid an error.
5423: Use char because int might match the return type of a GCC
5424: builtin and then its argument prototype would still apply. */
5425: #ifdef __cplusplus
5426: extern "C"
5427: #endif
5428: char XOpenDisplay ();
5429: int
5430: main ()
5431: {
5432: return XOpenDisplay ();
5433: ;
5434: return 0;
5435: }
1.1 bertrand 5436: _ACEOF
1.15 bertrand 5437: if ac_fn_c_try_link "$LINENO"; then :
1.14 bertrand 5438:
5439: else
1.15 bertrand 5440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5441: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5442: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5443: $as_echo_n "(cached) " >&6
5444: else
5445: ac_check_lib_save_LIBS=$LIBS
5446: LIBS="-ldnet $LIBS"
5447: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5448: /* end confdefs.h. */
1.14 bertrand 5449:
1.15 bertrand 5450: /* Override any GCC internal prototype to avoid an error.
5451: Use char because int might match the return type of a GCC
5452: builtin and then its argument prototype would still apply. */
5453: #ifdef __cplusplus
5454: extern "C"
5455: #endif
5456: char dnet_ntoa ();
5457: int
5458: main ()
5459: {
5460: return dnet_ntoa ();
5461: ;
5462: return 0;
5463: }
1.1 bertrand 5464: _ACEOF
1.15 bertrand 5465: if ac_fn_c_try_link "$LINENO"; then :
5466: ac_cv_lib_dnet_dnet_ntoa=yes
1.1 bertrand 5467: else
1.15 bertrand 5468: ac_cv_lib_dnet_dnet_ntoa=no
1.14 bertrand 5469: fi
1.15 bertrand 5470: rm -f core conftest.err conftest.$ac_objext \
5471: conftest$ac_exeext conftest.$ac_ext
5472: LIBS=$ac_check_lib_save_LIBS
1.14 bertrand 5473: fi
1.15 bertrand 5474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5475: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5476: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5477: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14 bertrand 5478: fi
5479:
1.15 bertrand 5480: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5482: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5483: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5484: $as_echo_n "(cached) " >&6
1.14 bertrand 5485: else
1.15 bertrand 5486: ac_check_lib_save_LIBS=$LIBS
5487: LIBS="-ldnet_stub $LIBS"
5488: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5489: /* end confdefs.h. */
1.15 bertrand 5490:
5491: /* Override any GCC internal prototype to avoid an error.
5492: Use char because int might match the return type of a GCC
5493: builtin and then its argument prototype would still apply. */
5494: #ifdef __cplusplus
5495: extern "C"
5496: #endif
5497: char dnet_ntoa ();
1.1 bertrand 5498: int
5499: main ()
5500: {
1.15 bertrand 5501: return dnet_ntoa ();
1.1 bertrand 5502: ;
5503: return 0;
5504: }
5505: _ACEOF
1.15 bertrand 5506: if ac_fn_c_try_link "$LINENO"; then :
5507: ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14 bertrand 5508: else
1.15 bertrand 5509: ac_cv_lib_dnet_stub_dnet_ntoa=no
5510: fi
5511: rm -f core conftest.err conftest.$ac_objext \
5512: conftest$ac_exeext conftest.$ac_ext
5513: LIBS=$ac_check_lib_save_LIBS
5514: fi
5515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5516: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5517: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5518: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5519: fi
1.14 bertrand 5520:
1.15 bertrand 5521: fi
1.1 bertrand 5522: fi
1.15 bertrand 5523: rm -f core conftest.err conftest.$ac_objext \
5524: conftest$ac_exeext conftest.$ac_ext
5525: LIBS="$ac_xsave_LIBS"
5526:
5527: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5528: # to get the SysV transport functions.
5529: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5530: # needs -lnsl.
5531: # The nsl library prevents programs from opening the X display
5532: # on Irix 5.2, according to T.E. Dickey.
5533: # The functions gethostbyname, getservbyname, and inet_addr are
5534: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5535: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5536: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
1.1 bertrand 5537:
5538: fi
5539:
1.15 bertrand 5540: if test $ac_cv_func_gethostbyname = no; then
5541: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5542: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5543: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5544: $as_echo_n "(cached) " >&6
1.1 bertrand 5545: else
1.15 bertrand 5546: ac_check_lib_save_LIBS=$LIBS
5547: LIBS="-lnsl $LIBS"
5548: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5549: /* end confdefs.h. */
1.15 bertrand 5550:
5551: /* Override any GCC internal prototype to avoid an error.
5552: Use char because int might match the return type of a GCC
5553: builtin and then its argument prototype would still apply. */
5554: #ifdef __cplusplus
5555: extern "C"
5556: #endif
5557: char gethostbyname ();
1.1 bertrand 5558: int
5559: main ()
5560: {
1.15 bertrand 5561: return gethostbyname ();
1.1 bertrand 5562: ;
5563: return 0;
5564: }
5565: _ACEOF
1.15 bertrand 5566: if ac_fn_c_try_link "$LINENO"; then :
5567: ac_cv_lib_nsl_gethostbyname=yes
5568: else
5569: ac_cv_lib_nsl_gethostbyname=no
5570: fi
5571: rm -f core conftest.err conftest.$ac_objext \
5572: conftest$ac_exeext conftest.$ac_ext
5573: LIBS=$ac_check_lib_save_LIBS
5574: fi
5575: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5576: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5577: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5578: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5579: fi
5580:
5581: if test $ac_cv_lib_nsl_gethostbyname = no; then
5582: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5583: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5584: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5585: $as_echo_n "(cached) " >&6
5586: else
5587: ac_check_lib_save_LIBS=$LIBS
5588: LIBS="-lbsd $LIBS"
5589: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5590: /* end confdefs.h. */
1.15 bertrand 5591:
5592: /* Override any GCC internal prototype to avoid an error.
5593: Use char because int might match the return type of a GCC
5594: builtin and then its argument prototype would still apply. */
5595: #ifdef __cplusplus
5596: extern "C"
5597: #endif
5598: char gethostbyname ();
1.1 bertrand 5599: int
5600: main ()
5601: {
1.15 bertrand 5602: return gethostbyname ();
1.1 bertrand 5603: ;
5604: return 0;
5605: }
5606: _ACEOF
1.15 bertrand 5607: if ac_fn_c_try_link "$LINENO"; then :
5608: ac_cv_lib_bsd_gethostbyname=yes
1.1 bertrand 5609: else
1.15 bertrand 5610: ac_cv_lib_bsd_gethostbyname=no
5611: fi
5612: rm -f core conftest.err conftest.$ac_objext \
5613: conftest$ac_exeext conftest.$ac_ext
5614: LIBS=$ac_check_lib_save_LIBS
5615: fi
5616: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5617: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5618: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5619: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5620: fi
5621:
5622: fi
5623: fi
5624:
5625: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5626: # socket/setsockopt and other routines are undefined under SCO ODT
5627: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5628: # on later versions), says Simon Leinen: it contains gethostby*
5629: # variants that don't use the name server (or something). -lsocket
5630: # must be given before -lnsl if both are needed. We assume that
5631: # if connect needs -lnsl, so does gethostbyname.
5632: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5633: if test "x$ac_cv_func_connect" = x""yes; then :
1.14 bertrand 5634:
1.1 bertrand 5635: fi
5636:
1.15 bertrand 5637: if test $ac_cv_func_connect = no; then
5638: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5639: $as_echo_n "checking for connect in -lsocket... " >&6; }
5640: if test "${ac_cv_lib_socket_connect+set}" = set; then :
5641: $as_echo_n "(cached) " >&6
1.14 bertrand 5642: else
1.15 bertrand 5643: ac_check_lib_save_LIBS=$LIBS
5644: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5645: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646: /* end confdefs.h. */
1.1 bertrand 5647:
1.15 bertrand 5648: /* Override any GCC internal prototype to avoid an error.
5649: Use char because int might match the return type of a GCC
5650: builtin and then its argument prototype would still apply. */
5651: #ifdef __cplusplus
5652: extern "C"
5653: #endif
5654: char connect ();
1.14 bertrand 5655: int
5656: main ()
5657: {
1.15 bertrand 5658: return connect ();
1.14 bertrand 5659: ;
5660: return 0;
5661: }
5662: _ACEOF
1.15 bertrand 5663: if ac_fn_c_try_link "$LINENO"; then :
5664: ac_cv_lib_socket_connect=yes
5665: else
5666: ac_cv_lib_socket_connect=no
5667: fi
5668: rm -f core conftest.err conftest.$ac_objext \
5669: conftest$ac_exeext conftest.$ac_ext
5670: LIBS=$ac_check_lib_save_LIBS
5671: fi
5672: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5673: $as_echo "$ac_cv_lib_socket_connect" >&6; }
5674: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
5675: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5676: fi
5677:
5678: fi
5679:
5680: # Guillermo Gomez says -lposix is necessary on A/UX.
5681: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5682: if test "x$ac_cv_func_remove" = x""yes; then :
5683:
5684: fi
5685:
5686: if test $ac_cv_func_remove = no; then
5687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5688: $as_echo_n "checking for remove in -lposix... " >&6; }
5689: if test "${ac_cv_lib_posix_remove+set}" = set; then :
5690: $as_echo_n "(cached) " >&6
5691: else
5692: ac_check_lib_save_LIBS=$LIBS
5693: LIBS="-lposix $LIBS"
5694: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5695: /* end confdefs.h. */
1.15 bertrand 5696:
5697: /* Override any GCC internal prototype to avoid an error.
5698: Use char because int might match the return type of a GCC
5699: builtin and then its argument prototype would still apply. */
5700: #ifdef __cplusplus
5701: extern "C"
5702: #endif
5703: char remove ();
1.1 bertrand 5704: int
5705: main ()
5706: {
1.15 bertrand 5707: return remove ();
1.1 bertrand 5708: ;
5709: return 0;
5710: }
5711: _ACEOF
1.15 bertrand 5712: if ac_fn_c_try_link "$LINENO"; then :
5713: ac_cv_lib_posix_remove=yes
1.14 bertrand 5714: else
1.15 bertrand 5715: ac_cv_lib_posix_remove=no
5716: fi
5717: rm -f core conftest.err conftest.$ac_objext \
5718: conftest$ac_exeext conftest.$ac_ext
5719: LIBS=$ac_check_lib_save_LIBS
5720: fi
5721: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5722: $as_echo "$ac_cv_lib_posix_remove" >&6; }
5723: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
5724: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14 bertrand 5725: fi
1.1 bertrand 5726:
1.15 bertrand 5727: fi
1.14 bertrand 5728:
1.15 bertrand 5729: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5730: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5731: if test "x$ac_cv_func_shmat" = x""yes; then :
1.14 bertrand 5732:
5733: fi
5734:
1.15 bertrand 5735: if test $ac_cv_func_shmat = no; then
5736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5737: $as_echo_n "checking for shmat in -lipc... " >&6; }
5738: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
5739: $as_echo_n "(cached) " >&6
5740: else
5741: ac_check_lib_save_LIBS=$LIBS
5742: LIBS="-lipc $LIBS"
5743: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5744: /* end confdefs.h. */
1.15 bertrand 5745:
5746: /* Override any GCC internal prototype to avoid an error.
5747: Use char because int might match the return type of a GCC
5748: builtin and then its argument prototype would still apply. */
5749: #ifdef __cplusplus
5750: extern "C"
5751: #endif
5752: char shmat ();
1.1 bertrand 5753: int
5754: main ()
5755: {
1.15 bertrand 5756: return shmat ();
1.1 bertrand 5757: ;
5758: return 0;
5759: }
5760: _ACEOF
1.15 bertrand 5761: if ac_fn_c_try_link "$LINENO"; then :
5762: ac_cv_lib_ipc_shmat=yes
1.1 bertrand 5763: else
1.15 bertrand 5764: ac_cv_lib_ipc_shmat=no
5765: fi
5766: rm -f core conftest.err conftest.$ac_objext \
5767: conftest$ac_exeext conftest.$ac_ext
5768: LIBS=$ac_check_lib_save_LIBS
5769: fi
5770: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5771: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5772: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
5773: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5774: fi
1.14 bertrand 5775:
1.15 bertrand 5776: fi
5777: fi
1.1 bertrand 5778:
1.15 bertrand 5779: # Check for libraries that X11R6 Xt/Xaw programs need.
5780: ac_save_LDFLAGS=$LDFLAGS
5781: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5782: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5783: # check for ICE first), but we must link in the order -lSM -lICE or
5784: # we get undefined symbols. So assume we have SM if we have ICE.
5785: # These have to be linked with before -lX11, unlike the other
5786: # libraries we check for below, so use a different variable.
5787: # John Interrante, Karl Berry
5788: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5789: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5790: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5791: $as_echo_n "(cached) " >&6
1.1 bertrand 5792: else
1.15 bertrand 5793: ac_check_lib_save_LIBS=$LIBS
5794: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5795: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5796: /* end confdefs.h. */
1.15 bertrand 5797:
5798: /* Override any GCC internal prototype to avoid an error.
5799: Use char because int might match the return type of a GCC
5800: builtin and then its argument prototype would still apply. */
5801: #ifdef __cplusplus
5802: extern "C"
5803: #endif
5804: char IceConnectionNumber ();
1.1 bertrand 5805: int
5806: main ()
5807: {
1.15 bertrand 5808: return IceConnectionNumber ();
1.1 bertrand 5809: ;
5810: return 0;
5811: }
5812: _ACEOF
1.15 bertrand 5813: if ac_fn_c_try_link "$LINENO"; then :
5814: ac_cv_lib_ICE_IceConnectionNumber=yes
1.1 bertrand 5815: else
1.15 bertrand 5816: ac_cv_lib_ICE_IceConnectionNumber=no
5817: fi
5818: rm -f core conftest.err conftest.$ac_objext \
5819: conftest$ac_exeext conftest.$ac_ext
5820: LIBS=$ac_check_lib_save_LIBS
5821: fi
5822: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5823: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5824: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5825: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5826: fi
5827:
5828: LDFLAGS=$ac_save_LDFLAGS
5829:
5830: fi
5831:
1.14 bertrand 5832:
1.15 bertrand 5833: if test "$ac_x_includes" != "no"; then
5834: if test x"$ac_x_includes" != x; then
5835: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5836: includeX="-I$ac_x_includes"
5837: fi
1.1 bertrand 5838: fi
1.15 bertrand 5839: if test "$ac_x_libraries" != "no"; then
5840: if test x"$ac_x_libraries" != x; then
5841: X_LIBS="$X_LIBS -L$ac_x_libraries"
5842: fi
1.1 bertrand 5843: fi
1.15 bertrand 5844:
5845: # Check whether --enable-optimization was given.
5846: if test "${enable_optimization+set}" = set; then :
5847: enableval=$enable_optimization;
5848: if test "$enableval" = "no"; then
5849: CFLAGS=
5850: FFLAGS=
5851: CXXFLAGS=
5852: FCFLAGS=
5853: else
5854: CFLAGS="$CFLAGS $enable_optimization"
5855: FFLAGS="$FFLAGS $enable_optimization"
5856: FCFLAGS="$FCFLAGS $enable_optimization"
1.1 bertrand 5857: fi
1.15 bertrand 5858: else
1.14 bertrand 5859:
1.15 bertrand 5860: CFLAGS="$CFLAGS $OPTIMISATION_C"
5861: FFLAGS="$FFLAGS $OPTIMISATION_F"
5862: FCFLAGS="$FCFLAGS $OPTIMISATION_F"
1.1 bertrand 5863:
5864:
1.15 bertrand 5865: fi
1.1 bertrand 5866:
5867:
1.36 bertrand 5868: # Check whether --enable-sysv-semaphores was given.
5869: if test "${enable_sysv_semaphores+set}" = set; then :
5870: enableval=$enable_sysv_semaphores;
5871: if test "$enableval" = "no"; then
5872: IPCS_SYSV=no
5873: else
5874: IPCS_SYSV=yes
5875: fi
5876: else
5877: IPCS_SYSV=no
5878: fi
5879:
5880:
1.30 bertrand 5881: # Check whether --enable-full-static was given.
5882: if test "${enable_full_static+set}" = set; then :
5883: enableval=$enable_full_static;
5884: if test "$enableval" = "no"; then
5885: STATIC=no
5886: else
5887: STATIC=yes
5888: fi
5889: else
5890: STATIC=no
5891: fi
5892:
5893:
1.15 bertrand 5894: # Check whether --enable-final-encoding was given.
5895: if test "${enable_final_encoding+set}" = set; then :
5896: enableval=$enable_final_encoding;
5897: if test "$enableval" = "no"; then
5898: FINAL_ENCODING="\$(shell locale charmap | \
5899: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.35 bertrand 5900: FORCED_FINAL_ENCODING=0
1.1 bertrand 5901: else
1.15 bertrand 5902: FINAL_ENCODING="$enable_final_encoding"
1.35 bertrand 5903: FORCED_FINAL_ENCODING=1
1.15 bertrand 5904: fi
1.1 bertrand 5905: else
1.35 bertrand 5906:
5907: FORCED_FINAL_ENCODING=0
5908: FINAL_ENCODING="\$(shell locale charmap | \
1.15 bertrand 5909: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
5910: fi
5911:
1.14 bertrand 5912:
1.15 bertrand 5913: # Check whether --enable-tex was given.
5914: if test "${enable_tex+set}" = set; then :
5915: enableval=$enable_tex;
5916: if test "$enableval" = "no"; then
5917: TEX_SUPPORT=no
5918: else
5919: TEX_SUPPORT=yes
1.1 bertrand 5920: fi
1.15 bertrand 5921: else
5922: TEX_SUPPORT=guessed
5923: fi
5924:
1.14 bertrand 5925:
1.15 bertrand 5926: # Check whether --enable-vim was given.
5927: if test "${enable_vim+set}" = set; then :
5928: enableval=$enable_vim;
5929: if test "$enableval" = "no"; then
5930: VIM_SUPPORT=no
5931: else
5932: VIM_SUPPORT=yes
5933: fi
5934: else
5935: VIM_SUPPORT=guessed
1.1 bertrand 5936: fi
5937:
1.15 bertrand 5938:
5939: # Check whether --enable-embedded-gnuplot was given.
5940: if test "${enable_embedded_gnuplot+set}" = set; then :
5941: enableval=$enable_embedded_gnuplot;
5942: if test "$enableval" = "no"; then
5943: MYGNUPLOT=no
5944: else
5945: MYGNUPLOT=yes
5946: fi
1.1 bertrand 5947: else
5948:
1.15 bertrand 5949: MYGNUPLOT=yes
5950: fi
5951:
1.14 bertrand 5952:
1.15 bertrand 5953: # Check whether --enable-gnuplot was given.
5954: if test "${enable_gnuplot+set}" = set; then :
5955: enableval=$enable_gnuplot;
5956: if test "$enableval" = "no"; then
5957: GNUPLOT_SUPPORT=no
5958: MYGNUPLOT=no
5959: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5960: else
5961: GNUPLOT_SUPPORT=yes
5962: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5963: fi
1.1 bertrand 5964: else
5965:
1.15 bertrand 5966: if test "$MYGNUPLOT" = "yes"; then
5967: GNUPLOT_SUPPORT=yes
5968: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5969: else
5970: GNUPLOT_SUPPORT=guessed
5971: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5972: fi
1.1 bertrand 5973: fi
5974:
1.15 bertrand 5975:
5976: # Check whether --enable-motif was given.
5977: if test "${enable_motif+set}" = set; then :
5978: enableval=$enable_motif;
5979: if test "$enableval" = "no"; then
5980: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5981: else
5982: CFLAGS_ORIG=$CFLAGS
5983: LIBS_ORIG=$LIBS
5984: CFLAGS="$CFLAGS $X_CFLAGS"
5985: LIBS="$LIB $X_LIBS"
5986: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
5987: $as_echo_n "checking for main in -lXm... " >&6; }
5988: if test "${ac_cv_lib_Xm_main+set}" = set; then :
5989: $as_echo_n "(cached) " >&6
1.1 bertrand 5990: else
1.15 bertrand 5991: ac_check_lib_save_LIBS=$LIBS
5992: LIBS="-lXm $LIBS"
5993: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994: /* end confdefs.h. */
1.14 bertrand 5995:
5996:
1.1 bertrand 5997: int
5998: main ()
5999: {
1.15 bertrand 6000: return main ();
1.1 bertrand 6001: ;
6002: return 0;
6003: }
6004: _ACEOF
1.15 bertrand 6005: if ac_fn_c_try_link "$LINENO"; then :
6006: ac_cv_lib_Xm_main=yes
6007: else
6008: ac_cv_lib_Xm_main=no
6009: fi
6010: rm -f core conftest.err conftest.$ac_objext \
6011: conftest$ac_exeext conftest.$ac_ext
6012: LIBS=$ac_check_lib_save_LIBS
6013: fi
6014: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6015: $as_echo "$ac_cv_lib_Xm_main" >&6; }
6016: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
6017: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1 bertrand 6018: else
1.15 bertrand 6019: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6020: fi
1.14 bertrand 6021:
1.15 bertrand 6022: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6023: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
6024: Motif flag is disabled.
6025: " >&5
6026: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
6027: Motif flag is disabled.
6028: " >&2;}
6029: fi
6030: LIBS=$LIBS_ORIG
6031: CFLAGS=$CFLAGS_ORIG
6032: fi
6033: else
6034: MOTIF_SUPPORT=guessed
1.1 bertrand 6035: fi
6036:
1.15 bertrand 6037:
6038: # Check whether --enable-experimental was given.
6039: if test "${enable_experimental+set}" = set; then :
6040: enableval=$enable_experimental;
6041: if test "$enableval" = "no"; then
6042: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6043: else
6044: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
6045: fi
1.14 bertrand 6046: else
1.15 bertrand 6047: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6048: fi
6049:
1.1 bertrand 6050:
1.15 bertrand 6051: # Check whether --enable-debug was given.
6052: if test "${enable_debug+set}" = set; then :
6053: enableval=$enable_debug;
6054: if test "$enableval" = "no"; then
1.24 bertrand 6055: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
6056: MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"
1.15 bertrand 6057: else
1.24 bertrand 6058: DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
6059: MALLOC=""
1.15 bertrand 6060: fi
6061: else
1.24 bertrand 6062: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
6063: MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"
1.14 bertrand 6064: fi
1.1 bertrand 6065:
1.15 bertrand 6066:
6067: # Check whether --enable-profile was given.
6068: if test "${enable_profile+set}" = set; then :
6069: enableval=$enable_profile;
6070: if test "$enableval" = "no"; then
6071: PROFILAGE=""
6072: else
6073: PROFILAGE="-pg"
6074: fi
6075: else
6076: PROFILAGE=""
1.1 bertrand 6077: fi
6078:
1.14 bertrand 6079:
6080:
1.15 bertrand 6081:
6082: if test ! -d tools; then
6083: mkdir tools
6084: fi
6085: if test ! -d "$srcdir"/tools/$NCURSES; then
6086: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6087: (cd "$srcdir/tools" && tar -xf -)
6088: fi
6089: if test ! -d "$srcdir"/tools/$READLINE; then
6090: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6091: (cd "$srcdir/tools" && tar -xf -)
6092: fi
6093: if test ! -d "$srcdir"/tools/$UNITS; then
6094: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6095: (cd "$srcdir/tools" && tar -xf -)
6096: fi
6097: if test ! -d "$srcdir"/tools/$GSL; then
6098: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6099: (cd "$srcdir/tools" && tar -xf -)
1.33 bertrand 6100: if test $(uname) = "OS/2"; then
6101: (cd "$srcdir"/tools/$GSL; \
6102: TMP=$(mktemp tmp.XXXXXXXXXX); \
6103: sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
6104: \mv -f $TMP ltmain.sh)
6105: fi
1.15 bertrand 6106: fi
6107: if test ! -d "$srcdir"/tools/$GPP; then
6108: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6109: (cd "$srcdir/tools" && tar -xf -)
6110: fi
6111: if test ! -d "$srcdir"/tools/$FILE; then
6112: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
6113: (cd "$srcdir/tools" && tar -xf - )
6114: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
6115: fi
6116: if test ! -d "$srcdir"/tools/$ICONV; then
6117: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6118: (cd "$srcdir/tools" && tar -xf -)
6119: fi
6120: if test ! -d "$srcdir"/tools/$SQLITE; then
6121: gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
6122: (cd "$srcdir/tools" && tar -xf -)
1.31 bertrand 6123: (cd "$srcdir/tools"/$SQLITE && gunzip -c ../$SQLITE.diff.gz | patch -p1)
1.15 bertrand 6124: fi
6125: if test ! -d tools/$OPENSSL; then
6126: gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
6127: (cd tools && tar -xf -)
1.1 bertrand 6128: fi
6129:
6130:
6131:
1.15 bertrand 6132: # Check whether --enable-final-run-path was given.
6133: if test "${enable_final_run_path+set}" = set; then :
6134: enableval=$enable_final_run_path;
6135: if test "x$enable_final_run_path" = "x"; then
6136: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6137: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
1.36 bertrand 6138: as_fn_error $? "\"You should specify final path !\"" "$LINENO" 5
1.15 bertrand 6139: else
6140: RUNPATH="$enable_final_run_path"
6141: fi
1.1 bertrand 6142:
6143: else
1.15 bertrand 6144: RUNPATH="\${prefix}"
1.1 bertrand 6145:
6146: fi
6147:
1.15 bertrand 6148:
6149:
6150:
6151: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6152: $as_echo_n "checking whether ln -s works... " >&6; }
6153: LN_S=$as_ln_s
6154: if test "$LN_S" = "ln -s"; then
6155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6156: $as_echo "yes" >&6; }
6157: else
6158: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6159: $as_echo "no, using $LN_S" >&6; }
1.1 bertrand 6160: fi
6161:
1.15 bertrand 6162: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6163: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6164: set x ${MAKE-make}
6165: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1.36 bertrand 6166: if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
1.15 bertrand 6167: $as_echo_n "(cached) " >&6
1.1 bertrand 6168: else
1.15 bertrand 6169: cat >conftest.make <<\_ACEOF
6170: SHELL = /bin/sh
6171: all:
6172: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14 bertrand 6173: _ACEOF
1.36 bertrand 6174: # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
1.15 bertrand 6175: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6176: *@@@%%%=?*=@@@%%%*)
6177: eval ac_cv_prog_make_${ac_make}_set=yes;;
6178: *)
6179: eval ac_cv_prog_make_${ac_make}_set=no;;
1.14 bertrand 6180: esac
1.15 bertrand 6181: rm -f conftest.make
6182: fi
6183: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6184: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6185: $as_echo "yes" >&6; }
6186: SET_MAKE=
6187: else
6188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189: $as_echo "no" >&6; }
6190: SET_MAKE="MAKE=${MAKE-make}"
6191: fi
1.1 bertrand 6192:
1.15 bertrand 6193: if test -n "$ac_tool_prefix"; then
6194: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6195: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6196: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197: $as_echo_n "checking for $ac_word... " >&6; }
6198: if test "${ac_cv_prog_RANLIB+set}" = set; then :
6199: $as_echo_n "(cached) " >&6
6200: else
6201: if test -n "$RANLIB"; then
6202: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 bertrand 6203: else
1.15 bertrand 6204: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205: for as_dir in $PATH
6206: do
6207: IFS=$as_save_IFS
6208: test -z "$as_dir" && as_dir=.
6209: for ac_exec_ext in '' $ac_executable_extensions; do
6210: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6212: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213: break 2
6214: fi
6215: done
6216: done
6217: IFS=$as_save_IFS
1.1 bertrand 6218:
6219: fi
1.15 bertrand 6220: fi
6221: RANLIB=$ac_cv_prog_RANLIB
6222: if test -n "$RANLIB"; then
6223: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6224: $as_echo "$RANLIB" >&6; }
6225: else
6226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227: $as_echo "no" >&6; }
6228: fi
6229:
1.1 bertrand 6230:
1.15 bertrand 6231: fi
6232: if test -z "$ac_cv_prog_RANLIB"; then
6233: ac_ct_RANLIB=$RANLIB
6234: # Extract the first word of "ranlib", so it can be a program name with args.
6235: set dummy ranlib; ac_word=$2
6236: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237: $as_echo_n "checking for $ac_word... " >&6; }
6238: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6239: $as_echo_n "(cached) " >&6
6240: else
6241: if test -n "$ac_ct_RANLIB"; then
6242: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6243: else
6244: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245: for as_dir in $PATH
6246: do
6247: IFS=$as_save_IFS
6248: test -z "$as_dir" && as_dir=.
6249: for ac_exec_ext in '' $ac_executable_extensions; do
6250: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251: ac_cv_prog_ac_ct_RANLIB="ranlib"
6252: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253: break 2
6254: fi
6255: done
1.14 bertrand 6256: done
1.15 bertrand 6257: IFS=$as_save_IFS
6258:
6259: fi
6260: fi
6261: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6262: if test -n "$ac_ct_RANLIB"; then
6263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6264: $as_echo "$ac_ct_RANLIB" >&6; }
6265: else
6266: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267: $as_echo "no" >&6; }
6268: fi
6269:
6270: if test "x$ac_ct_RANLIB" = x; then
6271: RANLIB=":"
6272: else
6273: case $cross_compiling:$ac_tool_warned in
6274: yes:)
6275: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6276: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6277: ac_tool_warned=yes ;;
6278: esac
6279: RANLIB=$ac_ct_RANLIB
6280: fi
1.14 bertrand 6281: else
1.15 bertrand 6282: RANLIB="$ac_cv_prog_RANLIB"
6283: fi
1.1 bertrand 6284:
6285:
1.15 bertrand 6286: # Extract the first word of "nawk", so it can be a program name with args.
6287: set dummy nawk; ac_word=$2
6288: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289: $as_echo_n "checking for $ac_word... " >&6; }
6290: if test "${ac_cv_prog_AWK+set}" = set; then :
6291: $as_echo_n "(cached) " >&6
6292: else
6293: if test -n "$AWK"; then
6294: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6295: else
6296: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297: for as_dir in $PATH
6298: do
6299: IFS=$as_save_IFS
6300: test -z "$as_dir" && as_dir=.
6301: for ac_exec_ext in '' $ac_executable_extensions; do
6302: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6303: ac_cv_prog_AWK="yes"
6304: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305: break 2
6306: fi
6307: done
6308: done
6309: IFS=$as_save_IFS
1.1 bertrand 6310:
1.15 bertrand 6311: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6312: fi
6313: fi
6314: AWK=$ac_cv_prog_AWK
6315: if test -n "$AWK"; then
6316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6317: $as_echo "$AWK" >&6; }
1.1 bertrand 6318: else
1.15 bertrand 6319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320: $as_echo "no" >&6; }
6321: fi
6322:
1.1 bertrand 6323:
1.15 bertrand 6324: if test "$AWK" = no; then
1.39 ! bertrand 6325: # Extract the first word of "gawk", so it can be a program name with args.
! 6326: set dummy gawk; ac_word=$2
! 6327: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
! 6328: $as_echo_n "checking for $ac_word... " >&6; }
! 6329: if test "${ac_cv_prog_AWK+set}" = set; then :
! 6330: $as_echo_n "(cached) " >&6
! 6331: else
! 6332: if test -n "$AWK"; then
! 6333: ac_cv_prog_AWK="$AWK" # Let the user override the test.
! 6334: else
! 6335: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
! 6336: for as_dir in $PATH
! 6337: do
! 6338: IFS=$as_save_IFS
! 6339: test -z "$as_dir" && as_dir=.
! 6340: for ac_exec_ext in '' $ac_executable_extensions; do
! 6341: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
! 6342: ac_cv_prog_AWK="yes"
! 6343: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
! 6344: break 2
! 6345: fi
! 6346: done
! 6347: done
! 6348: IFS=$as_save_IFS
! 6349:
! 6350: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
! 6351: fi
! 6352: fi
! 6353: AWK=$ac_cv_prog_AWK
! 6354: if test -n "$AWK"; then
! 6355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
! 6356: $as_echo "$AWK" >&6; }
! 6357: else
! 6358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
! 6359: $as_echo "no" >&6; }
! 6360: fi
! 6361:
! 6362:
! 6363: if test "$AWK" = no; then
! 6364: as_fn_error $? "Can not find nawk !" "$LINENO" 5
! 6365: fi
1.1 bertrand 6366: fi
6367:
1.15 bertrand 6368: # Extract the first word of "sed", so it can be a program name with args.
6369: set dummy sed; ac_word=$2
6370: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6371: $as_echo_n "checking for $ac_word... " >&6; }
6372: if test "${ac_cv_prog_SED+set}" = set; then :
6373: $as_echo_n "(cached) " >&6
6374: else
6375: if test -n "$SED"; then
6376: ac_cv_prog_SED="$SED" # Let the user override the test.
6377: else
6378: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379: for as_dir in $PATH
6380: do
6381: IFS=$as_save_IFS
6382: test -z "$as_dir" && as_dir=.
6383: for ac_exec_ext in '' $ac_executable_extensions; do
6384: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6385: ac_cv_prog_SED="yes"
6386: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387: break 2
6388: fi
6389: done
1.14 bertrand 6390: done
1.15 bertrand 6391: IFS=$as_save_IFS
1.1 bertrand 6392:
1.15 bertrand 6393: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14 bertrand 6394: fi
1.15 bertrand 6395: fi
6396: SED=$ac_cv_prog_SED
6397: if test -n "$SED"; then
6398: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6399: $as_echo "$SED" >&6; }
6400: else
6401: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402: $as_echo "no" >&6; }
1.14 bertrand 6403: fi
1.1 bertrand 6404:
6405:
1.15 bertrand 6406: if test "$SED" = no; then
1.36 bertrand 6407: as_fn_error $? "Can not find sed !" "$LINENO" 5
1.15 bertrand 6408: fi
1.14 bertrand 6409:
1.15 bertrand 6410: if test "$TEX_SUPPORT" = guessed; then
6411: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1 bertrand 6412:
1.15 bertrand 6413: # Extract the first word of "tex", so it can be a program name with args.
6414: set dummy tex; ac_word=$2
6415: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416: $as_echo_n "checking for $ac_word... " >&6; }
6417: if test "${ac_cv_prog_TEX+set}" = set; then :
6418: $as_echo_n "(cached) " >&6
1.1 bertrand 6419: else
1.15 bertrand 6420: if test -n "$TEX"; then
6421: ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1 bertrand 6422: else
1.15 bertrand 6423: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424: for as_dir in $PATH
6425: do
6426: IFS=$as_save_IFS
6427: test -z "$as_dir" && as_dir=.
6428: for ac_exec_ext in '' $ac_executable_extensions; do
6429: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430: ac_cv_prog_TEX="yes"
6431: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432: break 2
6433: fi
6434: done
6435: done
6436: IFS=$as_save_IFS
1.1 bertrand 6437:
1.15 bertrand 6438: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1 bertrand 6439: fi
6440: fi
1.15 bertrand 6441: TEX=$ac_cv_prog_TEX
6442: if test -n "$TEX"; then
6443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6444: $as_echo "$TEX" >&6; }
6445: else
6446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447: $as_echo "no" >&6; }
1.1 bertrand 6448: fi
1.14 bertrand 6449:
6450:
1.15 bertrand 6451: if test "$TEX" = no; then
6452: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6453: Download at http://tex.loria.fr/
6454: " >&5
6455: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6456: Download at http://tex.loria.fr/
6457: " >&2;}
6458: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6459: fi
1.14 bertrand 6460:
1.15 bertrand 6461: # Extract the first word of "latex", so it can be a program name with args.
6462: set dummy latex; ac_word=$2
6463: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464: $as_echo_n "checking for $ac_word... " >&6; }
6465: if test "${ac_cv_prog_LATEX+set}" = set; then :
6466: $as_echo_n "(cached) " >&6
1.1 bertrand 6467: else
1.15 bertrand 6468: if test -n "$LATEX"; then
6469: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1 bertrand 6470: else
1.15 bertrand 6471: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472: for as_dir in $PATH
6473: do
6474: IFS=$as_save_IFS
6475: test -z "$as_dir" && as_dir=.
6476: for ac_exec_ext in '' $ac_executable_extensions; do
6477: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478: ac_cv_prog_LATEX="yes"
6479: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6480: break 2
6481: fi
6482: done
6483: done
6484: IFS=$as_save_IFS
1.1 bertrand 6485:
1.15 bertrand 6486: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1 bertrand 6487: fi
6488: fi
1.15 bertrand 6489: LATEX=$ac_cv_prog_LATEX
6490: if test -n "$LATEX"; then
6491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6492: $as_echo "$LATEX" >&6; }
6493: else
6494: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495: $as_echo "no" >&6; }
6496: fi
1.14 bertrand 6497:
1.1 bertrand 6498:
1.15 bertrand 6499: if test "$LATEX" = no; then
6500: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6501: Download at http://tex.loria.fr/
6502: " >&5
6503: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6504: Download at http://tex.loria.fr/
6505: " >&2;}
6506: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6507: fi
1.1 bertrand 6508:
1.15 bertrand 6509: # Extract the first word of "dvips", so it can be a program name with args.
6510: set dummy dvips; ac_word=$2
6511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512: $as_echo_n "checking for $ac_word... " >&6; }
6513: if test "${ac_cv_prog_DVIPS+set}" = set; then :
6514: $as_echo_n "(cached) " >&6
6515: else
6516: if test -n "$DVIPS"; then
6517: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6518: else
6519: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520: for as_dir in $PATH
6521: do
6522: IFS=$as_save_IFS
6523: test -z "$as_dir" && as_dir=.
6524: for ac_exec_ext in '' $ac_executable_extensions; do
6525: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6526: ac_cv_prog_DVIPS="yes"
6527: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528: break 2
6529: fi
6530: done
6531: done
6532: IFS=$as_save_IFS
1.1 bertrand 6533:
1.15 bertrand 6534: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6535: fi
1.1 bertrand 6536: fi
1.15 bertrand 6537: DVIPS=$ac_cv_prog_DVIPS
6538: if test -n "$DVIPS"; then
6539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6540: $as_echo "$DVIPS" >&6; }
1.1 bertrand 6541: else
1.15 bertrand 6542: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543: $as_echo "no" >&6; }
6544: fi
1.1 bertrand 6545:
6546:
1.15 bertrand 6547: if test "$DVIPS" = no; then
6548: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6549: Download at http://tex.loria.fr/
6550: " >&5
6551: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6552: Download at http://tex.loria.fr/
6553: " >&2;}
6554: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6555: fi
1.1 bertrand 6556:
1.15 bertrand 6557: # Extract the first word of "gs", so it can be a program name with args.
6558: set dummy gs; ac_word=$2
6559: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560: $as_echo_n "checking for $ac_word... " >&6; }
6561: if test "${ac_cv_prog_GS+set}" = set; then :
6562: $as_echo_n "(cached) " >&6
6563: else
6564: if test -n "$GS"; then
6565: ac_cv_prog_GS="$GS" # Let the user override the test.
1.1 bertrand 6566: else
1.15 bertrand 6567: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568: for as_dir in $PATH
6569: do
6570: IFS=$as_save_IFS
6571: test -z "$as_dir" && as_dir=.
6572: for ac_exec_ext in '' $ac_executable_extensions; do
6573: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574: ac_cv_prog_GS="yes"
6575: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576: break 2
6577: fi
6578: done
6579: done
6580: IFS=$as_save_IFS
1.1 bertrand 6581:
1.15 bertrand 6582: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6583: fi
6584: fi
6585: GS=$ac_cv_prog_GS
6586: if test -n "$GS"; then
6587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6588: $as_echo "$GS" >&6; }
6589: else
6590: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591: $as_echo "no" >&6; }
1.1 bertrand 6592: fi
6593:
1.15 bertrand 6594:
6595: if test "$GS" = no; then
6596: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6597: Download at http://ftp.lip6.fr/
6598: " >&5
6599: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6600: Download at http://ftp.lip6.fr/
6601: " >&2;}
6602: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6603: fi
6604:
6605: # Extract the first word of "gv", so it can be a program name with args.
6606: set dummy gv; 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; }
6609: if test "${ac_cv_prog_GV+set}" = set; then :
6610: $as_echo_n "(cached) " >&6
6611: else
6612: if test -n "$GV"; then
6613: ac_cv_prog_GV="$GV" # 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_GV="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_GV" && ac_cv_prog_GV="no"
6631: fi
1.1 bertrand 6632: fi
1.15 bertrand 6633: GV=$ac_cv_prog_GV
6634: if test -n "$GV"; then
6635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6636: $as_echo "$GV" >&6; }
6637: else
6638: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639: $as_echo "no" >&6; }
1.1 bertrand 6640: fi
1.14 bertrand 6641:
6642:
1.15 bertrand 6643: if test "$GV" = no; then
6644: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6645: Download at http://ftp.lip6.fr/
6646: " >&5
6647: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6648: Download at http://ftp.lip6.fr/
6649: " >&2;}
6650: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6651: fi
1.1 bertrand 6652: else
1.15 bertrand 6653: if test "$TEX_SUPPORT" = no; then
6654: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6655: else
6656: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6657: fi
1.1 bertrand 6658: fi
6659:
1.15 bertrand 6660: if test "$GNUPLOT_SUPPORT" = guessed; then
6661: # Extract the first word of "gnuplot", so it can be a program name with args.
6662: set dummy gnuplot; ac_word=$2
6663: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6664: $as_echo_n "checking for $ac_word... " >&6; }
6665: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
6666: $as_echo_n "(cached) " >&6
1.14 bertrand 6667: else
1.15 bertrand 6668: if test -n "$GNUPLOT_P"; then
6669: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1 bertrand 6670: else
1.15 bertrand 6671: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672: for as_dir in $PATH
6673: do
6674: IFS=$as_save_IFS
6675: test -z "$as_dir" && as_dir=.
6676: for ac_exec_ext in '' $ac_executable_extensions; do
6677: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678: ac_cv_prog_GNUPLOT_P="yes"
6679: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680: break 2
6681: fi
6682: done
6683: done
6684: IFS=$as_save_IFS
1.1 bertrand 6685:
1.15 bertrand 6686: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1 bertrand 6687: fi
6688: fi
1.15 bertrand 6689: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6690: if test -n "$GNUPLOT_P"; then
6691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6692: $as_echo "$GNUPLOT_P" >&6; }
6693: else
6694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6695: $as_echo "no" >&6; }
1.1 bertrand 6696: fi
6697:
6698:
1.15 bertrand 6699: if test "$GNUPLOT_P" = no; then
6700: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6701: Download at http://www.gnuplot.vt.edu/
6702: " >&5
6703: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6704: Download at http://www.gnuplot.vt.edu/
6705: " >&2;}
6706: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6707: else
6708: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6709: fi
6710: else
6711: if test "$GNUPLOT_SUPPORT" = no; then
6712: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6713: else
6714: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6715: fi
6716: fi
1.1 bertrand 6717:
1.15 bertrand 6718: if test "$VIM_SUPPORT" = guessed; then
6719: # Extract the first word of "vim", so it can be a program name with args.
6720: set dummy vim; ac_word=$2
6721: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722: $as_echo_n "checking for $ac_word... " >&6; }
6723: if test "${ac_cv_prog_VIM+set}" = set; then :
6724: $as_echo_n "(cached) " >&6
1.1 bertrand 6725: else
1.15 bertrand 6726: if test -n "$VIM"; then
6727: ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1 bertrand 6728: else
1.15 bertrand 6729: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730: for as_dir in $PATH
6731: do
6732: IFS=$as_save_IFS
6733: test -z "$as_dir" && as_dir=.
6734: for ac_exec_ext in '' $ac_executable_extensions; do
6735: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6736: ac_cv_prog_VIM="yes"
6737: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738: break 2
6739: fi
6740: done
6741: done
6742: IFS=$as_save_IFS
1.1 bertrand 6743:
1.15 bertrand 6744: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1 bertrand 6745: fi
6746: fi
1.15 bertrand 6747: VIM=$ac_cv_prog_VIM
6748: if test -n "$VIM"; then
6749: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6750: $as_echo "$VIM" >&6; }
1.1 bertrand 6751: else
1.15 bertrand 6752: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753: $as_echo "no" >&6; }
6754: fi
1.1 bertrand 6755:
6756:
1.15 bertrand 6757: if test "$VIM" = no; then
6758: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6759: Download at http://www.vim.org/
6760: " >&5
6761: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6762: Download at http://www.vim.org/
6763: " >&2;}
6764: VIM_SUPPORT="-UVIM_SUPPORT"
6765: else
6766: VIM_SUPPORT="-DVIM_SUPPORT"
6767: fi
1.1 bertrand 6768: else
1.15 bertrand 6769: if test "$VIM_SUPPORT" = no; then
6770: VIM_SUPPORT="-UVIM_SUPPORT"
6771: else
6772: VIM_SUPPORT="-DVIM_SUPPORT"
6773: fi
1.1 bertrand 6774: fi
6775:
1.15 bertrand 6776: if test "$MOTIF_SUPPORT" = guessed; then
6777: CFLAGS_ORIG=$CFLAGS
6778: LIBS_ORIG=$LIBS
6779: CFLAGS="$CFLAGS $X_CFLAGS"
6780: LIBS="$LIB $X_LIBS"
6781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
6782: $as_echo_n "checking for main in -lXm... " >&6; }
6783: if test "${ac_cv_lib_Xm_main+set}" = set; then :
6784: $as_echo_n "(cached) " >&6
1.1 bertrand 6785: else
1.15 bertrand 6786: ac_check_lib_save_LIBS=$LIBS
6787: LIBS="-lXm $LIBS"
6788: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789: /* end confdefs.h. */
1.1 bertrand 6790:
6791:
1.14 bertrand 6792: int
6793: main ()
6794: {
1.15 bertrand 6795: return main ();
1.14 bertrand 6796: ;
6797: return 0;
6798: }
6799: _ACEOF
1.15 bertrand 6800: if ac_fn_c_try_link "$LINENO"; then :
6801: ac_cv_lib_Xm_main=yes
1.1 bertrand 6802: else
1.15 bertrand 6803: ac_cv_lib_Xm_main=no
6804: fi
6805: rm -f core conftest.err conftest.$ac_objext \
6806: conftest$ac_exeext conftest.$ac_ext
6807: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 6808: fi
1.15 bertrand 6809: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6810: $as_echo "$ac_cv_lib_Xm_main" >&6; }
6811: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
6812: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1 bertrand 6813: else
1.15 bertrand 6814: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1 bertrand 6815: fi
1.14 bertrand 6816:
1.15 bertrand 6817: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6818: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
6819: Motif flag is disabled.
6820: " >&5
6821: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
6822: Motif flag is disabled.
6823: " >&2;}
6824: fi
6825: LIBS=$LIBS_ORIG
6826: CFLAGS=$CFLAGS_ORIG
1.1 bertrand 6827: fi
6828:
1.15 bertrand 6829: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6830: CFLAGS_ORIG=$CFLAGS
6831: LIBS_ORIG=$LIBS
6832: CFLAGS="$CFLAGS $X_CFLAGS"
6833: LIBS="$LIB $X_LIBS"
6834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
6835: $as_echo_n "checking for main in -lXpm... " >&6; }
6836: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
6837: $as_echo_n "(cached) " >&6
6838: else
6839: ac_check_lib_save_LIBS=$LIBS
6840: LIBS="-lXpm $LIBS"
6841: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 6842: /* end confdefs.h. */
6843:
1.1 bertrand 6844:
6845: int
6846: main ()
6847: {
1.15 bertrand 6848: return main ();
1.1 bertrand 6849: ;
6850: return 0;
6851: }
6852: _ACEOF
1.15 bertrand 6853: if ac_fn_c_try_link "$LINENO"; then :
6854: ac_cv_lib_Xpm_main=yes
1.1 bertrand 6855: else
1.15 bertrand 6856: ac_cv_lib_Xpm_main=no
6857: fi
6858: rm -f core conftest.err conftest.$ac_objext \
6859: conftest$ac_exeext conftest.$ac_ext
6860: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 6861: fi
1.15 bertrand 6862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
6863: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
6864: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
6865: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6866: else
6867: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1 bertrand 6868: fi
1.15 bertrand 6869:
6870: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6871: libX="$X_LIBS -lXm -lXpm -lXt -lX11"
6872: else
6873: libX=""
6874: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
6875: Motif flag is disabled.
6876: " >&5
6877: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
6878: Motif flag is disabled.
6879: " >&2;}
6880: fi
6881: LIBS=$LIBS_ORIG
6882: CFLAGS=$CFLAGS_ORIG
6883: else
6884: libX=""
1.1 bertrand 6885: fi
1.14 bertrand 6886:
6887:
6888:
1.1 bertrand 6889:
6890:
1.15 bertrand 6891:
6892:
6893:
6894:
6895:
6896:
6897: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
6898:
6899:
6900: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6901: $as_echo_n "checking for main in -lm... " >&6; }
6902: if test "${ac_cv_lib_m_main+set}" = set; then :
6903: $as_echo_n "(cached) " >&6
1.1 bertrand 6904: else
1.15 bertrand 6905: ac_check_lib_save_LIBS=$LIBS
6906: LIBS="-lm $LIBS"
6907: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 6908: /* end confdefs.h. */
1.15 bertrand 6909:
6910:
1.1 bertrand 6911: int
6912: main ()
6913: {
1.15 bertrand 6914: return main ();
1.1 bertrand 6915: ;
6916: return 0;
6917: }
6918: _ACEOF
1.15 bertrand 6919: if ac_fn_c_try_link "$LINENO"; then :
6920: ac_cv_lib_m_main=yes
1.1 bertrand 6921: else
1.15 bertrand 6922: ac_cv_lib_m_main=no
6923: fi
6924: rm -f core conftest.err conftest.$ac_objext \
6925: conftest$ac_exeext conftest.$ac_ext
6926: LIBS=$ac_check_lib_save_LIBS
6927: fi
6928: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6929: $as_echo "$ac_cv_lib_m_main" >&6; }
6930: if test "x$ac_cv_lib_m_main" = x""yes; then :
6931: cat >>confdefs.h <<_ACEOF
6932: #define HAVE_LIBM 1
6933: _ACEOF
1.14 bertrand 6934:
1.15 bertrand 6935: LIBS="-lm $LIBS"
1.1 bertrand 6936:
1.15 bertrand 6937: else
1.36 bertrand 6938: as_fn_error $? "Can not find libm !" "$LINENO" 5
1.1 bertrand 6939: fi
6940:
1.15 bertrand 6941: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
6942: $as_echo_n "checking for main in -lpthread... " >&6; }
6943: if test "${ac_cv_lib_pthread_main+set}" = set; then :
6944: $as_echo_n "(cached) " >&6
1.1 bertrand 6945: else
1.15 bertrand 6946: ac_check_lib_save_LIBS=$LIBS
6947: LIBS="-lpthread $LIBS"
6948: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 6949: /* end confdefs.h. */
1.15 bertrand 6950:
6951:
1.14 bertrand 6952: int
6953: main ()
6954: {
1.15 bertrand 6955: return main ();
1.14 bertrand 6956: ;
6957: return 0;
6958: }
6959: _ACEOF
1.15 bertrand 6960: if ac_fn_c_try_link "$LINENO"; then :
6961: ac_cv_lib_pthread_main=yes
6962: else
6963: ac_cv_lib_pthread_main=no
6964: fi
6965: rm -f core conftest.err conftest.$ac_objext \
6966: conftest$ac_exeext conftest.$ac_ext
6967: LIBS=$ac_check_lib_save_LIBS
6968: fi
6969: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
6970: $as_echo "$ac_cv_lib_pthread_main" >&6; }
6971: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
6972: cat >>confdefs.h <<_ACEOF
6973: #define HAVE_LIBPTHREAD 1
1.14 bertrand 6974: _ACEOF
6975:
1.15 bertrand 6976: LIBS="-lpthread $LIBS"
6977:
1.1 bertrand 6978: else
1.36 bertrand 6979: as_fn_error $? "Can not find libpthread !" "$LINENO" 5
1.15 bertrand 6980: fi
1.14 bertrand 6981:
1.1 bertrand 6982:
1.33 bertrand 6983: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
6984: #include <sys/sem.h>
6985:
6986: "
6987: if test "x$ac_cv_type_union_semun" = x""yes; then :
6988: SEMUN=-DUNION_SEMUN
6989: else
6990: SEMUN=-UUNION_SEMUN
6991: fi
6992:
6993:
1.34 bertrand 6994: ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
1.35 bertrand 6995: #include <sys/types.h>
1.34 bertrand 6996: #include <netinet/in.h>
6997:
6998: "
6999: if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
7000: IPV6=-DIPV6
7001: else
7002: IPV6=-UIPV6
7003: fi
7004:
7005:
1.15 bertrand 7006: if test "$CYGWIN" != yes; then
7007: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7008: $as_echo_n "checking for dlopen in -ldl... " >&6; }
7009: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7010: $as_echo_n "(cached) " >&6
1.1 bertrand 7011: else
1.15 bertrand 7012: ac_check_lib_save_LIBS=$LIBS
7013: LIBS="-ldl $LIBS"
7014: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7015: /* end confdefs.h. */
7016:
1.15 bertrand 7017: /* Override any GCC internal prototype to avoid an error.
7018: Use char because int might match the return type of a GCC
7019: builtin and then its argument prototype would still apply. */
7020: #ifdef __cplusplus
7021: extern "C"
7022: #endif
7023: char dlopen ();
1.1 bertrand 7024: int
7025: main ()
7026: {
1.15 bertrand 7027: return dlopen ();
1.1 bertrand 7028: ;
7029: return 0;
7030: }
7031: _ACEOF
1.15 bertrand 7032: if ac_fn_c_try_link "$LINENO"; then :
7033: ac_cv_lib_dl_dlopen=yes
1.1 bertrand 7034: else
1.15 bertrand 7035: ac_cv_lib_dl_dlopen=no
7036: fi
7037: rm -f core conftest.err conftest.$ac_objext \
7038: conftest$ac_exeext conftest.$ac_ext
7039: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 7040: fi
1.15 bertrand 7041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7042: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7043: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
7044: LIBS="$LIBS -ldl"
1.14 bertrand 7045: else
1.15 bertrand 7046: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7047: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1 bertrand 7048: fi
7049:
1.14 bertrand 7050: fi
1.1 bertrand 7051:
1.15 bertrand 7052: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7053: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
7054: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
7055: $as_echo_n "(cached) " >&6
7056: else
7057: ac_check_lib_save_LIBS=$LIBS
7058: LIBS="-lrt $LIBS"
7059: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7060: /* end confdefs.h. */
1.15 bertrand 7061:
7062: /* Override any GCC internal prototype to avoid an error.
7063: Use char because int might match the return type of a GCC
7064: builtin and then its argument prototype would still apply. */
7065: #ifdef __cplusplus
7066: extern "C"
7067: #endif
7068: char nanosleep ();
1.1 bertrand 7069: int
7070: main ()
7071: {
1.15 bertrand 7072: return nanosleep ();
1.1 bertrand 7073: ;
7074: return 0;
7075: }
7076: _ACEOF
1.15 bertrand 7077: if ac_fn_c_try_link "$LINENO"; then :
7078: ac_cv_lib_rt_nanosleep=yes
7079: else
7080: ac_cv_lib_rt_nanosleep=no
7081: fi
7082: rm -f core conftest.err conftest.$ac_objext \
7083: conftest$ac_exeext conftest.$ac_ext
7084: LIBS=$ac_check_lib_save_LIBS
7085: fi
7086: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7087: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7088: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
7089: LIBS="$LIBS -lrt"
1.1 bertrand 7090: else
1.15 bertrand 7091: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7092: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7093: fi
1.1 bertrand 7094:
7095:
1.15 bertrand 7096: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7097: $as_echo_n "checking for bind in -lsocket... " >&6; }
7098: if test "${ac_cv_lib_socket_bind+set}" = set; then :
7099: $as_echo_n "(cached) " >&6
1.1 bertrand 7100: else
1.15 bertrand 7101: ac_check_lib_save_LIBS=$LIBS
7102: LIBS="-lsocket $LIBS"
7103: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7104: /* end confdefs.h. */
1.15 bertrand 7105:
7106: /* Override any GCC internal prototype to avoid an error.
7107: Use char because int might match the return type of a GCC
7108: builtin and then its argument prototype would still apply. */
7109: #ifdef __cplusplus
7110: extern "C"
7111: #endif
7112: char bind ();
1.1 bertrand 7113: int
7114: main ()
7115: {
1.15 bertrand 7116: return bind ();
1.1 bertrand 7117: ;
7118: return 0;
7119: }
7120: _ACEOF
1.15 bertrand 7121: if ac_fn_c_try_link "$LINENO"; then :
7122: ac_cv_lib_socket_bind=yes
1.1 bertrand 7123: else
1.15 bertrand 7124: ac_cv_lib_socket_bind=no
1.1 bertrand 7125: fi
1.15 bertrand 7126: rm -f core conftest.err conftest.$ac_objext \
7127: conftest$ac_exeext conftest.$ac_ext
7128: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 7129: fi
1.15 bertrand 7130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7131: $as_echo "$ac_cv_lib_socket_bind" >&6; }
7132: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
7133: LIBS="$LIBS -lsocket"
7134: else
7135: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7136: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1 bertrand 7137: fi
7138:
7139:
1.15 bertrand 7140: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7141:
7142: # Check whether --with-mysql was given.
7143: if test "${with_mysql+set}" = set; then :
7144: withval=$with_mysql;
7145: else
7146: with_mysql=check
7147: fi
1.14 bertrand 7148:
7149:
1.15 bertrand 7150: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7151: libMySQLinc="-I/usr/include"
1.30 bertrand 7152: libMySQLlib="/usr/lib"
1.14 bertrand 7153:
1.15 bertrand 7154: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7155: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7156: saved_CFLAGS="$CFLAGS"
1.30 bertrand 7157: CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15 bertrand 7158: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7159: /* end confdefs.h. */
1.15 bertrand 7160: #include "mysql.h"
1.1 bertrand 7161: int
7162: main ()
7163: {
1.15 bertrand 7164:
1.1 bertrand 7165: ;
7166: return 0;
7167: }
7168: _ACEOF
1.15 bertrand 7169: if ac_fn_c_try_compile "$LINENO"; then :
7170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7171: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7172: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7173: else
1.15 bertrand 7174: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1 bertrand 7176: fi
1.14 bertrand 7177: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7178: CFLAGS=$saved_CFLAGS
1.1 bertrand 7179:
1.15 bertrand 7180: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7181: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7182: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7183: saved_CFLAGS="$CFLAGS"
7184: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7185: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7186: /* end confdefs.h. */
1.15 bertrand 7187: #include "mysql.h"
1.1 bertrand 7188: int
7189: main ()
7190: {
7191:
7192: ;
7193: return 0;
7194: }
7195: _ACEOF
1.15 bertrand 7196: if ac_fn_c_try_compile "$LINENO"; then :
7197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7198: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7199: libMySQLinc=$libMySQLinc
7200: else
7201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7203: fi
7204: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205: CFLAGS=$saved_CFLAGS
7206: libMySQLinc=$libMySQLinc/mysql
7207: fi
7208:
7209: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7210: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7211: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7212: saved_CFLAGS="$CFLAGS"
7213: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7214: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7215: /* end confdefs.h. */
1.15 bertrand 7216: #include "mysql.h"
1.1 bertrand 7217: int
7218: main ()
7219: {
7220:
7221: ;
7222: return 0;
7223: }
7224: _ACEOF
1.15 bertrand 7225: if ac_fn_c_try_compile "$LINENO"; then :
7226: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7227: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7228: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7229: else
1.15 bertrand 7230: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1 bertrand 7232: fi
7233: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7234: CFLAGS=$saved_CFLAGS
7235: libMySQLinc=$libMySQLinc/../local/include
7236: libMySQLlib=$libMySQLlib/../local/lib
7237: fi
1.1 bertrand 7238:
1.15 bertrand 7239: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7240: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7241: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7242: saved_CFLAGS="$CFLAGS"
7243: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7244: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7245: /* end confdefs.h. */
1.15 bertrand 7246: #include "mysql.h"
1.1 bertrand 7247: int
7248: main ()
7249: {
7250:
7251: ;
7252: return 0;
7253: }
7254: _ACEOF
1.15 bertrand 7255: if ac_fn_c_try_compile "$LINENO"; then :
7256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7257: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7258: libMySQLinc=$libMySQLinc/mysql
7259: else
7260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7262: fi
7263: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264: CFLAGS=$saved_CFLAGS
7265: libMySQLinc=$libMySQLinc/../local/include/mysql
7266: libMySQLlib=$libMySQLlib/../local/lib
7267: fi
7268: else
7269: if test "x$with_mysql" != xno; then
7270: libMySQLinc="-I$with_mysql/include"
1.30 bertrand 7271: libMySQLlib="$with_mysql/lib"
1.15 bertrand 7272:
7273: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7274: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7275: saved_CFLAGS="$CFLAGS"
7276: CFLAGS="$CFLAGS $libMySQLinc"
7277: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7278: /* end confdefs.h. */
1.15 bertrand 7279: #include "mysql.h"
1.1 bertrand 7280: int
7281: main ()
7282: {
7283:
7284: ;
7285: return 0;
7286: }
7287: _ACEOF
1.15 bertrand 7288: if ac_fn_c_try_compile "$LINENO"; then :
7289: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7290: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7291: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7292: else
1.15 bertrand 7293: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14 bertrand 7295: fi
7296: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7297: CFLAGS=$saved_CFLAGS
1.1 bertrand 7298:
1.15 bertrand 7299: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7300: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7301: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7302: saved_CFLAGS="$CFLAGS"
7303: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7304: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7305: /* end confdefs.h. */
1.15 bertrand 7306: #include "mysql.h"
1.1 bertrand 7307: int
7308: main ()
7309: {
7310:
7311: ;
7312: return 0;
7313: }
7314: _ACEOF
1.15 bertrand 7315: if ac_fn_c_try_compile "$LINENO"; then :
7316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7317: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7318: libMySQLinc=$libMySQLinc
1.1 bertrand 7319: else
1.15 bertrand 7320: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7322: fi
7323: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324: CFLAGS=$saved_CFLAGS
7325: libMySQLinc=$libMySQLinc/mysql
7326: fi
7327: else
7328: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7329: fi
7330: fi
1.14 bertrand 7331:
1.15 bertrand 7332: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7333: MYSQL_LIB=no
1.14 bertrand 7334:
1.15 bertrand 7335: if test $MYSQL_LIB = no; then
7336: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7337: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7338: saved_LIBS="$LIBS"
1.30 bertrand 7339: if test $STATIC = no; then
7340: LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
7341: else
7342: LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
7343: fi
1.15 bertrand 7344: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7345: /* end confdefs.h. */
1.15 bertrand 7346: #include "mysql.h"
1.1 bertrand 7347: int
7348: main ()
7349: {
1.15 bertrand 7350: MYSQL mysql; mysql_init(&mysql);
1.1 bertrand 7351: ;
7352: return 0;
7353: }
7354: _ACEOF
1.15 bertrand 7355: if ac_fn_c_try_link "$LINENO"; then :
7356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7357: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1 bertrand 7358: else
1.15 bertrand 7359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7360: $as_echo "no" >&6; }; MYSQL_LIB="no"
7361: fi
7362: rm -f core conftest.err conftest.$ac_objext \
7363: conftest$ac_exeext conftest.$ac_ext
7364: LIBS=$saved_LIBS;
1.30 bertrand 7365: if test $STATIC = no; then
7366: libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
7367: else
7368: libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
7369: EXT_SQL="$EXT_SQL $libMySQLlib"
7370: fi
1.15 bertrand 7371: fi
1.14 bertrand 7372:
1.15 bertrand 7373: if test $MYSQL_LIB = no; then
7374: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7375: fi
1.14 bertrand 7376: fi
1.15 bertrand 7377:
7378: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7379: libMySQLinc=
7380: libMySQLlib=
1.1 bertrand 7381: fi
1.14 bertrand 7382:
7383:
7384:
1.1 bertrand 7385:
7386:
1.15 bertrand 7387: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7388:
7389: # Check whether --with-postgresql was given.
7390: if test "${with_postgresql+set}" = set; then :
7391: withval=$with_postgresql;
1.14 bertrand 7392: else
1.15 bertrand 7393: with_postgresql=check
7394: fi
7395:
7396:
7397: # with_postgresql : check [pas défini], yes [uniquement --with],
7398: # no [--without], valeur [--with=valeur].
7399:
7400: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7401: libPgSQLinc="-I/usr/include"
1.30 bertrand 7402: libPgSQLlib="/usr/lib"
1.15 bertrand 7403:
7404: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7405: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7406: saved_CFLAGS="$CFLAGS"
7407: CFLAGS="$CFLAGS $libPgSQLinc"
7408: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7409: /* end confdefs.h. */
1.15 bertrand 7410: #include "libpq-fe.h"
1.1 bertrand 7411: int
7412: main ()
7413: {
1.15 bertrand 7414:
1.1 bertrand 7415: ;
7416: return 0;
7417: }
7418: _ACEOF
1.15 bertrand 7419: if ac_fn_c_try_compile "$LINENO"; then :
7420: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7421: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7422: else
1.15 bertrand 7423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7425: fi
1.14 bertrand 7426: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7427: CFLAGS=$saved_CFLAGS
1.1 bertrand 7428:
1.15 bertrand 7429: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7430: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7431: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7432: saved_CFLAGS="$CFLAGS"
7433: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7434: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7435: /* end confdefs.h. */
1.15 bertrand 7436: #include "libpq-fe.h"
1.1 bertrand 7437: int
7438: main ()
7439: {
7440:
7441: ;
7442: return 0;
7443: }
7444: _ACEOF
1.15 bertrand 7445: if ac_fn_c_try_compile "$LINENO"; then :
7446: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7447: $as_echo "yes" >&6; };
7448: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7449: else
7450: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451: $as_echo "no" >&6; };
7452: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7453: fi
7454: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7455: CFLAGS=$saved_CFLAGS
7456: libPgSQLinc=$libPgSQLinc/postgresql
7457: fi
7458:
7459: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7460: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7461: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7462: saved_CFLAGS="$CFLAGS"
7463: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7464: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7465: /* end confdefs.h. */
1.15 bertrand 7466: #include "libpq-fe.h"
1.1 bertrand 7467: int
7468: main ()
7469: {
7470:
7471: ;
7472: return 0;
7473: }
7474: _ACEOF
1.15 bertrand 7475: if ac_fn_c_try_compile "$LINENO"; then :
7476: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7477: $as_echo "yes" >&6; };
7478: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7479: else
1.15 bertrand 7480: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481: $as_echo "no" >&6; };
7482: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7483: fi
7484: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7485: CFLAGS=$saved_CFLAGS
7486: libPgSQLinc=$libPgSQLinc/pgsql
7487: fi
1.1 bertrand 7488:
1.15 bertrand 7489: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7490: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7491: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7492: saved_CFLAGS="$CFLAGS"
7493: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7494: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7495: /* end confdefs.h. */
1.15 bertrand 7496: #include "libpq-fe.h"
1.1 bertrand 7497: int
7498: main ()
7499: {
7500:
7501: ;
7502: return 0;
7503: }
7504: _ACEOF
1.15 bertrand 7505: if ac_fn_c_try_compile "$LINENO"; then :
7506: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7507: $as_echo "yes" >&6; };
7508: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7509: else
7510: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511: $as_echo "no" >&6; };
7512: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7513: fi
7514: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515: CFLAGS=$saved_CFLAGS
7516: libPgSQLinc=$libPgSQLinc/../local/include
7517: libPgSQLlib=$libPgSQLlib/../local/lib
7518: fi
7519:
7520: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7522: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7523: saved_CFLAGS="$CFLAGS"
7524: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7525: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7526: /* end confdefs.h. */
1.15 bertrand 7527: #include "libpq-fe.h"
1.1 bertrand 7528: int
7529: main ()
7530: {
7531:
7532: ;
7533: return 0;
7534: }
7535: _ACEOF
1.15 bertrand 7536: if ac_fn_c_try_compile "$LINENO"; then :
7537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7538: $as_echo "yes" >&6; };
7539: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14 bertrand 7540: else
1.15 bertrand 7541: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542: $as_echo "no" >&6; };
7543: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14 bertrand 7544: fi
7545: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7546: CFLAGS=$saved_CFLAGS
7547: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7548: libPgSQLlib=$libPgSQLlib/../local/lib
7549: fi
1.14 bertrand 7550:
1.15 bertrand 7551: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7552: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7553: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7554: saved_CFLAGS="$CFLAGS"
7555: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7556: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7557: /* end confdefs.h. */
1.15 bertrand 7558: #include "libpq-fe.h"
1.1 bertrand 7559: int
7560: main ()
7561: {
7562:
7563: ;
7564: return 0;
7565: }
7566: _ACEOF
1.15 bertrand 7567: if ac_fn_c_try_compile "$LINENO"; then :
7568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7569: $as_echo "yes" >&6; };
7570: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7571: else
1.15 bertrand 7572: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573: $as_echo "no" >&6; };
7574: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7575: fi
7576: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7577: CFLAGS=$saved_CFLAGS
7578: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7579: libPgSQLlib=$libPgSQLlib/../local/lib
7580: fi
1.14 bertrand 7581: else
1.15 bertrand 7582: if test "x$with_postgresql" != xno; then
7583: libPgSQLinc="-I$with_postgresql/include"
1.30 bertrand 7584: libPgSQLlib="$with_postgresql/lib"
1.15 bertrand 7585:
7586: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7587: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7588: saved_CFLAGS="$CFLAGS"
7589: CFLAGS="$CFLAGS $libPgSQLinc"
7590: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7591: /* end confdefs.h. */
1.15 bertrand 7592: #include "libpq-fe.h"
1.1 bertrand 7593: int
7594: main ()
7595: {
7596:
7597: ;
7598: return 0;
7599: }
7600: _ACEOF
1.15 bertrand 7601: if ac_fn_c_try_compile "$LINENO"; then :
7602: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7603: $as_echo "yes" >&6; };
7604: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7605: else
1.15 bertrand 7606: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607: $as_echo "no" >&6; };
7608: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14 bertrand 7609: fi
1.15 bertrand 7610: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7611: CFLAGS=$saved_CFLAGS
1.14 bertrand 7612:
1.15 bertrand 7613: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7614: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7615: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7616: saved_CFLAGS="$CFLAGS"
7617: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7618: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 7619: /* end confdefs.h. */
1.15 bertrand 7620: #include "libpq-fe.h"
1.1 bertrand 7621: int
7622: main ()
7623: {
1.15 bertrand 7624:
1.1 bertrand 7625: ;
7626: return 0;
7627: }
7628: _ACEOF
1.15 bertrand 7629: if ac_fn_c_try_compile "$LINENO"; then :
7630: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7631: $as_echo "yes" >&6; };
7632: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7633: else
1.15 bertrand 7634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635: $as_echo "no" >&6; };
7636: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7637: fi
7638: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7639: CFLAGS=$saved_CFLAGS
7640: libPgSQLinc=$libPgSQLinc/postgresql
7641: fi
1.14 bertrand 7642:
1.15 bertrand 7643: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7644: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7645: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7646: saved_CFLAGS="$CFLAGS"
7647: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7648: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7649: /* end confdefs.h. */
1.15 bertrand 7650: #include "libpq-fe.h"
1.1 bertrand 7651: int
7652: main ()
7653: {
1.15 bertrand 7654:
1.1 bertrand 7655: ;
7656: return 0;
7657: }
7658: _ACEOF
1.15 bertrand 7659: if ac_fn_c_try_compile "$LINENO"; then :
7660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7661: $as_echo "yes" >&6; };
7662: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7663: else
1.15 bertrand 7664: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665: $as_echo "no" >&6; };
7666: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7667: fi
1.15 bertrand 7668: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7669: CFLAGS=$saved_CFLAGS
7670: libPgSQLinc=$libPgSQLinc/pgsql
7671: fi
7672: else
7673: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7674: fi
1.1 bertrand 7675: fi
7676:
1.15 bertrand 7677: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7678: POSTGRESQL_LIB=no
1.1 bertrand 7679:
1.15 bertrand 7680: if test $POSTGRESQL_LIB = no; then
7681: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7682: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7683: saved_LIBS="$LIBS"
1.30 bertrand 7684: if test $STATIC = no; then
7685: LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
7686: else
7687: LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
7688: fi
1.15 bertrand 7689: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7690: /* end confdefs.h. */
1.15 bertrand 7691: #include "libpq-fe.h"
1.1 bertrand 7692: int
7693: main ()
7694: {
1.15 bertrand 7695: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7696: PQconnectdb(conninfo);
1.1 bertrand 7697: ;
7698: return 0;
7699: }
7700: _ACEOF
1.15 bertrand 7701: if ac_fn_c_try_link "$LINENO"; then :
7702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7703: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1 bertrand 7704: else
1.15 bertrand 7705: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7707: fi
7708: rm -f core conftest.err conftest.$ac_objext \
7709: conftest$ac_exeext conftest.$ac_ext
7710: LIBS=$saved_LIBS;
1.30 bertrand 7711: if test $STATIC = no; then
7712: libPgSQLlib="-L/$libPgSQLlib -lpq"
7713: else
7714: libPgSQLlib="$libPgSQLlib/libpq.a"
7715: EXT_SQL="$EXT_SQL $libPgSQLlib"
7716: fi
1.15 bertrand 7717: fi
7718: fi
7719:
7720: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7721: libPgSQLinc=
7722: libPgSQLlib=
7723: fi
7724:
7725:
7726:
7727:
1.14 bertrand 7728:
1.15 bertrand 7729: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7730: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7731: if test "${ac_cv_path_GREP+set}" = set; then :
7732: $as_echo_n "(cached) " >&6
7733: else
7734: if test -z "$GREP"; then
7735: ac_path_GREP_found=false
7736: # Loop through the user's path and test for each of PROGNAME-LIST
7737: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7739: do
7740: IFS=$as_save_IFS
7741: test -z "$as_dir" && as_dir=.
7742: for ac_prog in grep ggrep; do
7743: for ac_exec_ext in '' $ac_executable_extensions; do
7744: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7745: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7746: # Check for GNU ac_path_GREP and select it if it is found.
7747: # Check for GNU $ac_path_GREP
7748: case `"$ac_path_GREP" --version 2>&1` in
7749: *GNU*)
7750: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7751: *)
7752: ac_count=0
7753: $as_echo_n 0123456789 >"conftest.in"
7754: while :
7755: do
7756: cat "conftest.in" "conftest.in" >"conftest.tmp"
7757: mv "conftest.tmp" "conftest.in"
7758: cp "conftest.in" "conftest.nl"
7759: $as_echo 'GREP' >> "conftest.nl"
7760: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7761: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7762: as_fn_arith $ac_count + 1 && ac_count=$as_val
7763: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7764: # Best one so far, save it but keep looking for a better one
7765: ac_cv_path_GREP="$ac_path_GREP"
7766: ac_path_GREP_max=$ac_count
7767: fi
7768: # 10*(2^10) chars as input seems more than enough
7769: test $ac_count -gt 10 && break
7770: done
7771: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7772: esac
1.14 bertrand 7773:
1.15 bertrand 7774: $ac_path_GREP_found && break 3
7775: done
7776: done
7777: done
7778: IFS=$as_save_IFS
7779: if test -z "$ac_cv_path_GREP"; then
1.36 bertrand 7780: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15 bertrand 7781: fi
7782: else
7783: ac_cv_path_GREP=$GREP
1.1 bertrand 7784: fi
7785:
7786: fi
1.15 bertrand 7787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7788: $as_echo "$ac_cv_path_GREP" >&6; }
7789: GREP="$ac_cv_path_GREP"
7790:
7791:
7792: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7793: $as_echo_n "checking for egrep... " >&6; }
7794: if test "${ac_cv_path_EGREP+set}" = set; then :
7795: $as_echo_n "(cached) " >&6
7796: else
7797: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7798: then ac_cv_path_EGREP="$GREP -E"
7799: else
7800: if test -z "$EGREP"; then
7801: ac_path_EGREP_found=false
7802: # Loop through the user's path and test for each of PROGNAME-LIST
7803: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7805: do
7806: IFS=$as_save_IFS
7807: test -z "$as_dir" && as_dir=.
7808: for ac_prog in egrep; do
7809: for ac_exec_ext in '' $ac_executable_extensions; do
7810: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7811: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7812: # Check for GNU ac_path_EGREP and select it if it is found.
7813: # Check for GNU $ac_path_EGREP
7814: case `"$ac_path_EGREP" --version 2>&1` in
7815: *GNU*)
7816: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7817: *)
7818: ac_count=0
7819: $as_echo_n 0123456789 >"conftest.in"
7820: while :
7821: do
7822: cat "conftest.in" "conftest.in" >"conftest.tmp"
7823: mv "conftest.tmp" "conftest.in"
7824: cp "conftest.in" "conftest.nl"
7825: $as_echo 'EGREP' >> "conftest.nl"
7826: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7827: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7828: as_fn_arith $ac_count + 1 && ac_count=$as_val
7829: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7830: # Best one so far, save it but keep looking for a better one
7831: ac_cv_path_EGREP="$ac_path_EGREP"
7832: ac_path_EGREP_max=$ac_count
7833: fi
7834: # 10*(2^10) chars as input seems more than enough
7835: test $ac_count -gt 10 && break
7836: done
7837: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7838: esac
7839:
7840: $ac_path_EGREP_found && break 3
7841: done
7842: done
7843: done
7844: IFS=$as_save_IFS
7845: if test -z "$ac_cv_path_EGREP"; then
1.36 bertrand 7846: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
1.15 bertrand 7847: fi
1.1 bertrand 7848: else
1.15 bertrand 7849: ac_cv_path_EGREP=$EGREP
1.1 bertrand 7850: fi
7851:
1.15 bertrand 7852: fi
1.1 bertrand 7853: fi
1.15 bertrand 7854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7855: $as_echo "$ac_cv_path_EGREP" >&6; }
7856: EGREP="$ac_cv_path_EGREP"
1.1 bertrand 7857:
7858:
1.15 bertrand 7859: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7860: $as_echo_n "checking for ANSI C header files... " >&6; }
7861: if test "${ac_cv_header_stdc+set}" = set; then :
7862: $as_echo_n "(cached) " >&6
1.1 bertrand 7863: else
1.15 bertrand 7864: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7865: /* end confdefs.h. */
7866: #include <stdlib.h>
7867: #include <stdarg.h>
7868: #include <string.h>
7869: #include <float.h>
7870:
7871: int
7872: main ()
7873: {
7874:
7875: ;
7876: return 0;
7877: }
7878: _ACEOF
1.15 bertrand 7879: if ac_fn_c_try_compile "$LINENO"; then :
1.1 bertrand 7880: ac_cv_header_stdc=yes
7881: else
1.15 bertrand 7882: ac_cv_header_stdc=no
1.1 bertrand 7883: fi
7884: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7885:
7886: if test $ac_cv_header_stdc = yes; then
7887: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15 bertrand 7888: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7889: /* end confdefs.h. */
7890: #include <string.h>
7891:
7892: _ACEOF
7893: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15 bertrand 7894: $EGREP "memchr" >/dev/null 2>&1; then :
7895:
1.1 bertrand 7896: else
7897: ac_cv_header_stdc=no
7898: fi
7899: rm -f conftest*
7900:
7901: fi
7902:
7903: if test $ac_cv_header_stdc = yes; then
7904: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15 bertrand 7905: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7906: /* end confdefs.h. */
7907: #include <stdlib.h>
7908:
7909: _ACEOF
7910: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15 bertrand 7911: $EGREP "free" >/dev/null 2>&1; then :
7912:
1.1 bertrand 7913: else
7914: ac_cv_header_stdc=no
7915: fi
7916: rm -f conftest*
7917:
7918: fi
7919:
7920: if test $ac_cv_header_stdc = yes; then
7921: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15 bertrand 7922: if test "$cross_compiling" = yes; then :
1.1 bertrand 7923: :
7924: else
1.15 bertrand 7925: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7926: /* end confdefs.h. */
7927: #include <ctype.h>
7928: #include <stdlib.h>
7929: #if ((' ' & 0x0FF) == 0x020)
7930: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7931: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7932: #else
7933: # define ISLOWER(c) \
7934: (('a' <= (c) && (c) <= 'i') \
7935: || ('j' <= (c) && (c) <= 'r') \
7936: || ('s' <= (c) && (c) <= 'z'))
7937: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7938: #endif
7939:
7940: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7941: int
7942: main ()
7943: {
7944: int i;
7945: for (i = 0; i < 256; i++)
7946: if (XOR (islower (i), ISLOWER (i))
7947: || toupper (i) != TOUPPER (i))
7948: return 2;
7949: return 0;
7950: }
7951: _ACEOF
1.15 bertrand 7952: if ac_fn_c_try_run "$LINENO"; then :
7953:
1.14 bertrand 7954: else
1.15 bertrand 7955: ac_cv_header_stdc=no
7956: fi
7957: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7958: conftest.$ac_objext conftest.beam conftest.$ac_ext
7959: fi
1.1 bertrand 7960:
7961: fi
7962: fi
1.15 bertrand 7963: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7964: $as_echo "$ac_cv_header_stdc" >&6; }
7965: if test $ac_cv_header_stdc = yes; then
1.1 bertrand 7966:
1.15 bertrand 7967: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14 bertrand 7968:
1.1 bertrand 7969: fi
7970:
1.15 bertrand 7971: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7972: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7973: inttypes.h stdint.h unistd.h
7974: do :
7975: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7976: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7977: "
1.36 bertrand 7978: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 7979: cat >>confdefs.h <<_ACEOF
7980: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14 bertrand 7981: _ACEOF
1.1 bertrand 7982:
7983: fi
7984:
1.15 bertrand 7985: done
7986:
7987:
7988: # The cast to long int works around a bug in the HP C Compiler
7989: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7990: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7991: # This bug is HP SR number 8606223364.
7992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7993: $as_echo_n "checking size of void *... " >&6; }
7994: if test "${ac_cv_sizeof_void_p+set}" = set; then :
7995: $as_echo_n "(cached) " >&6
7996: else
7997: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
1.14 bertrand 7998:
7999: else
1.15 bertrand 8000: if test "$ac_cv_type_void_p" = yes; then
8001: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8002: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8003: as_fn_error 77 "cannot compute sizeof (void *)
8004: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8005: else
8006: ac_cv_sizeof_void_p=0
8007: fi
8008: fi
1.1 bertrand 8009:
8010: fi
1.15 bertrand 8011: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8012: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8013:
1.1 bertrand 8014:
8015:
1.15 bertrand 8016: cat >>confdefs.h <<_ACEOF
8017: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14 bertrand 8018: _ACEOF
1.1 bertrand 8019:
1.15 bertrand 8020:
8021: # The cast to long int works around a bug in the HP C Compiler
8022: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8023: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8024: # This bug is HP SR number 8606223364.
8025: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8026: $as_echo_n "checking size of char... " >&6; }
8027: if test "${ac_cv_sizeof_char+set}" = set; then :
8028: $as_echo_n "(cached) " >&6
8029: else
8030: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8031:
8032: else
8033: if test "$ac_cv_type_char" = yes; then
8034: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8035: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8036: as_fn_error 77 "cannot compute sizeof (char)
8037: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8038: else
8039: ac_cv_sizeof_char=0
8040: fi
8041: fi
8042:
1.1 bertrand 8043: fi
1.15 bertrand 8044: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8045: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1 bertrand 8046:
8047:
8048:
1.15 bertrand 8049: cat >>confdefs.h <<_ACEOF
8050: #define SIZEOF_CHAR $ac_cv_sizeof_char
8051: _ACEOF
1.1 bertrand 8052:
8053:
1.15 bertrand 8054: # The cast to long int works around a bug in the HP C Compiler
8055: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8056: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8057: # This bug is HP SR number 8606223364.
8058: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8059: $as_echo_n "checking size of short int... " >&6; }
8060: if test "${ac_cv_sizeof_short_int+set}" = set; then :
8061: $as_echo_n "(cached) " >&6
8062: else
8063: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
1.1 bertrand 8064:
1.15 bertrand 8065: else
8066: if test "$ac_cv_type_short_int" = yes; then
8067: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8068: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8069: as_fn_error 77 "cannot compute sizeof (short int)
8070: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8071: else
8072: ac_cv_sizeof_short_int=0
8073: fi
8074: fi
1.1 bertrand 8075:
1.15 bertrand 8076: fi
8077: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8078: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1 bertrand 8079:
8080:
8081:
1.15 bertrand 8082: cat >>confdefs.h <<_ACEOF
8083: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8084: _ACEOF
1.1 bertrand 8085:
8086:
1.15 bertrand 8087: # The cast to long int works around a bug in the HP C Compiler
8088: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8089: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8090: # This bug is HP SR number 8606223364.
8091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8092: $as_echo_n "checking size of int... " >&6; }
8093: if test "${ac_cv_sizeof_int+set}" = set; then :
8094: $as_echo_n "(cached) " >&6
8095: else
8096: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
1.1 bertrand 8097:
1.15 bertrand 8098: else
8099: if test "$ac_cv_type_int" = yes; then
8100: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8101: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8102: as_fn_error 77 "cannot compute sizeof (int)
8103: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8104: else
8105: ac_cv_sizeof_int=0
8106: fi
8107: fi
1.1 bertrand 8108:
1.15 bertrand 8109: fi
8110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8111: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1 bertrand 8112:
8113:
8114:
1.15 bertrand 8115: cat >>confdefs.h <<_ACEOF
8116: #define SIZEOF_INT $ac_cv_sizeof_int
8117: _ACEOF
1.1 bertrand 8118:
8119:
1.15 bertrand 8120: # The cast to long int works around a bug in the HP C Compiler
8121: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8122: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8123: # This bug is HP SR number 8606223364.
8124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8125: $as_echo_n "checking size of long int... " >&6; }
8126: if test "${ac_cv_sizeof_long_int+set}" = set; then :
8127: $as_echo_n "(cached) " >&6
8128: else
8129: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
1.1 bertrand 8130:
1.14 bertrand 8131: else
1.15 bertrand 8132: if test "$ac_cv_type_long_int" = yes; then
8133: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8134: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8135: as_fn_error 77 "cannot compute sizeof (long int)
8136: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8137: else
8138: ac_cv_sizeof_long_int=0
8139: fi
8140: fi
1.1 bertrand 8141:
8142: fi
1.15 bertrand 8143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8144: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8145:
1.1 bertrand 8146:
8147:
1.15 bertrand 8148: cat >>confdefs.h <<_ACEOF
8149: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14 bertrand 8150: _ACEOF
1.15 bertrand 8151:
8152:
8153: # The cast to long int works around a bug in the HP C Compiler
8154: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8155: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8156: # This bug is HP SR number 8606223364.
8157: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8158: $as_echo_n "checking size of long long int... " >&6; }
8159: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
8160: $as_echo_n "(cached) " >&6
8161: else
8162: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8163:
1.14 bertrand 8164: else
1.15 bertrand 8165: if test "$ac_cv_type_long_long_int" = yes; then
8166: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8167: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8168: as_fn_error 77 "cannot compute sizeof (long long int)
8169: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8170: else
8171: ac_cv_sizeof_long_long_int=0
8172: fi
8173: fi
1.1 bertrand 8174:
1.14 bertrand 8175: fi
1.15 bertrand 8176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8177: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8178:
8179:
8180:
8181: cat >>confdefs.h <<_ACEOF
8182: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8183: _ACEOF
1.1 bertrand 8184:
8185:
1.15 bertrand 8186: # The cast to long int works around a bug in the HP C Compiler
8187: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8188: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8189: # This bug is HP SR number 8606223364.
8190: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8191: $as_echo_n "checking size of float... " >&6; }
8192: if test "${ac_cv_sizeof_float+set}" = set; then :
8193: $as_echo_n "(cached) " >&6
8194: else
8195: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
1.1 bertrand 8196:
8197: else
1.15 bertrand 8198: if test "$ac_cv_type_float" = yes; then
8199: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8200: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8201: as_fn_error 77 "cannot compute sizeof (float)
8202: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8203: else
8204: ac_cv_sizeof_float=0
8205: fi
1.14 bertrand 8206: fi
8207:
1.1 bertrand 8208: fi
1.15 bertrand 8209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8210: $as_echo "$ac_cv_sizeof_float" >&6; }
8211:
8212:
8213:
8214: cat >>confdefs.h <<_ACEOF
8215: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14 bertrand 8216: _ACEOF
1.1 bertrand 8217:
8218:
1.15 bertrand 8219: # The cast to long int works around a bug in the HP C Compiler
8220: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8221: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8222: # This bug is HP SR number 8606223364.
8223: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8224: $as_echo_n "checking size of double... " >&6; }
8225: if test "${ac_cv_sizeof_double+set}" = set; then :
8226: $as_echo_n "(cached) " >&6
8227: else
8228: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
1.1 bertrand 8229:
1.15 bertrand 8230: else
8231: if test "$ac_cv_type_double" = yes; then
8232: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8233: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8234: as_fn_error 77 "cannot compute sizeof (double)
8235: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8236: else
8237: ac_cv_sizeof_double=0
8238: fi
8239: fi
1.1 bertrand 8240:
1.15 bertrand 8241: fi
8242: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8243: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14 bertrand 8244:
1.1 bertrand 8245:
8246:
1.15 bertrand 8247: cat >>confdefs.h <<_ACEOF
8248: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14 bertrand 8249: _ACEOF
1.15 bertrand 8250:
8251:
8252: # The cast to long int works around a bug in the HP C Compiler
8253: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8254: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8255: # This bug is HP SR number 8606223364.
8256: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8257: $as_echo_n "checking size of long double... " >&6; }
8258: if test "${ac_cv_sizeof_long_double+set}" = set; then :
8259: $as_echo_n "(cached) " >&6
8260: else
8261: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8262:
1.14 bertrand 8263: else
1.15 bertrand 8264: if test "$ac_cv_type_long_double" = yes; then
8265: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8266: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8267: as_fn_error 77 "cannot compute sizeof (long double)
8268: See \`config.log' for more details" "$LINENO" 5 ; }
1.15 bertrand 8269: else
8270: ac_cv_sizeof_long_double=0
8271: fi
8272: fi
1.1 bertrand 8273:
8274: fi
1.15 bertrand 8275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8276: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8277:
1.1 bertrand 8278:
8279:
1.15 bertrand 8280: cat >>confdefs.h <<_ACEOF
8281: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1 bertrand 8282: _ACEOF
8283:
8284:
1.15 bertrand 8285:
8286: ac_header_dirent=no
8287: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8288: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8289: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8290: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
1.36 bertrand 8291: if eval "test \"\${$as_ac_Header+set}\"" = set; then :
1.15 bertrand 8292: $as_echo_n "(cached) " >&6
1.1 bertrand 8293: else
1.15 bertrand 8294: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 8295: /* end confdefs.h. */
8296: #include <sys/types.h>
1.15 bertrand 8297: #include <$ac_hdr>
1.1 bertrand 8298:
1.15 bertrand 8299: int
8300: main ()
8301: {
8302: if ((DIR *) 0)
8303: return 0;
8304: ;
8305: return 0;
8306: }
1.1 bertrand 8307: _ACEOF
1.15 bertrand 8308: if ac_fn_c_try_compile "$LINENO"; then :
8309: eval "$as_ac_Header=yes"
1.1 bertrand 8310: else
1.15 bertrand 8311: eval "$as_ac_Header=no"
8312: fi
8313: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8314: fi
1.15 bertrand 8315: eval ac_res=\$$as_ac_Header
8316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8317: $as_echo "$ac_res" >&6; }
1.36 bertrand 8318: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8319: cat >>confdefs.h <<_ACEOF
8320: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8321: _ACEOF
1.1 bertrand 8322:
1.15 bertrand 8323: ac_header_dirent=$ac_hdr; break
1.1 bertrand 8324: fi
8325:
1.15 bertrand 8326: done
8327: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8328: if test $ac_header_dirent = dirent.h; then
8329: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8330: $as_echo_n "checking for library containing opendir... " >&6; }
8331: if test "${ac_cv_search_opendir+set}" = set; then :
8332: $as_echo_n "(cached) " >&6
8333: else
8334: ac_func_search_save_LIBS=$LIBS
8335: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336: /* end confdefs.h. */
8337:
8338: /* Override any GCC internal prototype to avoid an error.
8339: Use char because int might match the return type of a GCC
8340: builtin and then its argument prototype would still apply. */
8341: #ifdef __cplusplus
8342: extern "C"
8343: #endif
8344: char opendir ();
8345: int
8346: main ()
8347: {
8348: return opendir ();
8349: ;
8350: return 0;
8351: }
1.14 bertrand 8352: _ACEOF
1.15 bertrand 8353: for ac_lib in '' dir; do
8354: if test -z "$ac_lib"; then
8355: ac_res="none required"
8356: else
8357: ac_res=-l$ac_lib
8358: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8359: fi
8360: if ac_fn_c_try_link "$LINENO"; then :
8361: ac_cv_search_opendir=$ac_res
8362: fi
8363: rm -f core conftest.err conftest.$ac_objext \
8364: conftest$ac_exeext
8365: if test "${ac_cv_search_opendir+set}" = set; then :
8366: break
8367: fi
8368: done
8369: if test "${ac_cv_search_opendir+set}" = set; then :
1.1 bertrand 8370:
1.15 bertrand 8371: else
8372: ac_cv_search_opendir=no
8373: fi
8374: rm conftest.$ac_ext
8375: LIBS=$ac_func_search_save_LIBS
8376: fi
8377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8378: $as_echo "$ac_cv_search_opendir" >&6; }
8379: ac_res=$ac_cv_search_opendir
8380: if test "$ac_res" != no; then :
8381: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 bertrand 8382:
1.14 bertrand 8383: fi
1.1 bertrand 8384:
8385: else
1.15 bertrand 8386: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8387: $as_echo_n "checking for library containing opendir... " >&6; }
8388: if test "${ac_cv_search_opendir+set}" = set; then :
8389: $as_echo_n "(cached) " >&6
8390: else
8391: ac_func_search_save_LIBS=$LIBS
8392: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8393: /* end confdefs.h. */
1.15 bertrand 8394:
8395: /* Override any GCC internal prototype to avoid an error.
8396: Use char because int might match the return type of a GCC
8397: builtin and then its argument prototype would still apply. */
8398: #ifdef __cplusplus
8399: extern "C"
8400: #endif
8401: char opendir ();
1.1 bertrand 8402: int
8403: main ()
8404: {
1.15 bertrand 8405: return opendir ();
1.1 bertrand 8406: ;
8407: return 0;
8408: }
8409: _ACEOF
1.15 bertrand 8410: for ac_lib in '' x; do
8411: if test -z "$ac_lib"; then
8412: ac_res="none required"
8413: else
8414: ac_res=-l$ac_lib
8415: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8416: fi
8417: if ac_fn_c_try_link "$LINENO"; then :
8418: ac_cv_search_opendir=$ac_res
8419: fi
8420: rm -f core conftest.err conftest.$ac_objext \
8421: conftest$ac_exeext
8422: if test "${ac_cv_search_opendir+set}" = set; then :
8423: break
8424: fi
8425: done
8426: if test "${ac_cv_search_opendir+set}" = set; then :
8427:
1.1 bertrand 8428: else
1.15 bertrand 8429: ac_cv_search_opendir=no
8430: fi
8431: rm conftest.$ac_ext
8432: LIBS=$ac_func_search_save_LIBS
1.1 bertrand 8433: fi
1.15 bertrand 8434: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8435: $as_echo "$ac_cv_search_opendir" >&6; }
8436: ac_res=$ac_cv_search_opendir
8437: if test "$ac_res" != no; then :
8438: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14 bertrand 8439:
1.1 bertrand 8440: fi
8441:
8442: fi
8443:
1.15 bertrand 8444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8445: $as_echo_n "checking for ANSI C header files... " >&6; }
8446: if test "${ac_cv_header_stdc+set}" = set; then :
8447: $as_echo_n "(cached) " >&6
1.1 bertrand 8448: else
1.15 bertrand 8449: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8450: /* end confdefs.h. */
1.15 bertrand 8451: #include <stdlib.h>
8452: #include <stdarg.h>
8453: #include <string.h>
8454: #include <float.h>
8455:
1.1 bertrand 8456: int
8457: main ()
8458: {
1.15 bertrand 8459:
1.1 bertrand 8460: ;
8461: return 0;
8462: }
8463: _ACEOF
1.15 bertrand 8464: if ac_fn_c_try_compile "$LINENO"; then :
8465: ac_cv_header_stdc=yes
1.14 bertrand 8466: else
1.15 bertrand 8467: ac_cv_header_stdc=no
8468: fi
8469: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470:
8471: if test $ac_cv_header_stdc = yes; then
8472: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8473: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474: /* end confdefs.h. */
8475: #include <string.h>
8476:
8477: _ACEOF
8478: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8479: $EGREP "memchr" >/dev/null 2>&1; then :
1.14 bertrand 8480:
1.15 bertrand 8481: else
8482: ac_cv_header_stdc=no
1.1 bertrand 8483: fi
1.15 bertrand 8484: rm -f conftest*
1.14 bertrand 8485:
1.1 bertrand 8486: fi
8487:
1.15 bertrand 8488: if test $ac_cv_header_stdc = yes; then
8489: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8490: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491: /* end confdefs.h. */
8492: #include <stdlib.h>
8493:
1.14 bertrand 8494: _ACEOF
1.15 bertrand 8495: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8496: $EGREP "free" >/dev/null 2>&1; then :
8497:
8498: else
8499: ac_cv_header_stdc=no
8500: fi
8501: rm -f conftest*
1.1 bertrand 8502:
8503: fi
8504:
1.15 bertrand 8505: if test $ac_cv_header_stdc = yes; then
8506: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8507: if test "$cross_compiling" = yes; then :
8508: :
1.1 bertrand 8509: else
1.15 bertrand 8510: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8511: /* end confdefs.h. */
1.15 bertrand 8512: #include <ctype.h>
8513: #include <stdlib.h>
8514: #if ((' ' & 0x0FF) == 0x020)
8515: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8516: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8517: #else
8518: # define ISLOWER(c) \
8519: (('a' <= (c) && (c) <= 'i') \
8520: || ('j' <= (c) && (c) <= 'r') \
8521: || ('s' <= (c) && (c) <= 'z'))
8522: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8523: #endif
1.1 bertrand 8524:
1.15 bertrand 8525: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1 bertrand 8526: int
8527: main ()
8528: {
1.15 bertrand 8529: int i;
8530: for (i = 0; i < 256; i++)
8531: if (XOR (islower (i), ISLOWER (i))
8532: || toupper (i) != TOUPPER (i))
8533: return 2;
1.1 bertrand 8534: return 0;
8535: }
8536: _ACEOF
1.15 bertrand 8537: if ac_fn_c_try_run "$LINENO"; then :
8538:
1.14 bertrand 8539: else
1.15 bertrand 8540: ac_cv_header_stdc=no
8541: fi
8542: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8543: conftest.$ac_objext conftest.beam conftest.$ac_ext
8544: fi
1.14 bertrand 8545:
1.1 bertrand 8546: fi
8547: fi
1.15 bertrand 8548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8549: $as_echo "$ac_cv_header_stdc" >&6; }
8550: if test $ac_cv_header_stdc = yes; then
1.1 bertrand 8551:
1.15 bertrand 8552: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1 bertrand 8553:
8554: fi
8555:
1.15 bertrand 8556: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8557: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8558: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8559: $as_echo_n "(cached) " >&6
1.1 bertrand 8560: else
1.15 bertrand 8561: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8562: /* end confdefs.h. */
1.14 bertrand 8563: #include <sys/types.h>
1.15 bertrand 8564: #include <sys/wait.h>
8565: #ifndef WEXITSTATUS
8566: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8567: #endif
8568: #ifndef WIFEXITED
8569: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8570: #endif
1.1 bertrand 8571:
8572: int
8573: main ()
8574: {
1.15 bertrand 8575: int s;
8576: wait (&s);
8577: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1 bertrand 8578: ;
8579: return 0;
8580: }
8581: _ACEOF
1.15 bertrand 8582: if ac_fn_c_try_compile "$LINENO"; then :
8583: ac_cv_header_sys_wait_h=yes
1.1 bertrand 8584: else
1.15 bertrand 8585: ac_cv_header_sys_wait_h=no
8586: fi
8587: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588: fi
8589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8590: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8591: if test $ac_cv_header_sys_wait_h = yes; then
1.1 bertrand 8592:
1.15 bertrand 8593: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1 bertrand 8594:
8595: fi
8596:
1.15 bertrand 8597: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8598: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8599: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8600: do :
8601: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8602: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1.36 bertrand 8603: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
1.15 bertrand 8604: cat >>confdefs.h <<_ACEOF
8605: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 bertrand 8606: _ACEOF
8607:
8608: fi
8609:
1.15 bertrand 8610: done
8611:
1.1 bertrand 8612:
1.15 bertrand 8613: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8614: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8615: if test "${ac_cv_c_const+set}" = set; then :
8616: $as_echo_n "(cached) " >&6
1.1 bertrand 8617: else
1.15 bertrand 8618: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8619: /* end confdefs.h. */
8620:
8621: int
8622: main ()
8623: {
1.15 bertrand 8624: /* FIXME: Include the comments suggested by Paul. */
8625: #ifndef __cplusplus
8626: /* Ultrix mips cc rejects this. */
8627: typedef int charset[2];
8628: const charset cs;
8629: /* SunOS 4.1.1 cc rejects this. */
8630: char const *const *pcpcc;
8631: char **ppc;
8632: /* NEC SVR4.0.2 mips cc rejects this. */
8633: struct point {int x, y;};
8634: static struct point const zero = {0,0};
8635: /* AIX XL C 1.02.0.0 rejects this.
8636: It does not let you subtract one const X* pointer from another in
8637: an arm of an if-expression whose if-part is not a constant
8638: expression */
8639: const char *g = "string";
8640: pcpcc = &g + (g ? g-g : 0);
8641: /* HPUX 7.0 cc rejects these. */
8642: ++pcpcc;
8643: ppc = (char**) pcpcc;
8644: pcpcc = (char const *const *) ppc;
8645: { /* SCO 3.2v4 cc rejects this. */
8646: char *t;
8647: char const *s = 0 ? (char *) 0 : (char const *) 0;
8648:
8649: *t++ = 0;
8650: if (s) return 0;
8651: }
8652: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8653: int x[] = {25, 17};
8654: const int *foo = &x[0];
8655: ++foo;
8656: }
8657: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8658: typedef const int *iptr;
8659: iptr p = 0;
8660: ++p;
8661: }
8662: { /* AIX XL C 1.02.0.0 rejects this saying
8663: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8664: struct s { int j; const int *ap[3]; };
8665: struct s *b; b->j = 5;
8666: }
8667: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8668: const int foo = 10;
8669: if (!foo) return 0;
8670: }
8671: return !cs[0] && !zero.x;
8672: #endif
8673:
1.14 bertrand 8674: ;
1.1 bertrand 8675: return 0;
8676: }
8677: _ACEOF
1.15 bertrand 8678: if ac_fn_c_try_compile "$LINENO"; then :
8679: ac_cv_c_const=yes
1.14 bertrand 8680: else
1.15 bertrand 8681: ac_cv_c_const=no
1.1 bertrand 8682: fi
1.14 bertrand 8683: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8684: fi
1.15 bertrand 8685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8686: $as_echo "$ac_cv_c_const" >&6; }
8687: if test $ac_cv_c_const = no; then
1.1 bertrand 8688:
1.15 bertrand 8689: $as_echo "#define const /**/" >>confdefs.h
1.1 bertrand 8690:
1.15 bertrand 8691: fi
1.1 bertrand 8692:
1.15 bertrand 8693: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8694: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8695: if test "${ac_cv_type_uid_t+set}" = set; then :
8696: $as_echo_n "(cached) " >&6
1.1 bertrand 8697: else
1.15 bertrand 8698: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8699: /* end confdefs.h. */
1.15 bertrand 8700: #include <sys/types.h>
8701:
1.1 bertrand 8702: _ACEOF
1.15 bertrand 8703: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8704: $EGREP "uid_t" >/dev/null 2>&1; then :
8705: ac_cv_type_uid_t=yes
1.1 bertrand 8706: else
1.15 bertrand 8707: ac_cv_type_uid_t=no
8708: fi
8709: rm -f conftest*
1.14 bertrand 8710:
1.1 bertrand 8711: fi
1.15 bertrand 8712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8713: $as_echo "$ac_cv_type_uid_t" >&6; }
8714: if test $ac_cv_type_uid_t = no; then
1.1 bertrand 8715:
1.15 bertrand 8716: $as_echo "#define uid_t int" >>confdefs.h
1.1 bertrand 8717:
8718:
1.15 bertrand 8719: $as_echo "#define gid_t int" >>confdefs.h
1.1 bertrand 8720:
8721: fi
8722:
1.15 bertrand 8723: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8724: if test "x$ac_cv_type_pid_t" = x""yes; then :
1.1 bertrand 8725:
8726: else
1.15 bertrand 8727:
8728: cat >>confdefs.h <<_ACEOF
8729: #define pid_t int
1.14 bertrand 8730: _ACEOF
8731:
1.15 bertrand 8732: fi
1.14 bertrand 8733:
1.15 bertrand 8734: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8735: if test "x$ac_cv_type_size_t" = x""yes; then :
1.14 bertrand 8736:
1.15 bertrand 8737: else
1.1 bertrand 8738:
1.15 bertrand 8739: cat >>confdefs.h <<_ACEOF
8740: #define size_t unsigned int
1.1 bertrand 8741: _ACEOF
1.14 bertrand 8742:
1.1 bertrand 8743: fi
8744:
1.15 bertrand 8745: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8746: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8747: if test "${ac_cv_header_time+set}" = set; then :
8748: $as_echo_n "(cached) " >&6
1.1 bertrand 8749: else
1.15 bertrand 8750: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8751: /* end confdefs.h. */
1.15 bertrand 8752: #include <sys/types.h>
8753: #include <sys/time.h>
8754: #include <time.h>
1.1 bertrand 8755:
1.14 bertrand 8756: int
8757: main ()
8758: {
1.15 bertrand 8759: if ((struct tm *) 0)
8760: return 0;
1.14 bertrand 8761: ;
8762: return 0;
8763: }
1.1 bertrand 8764: _ACEOF
1.15 bertrand 8765: if ac_fn_c_try_compile "$LINENO"; then :
8766: ac_cv_header_time=yes
1.1 bertrand 8767: else
1.15 bertrand 8768: ac_cv_header_time=no
1.1 bertrand 8769: fi
1.15 bertrand 8770: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8771: fi
1.15 bertrand 8772: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8773: $as_echo "$ac_cv_header_time" >&6; }
8774: if test $ac_cv_header_time = yes; then
1.1 bertrand 8775:
1.15 bertrand 8776: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1 bertrand 8777:
8778: fi
8779:
1.15 bertrand 8780: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8781: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8782: if test "${ac_cv_struct_tm+set}" = set; then :
8783: $as_echo_n "(cached) " >&6
1.1 bertrand 8784: else
1.15 bertrand 8785: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 8786: /* end confdefs.h. */
1.15 bertrand 8787: #include <sys/types.h>
8788: #include <time.h>
1.1 bertrand 8789:
8790: int
8791: main ()
8792: {
1.15 bertrand 8793: struct tm tm;
8794: int *p = &tm.tm_sec;
8795: return !p;
1.1 bertrand 8796: ;
8797: return 0;
8798: }
8799: _ACEOF
1.15 bertrand 8800: if ac_fn_c_try_compile "$LINENO"; then :
8801: ac_cv_struct_tm=time.h
1.1 bertrand 8802: else
1.15 bertrand 8803: ac_cv_struct_tm=sys/time.h
8804: fi
8805: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806: fi
8807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8808: $as_echo "$ac_cv_struct_tm" >&6; }
8809: if test $ac_cv_struct_tm = sys/time.h; then
8810:
8811: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14 bertrand 8812:
1.1 bertrand 8813: fi
8814:
8815:
1.15 bertrand 8816: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8817: $as_echo_n "checking return type of signal handlers... " >&6; }
8818: if test "${ac_cv_type_signal+set}" = set; then :
8819: $as_echo_n "(cached) " >&6
1.1 bertrand 8820: else
1.15 bertrand 8821: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8822: /* end confdefs.h. */
1.15 bertrand 8823: #include <sys/types.h>
8824: #include <signal.h>
1.1 bertrand 8825:
8826: int
8827: main ()
8828: {
1.15 bertrand 8829: return *(signal (0, 0)) (0) == 1;
1.1 bertrand 8830: ;
8831: return 0;
8832: }
8833: _ACEOF
1.15 bertrand 8834: if ac_fn_c_try_compile "$LINENO"; then :
8835: ac_cv_type_signal=int
1.1 bertrand 8836: else
1.15 bertrand 8837: ac_cv_type_signal=void
1.1 bertrand 8838: fi
1.15 bertrand 8839: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8840: fi
1.15 bertrand 8841: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8842: $as_echo "$ac_cv_type_signal" >&6; }
1.14 bertrand 8843:
1.15 bertrand 8844: cat >>confdefs.h <<_ACEOF
8845: #define RETSIGTYPE $ac_cv_type_signal
1.14 bertrand 8846: _ACEOF
1.1 bertrand 8847:
1.15 bertrand 8848:
1.35 bertrand 8849: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken siginfo->si_pid" >&5
8850: $as_echo_n "checking for broken siginfo->si_pid... " >&6; }
8851: if test "$cross_compiling" = yes; then :
8852: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8853: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1.36 bertrand 8854: as_fn_error $? "cannot run test program while cross compiling
8855: See \`config.log' for more details" "$LINENO" 5 ; }
1.35 bertrand 8856: else
8857: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858: /* end confdefs.h. */
8859: #include <unistd.h>
8860: #include <signal.h>
8861: int flag;
8862: void handler(int signal, siginfo_t *siginfo, void *context)
1.39 ! bertrand 8863: { flag = ((*siginfo).si_pid == getpid()) ? 0 : 1; }
1.35 bertrand 8864: int
8865: main ()
8866: {
8867: struct sigaction action;
8868: action.sa_sigaction = handler;
8869: action.sa_flags = SA_SIGINFO;
8870: sigaction(SIGUSR1, &action, NULL);
8871: raise(SIGUSR1);
8872: return(flag);
8873: ;
8874: return 0;
8875: }
8876: _ACEOF
8877: if ac_fn_c_try_run "$LINENO"; then :
8878: BROKEN_SIGINFO=-U_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8879: $as_echo "no" >&6; }
8880: else
8881: BROKEN_SIGINFO=-D_BROKEN_SIGINFO; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8882: $as_echo "yes" >&6; }
8883: fi
8884: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8885: conftest.$ac_objext conftest.beam conftest.$ac_ext
8886: fi
8887:
8888:
1.15 bertrand 8889: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8890: $as_echo_n "checking for working strcoll... " >&6; }
8891: if test "${ac_cv_func_strcoll_works+set}" = set; then :
8892: $as_echo_n "(cached) " >&6
8893: else
8894: if test "$cross_compiling" = yes; then :
8895: ac_cv_func_strcoll_works=no
8896: else
8897: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898: /* end confdefs.h. */
8899: $ac_includes_default
8900: int
8901: main ()
8902: {
8903: return (strcoll ("abc", "def") >= 0 ||
8904: strcoll ("ABC", "DEF") >= 0 ||
8905: strcoll ("123", "456") >= 0)
8906: ;
8907: return 0;
8908: }
8909: _ACEOF
8910: if ac_fn_c_try_run "$LINENO"; then :
8911: ac_cv_func_strcoll_works=yes
8912: else
8913: ac_cv_func_strcoll_works=no
8914: fi
8915: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8916: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14 bertrand 8917: fi
1.1 bertrand 8918:
8919: fi
1.15 bertrand 8920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
8921: $as_echo "$ac_cv_func_strcoll_works" >&6; }
8922: if test $ac_cv_func_strcoll_works = yes; then
1.14 bertrand 8923:
1.15 bertrand 8924: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1 bertrand 8925:
1.15 bertrand 8926: fi
1.1 bertrand 8927:
1.15 bertrand 8928: for ac_func in strftime
8929: do :
8930: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8931: if test "x$ac_cv_func_strftime" = x""yes; then :
8932: cat >>confdefs.h <<_ACEOF
8933: #define HAVE_STRFTIME 1
8934: _ACEOF
1.1 bertrand 8935:
8936: else
1.15 bertrand 8937: # strftime is in -lintl on SCO UNIX.
8938: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8939: $as_echo_n "checking for strftime in -lintl... " >&6; }
8940: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8941: $as_echo_n "(cached) " >&6
8942: else
8943: ac_check_lib_save_LIBS=$LIBS
8944: LIBS="-lintl $LIBS"
8945: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8946: /* end confdefs.h. */
8947:
8948: /* Override any GCC internal prototype to avoid an error.
8949: Use char because int might match the return type of a GCC
8950: builtin and then its argument prototype would still apply. */
8951: #ifdef __cplusplus
8952: extern "C"
8953: #endif
1.15 bertrand 8954: char strftime ();
1.1 bertrand 8955: int
8956: main ()
8957: {
1.15 bertrand 8958: return strftime ();
1.1 bertrand 8959: ;
8960: return 0;
8961: }
8962: _ACEOF
1.15 bertrand 8963: if ac_fn_c_try_link "$LINENO"; then :
8964: ac_cv_lib_intl_strftime=yes
1.1 bertrand 8965: else
1.15 bertrand 8966: ac_cv_lib_intl_strftime=no
8967: fi
8968: rm -f core conftest.err conftest.$ac_objext \
8969: conftest$ac_exeext conftest.$ac_ext
8970: LIBS=$ac_check_lib_save_LIBS
8971: fi
8972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8973: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
8974: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
8975: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8976:
8977: LIBS="-lintl $LIBS"
8978: fi
8979:
8980: fi
8981: done
8982:
8983: for ac_func in vprintf
8984: do :
8985: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
8986: if test "x$ac_cv_func_vprintf" = x""yes; then :
8987: cat >>confdefs.h <<_ACEOF
8988: #define HAVE_VPRINTF 1
8989: _ACEOF
8990:
8991: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
8992: if test "x$ac_cv_func__doprnt" = x""yes; then :
8993:
8994: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1 bertrand 8995:
8996: fi
8997:
8998: fi
1.15 bertrand 8999: done
9000:
9001:
9002: for ac_func in ftime getcwd putenv select strcspn strdup \
9003: strerror strspn strstr strtod
9004: do :
9005: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9006: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
1.36 bertrand 9007: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
1.1 bertrand 9008: cat >>confdefs.h <<_ACEOF
1.15 bertrand 9009: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 bertrand 9010: _ACEOF
9011:
9012: fi
9013: done
9014:
9015:
1.15 bertrand 9016:
9017: # Check whether --with-openssl_arch was given.
9018: if test "${with_openssl_arch+set}" = set; then :
9019: withval=$with_openssl_arch;
9020: else
9021: with_openssl_arch=none
9022: fi
9023:
9024:
1.31 bertrand 9025: if test $(uname) = "OS/2"; then
1.34 bertrand 9026: bash -c "cd tools/$OPENSSL && os2/OS2-EMX.cmd"
1.15 bertrand 9027: else
1.31 bertrand 9028: if test "x$with_openssl_arch" = xnone; then
9029: (cd tools/$OPENSSL && ./config)
9030: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
9031: (cd tools/$OPENSSL && ./Configure)
1.36 bertrand 9032: as_fn_error $? "OS/COMP informations are required!" "$LINENO" 5
1.31 bertrand 9033: elif test "x$with_openssl_arch" = xlist; then
9034: (cd tools/$OPENSSL && ./Configure)
1.36 bertrand 9035: as_fn_error $? "Please specify OS and Architecture" "$LINENO" 5
1.31 bertrand 9036: else
9037: (cd tools/$OPENSSL && ./Configure $with_openssl_arch)
9038: fi
1.15 bertrand 9039: fi
1.1 bertrand 9040:
1.34 bertrand 9041:
9042:
9043: subdirs="$subdirs tools/$NCURSES"
9044:
9045: subdirs="$subdirs tools/$READLINE"
9046:
9047: subdirs="$subdirs tools/$GSL"
9048:
9049: subdirs="$subdirs tools/$GPP"
9050:
9051: subdirs="$subdirs tools/$FILE"
9052:
9053: subdirs="$subdirs tools/$ICONV"
9054:
9055: subdirs="$subdirs tools/$SQLITE"
9056:
9057: subdirs="$subdirs tools/$UNITS"
9058:
9059:
1.1 bertrand 9060: if test "$MYGNUPLOT" = "yes"; then
9061: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9062: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9063: (cd "$srcdir/tools" && tar -xf -)
9064: fi
9065: subdirs="$subdirs tools/$GNUPLOT"
9066:
9067: GNUPLOT_COMPILATION=$GNUPLOT
9068: else
9069: GNUPLOT_COMPILATION=
9070: fi
9071:
9072:
9073:
9074: case $host_cpu in
9075:
9076: i?86)
9077: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9078: -Wno-pointer-sign"
9079: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9080: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9081: break ;;
9082:
9083: x86_64*)
9084: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9085: -Wno-pointer-sign"
9086: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9087: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9088: break ;;
9089:
9090: alpha*)
9091: CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
9092: -Wno-pointer-sign"
9093: FFLAGS="$FFLAGS -mieee -Wall"
9094: FCFLAGS="$FCFLAGS -mieee -Wall"
9095: break ;;
9096:
9097: sparc*)
9098: CFLAGS="$CFLAGS -Wall -funsigned-char \
9099: -Wno-pointer-sign"
9100: FFLAGS="$FFLAGS -Wall"
9101: FCFLAGS="$FCFLAGS -Wall"
9102: break ;;
9103:
9104: esac
9105:
1.8 bertrand 9106: case $host_os in
9107:
9108: cygwin*)
9109: OS=Cygwin
9110: break ;;
9111:
9112: interix*)
9113: OS=Interix
9114: break ;;
9115:
9116: *)
9117: OS=$(uname)
9118: break ;;
9119:
9120: esac
9121:
9122:
9123:
1.1 bertrand 9124: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9125: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
9126:
1.22 bertrand 9127: case $OS in
1.17 bertrand 9128:
9129: Darwin)
1.31 bertrand 9130: EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17 bertrand 9131: NESTED_FUNCTIONS=-fnested-functions
9132: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36 bertrand 9133: IPCS_SYSV=-UIPCS_SYSV
1.23 bertrand 9134: CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31 bertrand 9135: ac_configure_args="$ac_configure_args --with-readline=builtin \
9136: --disable-shared --enable-static"
1.33 bertrand 9137: C_STANDARD=-std=gnu99
1.17 bertrand 9138: break ;;
9139:
1.31 bertrand 9140: Cygwin)
9141: EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17 bertrand 9142: NESTED_FUNCTIONS=
9143: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9144: IPCS_SYSV=-UIPCS_SYSV
1.31 bertrand 9145: ac_configure_args="$ac_configure_args --with-readline=builtin \
9146: --disable-shared --enable-static"
1.33 bertrand 9147: C_STANDARD=-std=gnu99
1.17 bertrand 9148: break ;;
9149:
1.34 bertrand 9150: Interix)
9151: EXPORT_DYNAMIC=-Wl,--export-all-symbols
9152: NESTED_FUNCTIONS=
9153: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9154: IPCS_SYSV=-UIPCS_SYSV
1.34 bertrand 9155: ac_configure_args="$ac_configure_args --with-readline=builtin \
9156: --disable-shared --enable-static"
9157: C_STANDARD=-std=gnu99
9158: break;;
9159:
1.31 bertrand 9160: AIX)
9161: EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18 bertrand 9162: NESTED_FUNCTIONS=
9163: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.36 bertrand 9164: IPCS_SYSV=-UIPCS_SYSV
1.31 bertrand 9165: ac_configure_args="$ac_configure_args --with-readline=builtin \
9166: --disable-shared --enable-static"
1.33 bertrand 9167: C_STANDARD=-std=gnu99
1.18 bertrand 9168: break ;;
9169:
1.31 bertrand 9170: OS/2)
9171: MALLOC=
1.37 bertrand 9172: if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35 bertrand 9173: FINAL_ENCODING=CP850; \
9174: fi;
1.31 bertrand 9175: OS=OS2
9176: NESTED_FUNCTIONS=
9177: EXPORT_DYNAMIC=-Zmap
9178: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9179: IPCS_SYSV=-DIPCS_SYSV
1.31 bertrand 9180: ac_configure_args="$ac_configure_args --without-readline \
9181: --without-cairo --disable-shared --enable-static"
1.33 bertrand 9182: C_STANDARD=
1.31 bertrand 9183: break;;
9184:
1.35 bertrand 9185: OpenBSD)
1.37 bertrand 9186: if test $FORCED_FINAL_ENCODING -eq 0; then \
1.35 bertrand 9187: FINAL_ENCODING=UTF-8; \
9188: fi;
9189: EXPORT_DYNAMIC=-Wl,--export-dynamic
9190: NESTED_FUNCTIONS=
9191: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9192: IPCS_SYSV=-DIPCS_SYSV
1.35 bertrand 9193: ac_configure_args="$ac_configure_args --with-readline=builtin \
9194: --disable-shared --enable-static"
9195: C_STANDARD=-std=gnu99
9196: break;;
9197:
1.17 bertrand 9198: *)
1.31 bertrand 9199: EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17 bertrand 9200: NESTED_FUNCTIONS=
9201: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.36 bertrand 9202:
9203: if test $IPCS_SYSV = no; then
9204: IPCS_SYSV=-UIPCS_SYSV
9205: else
9206: IPCS_SYSV=-DIPCS_SYSV
9207: fi
9208:
1.31 bertrand 9209: ac_configure_args="$ac_configure_args --with-readline=builtin \
9210: --disable-shared --enable-static"
1.33 bertrand 9211: C_STANDARD=-std=gnu99
1.17 bertrand 9212: break ;;
9213:
9214: esac
9215:
9216:
9217:
9218:
1.1 bertrand 9219:
9220:
9221:
9222:
9223:
9224:
9225:
9226:
9227:
9228:
9229:
9230:
9231:
9232:
9233:
9234:
9235:
9236:
9237:
1.9 bertrand 9238:
1.24 bertrand 9239:
1.30 bertrand 9240:
1.33 bertrand 9241:
9242:
9243:
1.34 bertrand 9244:
1.35 bertrand 9245:
1.1 bertrand 9246: ac_config_files="$ac_config_files Makefile"
9247:
9248: ac_config_files="$ac_config_files COPYING"
9249:
9250: ac_config_files="$ac_config_files tools/Makefile"
9251:
9252: ac_config_files="$ac_config_files src/Makefile"
9253:
9254: ac_config_files="$ac_config_files man/Makefile"
9255:
9256: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9257:
9258: ac_config_files="$ac_config_files doc/Makefile"
9259:
9260: ac_config_files="$ac_config_files scripts/Makefile"
9261:
9262: ac_config_files="$ac_config_files scripts/mkrplso"
9263:
9264: ac_config_files="$ac_config_files scripts/rplcc"
9265:
9266: ac_config_files="$ac_config_files scripts/rpllink"
9267:
9268: ac_config_files="$ac_config_files rpltags/Makefile"
9269:
9270: ac_config_files="$ac_config_files rpliconv/Makefile"
9271:
1.9 bertrand 9272: ac_config_files="$ac_config_files rplsums/Makefile"
9273:
1.39 ! bertrand 9274: ac_config_files="$ac_config_files rplawk/Makefile"
! 9275:
1.1 bertrand 9276: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9277:
9278: ac_config_files="$ac_config_files lapack/blas/Makefile"
9279:
1.20 bertrand 9280: ac_config_files="$ac_config_files ptmalloc3/Makefile"
9281:
1.1 bertrand 9282:
9283: ac_config_files="$ac_config_files man/rpl.1"
9284:
9285: ac_config_files="$ac_config_files man/rplcc.1"
9286:
9287: ac_config_files="$ac_config_files man/rpllink.1"
9288:
9289: ac_config_files="$ac_config_files man/rpltags.1"
9290:
9291: ac_config_files="$ac_config_files man/mkrplso.1"
9292:
9293: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9294:
9295: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9296:
9297: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9298:
9299: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9300:
9301: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9302:
9303:
9304: cat >confcache <<\_ACEOF
9305: # This file is a shell script that caches the results of configure
9306: # tests run on this system so they can be shared between configure
9307: # scripts and configure runs, see configure's option --config-cache.
9308: # It is not useful on other systems. If it contains results you don't
9309: # want to keep, you may remove or edit it.
9310: #
9311: # config.status only pays attention to the cache file if you give it
9312: # the --recheck option to rerun configure.
9313: #
9314: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9315: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9316: # following values.
9317:
9318: _ACEOF
9319:
9320: # The following way of writing the cache mishandles newlines in values,
9321: # but we know of no workaround that is simple, portable, and efficient.
9322: # So, we kill variables containing newlines.
9323: # Ultrix sh set writes to stderr and can't be redirected directly,
9324: # and sets the high bit in the cache file unless we assign to the vars.
9325: (
9326: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9327: eval ac_val=\$$ac_var
9328: case $ac_val in #(
9329: *${as_nl}*)
9330: case $ac_var in #(
1.15 bertrand 9331: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9332: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 bertrand 9333: esac
9334: case $ac_var in #(
9335: _ | IFS | as_nl) ;; #(
1.15 bertrand 9336: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9337: *) { eval $ac_var=; unset $ac_var;} ;;
1.1 bertrand 9338: esac ;;
9339: esac
9340: done
9341:
9342: (set) 2>&1 |
9343: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9344: *${as_nl}ac_space=\ *)
1.15 bertrand 9345: # `set' does not quote correctly, so add quotes: double-quote
9346: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1 bertrand 9347: sed -n \
9348: "s/'/'\\\\''/g;
9349: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9350: ;; #(
9351: *)
9352: # `set' quotes correctly as required by POSIX, so do not add quotes.
9353: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9354: ;;
9355: esac |
9356: sort
9357: ) |
9358: sed '
9359: /^ac_cv_env_/b end
9360: t clear
9361: :clear
9362: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9363: t end
9364: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9365: :end' >>confcache
9366: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9367: if test -w "$cache_file"; then
9368: test "x$cache_file" != "x/dev/null" &&
1.15 bertrand 9369: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9370: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1 bertrand 9371: cat confcache >$cache_file
9372: else
1.15 bertrand 9373: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9374: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 bertrand 9375: fi
9376: fi
9377: rm -f confcache
9378:
9379: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9380: # Let make expand exec_prefix.
9381: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9382:
9383: DEFS=-DHAVE_CONFIG_H
9384:
9385: ac_libobjs=
9386: ac_ltlibobjs=
1.36 bertrand 9387: U=
1.1 bertrand 9388: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9389: # 1. Remove the extension, and $U if already installed.
9390: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15 bertrand 9391: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1 bertrand 9392: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9393: # will be set to the directory where LIBOBJS objects are built.
1.15 bertrand 9394: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9395: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1 bertrand 9396: done
9397: LIBOBJS=$ac_libobjs
9398:
9399: LTLIBOBJS=$ac_ltlibobjs
9400:
9401:
1.15 bertrand 9402: if test -n "$EXEEXT"; then
9403: am__EXEEXT_TRUE=
9404: am__EXEEXT_FALSE='#'
9405: else
9406: am__EXEEXT_TRUE='#'
9407: am__EXEEXT_FALSE=
9408: fi
9409:
1.1 bertrand 9410: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.36 bertrand 9411: as_fn_error $? "conditional \"AMDEP\" was never defined.
1.15 bertrand 9412: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9413: fi
9414: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.36 bertrand 9415: as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
1.15 bertrand 9416: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9417: fi
9418: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.36 bertrand 9419: as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
1.15 bertrand 9420: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9421: fi
9422:
9423: : ${CONFIG_STATUS=./config.status}
1.15 bertrand 9424: ac_write_fail=0
1.1 bertrand 9425: ac_clean_files_save=$ac_clean_files
9426: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15 bertrand 9427: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9428: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9429: as_write_fail=0
9430: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1 bertrand 9431: #! $SHELL
9432: # Generated by $as_me.
9433: # Run this file to recreate the current configuration.
9434: # Compiler output produced by configure, useful for debugging
9435: # configure, is in config.log if it exists.
9436:
9437: debug=false
9438: ac_cs_recheck=false
9439: ac_cs_silent=false
1.15 bertrand 9440:
1.14 bertrand 9441: SHELL=\${CONFIG_SHELL-$SHELL}
1.15 bertrand 9442: export SHELL
9443: _ASEOF
9444: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9445: ## -------------------- ##
9446: ## M4sh Initialization. ##
9447: ## -------------------- ##
1.1 bertrand 9448:
9449: # Be more Bourne compatible
9450: DUALCASE=1; export DUALCASE # for MKS sh
1.15 bertrand 9451: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 bertrand 9452: emulate sh
9453: NULLCMD=:
1.15 bertrand 9454: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1 bertrand 9455: # is contrary to our usage. Disable this feature.
9456: alias -g '${1+"$@"}'='"$@"'
9457: setopt NO_GLOB_SUBST
9458: else
1.15 bertrand 9459: case `(set -o) 2>/dev/null` in #(
9460: *posix*) :
9461: set -o posix ;; #(
9462: *) :
9463: ;;
1.1 bertrand 9464: esac
9465: fi
9466:
9467:
1.15 bertrand 9468: as_nl='
9469: '
9470: export as_nl
9471: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9472: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9473: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9474: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9475: # Prefer a ksh shell builtin over an external printf program on Solaris,
9476: # but without wasting forks for bash or zsh.
9477: if test -z "$BASH_VERSION$ZSH_VERSION" \
9478: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9479: as_echo='print -r --'
9480: as_echo_n='print -rn --'
9481: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9482: as_echo='printf %s\n'
9483: as_echo_n='printf %s'
9484: else
9485: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9486: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9487: as_echo_n='/usr/ucb/echo -n'
9488: else
9489: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9490: as_echo_n_body='eval
9491: arg=$1;
9492: case $arg in #(
9493: *"$as_nl"*)
9494: expr "X$arg" : "X\\(.*\\)$as_nl";
9495: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9496: esac;
9497: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9498: '
9499: export as_echo_n_body
9500: as_echo_n='sh -c $as_echo_n_body as_echo'
9501: fi
9502: export as_echo_body
9503: as_echo='sh -c $as_echo_body as_echo'
9504: fi
1.14 bertrand 9505:
9506: # The user is always right.
9507: if test "${PATH_SEPARATOR+set}" != set; then
1.15 bertrand 9508: PATH_SEPARATOR=:
9509: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9510: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9511: PATH_SEPARATOR=';'
9512: }
1.1 bertrand 9513: fi
9514:
9515:
9516: # IFS
9517: # We need space, tab and new line, in precisely that order. Quoting is
9518: # there to prevent editors from complaining about space-tab.
9519: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9520: # splitting by setting IFS to empty value.)
9521: IFS=" "" $as_nl"
9522:
9523: # Find who we are. Look in the path if we contain no directory separator.
1.15 bertrand 9524: case $0 in #((
1.1 bertrand 9525: *[\\/]* ) as_myself=$0 ;;
9526: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9527: for as_dir in $PATH
9528: do
9529: IFS=$as_save_IFS
9530: test -z "$as_dir" && as_dir=.
1.15 bertrand 9531: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9532: done
1.1 bertrand 9533: IFS=$as_save_IFS
9534:
9535: ;;
9536: esac
9537: # We did not find ourselves, most probably we were run as `sh COMMAND'
9538: # in which case we are not to be found in the path.
9539: if test "x$as_myself" = x; then
9540: as_myself=$0
9541: fi
9542: if test ! -f "$as_myself"; then
1.15 bertrand 9543: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9544: exit 1
1.1 bertrand 9545: fi
9546:
1.15 bertrand 9547: # Unset variables that we do not need and which cause bugs (e.g. in
9548: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9549: # suppresses any "Segmentation fault" message there. '((' could
9550: # trigger a bug in pdksh 5.2.14.
9551: for as_var in BASH_ENV ENV MAIL MAILPATH
9552: do eval test x\${$as_var+set} = xset \
9553: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1 bertrand 9554: done
9555: PS1='$ '
9556: PS2='> '
9557: PS4='+ '
9558:
9559: # NLS nuisances.
1.15 bertrand 9560: LC_ALL=C
9561: export LC_ALL
9562: LANGUAGE=C
9563: export LANGUAGE
9564:
9565: # CDPATH.
9566: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9567:
9568:
1.36 bertrand 9569: # as_fn_error STATUS ERROR [LINENO LOG_FD]
9570: # ----------------------------------------
1.15 bertrand 9571: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9572: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
1.36 bertrand 9573: # script with STATUS, using 1 if that was 0.
1.15 bertrand 9574: as_fn_error ()
9575: {
1.36 bertrand 9576: as_status=$1; test $as_status -eq 0 && as_status=1
9577: if test "$4"; then
9578: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9579: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
1.15 bertrand 9580: fi
1.36 bertrand 9581: $as_echo "$as_me: error: $2" >&2
1.15 bertrand 9582: as_fn_exit $as_status
9583: } # as_fn_error
9584:
9585:
9586: # as_fn_set_status STATUS
9587: # -----------------------
9588: # Set $? to STATUS, without forking.
9589: as_fn_set_status ()
9590: {
9591: return $1
9592: } # as_fn_set_status
9593:
9594: # as_fn_exit STATUS
9595: # -----------------
9596: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9597: as_fn_exit ()
9598: {
9599: set +e
9600: as_fn_set_status $1
9601: exit $1
9602: } # as_fn_exit
9603:
9604: # as_fn_unset VAR
9605: # ---------------
9606: # Portably unset VAR.
9607: as_fn_unset ()
9608: {
9609: { eval $1=; unset $1;}
9610: }
9611: as_unset=as_fn_unset
9612: # as_fn_append VAR VALUE
9613: # ----------------------
9614: # Append the text in VALUE to the end of the definition contained in VAR. Take
9615: # advantage of any shell optimizations that allow amortized linear growth over
9616: # repeated appends, instead of the typical quadratic growth present in naive
9617: # implementations.
9618: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9619: eval 'as_fn_append ()
9620: {
9621: eval $1+=\$2
9622: }'
9623: else
9624: as_fn_append ()
9625: {
9626: eval $1=\$$1\$2
9627: }
9628: fi # as_fn_append
9629:
9630: # as_fn_arith ARG...
9631: # ------------------
9632: # Perform arithmetic evaluation on the ARGs, and store the result in the
9633: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9634: # must be portable across $(()) and expr.
9635: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9636: eval 'as_fn_arith ()
9637: {
9638: as_val=$(( $* ))
9639: }'
9640: else
9641: as_fn_arith ()
9642: {
9643: as_val=`expr "$@" || test $? -eq 1`
9644: }
9645: fi # as_fn_arith
9646:
1.1 bertrand 9647:
9648: if expr a : '\(a\)' >/dev/null 2>&1 &&
9649: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9650: as_expr=expr
9651: else
9652: as_expr=false
9653: fi
9654:
9655: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9656: as_basename=basename
9657: else
9658: as_basename=false
9659: fi
9660:
1.15 bertrand 9661: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9662: as_dirname=dirname
9663: else
9664: as_dirname=false
9665: fi
1.1 bertrand 9666:
9667: as_me=`$as_basename -- "$0" ||
9668: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9669: X"$0" : 'X\(//\)$' \| \
9670: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 9671: $as_echo X/"$0" |
1.1 bertrand 9672: sed '/^.*\/\([^/][^/]*\)\/*$/{
9673: s//\1/
9674: q
9675: }
9676: /^X\/\(\/\/\)$/{
9677: s//\1/
9678: q
9679: }
9680: /^X\/\(\/\).*/{
9681: s//\1/
9682: q
9683: }
1.14 bertrand 9684: s/.*/./; q'`
9685:
1.15 bertrand 9686: # Avoid depending upon Character Ranges.
9687: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9688: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9689: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9690: as_cr_digits='0123456789'
9691: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 bertrand 9692:
9693: ECHO_C= ECHO_N= ECHO_T=
1.15 bertrand 9694: case `echo -n x` in #(((((
1.1 bertrand 9695: -n*)
1.15 bertrand 9696: case `echo 'xy\c'` in
1.1 bertrand 9697: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.15 bertrand 9698: xy) ECHO_C='\c';;
9699: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9700: ECHO_T=' ';;
1.1 bertrand 9701: esac;;
9702: *)
9703: ECHO_N='-n';;
9704: esac
9705:
9706: rm -f conf$$ conf$$.exe conf$$.file
9707: if test -d conf$$.dir; then
9708: rm -f conf$$.dir/conf$$.file
9709: else
9710: rm -f conf$$.dir
1.15 bertrand 9711: mkdir conf$$.dir 2>/dev/null
1.1 bertrand 9712: fi
1.15 bertrand 9713: if (echo >conf$$.file) 2>/dev/null; then
9714: if ln -s conf$$.file conf$$ 2>/dev/null; then
9715: as_ln_s='ln -s'
9716: # ... but there are two gotchas:
9717: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9718: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9719: # In both cases, we have to default to `cp -p'.
9720: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9721: as_ln_s='cp -p'
9722: elif ln conf$$.file conf$$ 2>/dev/null; then
9723: as_ln_s=ln
9724: else
1.1 bertrand 9725: as_ln_s='cp -p'
1.15 bertrand 9726: fi
1.1 bertrand 9727: else
9728: as_ln_s='cp -p'
9729: fi
9730: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9731: rmdir conf$$.dir 2>/dev/null
9732:
1.15 bertrand 9733:
9734: # as_fn_mkdir_p
9735: # -------------
9736: # Create "$as_dir" as a directory, including parents if necessary.
9737: as_fn_mkdir_p ()
9738: {
9739:
9740: case $as_dir in #(
9741: -*) as_dir=./$as_dir;;
9742: esac
9743: test -d "$as_dir" || eval $as_mkdir_p || {
9744: as_dirs=
9745: while :; do
9746: case $as_dir in #(
9747: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9748: *) as_qdir=$as_dir;;
9749: esac
9750: as_dirs="'$as_qdir' $as_dirs"
9751: as_dir=`$as_dirname -- "$as_dir" ||
9752: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9753: X"$as_dir" : 'X\(//\)[^/]' \| \
9754: X"$as_dir" : 'X\(//\)$' \| \
9755: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9756: $as_echo X"$as_dir" |
9757: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9758: s//\1/
9759: q
9760: }
9761: /^X\(\/\/\)[^/].*/{
9762: s//\1/
9763: q
9764: }
9765: /^X\(\/\/\)$/{
9766: s//\1/
9767: q
9768: }
9769: /^X\(\/\).*/{
9770: s//\1/
9771: q
9772: }
9773: s/.*/./; q'`
9774: test -d "$as_dir" && break
9775: done
9776: test -z "$as_dirs" || eval "mkdir $as_dirs"
1.36 bertrand 9777: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
1.15 bertrand 9778:
9779:
9780: } # as_fn_mkdir_p
1.1 bertrand 9781: if mkdir -p . 2>/dev/null; then
1.15 bertrand 9782: as_mkdir_p='mkdir -p "$as_dir"'
1.1 bertrand 9783: else
9784: test -d ./-p && rmdir ./-p
9785: as_mkdir_p=false
9786: fi
9787:
9788: if test -x / >/dev/null 2>&1; then
9789: as_test_x='test -x'
9790: else
9791: if ls -dL / >/dev/null 2>&1; then
9792: as_ls_L_option=L
9793: else
9794: as_ls_L_option=
9795: fi
9796: as_test_x='
9797: eval sh -c '\''
9798: if test -d "$1"; then
1.15 bertrand 9799: test -d "$1/.";
1.1 bertrand 9800: else
1.15 bertrand 9801: case $1 in #(
9802: -*)set "./$1";;
1.1 bertrand 9803: esac;
1.15 bertrand 9804: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1 bertrand 9805: ???[sx]*):;;*)false;;esac;fi
9806: '\'' sh
9807: '
9808: fi
9809: as_executable_p=$as_test_x
9810:
9811: # Sed expression to map a string onto a valid CPP name.
9812: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9813:
9814: # Sed expression to map a string onto a valid variable name.
9815: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9816:
9817:
9818: exec 6>&1
1.15 bertrand 9819: ## ----------------------------------- ##
9820: ## Main body of $CONFIG_STATUS script. ##
9821: ## ----------------------------------- ##
9822: _ASEOF
9823: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1 bertrand 9824:
1.15 bertrand 9825: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9826: # Save the log message, to keep $0 and so on meaningful, and to
1.1 bertrand 9827: # report actual input values of CONFIG_FILES etc. instead of their
9828: # values after options handling.
9829: ac_log="
1.38 bertrand 9830: This file was extended by rpl $as_me 4.0.19, which was
1.36 bertrand 9831: generated by GNU Autoconf 2.67. Invocation command line was
1.1 bertrand 9832:
9833: CONFIG_FILES = $CONFIG_FILES
9834: CONFIG_HEADERS = $CONFIG_HEADERS
9835: CONFIG_LINKS = $CONFIG_LINKS
9836: CONFIG_COMMANDS = $CONFIG_COMMANDS
9837: $ $0 $@
9838:
9839: on `(hostname || uname -n) 2>/dev/null | sed 1q`
9840: "
9841:
9842: _ACEOF
9843:
1.15 bertrand 9844: case $ac_config_files in *"
9845: "*) set x $ac_config_files; shift; ac_config_files=$*;;
9846: esac
9847:
9848: case $ac_config_headers in *"
9849: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9850: esac
9851:
9852:
9853: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 9854: # Files that config.status was made for.
9855: config_files="$ac_config_files"
9856: config_headers="$ac_config_headers"
9857: config_commands="$ac_config_commands"
9858:
9859: _ACEOF
9860:
1.15 bertrand 9861: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 9862: ac_cs_usage="\
1.15 bertrand 9863: \`$as_me' instantiates files and other configuration actions
9864: from templates according to the current configuration. Unless the files
9865: and actions are specified as TAGs, all are instantiated by default.
1.1 bertrand 9866:
1.15 bertrand 9867: Usage: $0 [OPTION]... [TAG]...
1.1 bertrand 9868:
9869: -h, --help print this help, then exit
9870: -V, --version print version number and configuration settings, then exit
1.15 bertrand 9871: --config print configuration, then exit
9872: -q, --quiet, --silent
9873: do not print progress messages
1.1 bertrand 9874: -d, --debug don't remove temporary files
9875: --recheck update $as_me by reconfiguring in the same conditions
1.15 bertrand 9876: --file=FILE[:TEMPLATE]
9877: instantiate the configuration file FILE
9878: --header=FILE[:TEMPLATE]
9879: instantiate the configuration header FILE
1.1 bertrand 9880:
9881: Configuration files:
9882: $config_files
9883:
9884: Configuration headers:
9885: $config_headers
9886:
9887: Configuration commands:
9888: $config_commands
9889:
1.15 bertrand 9890: Report bugs to the package provider."
1.1 bertrand 9891:
9892: _ACEOF
1.15 bertrand 9893: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9894: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1 bertrand 9895: ac_cs_version="\\
1.38 bertrand 9896: rpl config.status 4.0.19
1.36 bertrand 9897: configured by $0, generated by GNU Autoconf 2.67,
1.15 bertrand 9898: with options \\"\$ac_cs_config\\"
1.1 bertrand 9899:
1.36 bertrand 9900: Copyright (C) 2010 Free Software Foundation, Inc.
1.1 bertrand 9901: This config.status script is free software; the Free Software Foundation
9902: gives unlimited permission to copy, distribute and modify it."
9903:
9904: ac_pwd='$ac_pwd'
9905: srcdir='$srcdir'
9906: INSTALL='$INSTALL'
9907: MKDIR_P='$MKDIR_P'
1.15 bertrand 9908: AWK='$AWK'
9909: test -n "\$AWK" || AWK=awk
1.1 bertrand 9910: _ACEOF
9911:
1.15 bertrand 9912: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9913: # The default lists apply if the user does not specify any file.
1.1 bertrand 9914: ac_need_defaults=:
9915: while test $# != 0
9916: do
9917: case $1 in
1.36 bertrand 9918: --*=?*)
1.1 bertrand 9919: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9920: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9921: ac_shift=:
9922: ;;
1.36 bertrand 9923: --*=)
9924: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9925: ac_optarg=
9926: ac_shift=:
9927: ;;
1.1 bertrand 9928: *)
9929: ac_option=$1
9930: ac_optarg=$2
9931: ac_shift=shift
9932: ;;
9933: esac
9934:
9935: case $ac_option in
9936: # Handling of the options.
9937: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9938: ac_cs_recheck=: ;;
9939: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15 bertrand 9940: $as_echo "$ac_cs_version"; exit ;;
9941: --config | --confi | --conf | --con | --co | --c )
9942: $as_echo "$ac_cs_config"; exit ;;
1.1 bertrand 9943: --debug | --debu | --deb | --de | --d | -d )
9944: debug=: ;;
9945: --file | --fil | --fi | --f )
9946: $ac_shift
1.15 bertrand 9947: case $ac_optarg in
9948: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.36 bertrand 9949: '') as_fn_error $? "missing file argument" ;;
1.15 bertrand 9950: esac
9951: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1 bertrand 9952: ac_need_defaults=false;;
9953: --header | --heade | --head | --hea )
9954: $ac_shift
1.15 bertrand 9955: case $ac_optarg in
9956: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9957: esac
9958: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1 bertrand 9959: ac_need_defaults=false;;
9960: --he | --h)
9961: # Conflict between --help and --header
1.36 bertrand 9962: as_fn_error $? "ambiguous option: \`$1'
1.15 bertrand 9963: Try \`$0 --help' for more information.";;
1.1 bertrand 9964: --help | --hel | -h )
1.15 bertrand 9965: $as_echo "$ac_cs_usage"; exit ;;
1.1 bertrand 9966: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9967: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9968: ac_cs_silent=: ;;
9969:
9970: # This is an error.
1.36 bertrand 9971: -*) as_fn_error $? "unrecognized option: \`$1'
1.15 bertrand 9972: Try \`$0 --help' for more information." ;;
1.1 bertrand 9973:
1.15 bertrand 9974: *) as_fn_append ac_config_targets " $1"
1.1 bertrand 9975: ac_need_defaults=false ;;
9976:
9977: esac
9978: shift
9979: done
9980:
9981: ac_configure_extra_args=
9982:
9983: if $ac_cs_silent; then
9984: exec 6>/dev/null
9985: ac_configure_extra_args="$ac_configure_extra_args --silent"
9986: fi
9987:
9988: _ACEOF
1.15 bertrand 9989: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 9990: if \$ac_cs_recheck; then
1.15 bertrand 9991: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9992: shift
9993: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9994: CONFIG_SHELL='$SHELL'
1.1 bertrand 9995: export CONFIG_SHELL
1.15 bertrand 9996: exec "\$@"
1.1 bertrand 9997: fi
9998:
9999: _ACEOF
1.15 bertrand 10000: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10001: exec 5>>config.log
10002: {
10003: echo
10004: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10005: ## Running $as_me. ##
10006: _ASBOX
1.15 bertrand 10007: $as_echo "$ac_log"
1.1 bertrand 10008: } >&5
10009:
10010: _ACEOF
1.15 bertrand 10011: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10012: #
10013: # INIT-COMMANDS
10014: #
10015: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10016:
10017: _ACEOF
10018:
1.15 bertrand 10019: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10020:
10021: # Handling of arguments.
10022: for ac_config_target in $ac_config_targets
10023: do
10024: case $ac_config_target in
10025: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
10026: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10027: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10028: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
10029: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
10030: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10031: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10032: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
10033: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10034: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
10035: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
10036: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
10037: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
10038: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
10039: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9 bertrand 10040: "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.39 ! bertrand 10041: "rplawk/Makefile") CONFIG_FILES="$CONFIG_FILES rplawk/Makefile" ;;
1.1 bertrand 10042: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
10043: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
1.20 bertrand 10044: "ptmalloc3/Makefile") CONFIG_FILES="$CONFIG_FILES ptmalloc3/Makefile" ;;
1.1 bertrand 10045: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
10046: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
10047: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
10048: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
10049: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
10050: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
10051: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
10052: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
10053: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
10054: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
10055:
1.36 bertrand 10056: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
1.1 bertrand 10057: esac
10058: done
10059:
10060:
10061: # If the user did not use the arguments to specify the items to instantiate,
10062: # then the envvar interface is used. Set only those that are not.
10063: # We use the long form for the default assignment because of an extremely
10064: # bizarre bug on SunOS 4.1.3.
10065: if $ac_need_defaults; then
10066: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10067: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10068: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10069: fi
10070:
10071: # Have a temporary directory for convenience. Make it in the build tree
10072: # simply because there is no reason against having it here, and in addition,
10073: # creating and moving files from /tmp can sometimes cause problems.
10074: # Hook for its removal unless debugging.
10075: # Note that there is a small window in which the directory will not be cleaned:
10076: # after its creation but before its name has been assigned to `$tmp'.
10077: $debug ||
10078: {
10079: tmp=
10080: trap 'exit_status=$?
10081: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10082: ' 0
1.15 bertrand 10083: trap 'as_fn_exit 1' 1 2 13 15
1.1 bertrand 10084: }
10085: # Create a (secure) tmp directory for tmp files.
10086:
10087: {
10088: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10089: test -n "$tmp" && test -d "$tmp"
10090: } ||
10091: {
10092: tmp=./conf$$-$RANDOM
10093: (umask 077 && mkdir "$tmp")
1.36 bertrand 10094: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
1.15 bertrand 10095:
10096: # Set up the scripts for CONFIG_FILES section.
10097: # No need to generate them if there are no CONFIG_FILES.
10098: # This happens for instance with `./config.status config.h'.
10099: if test -n "$CONFIG_FILES"; then
1.14 bertrand 10100:
1.1 bertrand 10101:
1.15 bertrand 10102: ac_cr=`echo X | tr X '\015'`
10103: # On cygwin, bash can eat \r inside `` if the user requested igncr.
10104: # But we know of no other shell where ac_cr would be empty at this
10105: # point, so we can use a bashism as a fallback.
10106: if test "x$ac_cr" = x; then
10107: eval ac_cr=\$\'\\r\'
10108: fi
10109: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10110: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
1.36 bertrand 10111: ac_cs_awk_cr='\\r'
1.15 bertrand 10112: else
10113: ac_cs_awk_cr=$ac_cr
10114: fi
1.1 bertrand 10115:
1.15 bertrand 10116: echo 'BEGIN {' >"$tmp/subs1.awk" &&
1.14 bertrand 10117: _ACEOF
10118:
10119:
1.15 bertrand 10120: {
10121: echo "cat >conf$$subs.awk <<_ACEOF" &&
10122: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10123: echo "_ACEOF"
10124: } >conf$$subs.sh ||
1.36 bertrand 10125: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10126: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1.14 bertrand 10127: ac_delim='%!_!# '
10128: for ac_last_try in false false false false false :; do
1.15 bertrand 10129: . ./conf$$subs.sh ||
1.36 bertrand 10130: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 bertrand 10131:
1.15 bertrand 10132: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10133: if test $ac_delim_n = $ac_delim_num; then
1.14 bertrand 10134: break
10135: elif $ac_last_try; then
1.36 bertrand 10136: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 bertrand 10137: else
10138: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10139: fi
10140: done
1.15 bertrand 10141: rm -f conf$$subs.sh
1.1 bertrand 10142:
1.15 bertrand 10143: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10144: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10145: _ACEOF
10146: sed -n '
10147: h
10148: s/^/S["/; s/!.*/"]=/
10149: p
10150: g
10151: s/^[^!]*!//
10152: :repl
10153: t repl
10154: s/'"$ac_delim"'$//
10155: t delim
10156: :nl
10157: h
10158: s/\(.\{148\}\)..*/\1/
10159: t more1
10160: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10161: p
10162: n
10163: b repl
10164: :more1
10165: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10166: p
10167: g
10168: s/.\{148\}//
10169: t nl
10170: :delim
10171: h
10172: s/\(.\{148\}\)..*/\1/
10173: t more2
10174: s/["\\]/\\&/g; s/^/"/; s/$/"/
10175: p
10176: b
10177: :more2
10178: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10179: p
10180: g
10181: s/.\{148\}//
10182: t delim
10183: ' <conf$$subs.awk | sed '
10184: /^[^""]/{
10185: N
10186: s/\n//
10187: }
10188: ' >>$CONFIG_STATUS || ac_write_fail=1
10189: rm -f conf$$subs.awk
10190: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10191: _ACAWK
10192: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10193: for (key in S) S_is_set[key] = 1
10194: FS = ""
1.1 bertrand 10195:
1.15 bertrand 10196: }
10197: {
10198: line = $ 0
10199: nfields = split(line, field, "@")
10200: substed = 0
10201: len = length(field[1])
10202: for (i = 2; i < nfields; i++) {
10203: key = field[i]
10204: keylen = length(key)
10205: if (S_is_set[key]) {
10206: value = S[key]
10207: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10208: len += length(value) + length(field[++i])
10209: substed = 1
10210: } else
10211: len += 1 + keylen
10212: }
1.1 bertrand 10213:
1.15 bertrand 10214: print line
10215: }
1.1 bertrand 10216:
1.15 bertrand 10217: _ACAWK
1.14 bertrand 10218: _ACEOF
1.15 bertrand 10219: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10220: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10221: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10222: else
10223: cat
10224: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
1.36 bertrand 10225: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
1.1 bertrand 10226: _ACEOF
10227:
1.36 bertrand 10228: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10229: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
1.1 bertrand 10230: # trailing colons and then remove the whole line if VPATH becomes empty
10231: # (actually we leave an empty line to preserve line numbers).
10232: if test "x$srcdir" = x.; then
1.36 bertrand 10233: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10234: h
10235: s///
10236: s/^/:/
10237: s/[ ]*$/:/
10238: s/:\$(srcdir):/:/g
10239: s/:\${srcdir}:/:/g
10240: s/:@srcdir@:/:/g
10241: s/^:*//
1.1 bertrand 10242: s/:*$//
1.36 bertrand 10243: x
10244: s/\(=[ ]*\).*/\1/
10245: G
10246: s/\n//
1.1 bertrand 10247: s/^[^=]*=[ ]*$//
10248: }'
10249: fi
10250:
1.15 bertrand 10251: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10252: fi # test -n "$CONFIG_FILES"
10253:
1.15 bertrand 10254: # Set up the scripts for CONFIG_HEADERS section.
10255: # No need to generate them if there are no CONFIG_HEADERS.
10256: # This happens for instance with `./config.status Makefile'.
10257: if test -n "$CONFIG_HEADERS"; then
10258: cat >"$tmp/defines.awk" <<\_ACAWK ||
10259: BEGIN {
10260: _ACEOF
10261:
10262: # Transform confdefs.h into an awk script `defines.awk', embedded as
10263: # here-document in config.status, that substitutes the proper values into
10264: # config.h.in to produce config.h.
10265:
10266: # Create a delimiter string that does not exist in confdefs.h, to ease
10267: # handling of long lines.
10268: ac_delim='%!_!# '
10269: for ac_last_try in false false :; do
10270: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10271: if test -z "$ac_t"; then
10272: break
10273: elif $ac_last_try; then
1.36 bertrand 10274: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
1.15 bertrand 10275: else
10276: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10277: fi
10278: done
10279:
10280: # For the awk script, D is an array of macro values keyed by name,
10281: # likewise P contains macro parameters if any. Preserve backslash
10282: # newline sequences.
10283:
10284: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10285: sed -n '
10286: s/.\{148\}/&'"$ac_delim"'/g
10287: t rset
10288: :rset
10289: s/^[ ]*#[ ]*define[ ][ ]*/ /
10290: t def
10291: d
10292: :def
10293: s/\\$//
10294: t bsnl
10295: s/["\\]/\\&/g
10296: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10297: D["\1"]=" \3"/p
10298: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10299: d
10300: :bsnl
10301: s/["\\]/\\&/g
10302: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10303: D["\1"]=" \3\\\\\\n"\\/p
10304: t cont
10305: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10306: t cont
10307: d
10308: :cont
10309: n
10310: s/.\{148\}/&'"$ac_delim"'/g
10311: t clear
10312: :clear
10313: s/\\$//
10314: t bsnlc
10315: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10316: d
10317: :bsnlc
10318: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10319: b cont
10320: ' <confdefs.h | sed '
10321: s/'"$ac_delim"'/"\\\
10322: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10323:
10324: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10325: for (key in D) D_is_set[key] = 1
10326: FS = ""
10327: }
10328: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10329: line = \$ 0
10330: split(line, arg, " ")
10331: if (arg[1] == "#") {
10332: defundef = arg[2]
10333: mac1 = arg[3]
10334: } else {
10335: defundef = substr(arg[1], 2)
10336: mac1 = arg[2]
10337: }
10338: split(mac1, mac2, "(") #)
10339: macro = mac2[1]
10340: prefix = substr(line, 1, index(line, defundef) - 1)
10341: if (D_is_set[macro]) {
10342: # Preserve the white space surrounding the "#".
10343: print prefix "define", macro P[macro] D[macro]
10344: next
10345: } else {
10346: # Replace #undef with comments. This is necessary, for example,
10347: # in the case of _POSIX_SOURCE, which is predefined and required
10348: # on some systems where configure will not decide to define it.
10349: if (defundef == "undef") {
10350: print "/*", prefix defundef, macro, "*/"
10351: next
10352: }
10353: }
10354: }
10355: { print }
10356: _ACAWK
10357: _ACEOF
10358: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.36 bertrand 10359: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
1.15 bertrand 10360: fi # test -n "$CONFIG_HEADERS"
10361:
1.1 bertrand 10362:
1.15 bertrand 10363: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10364: shift
10365: for ac_tag
1.1 bertrand 10366: do
10367: case $ac_tag in
10368: :[FHLC]) ac_mode=$ac_tag; continue;;
10369: esac
10370: case $ac_mode$ac_tag in
10371: :[FHL]*:*);;
1.36 bertrand 10372: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
1.1 bertrand 10373: :[FH]-) ac_tag=-:-;;
10374: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10375: esac
10376: ac_save_IFS=$IFS
10377: IFS=:
10378: set x $ac_tag
10379: IFS=$ac_save_IFS
10380: shift
10381: ac_file=$1
10382: shift
10383:
10384: case $ac_mode in
10385: :L) ac_source=$1;;
10386: :[FH])
10387: ac_file_inputs=
10388: for ac_f
10389: do
10390: case $ac_f in
10391: -) ac_f="$tmp/stdin";;
10392: *) # Look for the file first in the build tree, then in the source tree
10393: # (if the path is not absolute). The absolute path cannot be DOS-style,
10394: # because $ac_f cannot contain `:'.
10395: test -f "$ac_f" ||
10396: case $ac_f in
10397: [\\/$]*) false;;
10398: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10399: esac ||
1.36 bertrand 10400: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
1.1 bertrand 10401: esac
1.15 bertrand 10402: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10403: as_fn_append ac_file_inputs " '$ac_f'"
1.1 bertrand 10404: done
10405:
10406: # Let's still pretend it is `configure' which instantiates (i.e., don't
10407: # use $as_me), people would be surprised to read:
10408: # /* config.h. Generated by config.status. */
1.15 bertrand 10409: configure_input='Generated from '`
10410: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10411: `' by configure.'
1.1 bertrand 10412: if test x"$ac_file" != x-; then
10413: configure_input="$ac_file. $configure_input"
1.15 bertrand 10414: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10415: $as_echo "$as_me: creating $ac_file" >&6;}
1.1 bertrand 10416: fi
1.15 bertrand 10417: # Neutralize special characters interpreted by sed in replacement strings.
10418: case $configure_input in #(
10419: *\&* | *\|* | *\\* )
10420: ac_sed_conf_input=`$as_echo "$configure_input" |
10421: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10422: *) ac_sed_conf_input=$configure_input;;
10423: esac
1.1 bertrand 10424:
10425: case $ac_tag in
1.15 bertrand 10426: *:-:* | *:-) cat >"$tmp/stdin" \
1.36 bertrand 10427: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
1.1 bertrand 10428: esac
10429: ;;
10430: esac
10431:
10432: ac_dir=`$as_dirname -- "$ac_file" ||
10433: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10434: X"$ac_file" : 'X\(//\)[^/]' \| \
10435: X"$ac_file" : 'X\(//\)$' \| \
10436: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10437: $as_echo X"$ac_file" |
1.1 bertrand 10438: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10439: s//\1/
10440: q
10441: }
10442: /^X\(\/\/\)[^/].*/{
10443: s//\1/
10444: q
10445: }
10446: /^X\(\/\/\)$/{
10447: s//\1/
10448: q
10449: }
10450: /^X\(\/\).*/{
10451: s//\1/
10452: q
10453: }
10454: s/.*/./; q'`
1.15 bertrand 10455: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 bertrand 10456: ac_builddir=.
10457:
10458: case "$ac_dir" in
10459: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10460: *)
1.15 bertrand 10461: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 10462: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 10463: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 10464: case $ac_top_builddir_sub in
10465: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10466: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10467: esac ;;
10468: esac
10469: ac_abs_top_builddir=$ac_pwd
10470: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10471: # for backward compatibility:
10472: ac_top_builddir=$ac_top_build_prefix
10473:
10474: case $srcdir in
10475: .) # We are building in place.
10476: ac_srcdir=.
10477: ac_top_srcdir=$ac_top_builddir_sub
10478: ac_abs_top_srcdir=$ac_pwd ;;
10479: [\\/]* | ?:[\\/]* ) # Absolute name.
10480: ac_srcdir=$srcdir$ac_dir_suffix;
10481: ac_top_srcdir=$srcdir
10482: ac_abs_top_srcdir=$srcdir ;;
10483: *) # Relative name.
10484: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10485: ac_top_srcdir=$ac_top_build_prefix$srcdir
10486: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10487: esac
10488: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10489:
10490:
10491: case $ac_mode in
10492: :F)
10493: #
10494: # CONFIG_FILE
10495: #
10496:
10497: case $INSTALL in
10498: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10499: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10500: esac
10501: ac_MKDIR_P=$MKDIR_P
10502: case $MKDIR_P in
10503: [\\/$]* | ?:[\\/]* ) ;;
10504: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10505: esac
10506: _ACEOF
10507:
1.15 bertrand 10508: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10509: # If the template does not know about datarootdir, expand it.
10510: # FIXME: This hack should be removed a few years after 2.60.
10511: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15 bertrand 10512: ac_sed_dataroot='
10513: /datarootdir/ {
1.1 bertrand 10514: p
10515: q
10516: }
10517: /@datadir@/p
10518: /@docdir@/p
10519: /@infodir@/p
10520: /@localedir@/p
1.15 bertrand 10521: /@mandir@/p'
10522: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1 bertrand 10523: *datarootdir*) ac_datarootdir_seen=yes;;
10524: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15 bertrand 10525: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10526: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 bertrand 10527: _ACEOF
1.15 bertrand 10528: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10529: ac_datarootdir_hack='
10530: s&@datadir@&$datadir&g
10531: s&@docdir@&$docdir&g
10532: s&@infodir@&$infodir&g
10533: s&@localedir@&$localedir&g
10534: s&@mandir@&$mandir&g
1.15 bertrand 10535: s&\\\${datarootdir}&$datarootdir&g' ;;
1.1 bertrand 10536: esac
10537: _ACEOF
10538:
10539: # Neutralize VPATH when `$srcdir' = `.'.
10540: # Shell code in configure.ac might set extrasub.
10541: # FIXME: do we really want to maintain this feature?
1.15 bertrand 10542: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10543: ac_sed_extra="$ac_vpsub
1.1 bertrand 10544: $extrasub
10545: _ACEOF
1.15 bertrand 10546: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10547: :t
10548: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15 bertrand 10549: s|@configure_input@|$ac_sed_conf_input|;t t
1.1 bertrand 10550: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15 bertrand 10551: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1 bertrand 10552: s&@srcdir@&$ac_srcdir&;t t
10553: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10554: s&@top_srcdir@&$ac_top_srcdir&;t t
10555: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10556: s&@builddir@&$ac_builddir&;t t
10557: s&@abs_builddir@&$ac_abs_builddir&;t t
10558: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10559: s&@INSTALL@&$ac_INSTALL&;t t
10560: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10561: $ac_datarootdir_hack
1.15 bertrand 10562: "
10563: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
1.36 bertrand 10564: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10565:
10566: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10567: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10568: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.15 bertrand 10569: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36 bertrand 10570: which seems to be undefined. Please make sure it is defined" >&5
1.15 bertrand 10571: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.36 bertrand 10572: which seems to be undefined. Please make sure it is defined" >&2;}
1.1 bertrand 10573:
10574: rm -f "$tmp/stdin"
10575: case $ac_file in
1.15 bertrand 10576: -) cat "$tmp/out" && rm -f "$tmp/out";;
10577: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10578: esac \
1.36 bertrand 10579: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10580: ;;
10581: :H)
10582: #
10583: # CONFIG_HEADER
10584: #
10585: if test x"$ac_file" != x-; then
1.15 bertrand 10586: {
10587: $as_echo "/* $configure_input */" \
10588: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10589: } >"$tmp/config.h" \
1.36 bertrand 10590: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.15 bertrand 10591: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10592: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10593: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1 bertrand 10594: else
1.15 bertrand 10595: rm -f "$ac_file"
10596: mv "$tmp/config.h" "$ac_file" \
1.36 bertrand 10597: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10598: fi
10599: else
1.15 bertrand 10600: $as_echo "/* $configure_input */" \
10601: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
1.36 bertrand 10602: || as_fn_error $? "could not create -" "$LINENO" 5
1.1 bertrand 10603: fi
1.15 bertrand 10604: # Compute "$ac_file"'s index in $config_headers.
10605: _am_arg="$ac_file"
1.1 bertrand 10606: _am_stamp_count=1
10607: for _am_header in $config_headers :; do
10608: case $_am_header in
10609: $_am_arg | $_am_arg:* )
10610: break ;;
10611: * )
10612: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10613: esac
10614: done
10615: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10616: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10617: X"$_am_arg" : 'X\(//\)[^/]' \| \
10618: X"$_am_arg" : 'X\(//\)$' \| \
10619: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10620: $as_echo X"$_am_arg" |
1.1 bertrand 10621: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10622: s//\1/
10623: q
10624: }
10625: /^X\(\/\/\)[^/].*/{
10626: s//\1/
10627: q
10628: }
10629: /^X\(\/\/\)$/{
10630: s//\1/
10631: q
10632: }
10633: /^X\(\/\).*/{
10634: s//\1/
10635: q
10636: }
10637: s/.*/./; q'`/stamp-h$_am_stamp_count
10638: ;;
10639:
1.15 bertrand 10640: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10641: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1 bertrand 10642: ;;
10643: esac
10644:
10645:
10646: case $ac_file$ac_mode in
1.15 bertrand 10647: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10648: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10649: # are listed without --file. Let's play safe and only enable the eval
10650: # if we detect the quoting.
10651: case $CONFIG_FILES in
10652: *\'*) eval set x "$CONFIG_FILES" ;;
10653: *) set x $CONFIG_FILES ;;
10654: esac
10655: shift
10656: for mf
10657: do
10658: # Strip MF so we end up with the name of the file.
10659: mf=`echo "$mf" | sed -e 's/:.*$//'`
10660: # Check whether this is an Automake generated Makefile or not.
10661: # We used to match only the files named `Makefile.in', but
10662: # some people rename them; so instead we look at the file content.
10663: # Grep'ing the first line is not enough: some people post-process
10664: # each Makefile.in and add a new line on top of each file to say so.
10665: # Grep'ing the whole file is not good either: AIX grep has a line
10666: # limit of 2048, but all sed's we know have understand at least 4000.
10667: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10668: dirpart=`$as_dirname -- "$mf" ||
1.1 bertrand 10669: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10670: X"$mf" : 'X\(//\)[^/]' \| \
10671: X"$mf" : 'X\(//\)$' \| \
10672: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10673: $as_echo X"$mf" |
1.1 bertrand 10674: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10675: s//\1/
10676: q
10677: }
10678: /^X\(\/\/\)[^/].*/{
10679: s//\1/
10680: q
10681: }
10682: /^X\(\/\/\)$/{
10683: s//\1/
10684: q
10685: }
10686: /^X\(\/\).*/{
10687: s//\1/
10688: q
10689: }
10690: s/.*/./; q'`
1.15 bertrand 10691: else
10692: continue
10693: fi
10694: # Extract the definition of DEPDIR, am__include, and am__quote
10695: # from the Makefile without running `make'.
10696: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10697: test -z "$DEPDIR" && continue
10698: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10699: test -z "am__include" && continue
10700: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10701: # When using ansi2knr, U may be empty or an underscore; expand it
10702: U=`sed -n 's/^U = //p' < "$mf"`
10703: # Find all dependency output files, they are included files with
10704: # $(DEPDIR) in their names. We invoke sed twice because it is the
10705: # simplest approach to changing $(DEPDIR) to its actual value in the
10706: # expansion.
10707: for file in `sed -n "
10708: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10709: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10710: # Make sure the directory exists.
10711: test -f "$dirpart/$file" && continue
10712: fdir=`$as_dirname -- "$file" ||
1.1 bertrand 10713: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10714: X"$file" : 'X\(//\)[^/]' \| \
10715: X"$file" : 'X\(//\)$' \| \
10716: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10717: $as_echo X"$file" |
1.1 bertrand 10718: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10719: s//\1/
10720: q
10721: }
10722: /^X\(\/\/\)[^/].*/{
10723: s//\1/
10724: q
10725: }
10726: /^X\(\/\/\)$/{
10727: s//\1/
10728: q
10729: }
10730: /^X\(\/\).*/{
10731: s//\1/
10732: q
10733: }
10734: s/.*/./; q'`
1.15 bertrand 10735: as_dir=$dirpart/$fdir; as_fn_mkdir_p
10736: # echo "creating $dirpart/$file"
10737: echo '# dummy' > "$dirpart/$file"
1.1 bertrand 10738: done
10739: done
1.15 bertrand 10740: }
1.1 bertrand 10741: ;;
10742:
10743: esac
10744: done # for ac_tag
10745:
10746:
1.15 bertrand 10747: as_fn_exit 0
1.1 bertrand 10748: _ACEOF
10749: ac_clean_files=$ac_clean_files_save
10750:
1.15 bertrand 10751: test $ac_write_fail = 0 ||
1.36 bertrand 10752: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
1.15 bertrand 10753:
1.1 bertrand 10754:
10755: # configure is writing to config.log, and then calls config.status.
10756: # config.status does its own redirection, appending to config.log.
10757: # Unfortunately, on DOS this fails, as config.log is still kept open
10758: # by configure, so config.status won't be able to write to it; its
10759: # output is simply discarded. So we exec the FD to /dev/null,
10760: # effectively closing config.log, so it can be properly (re)opened and
10761: # appended to by config.status. When coming back to configure, we
10762: # need to make the FD available again.
10763: if test "$no_create" != yes; then
10764: ac_cs_success=:
10765: ac_config_status_args=
10766: test "$silent" = yes &&
10767: ac_config_status_args="$ac_config_status_args --quiet"
10768: exec 5>/dev/null
10769: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10770: exec 5>>config.log
10771: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10772: # would make configure fail if this is the last instruction.
1.36 bertrand 10773: $ac_cs_success || as_fn_exit 1
1.1 bertrand 10774: fi
10775:
10776: #
10777: # CONFIG_SUBDIRS section.
10778: #
10779: if test "$no_recursion" != yes; then
10780:
1.15 bertrand 10781: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10782: # so they do not pile up.
1.1 bertrand 10783: ac_sub_configure_args=
10784: ac_prev=
10785: eval "set x $ac_configure_args"
10786: shift
10787: for ac_arg
10788: do
10789: if test -n "$ac_prev"; then
10790: ac_prev=
10791: continue
10792: fi
10793: case $ac_arg in
10794: -cache-file | --cache-file | --cache-fil | --cache-fi \
10795: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10796: ac_prev=cache_file ;;
10797: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10798: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10799: | --c=*)
10800: ;;
10801: --config-cache | -C)
10802: ;;
10803: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10804: ac_prev=srcdir ;;
10805: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10806: ;;
10807: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10808: ac_prev=prefix ;;
10809: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10810: ;;
1.15 bertrand 10811: --disable-option-checking)
10812: ;;
1.1 bertrand 10813: *)
10814: case $ac_arg in
1.15 bertrand 10815: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 bertrand 10816: esac
1.15 bertrand 10817: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 bertrand 10818: esac
10819: done
10820:
10821: # Always prepend --prefix to ensure using the same prefix
10822: # in subdir configurations.
10823: ac_arg="--prefix=$prefix"
10824: case $ac_arg in
1.15 bertrand 10825: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 bertrand 10826: esac
10827: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10828:
10829: # Pass --silent
10830: if test "$silent" = yes; then
10831: ac_sub_configure_args="--silent $ac_sub_configure_args"
10832: fi
10833:
1.15 bertrand 10834: # Always prepend --disable-option-checking to silence warnings, since
10835: # different subdirs can have different --enable and --with options.
10836: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10837:
1.1 bertrand 10838: ac_popdir=`pwd`
10839: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10840:
10841: # Do not complain, so a configure script can configure whichever
10842: # parts of a large source tree are present.
10843: test -d "$srcdir/$ac_dir" || continue
10844:
10845: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15 bertrand 10846: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10847: $as_echo "$ac_msg" >&6
10848: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 bertrand 10849: ac_builddir=.
10850:
10851: case "$ac_dir" in
10852: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10853: *)
1.15 bertrand 10854: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 10855: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 10856: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 10857: case $ac_top_builddir_sub in
10858: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10859: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10860: esac ;;
10861: esac
10862: ac_abs_top_builddir=$ac_pwd
10863: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10864: # for backward compatibility:
10865: ac_top_builddir=$ac_top_build_prefix
10866:
10867: case $srcdir in
10868: .) # We are building in place.
10869: ac_srcdir=.
10870: ac_top_srcdir=$ac_top_builddir_sub
10871: ac_abs_top_srcdir=$ac_pwd ;;
10872: [\\/]* | ?:[\\/]* ) # Absolute name.
10873: ac_srcdir=$srcdir$ac_dir_suffix;
10874: ac_top_srcdir=$srcdir
10875: ac_abs_top_srcdir=$srcdir ;;
10876: *) # Relative name.
10877: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10878: ac_top_srcdir=$ac_top_build_prefix$srcdir
10879: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10880: esac
10881: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10882:
10883:
10884: cd "$ac_dir"
10885:
10886: # Check for guested configure; otherwise get Cygnus style configure.
10887: if test -f "$ac_srcdir/configure.gnu"; then
10888: ac_sub_configure=$ac_srcdir/configure.gnu
10889: elif test -f "$ac_srcdir/configure"; then
10890: ac_sub_configure=$ac_srcdir/configure
10891: elif test -f "$ac_srcdir/configure.in"; then
10892: # This should be Cygnus configure.
10893: ac_sub_configure=$ac_aux_dir/configure
10894: else
1.15 bertrand 10895: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10896: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 bertrand 10897: ac_sub_configure=
10898: fi
10899:
10900: # The recursion is here.
10901: if test -n "$ac_sub_configure"; then
10902: # Make the cache file name correct relative to the subdirectory.
10903: case $cache_file in
10904: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10905: *) # Relative name.
10906: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10907: esac
10908:
1.15 bertrand 10909: { $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
10910: $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 10911: # The eval makes quoting arguments work.
10912: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10913: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.36 bertrand 10914: as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 bertrand 10915: fi
10916:
10917: cd "$ac_popdir"
10918: done
10919: fi
1.15 bertrand 10920: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10921: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10922: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10923: fi
1.1 bertrand 10924:
CVSweb interface <joel.bertrand@systella.fr>