Annotation of rpl/configure, revision 1.33
1.1 bertrand 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.29 bertrand 3: # Generated by GNU Autoconf 2.65 for rpl 4.0.18.
1.15 bertrand 4: #
1.1 bertrand 5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1.15 bertrand 7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8: # Inc.
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"
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.15 bertrand 359: # as_fn_error ERROR [LINENO LOG_FD]
360: # ---------------------------------
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
363: # script with status $?, using 1 if that was 0.
364: as_fn_error ()
365: {
366: as_status=$?; test $as_status -eq 0 && as_status=1
367: if test "$3"; then
368: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370: fi
371: $as_echo "$as_me: error: $1" >&2
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.
533: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
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.29 bertrand 552: PACKAGE_VERSION='4.0.18'
553: PACKAGE_STRING='rpl 4.0.18'
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.33 ! bertrand 613: SEMUN
! 614: SEMAPHORES_SYSV
1.17 bertrand 615: SEMAPHORES_NOMMES
616: NESTED_FUNCTIONS
617: EXPORT_DYNAMIC
1.33 ! bertrand 618: C_STANDARD
1.15 bertrand 619: OS
620: GNUPLOT_COMPILATION
621: subdirs
622: EGREP
623: GREP
624: libPgSQLlib
625: libPgSQLinc
626: POSTGRESQL_SUPPORT
627: libMySQLlib
628: libMySQLinc
629: MYSQL_SUPPORT
630: DATE
631: includeX
632: libX
633: MOTIF_SUPPORT
634: DEBUG
635: EXPERIMENTAL_CODE
636: VIM_SUPPORT
637: POSTSCRIPT_SUPPORT
638: FORCE_GNUPLOT_PATH
639: GNUPLOT_SUPPORT
640: VIM
641: GNUPLOT_P
642: GV
643: GS
644: DVIPS
645: LATEX
646: TEX
647: SED
648: RANLIB
649: LN_S
650: RUNPATH
651: PROFILAGE
652: X_EXTRA_LIBS
653: X_LIBS
654: X_PRE_LIBS
655: X_CFLAGS
656: CPP
657: XMKMF
658: ac_ct_FC
659: FCFLAGS
660: FC
661: ac_ct_F77
662: FFLAGS
663: F77
664: am__fastdepCXX_FALSE
665: am__fastdepCXX_TRUE
666: CXXDEPMODE
667: ac_ct_CXX
668: CXXFLAGS
669: CXX
670: am__fastdepCC_FALSE
671: am__fastdepCC_TRUE
672: CCDEPMODE
673: AMDEPBACKSLASH
674: AMDEP_FALSE
675: AMDEP_TRUE
676: am__quote
677: am__include
678: DEPDIR
679: OBJEXT
680: EXEEXT
681: ac_ct_CC
682: CPPFLAGS
683: LDFLAGS
684: CFLAGS
685: CC
686: am__untar
687: am__tar
688: AMTAR
689: am__leading_dot
690: SET_MAKE
691: AWK
692: mkdir_p
693: MKDIR_P
694: INSTALL_STRIP_PROGRAM
695: STRIP
696: install_sh
697: MAKEINFO
698: AUTOHEADER
699: AUTOMAKE
700: AUTOCONF
701: ACLOCAL
702: VERSION
703: PACKAGE
704: CYGPATH_W
705: am__isrc
706: INSTALL_DATA
707: INSTALL_SCRIPT
708: INSTALL_PROGRAM
709: target_os
710: target_vendor
711: target_cpu
712: target
713: host_os
714: host_vendor
715: host_cpu
716: host
717: build_os
718: build_vendor
719: build_cpu
720: build
721: target_alias
722: host_alias
723: build_alias
724: LIBS
725: ECHO_T
726: ECHO_N
727: ECHO_C
728: DEFS
729: mandir
730: localedir
731: libdir
732: psdir
733: pdfdir
734: dvidir
735: htmldir
736: infodir
737: docdir
738: oldincludedir
739: includedir
740: localstatedir
741: sharedstatedir
742: sysconfdir
743: datadir
744: datarootdir
745: libexecdir
746: sbindir
747: bindir
748: program_transform_name
749: prefix
750: exec_prefix
751: PACKAGE_URL
752: PACKAGE_BUGREPORT
753: PACKAGE_STRING
754: PACKAGE_VERSION
755: PACKAGE_TARNAME
756: PACKAGE_NAME
1.14 bertrand 757: PATH_SEPARATOR
1.15 bertrand 758: SHELL'
759: ac_subst_files=''
760: ac_user_opts='
761: enable_option_checking
762: enable_dependency_tracking
763: with_x
764: enable_optimization
1.30 bertrand 765: enable_full_static
1.15 bertrand 766: enable_final_encoding
767: enable_tex
768: enable_vim
769: enable_embedded_gnuplot
770: enable_gnuplot
771: enable_motif
772: enable_experimental
773: enable_debug
774: enable_profile
775: enable_final_run_path
776: with_mysql
777: with_postgresql
778: with_openssl_arch
779: '
780: ac_precious_vars='build_alias
1.1 bertrand 781: host_alias
782: target_alias
783: CC
784: CFLAGS
785: LDFLAGS
1.15 bertrand 786: LIBS
1.1 bertrand 787: CPPFLAGS
788: CXX
789: CXXFLAGS
1.15 bertrand 790: CCC
1.1 bertrand 791: F77
792: FFLAGS
793: FC
794: FCFLAGS
795: XMKMF
796: CPP'
797: ac_subdirs_all='tools/$NCURSES
798: tools/$READLINE
799: tools/$GSL
800: tools/$GPP
801: tools/$FILE
802: tools/$ICONV
1.9 bertrand 803: tools/$SQLITE
1.17 bertrand 804: tools/$UNITS
1.1 bertrand 805: tools/$GNUPLOT'
806:
807: # Initialize some variables set by options.
808: ac_init_help=
809: ac_init_version=false
1.15 bertrand 810: ac_unrecognized_opts=
811: ac_unrecognized_sep=
1.1 bertrand 812: # The variables have the same names as the options, with
813: # dashes changed to underlines.
814: cache_file=/dev/null
815: exec_prefix=NONE
816: no_create=
817: no_recursion=
818: prefix=NONE
819: program_prefix=NONE
820: program_suffix=NONE
821: program_transform_name=s,x,x,
822: silent=
823: site=
824: srcdir=
825: verbose=
826: x_includes=NONE
827: x_libraries=NONE
828:
829: # Installation directory options.
830: # These are left unexpanded so users can "make install exec_prefix=/foo"
831: # and all the variables that are supposed to be based on exec_prefix
832: # by default will actually change.
833: # Use braces instead of parens because sh, perl, etc. also accept them.
834: # (The list follows the same order as the GNU Coding Standards.)
835: bindir='${exec_prefix}/bin'
836: sbindir='${exec_prefix}/sbin'
837: libexecdir='${exec_prefix}/libexec'
838: datarootdir='${prefix}/share'
839: datadir='${datarootdir}'
840: sysconfdir='${prefix}/etc'
841: sharedstatedir='${prefix}/com'
842: localstatedir='${prefix}/var'
843: includedir='${prefix}/include'
844: oldincludedir='/usr/include'
845: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846: infodir='${datarootdir}/info'
847: htmldir='${docdir}'
848: dvidir='${docdir}'
849: pdfdir='${docdir}'
850: psdir='${docdir}'
851: libdir='${exec_prefix}/lib'
852: localedir='${datarootdir}/locale'
853: mandir='${datarootdir}/man'
854:
855: ac_prev=
856: ac_dashdash=
857: for ac_option
858: do
859: # If the previous option needs an argument, assign it.
860: if test -n "$ac_prev"; then
861: eval $ac_prev=\$ac_option
862: ac_prev=
863: continue
864: fi
865:
866: case $ac_option in
867: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868: *) ac_optarg=yes ;;
869: esac
870:
871: # Accept the important Cygnus configure options, so we can diagnose typos.
872:
873: case $ac_dashdash$ac_option in
874: --)
875: ac_dashdash=yes ;;
876:
877: -bindir | --bindir | --bindi | --bind | --bin | --bi)
878: ac_prev=bindir ;;
879: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880: bindir=$ac_optarg ;;
881:
882: -build | --build | --buil | --bui | --bu)
883: ac_prev=build_alias ;;
884: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885: build_alias=$ac_optarg ;;
886:
887: -cache-file | --cache-file | --cache-fil | --cache-fi \
888: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889: ac_prev=cache_file ;;
890: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892: cache_file=$ac_optarg ;;
893:
894: --config-cache | -C)
895: cache_file=config.cache ;;
896:
897: -datadir | --datadir | --datadi | --datad)
898: ac_prev=datadir ;;
899: -datadir=* | --datadir=* | --datadi=* | --datad=*)
900: datadir=$ac_optarg ;;
901:
902: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903: | --dataroo | --dataro | --datar)
904: ac_prev=datarootdir ;;
905: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907: datarootdir=$ac_optarg ;;
908:
909: -disable-* | --disable-*)
1.15 bertrand 910: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 bertrand 911: # Reject names that are not valid shell variable names.
1.15 bertrand 912: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913: as_fn_error "invalid feature name: $ac_useropt"
914: ac_useropt_orig=$ac_useropt
915: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916: case $ac_user_opts in
917: *"
918: "enable_$ac_useropt"
919: "*) ;;
920: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921: ac_unrecognized_sep=', ';;
922: esac
923: eval enable_$ac_useropt=no ;;
1.1 bertrand 924:
925: -docdir | --docdir | --docdi | --doc | --do)
926: ac_prev=docdir ;;
927: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928: docdir=$ac_optarg ;;
929:
930: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931: ac_prev=dvidir ;;
932: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933: dvidir=$ac_optarg ;;
934:
935: -enable-* | --enable-*)
1.15 bertrand 936: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 bertrand 937: # Reject names that are not valid shell variable names.
1.15 bertrand 938: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939: as_fn_error "invalid feature name: $ac_useropt"
940: ac_useropt_orig=$ac_useropt
941: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942: case $ac_user_opts in
943: *"
944: "enable_$ac_useropt"
945: "*) ;;
946: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947: ac_unrecognized_sep=', ';;
948: esac
949: eval enable_$ac_useropt=\$ac_optarg ;;
1.1 bertrand 950:
951: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953: | --exec | --exe | --ex)
954: ac_prev=exec_prefix ;;
955: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957: | --exec=* | --exe=* | --ex=*)
958: exec_prefix=$ac_optarg ;;
959:
960: -gas | --gas | --ga | --g)
961: # Obsolete; use --with-gas.
962: with_gas=yes ;;
963:
964: -help | --help | --hel | --he | -h)
965: ac_init_help=long ;;
966: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967: ac_init_help=recursive ;;
968: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969: ac_init_help=short ;;
970:
971: -host | --host | --hos | --ho)
972: ac_prev=host_alias ;;
973: -host=* | --host=* | --hos=* | --ho=*)
974: host_alias=$ac_optarg ;;
975:
976: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977: ac_prev=htmldir ;;
978: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979: | --ht=*)
980: htmldir=$ac_optarg ;;
981:
982: -includedir | --includedir | --includedi | --included | --include \
983: | --includ | --inclu | --incl | --inc)
984: ac_prev=includedir ;;
985: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986: | --includ=* | --inclu=* | --incl=* | --inc=*)
987: includedir=$ac_optarg ;;
988:
989: -infodir | --infodir | --infodi | --infod | --info | --inf)
990: ac_prev=infodir ;;
991: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992: infodir=$ac_optarg ;;
993:
994: -libdir | --libdir | --libdi | --libd)
995: ac_prev=libdir ;;
996: -libdir=* | --libdir=* | --libdi=* | --libd=*)
997: libdir=$ac_optarg ;;
998:
999: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000: | --libexe | --libex | --libe)
1001: ac_prev=libexecdir ;;
1002: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003: | --libexe=* | --libex=* | --libe=*)
1004: libexecdir=$ac_optarg ;;
1005:
1006: -localedir | --localedir | --localedi | --localed | --locale)
1007: ac_prev=localedir ;;
1008: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009: localedir=$ac_optarg ;;
1010:
1011: -localstatedir | --localstatedir | --localstatedi | --localstated \
1012: | --localstate | --localstat | --localsta | --localst | --locals)
1013: ac_prev=localstatedir ;;
1014: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016: localstatedir=$ac_optarg ;;
1017:
1018: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019: ac_prev=mandir ;;
1020: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021: mandir=$ac_optarg ;;
1022:
1023: -nfp | --nfp | --nf)
1024: # Obsolete; use --without-fp.
1025: with_fp=no ;;
1026:
1027: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028: | --no-cr | --no-c | -n)
1029: no_create=yes ;;
1030:
1031: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033: no_recursion=yes ;;
1034:
1035: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037: | --oldin | --oldi | --old | --ol | --o)
1038: ac_prev=oldincludedir ;;
1039: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042: oldincludedir=$ac_optarg ;;
1043:
1044: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045: ac_prev=prefix ;;
1046: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047: prefix=$ac_optarg ;;
1048:
1049: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050: | --program-pre | --program-pr | --program-p)
1051: ac_prev=program_prefix ;;
1052: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054: program_prefix=$ac_optarg ;;
1055:
1056: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057: | --program-suf | --program-su | --program-s)
1058: ac_prev=program_suffix ;;
1059: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061: program_suffix=$ac_optarg ;;
1062:
1063: -program-transform-name | --program-transform-name \
1064: | --program-transform-nam | --program-transform-na \
1065: | --program-transform-n | --program-transform- \
1066: | --program-transform | --program-transfor \
1067: | --program-transfo | --program-transf \
1068: | --program-trans | --program-tran \
1069: | --progr-tra | --program-tr | --program-t)
1070: ac_prev=program_transform_name ;;
1071: -program-transform-name=* | --program-transform-name=* \
1072: | --program-transform-nam=* | --program-transform-na=* \
1073: | --program-transform-n=* | --program-transform-=* \
1074: | --program-transform=* | --program-transfor=* \
1075: | --program-transfo=* | --program-transf=* \
1076: | --program-trans=* | --program-tran=* \
1077: | --progr-tra=* | --program-tr=* | --program-t=*)
1078: program_transform_name=$ac_optarg ;;
1079:
1080: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081: ac_prev=pdfdir ;;
1082: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083: pdfdir=$ac_optarg ;;
1084:
1085: -psdir | --psdir | --psdi | --psd | --ps)
1086: ac_prev=psdir ;;
1087: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088: psdir=$ac_optarg ;;
1089:
1090: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091: | -silent | --silent | --silen | --sile | --sil)
1092: silent=yes ;;
1093:
1094: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095: ac_prev=sbindir ;;
1096: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097: | --sbi=* | --sb=*)
1098: sbindir=$ac_optarg ;;
1099:
1100: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102: | --sharedst | --shareds | --shared | --share | --shar \
1103: | --sha | --sh)
1104: ac_prev=sharedstatedir ;;
1105: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108: | --sha=* | --sh=*)
1109: sharedstatedir=$ac_optarg ;;
1110:
1111: -site | --site | --sit)
1112: ac_prev=site ;;
1113: -site=* | --site=* | --sit=*)
1114: site=$ac_optarg ;;
1115:
1116: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117: ac_prev=srcdir ;;
1118: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119: srcdir=$ac_optarg ;;
1120:
1121: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122: | --syscon | --sysco | --sysc | --sys | --sy)
1123: ac_prev=sysconfdir ;;
1124: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126: sysconfdir=$ac_optarg ;;
1127:
1128: -target | --target | --targe | --targ | --tar | --ta | --t)
1129: ac_prev=target_alias ;;
1130: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131: target_alias=$ac_optarg ;;
1132:
1133: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134: verbose=yes ;;
1135:
1136: -version | --version | --versio | --versi | --vers | -V)
1137: ac_init_version=: ;;
1138:
1139: -with-* | --with-*)
1.15 bertrand 1140: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 bertrand 1141: # Reject names that are not valid shell variable names.
1.15 bertrand 1142: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143: as_fn_error "invalid package name: $ac_useropt"
1144: ac_useropt_orig=$ac_useropt
1145: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146: case $ac_user_opts in
1147: *"
1148: "with_$ac_useropt"
1149: "*) ;;
1150: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151: ac_unrecognized_sep=', ';;
1152: esac
1153: eval with_$ac_useropt=\$ac_optarg ;;
1.1 bertrand 1154:
1155: -without-* | --without-*)
1.15 bertrand 1156: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 bertrand 1157: # Reject names that are not valid shell variable names.
1.15 bertrand 1158: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159: as_fn_error "invalid package name: $ac_useropt"
1160: ac_useropt_orig=$ac_useropt
1161: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162: case $ac_user_opts in
1163: *"
1164: "with_$ac_useropt"
1165: "*) ;;
1166: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167: ac_unrecognized_sep=', ';;
1168: esac
1169: eval with_$ac_useropt=no ;;
1.1 bertrand 1170:
1171: --x)
1172: # Obsolete; use --with-x.
1173: with_x=yes ;;
1174:
1175: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176: | --x-incl | --x-inc | --x-in | --x-i)
1177: ac_prev=x_includes ;;
1178: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180: x_includes=$ac_optarg ;;
1181:
1182: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184: ac_prev=x_libraries ;;
1185: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187: x_libraries=$ac_optarg ;;
1188:
1.15 bertrand 1189: -*) as_fn_error "unrecognized option: \`$ac_option'
1190: Try \`$0 --help' for more information."
1.1 bertrand 1191: ;;
1192:
1193: *=*)
1194: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195: # Reject names that are not valid shell variable names.
1.15 bertrand 1196: case $ac_envvar in #(
1197: '' | [0-9]* | *[!_$as_cr_alnum]* )
1198: as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1199: esac
1.1 bertrand 1200: eval $ac_envvar=\$ac_optarg
1201: export $ac_envvar ;;
1202:
1203: *)
1204: # FIXME: should be removed in autoconf 3.0.
1.15 bertrand 1205: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1.1 bertrand 1206: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.15 bertrand 1207: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1.1 bertrand 1208: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1209: ;;
1210:
1211: esac
1212: done
1213:
1214: if test -n "$ac_prev"; then
1215: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1.15 bertrand 1216: as_fn_error "missing argument to $ac_option"
1217: fi
1218:
1219: if test -n "$ac_unrecognized_opts"; then
1220: case $enable_option_checking in
1221: no) ;;
1222: fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1223: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224: esac
1.1 bertrand 1225: fi
1226:
1.15 bertrand 1227: # Check all directory arguments for consistency.
1.1 bertrand 1228: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229: datadir sysconfdir sharedstatedir localstatedir includedir \
1230: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231: libdir localedir mandir
1232: do
1233: eval ac_val=\$$ac_var
1.15 bertrand 1234: # Remove trailing slashes.
1235: case $ac_val in
1236: */ )
1237: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238: eval $ac_var=\$ac_val;;
1239: esac
1240: # Be sure to have absolute directory names.
1.1 bertrand 1241: case $ac_val in
1242: [\\/$]* | ?:[\\/]* ) continue;;
1243: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244: esac
1.15 bertrand 1245: as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1.1 bertrand 1246: done
1247:
1248: # There might be people who depend on the old broken behavior: `$host'
1249: # used to hold the argument of --host etc.
1250: # FIXME: To remove some day.
1251: build=$build_alias
1252: host=$host_alias
1253: target=$target_alias
1254:
1255: # FIXME: To remove some day.
1256: if test "x$host_alias" != x; then
1257: if test "x$build_alias" = x; then
1258: cross_compiling=maybe
1.15 bertrand 1259: $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1.1 bertrand 1260: If a cross compiler is detected then cross compile mode will be used." >&2
1261: elif test "x$build_alias" != "x$host_alias"; then
1262: cross_compiling=yes
1263: fi
1264: fi
1265:
1266: ac_tool_prefix=
1267: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268:
1269: test "$silent" = yes && exec 6>/dev/null
1270:
1271:
1272: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273: ac_ls_di=`ls -di .` &&
1274: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1.15 bertrand 1275: as_fn_error "working directory cannot be determined"
1.1 bertrand 1276: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1.15 bertrand 1277: as_fn_error "pwd does not report name of working directory"
1.1 bertrand 1278:
1279:
1280: # Find the source files, if location was not specified.
1281: if test -z "$srcdir"; then
1282: ac_srcdir_defaulted=yes
1283: # Try the directory containing this script, then the parent directory.
1.15 bertrand 1284: ac_confdir=`$as_dirname -- "$as_myself" ||
1285: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286: X"$as_myself" : 'X\(//\)[^/]' \| \
1287: X"$as_myself" : 'X\(//\)$' \| \
1288: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289: $as_echo X"$as_myself" |
1.1 bertrand 1290: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291: s//\1/
1292: q
1293: }
1294: /^X\(\/\/\)[^/].*/{
1295: s//\1/
1296: q
1297: }
1298: /^X\(\/\/\)$/{
1299: s//\1/
1300: q
1301: }
1302: /^X\(\/\).*/{
1303: s//\1/
1304: q
1305: }
1306: s/.*/./; q'`
1307: srcdir=$ac_confdir
1308: if test ! -r "$srcdir/$ac_unique_file"; then
1309: srcdir=..
1310: fi
1311: else
1312: ac_srcdir_defaulted=no
1313: fi
1314: if test ! -r "$srcdir/$ac_unique_file"; then
1315: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1.15 bertrand 1316: as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1.1 bertrand 1317: fi
1318: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319: ac_abs_confdir=`(
1.15 bertrand 1320: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1.1 bertrand 1321: pwd)`
1322: # When building in place, set srcdir=.
1323: if test "$ac_abs_confdir" = "$ac_pwd"; then
1324: srcdir=.
1325: fi
1326: # Remove unnecessary trailing slashes from srcdir.
1327: # Double slashes in file names in object file debugging info
1328: # mess up M-x gdb in Emacs.
1329: case $srcdir in
1330: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331: esac
1332: for ac_var in $ac_precious_vars; do
1333: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334: eval ac_env_${ac_var}_value=\$${ac_var}
1335: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337: done
1338:
1339: #
1340: # Report the --help message.
1341: #
1342: if test "$ac_init_help" = "long"; then
1343: # Omit some internal or obsolete options to make the list less imposing.
1344: # This message is too long to be a string in the A/UX 3.1 sh.
1345: cat <<_ACEOF
1.29 bertrand 1346: \`configure' configures rpl 4.0.18 to adapt to many kinds of systems.
1.1 bertrand 1347:
1348: Usage: $0 [OPTION]... [VAR=VALUE]...
1349:
1350: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351: VAR=VALUE. See below for descriptions of some of the useful variables.
1352:
1353: Defaults for the options are specified in brackets.
1354:
1355: Configuration:
1356: -h, --help display this help and exit
1357: --help=short display options specific to this package
1358: --help=recursive display the short help of all the included packages
1359: -V, --version display version information and exit
1360: -q, --quiet, --silent do not print \`checking...' messages
1361: --cache-file=FILE cache test results in FILE [disabled]
1362: -C, --config-cache alias for \`--cache-file=config.cache'
1363: -n, --no-create do not create output files
1364: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365:
1366: Installation directories:
1367: --prefix=PREFIX install architecture-independent files in PREFIX
1.15 bertrand 1368: [$ac_default_prefix]
1.1 bertrand 1369: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.15 bertrand 1370: [PREFIX]
1.1 bertrand 1371:
1372: By default, \`make install' will install all the files in
1373: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1374: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375: for instance \`--prefix=\$HOME'.
1376:
1377: For better control, use the options below.
1378:
1379: Fine tuning of the installation directories:
1.15 bertrand 1380: --bindir=DIR user executables [EPREFIX/bin]
1381: --sbindir=DIR system admin executables [EPREFIX/sbin]
1382: --libexecdir=DIR program executables [EPREFIX/libexec]
1383: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386: --libdir=DIR object code libraries [EPREFIX/lib]
1387: --includedir=DIR C header files [PREFIX/include]
1388: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391: --infodir=DIR info documentation [DATAROOTDIR/info]
1392: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393: --mandir=DIR man documentation [DATAROOTDIR/man]
1394: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1395: --htmldir=DIR html documentation [DOCDIR]
1396: --dvidir=DIR dvi documentation [DOCDIR]
1397: --pdfdir=DIR pdf documentation [DOCDIR]
1398: --psdir=DIR ps documentation [DOCDIR]
1.1 bertrand 1399: _ACEOF
1400:
1401: cat <<\_ACEOF
1402:
1403: Program names:
1404: --program-prefix=PREFIX prepend PREFIX to installed program names
1405: --program-suffix=SUFFIX append SUFFIX to installed program names
1406: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407:
1408: X features:
1409: --x-includes=DIR X include files are in DIR
1410: --x-libraries=DIR X library files are in DIR
1411:
1412: System types:
1413: --build=BUILD configure for building on BUILD [guessed]
1414: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415: --target=TARGET configure for building compilers for TARGET [HOST]
1416: _ACEOF
1417: fi
1418:
1419: if test -n "$ac_init_help"; then
1420: case $ac_init_help in
1.29 bertrand 1421: short | recursive ) echo "Configuration of rpl 4.0.18:";;
1.1 bertrand 1422: esac
1423: cat <<\_ACEOF
1424:
1425: Optional Features:
1.15 bertrand 1426: --disable-option-checking ignore unrecognized --enable/--with options
1.1 bertrand 1427: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429: --disable-dependency-tracking speeds up one-time build
1430: --enable-dependency-tracking do not reject slow dependency extractors
1431: --enable-optimization set compiler flags [default=environment variables -O3]
1.30 bertrand 1432: --enable-full-static build static RPL/2 engine [default=shared]
1.1 bertrand 1433: --enable-final-encoding force final encoding [default=guessed]
1434: --enable-tex provide the TeX support [default=guessed]
1435: --enable-vim provide the vim support [default=guessed]
1436: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1437: --enable-gnuplot provide the GnuPlot support [default=guessed]
1438: --enable-motif provide the Motif support [default=guessed]
1439: --enable-experimental enable experimental code [default=no]
1440: --enable-debug enable debug code [default=no]
1441: --enable-profile enable profile code [default=no]
1442: --enable-final-run-path=PATH enable another final run path than PREFIX
1443:
1444: Optional Packages:
1445: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447: --with-x use the X Window System
1448: --with-mysql=PATH specify directory for installed mysql
1449: --with-postgresql=PATH specify directory for installed postgresql
1.15 bertrand 1450: --with-openssl-arch=ARCH specify os and compiler for openssl (ARCH or list)
1.1 bertrand 1451:
1452: Some influential environment variables:
1453: CC C compiler command
1454: CFLAGS C compiler flags
1455: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1456: nonstandard directory <lib dir>
1457: LIBS libraries to pass to the linker, e.g. -l<library>
1.15 bertrand 1458: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1.1 bertrand 1459: you have headers in a nonstandard directory <include dir>
1460: CXX C++ compiler command
1461: CXXFLAGS C++ compiler flags
1462: F77 Fortran 77 compiler command
1463: FFLAGS Fortran 77 compiler flags
1464: FC Fortran compiler command
1465: FCFLAGS Fortran compiler flags
1466: XMKMF Path to xmkmf, Makefile generator for X Window System
1467: CPP C preprocessor
1468:
1469: Use these variables to override the choices made by `configure' or to help
1470: it to find libraries and programs with nonstandard names/locations.
1471:
1.15 bertrand 1472: Report bugs to the package provider.
1.1 bertrand 1473: _ACEOF
1474: ac_status=$?
1475: fi
1476:
1477: if test "$ac_init_help" = "recursive"; then
1478: # If there are subdirs, report their specific --help.
1479: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.15 bertrand 1480: test -d "$ac_dir" ||
1481: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1482: continue
1.1 bertrand 1483: ac_builddir=.
1484:
1485: case "$ac_dir" in
1486: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487: *)
1.15 bertrand 1488: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 1489: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 1490: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 1491: case $ac_top_builddir_sub in
1492: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494: esac ;;
1495: esac
1496: ac_abs_top_builddir=$ac_pwd
1497: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498: # for backward compatibility:
1499: ac_top_builddir=$ac_top_build_prefix
1500:
1501: case $srcdir in
1502: .) # We are building in place.
1503: ac_srcdir=.
1504: ac_top_srcdir=$ac_top_builddir_sub
1505: ac_abs_top_srcdir=$ac_pwd ;;
1506: [\\/]* | ?:[\\/]* ) # Absolute name.
1507: ac_srcdir=$srcdir$ac_dir_suffix;
1508: ac_top_srcdir=$srcdir
1509: ac_abs_top_srcdir=$srcdir ;;
1510: *) # Relative name.
1511: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512: ac_top_srcdir=$ac_top_build_prefix$srcdir
1513: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514: esac
1515: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516:
1517: cd "$ac_dir" || { ac_status=$?; continue; }
1518: # Check for guested configure.
1519: if test -f "$ac_srcdir/configure.gnu"; then
1520: echo &&
1521: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522: elif test -f "$ac_srcdir/configure"; then
1523: echo &&
1524: $SHELL "$ac_srcdir/configure" --help=recursive
1525: else
1.15 bertrand 1526: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.1 bertrand 1527: fi || ac_status=$?
1528: cd "$ac_pwd" || { ac_status=$?; break; }
1529: done
1530: fi
1531:
1532: test -n "$ac_init_help" && exit $ac_status
1533: if $ac_init_version; then
1534: cat <<\_ACEOF
1.29 bertrand 1535: rpl configure 4.0.18
1.15 bertrand 1536: generated by GNU Autoconf 2.65
1.1 bertrand 1537:
1.15 bertrand 1538: Copyright (C) 2009 Free Software Foundation, Inc.
1.1 bertrand 1539: This configure script is free software; the Free Software Foundation
1540: gives unlimited permission to copy, distribute and modify it.
1541: _ACEOF
1542: exit
1543: fi
1544:
1.15 bertrand 1545: ## ------------------------ ##
1546: ## Autoconf initialization. ##
1547: ## ------------------------ ##
1548:
1549: # ac_fn_c_try_compile LINENO
1550: # --------------------------
1551: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552: ac_fn_c_try_compile ()
1553: {
1554: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555: rm -f conftest.$ac_objext
1556: if { { ac_try="$ac_compile"
1557: case "(($ac_try" in
1558: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559: *) ac_try_echo=$ac_try;;
1560: esac
1561: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562: $as_echo "$ac_try_echo"; } >&5
1563: (eval "$ac_compile") 2>conftest.err
1564: ac_status=$?
1565: if test -s conftest.err; then
1566: grep -v '^ *+' conftest.err >conftest.er1
1567: cat conftest.er1 >&5
1568: mv -f conftest.er1 conftest.err
1569: fi
1570: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571: test $ac_status = 0; } && {
1572: test -z "$ac_c_werror_flag" ||
1573: test ! -s conftest.err
1574: } && test -s conftest.$ac_objext; then :
1575: ac_retval=0
1576: else
1577: $as_echo "$as_me: failed program was:" >&5
1578: sed 's/^/| /' conftest.$ac_ext >&5
1579:
1580: ac_retval=1
1581: fi
1582: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583: as_fn_set_status $ac_retval
1.1 bertrand 1584:
1.15 bertrand 1585: } # ac_fn_c_try_compile
1.1 bertrand 1586:
1.15 bertrand 1587: # ac_fn_cxx_try_compile LINENO
1588: # ----------------------------
1589: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1590: ac_fn_cxx_try_compile ()
1.1 bertrand 1591: {
1.15 bertrand 1592: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593: rm -f conftest.$ac_objext
1594: if { { ac_try="$ac_compile"
1595: case "(($ac_try" in
1596: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597: *) ac_try_echo=$ac_try;;
1598: esac
1599: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600: $as_echo "$ac_try_echo"; } >&5
1601: (eval "$ac_compile") 2>conftest.err
1602: ac_status=$?
1603: if test -s conftest.err; then
1604: grep -v '^ *+' conftest.err >conftest.er1
1605: cat conftest.er1 >&5
1606: mv -f conftest.er1 conftest.err
1607: fi
1608: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609: test $ac_status = 0; } && {
1610: test -z "$ac_cxx_werror_flag" ||
1611: test ! -s conftest.err
1612: } && test -s conftest.$ac_objext; then :
1613: ac_retval=0
1614: else
1615: $as_echo "$as_me: failed program was:" >&5
1616: sed 's/^/| /' conftest.$ac_ext >&5
1617:
1618: ac_retval=1
1619: fi
1620: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1621: as_fn_set_status $ac_retval
1.1 bertrand 1622:
1.15 bertrand 1623: } # ac_fn_cxx_try_compile
1.1 bertrand 1624:
1.15 bertrand 1625: # ac_fn_f77_try_compile LINENO
1626: # ----------------------------
1627: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628: ac_fn_f77_try_compile ()
1629: {
1630: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631: rm -f conftest.$ac_objext
1632: if { { ac_try="$ac_compile"
1633: case "(($ac_try" in
1634: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635: *) ac_try_echo=$ac_try;;
1636: esac
1637: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638: $as_echo "$ac_try_echo"; } >&5
1639: (eval "$ac_compile") 2>conftest.err
1640: ac_status=$?
1641: if test -s conftest.err; then
1642: grep -v '^ *+' conftest.err >conftest.er1
1643: cat conftest.er1 >&5
1644: mv -f conftest.er1 conftest.err
1645: fi
1646: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647: test $ac_status = 0; } && {
1648: test -z "$ac_f77_werror_flag" ||
1649: test ! -s conftest.err
1650: } && test -s conftest.$ac_objext; then :
1651: ac_retval=0
1652: else
1653: $as_echo "$as_me: failed program was:" >&5
1654: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1655:
1.15 bertrand 1656: ac_retval=1
1657: fi
1658: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659: as_fn_set_status $ac_retval
1.1 bertrand 1660:
1.15 bertrand 1661: } # ac_fn_f77_try_compile
1.1 bertrand 1662:
1.15 bertrand 1663: # ac_fn_fc_try_compile LINENO
1664: # ---------------------------
1665: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1666: ac_fn_fc_try_compile ()
1667: {
1668: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669: rm -f conftest.$ac_objext
1670: if { { ac_try="$ac_compile"
1671: case "(($ac_try" in
1672: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673: *) ac_try_echo=$ac_try;;
1674: esac
1675: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676: $as_echo "$ac_try_echo"; } >&5
1677: (eval "$ac_compile") 2>conftest.err
1678: ac_status=$?
1679: if test -s conftest.err; then
1680: grep -v '^ *+' conftest.err >conftest.er1
1681: cat conftest.er1 >&5
1682: mv -f conftest.er1 conftest.err
1683: fi
1684: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685: test $ac_status = 0; } && {
1686: test -z "$ac_fc_werror_flag" ||
1687: test ! -s conftest.err
1688: } && test -s conftest.$ac_objext; then :
1689: ac_retval=0
1690: else
1691: $as_echo "$as_me: failed program was:" >&5
1692: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1693:
1.15 bertrand 1694: ac_retval=1
1695: fi
1696: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697: as_fn_set_status $ac_retval
1.1 bertrand 1698:
1.15 bertrand 1699: } # ac_fn_fc_try_compile
1.1 bertrand 1700:
1.15 bertrand 1701: # ac_fn_c_try_cpp LINENO
1702: # ----------------------
1703: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704: ac_fn_c_try_cpp ()
1705: {
1706: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707: if { { ac_try="$ac_cpp conftest.$ac_ext"
1708: case "(($ac_try" in
1709: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710: *) ac_try_echo=$ac_try;;
1711: esac
1712: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713: $as_echo "$ac_try_echo"; } >&5
1714: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1715: ac_status=$?
1716: if test -s conftest.err; then
1717: grep -v '^ *+' conftest.err >conftest.er1
1718: cat conftest.er1 >&5
1719: mv -f conftest.er1 conftest.err
1720: fi
1721: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722: test $ac_status = 0; } >/dev/null && {
1723: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724: test ! -s conftest.err
1725: }; then :
1726: ac_retval=0
1727: else
1728: $as_echo "$as_me: failed program was:" >&5
1729: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1730:
1.15 bertrand 1731: ac_retval=1
1732: fi
1733: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734: as_fn_set_status $ac_retval
1.1 bertrand 1735:
1.15 bertrand 1736: } # ac_fn_c_try_cpp
1.1 bertrand 1737:
1.15 bertrand 1738: # ac_fn_c_try_link LINENO
1739: # -----------------------
1740: # Try to link conftest.$ac_ext, and return whether this succeeded.
1741: ac_fn_c_try_link ()
1742: {
1743: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744: rm -f conftest.$ac_objext conftest$ac_exeext
1745: if { { ac_try="$ac_link"
1746: case "(($ac_try" in
1747: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748: *) ac_try_echo=$ac_try;;
1749: esac
1750: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751: $as_echo "$ac_try_echo"; } >&5
1752: (eval "$ac_link") 2>conftest.err
1753: ac_status=$?
1754: if test -s conftest.err; then
1755: grep -v '^ *+' conftest.err >conftest.er1
1756: cat conftest.er1 >&5
1757: mv -f conftest.er1 conftest.err
1758: fi
1759: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760: test $ac_status = 0; } && {
1761: test -z "$ac_c_werror_flag" ||
1762: test ! -s conftest.err
1763: } && test -s conftest$ac_exeext && {
1764: test "$cross_compiling" = yes ||
1765: $as_test_x conftest$ac_exeext
1766: }; then :
1767: ac_retval=0
1768: else
1769: $as_echo "$as_me: failed program was:" >&5
1770: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1771:
1.15 bertrand 1772: ac_retval=1
1773: fi
1774: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776: # interfere with the next link command; also delete a directory that is
1777: # left behind by Apple's compiler. We do this before executing the actions.
1778: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780: as_fn_set_status $ac_retval
1.1 bertrand 1781:
1.15 bertrand 1782: } # ac_fn_c_try_link
1.1 bertrand 1783:
1.15 bertrand 1784: # ac_fn_c_check_func LINENO FUNC VAR
1785: # ----------------------------------
1786: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1787: ac_fn_c_check_func ()
1788: {
1789: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791: $as_echo_n "checking for $2... " >&6; }
1792: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1793: $as_echo_n "(cached) " >&6
1794: else
1795: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796: /* end confdefs.h. */
1797: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1798: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1799: #define $2 innocuous_$2
1.1 bertrand 1800:
1.15 bertrand 1801: /* System header to define __stub macros and hopefully few prototypes,
1802: which can conflict with char $2 (); below.
1803: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1804: <limits.h> exists even on freestanding compilers. */
1.1 bertrand 1805:
1.15 bertrand 1806: #ifdef __STDC__
1807: # include <limits.h>
1808: #else
1809: # include <assert.h>
1810: #endif
1.1 bertrand 1811:
1.15 bertrand 1812: #undef $2
1.1 bertrand 1813:
1.15 bertrand 1814: /* Override any GCC internal prototype to avoid an error.
1815: Use char because int might match the return type of a GCC
1816: builtin and then its argument prototype would still apply. */
1817: #ifdef __cplusplus
1818: extern "C"
1819: #endif
1820: char $2 ();
1821: /* The GNU C library defines this for functions which it implements
1822: to always fail with ENOSYS. Some functions are actually named
1823: something starting with __ and the normal name is an alias. */
1824: #if defined __stub_$2 || defined __stub___$2
1825: choke me
1826: #endif
1.1 bertrand 1827:
1.15 bertrand 1828: int
1829: main ()
1830: {
1831: return $2 ();
1832: ;
1833: return 0;
1834: }
1.1 bertrand 1835: _ACEOF
1.15 bertrand 1836: if ac_fn_c_try_link "$LINENO"; then :
1837: eval "$3=yes"
1838: else
1839: eval "$3=no"
1840: fi
1841: rm -f core conftest.err conftest.$ac_objext \
1842: conftest$ac_exeext conftest.$ac_ext
1843: fi
1844: eval ac_res=\$$3
1845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846: $as_echo "$ac_res" >&6; }
1847: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1 bertrand 1848:
1.15 bertrand 1849: } # ac_fn_c_check_func
1.1 bertrand 1850:
1.33 ! bertrand 1851: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
! 1852: # -------------------------------------------
! 1853: # Tests whether TYPE exists after having included INCLUDES, setting cache
! 1854: # variable VAR accordingly.
! 1855: ac_fn_c_check_type ()
! 1856: {
! 1857: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
! 1858: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
! 1859: $as_echo_n "checking for $2... " >&6; }
! 1860: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
! 1861: $as_echo_n "(cached) " >&6
! 1862: else
! 1863: eval "$3=no"
! 1864: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1865: /* end confdefs.h. */
! 1866: $4
! 1867: int
! 1868: main ()
! 1869: {
! 1870: if (sizeof ($2))
! 1871: return 0;
! 1872: ;
! 1873: return 0;
! 1874: }
! 1875: _ACEOF
! 1876: if ac_fn_c_try_compile "$LINENO"; then :
! 1877: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 1878: /* end confdefs.h. */
! 1879: $4
! 1880: int
! 1881: main ()
! 1882: {
! 1883: if (sizeof (($2)))
! 1884: return 0;
! 1885: ;
! 1886: return 0;
! 1887: }
! 1888: _ACEOF
! 1889: if ac_fn_c_try_compile "$LINENO"; then :
! 1890:
! 1891: else
! 1892: eval "$3=yes"
! 1893: fi
! 1894: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1895: fi
! 1896: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 1897: fi
! 1898: eval ac_res=\$$3
! 1899: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
! 1900: $as_echo "$ac_res" >&6; }
! 1901: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
! 1902:
! 1903: } # ac_fn_c_check_type
! 1904:
1.15 bertrand 1905: # ac_fn_c_try_run LINENO
1906: # ----------------------
1907: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1908: # that executables *can* be run.
1909: ac_fn_c_try_run ()
1910: {
1911: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912: if { { ac_try="$ac_link"
1913: case "(($ac_try" in
1914: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915: *) ac_try_echo=$ac_try;;
1916: esac
1917: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918: $as_echo "$ac_try_echo"; } >&5
1919: (eval "$ac_link") 2>&5
1920: ac_status=$?
1921: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1923: { { case "(($ac_try" in
1924: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925: *) ac_try_echo=$ac_try;;
1926: esac
1927: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928: $as_echo "$ac_try_echo"; } >&5
1929: (eval "$ac_try") 2>&5
1930: ac_status=$?
1931: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932: test $ac_status = 0; }; }; then :
1933: ac_retval=0
1934: else
1935: $as_echo "$as_me: program exited with status $ac_status" >&5
1936: $as_echo "$as_me: failed program was:" >&5
1937: sed 's/^/| /' conftest.$ac_ext >&5
1.1 bertrand 1938:
1.15 bertrand 1939: ac_retval=$ac_status
1940: fi
1941: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1942: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1943: as_fn_set_status $ac_retval
1.1 bertrand 1944:
1.15 bertrand 1945: } # ac_fn_c_try_run
1.1 bertrand 1946:
1.15 bertrand 1947: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1948: # --------------------------------------------
1949: # Tries to find the compile-time value of EXPR in a program that includes
1950: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1951: # computed
1952: ac_fn_c_compute_int ()
1953: {
1954: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955: if test "$cross_compiling" = yes; then
1956: # Depending upon the size, compute the lo and hi bounds.
1957: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958: /* end confdefs.h. */
1959: $4
1960: int
1961: main ()
1962: {
1963: static int test_array [1 - 2 * !(($2) >= 0)];
1964: test_array [0] = 0
1.1 bertrand 1965:
1.15 bertrand 1966: ;
1967: return 0;
1968: }
1.1 bertrand 1969: _ACEOF
1.15 bertrand 1970: if ac_fn_c_try_compile "$LINENO"; then :
1971: ac_lo=0 ac_mid=0
1972: while :; do
1973: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974: /* end confdefs.h. */
1975: $4
1976: int
1977: main ()
1978: {
1979: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1980: test_array [0] = 0
1.1 bertrand 1981:
1.15 bertrand 1982: ;
1983: return 0;
1984: }
1985: _ACEOF
1986: if ac_fn_c_try_compile "$LINENO"; then :
1987: ac_hi=$ac_mid; break
1988: else
1989: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1990: if test $ac_lo -le $ac_mid; then
1991: ac_lo= ac_hi=
1992: break
1993: fi
1994: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1995: fi
1996: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997: done
1998: else
1999: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000: /* end confdefs.h. */
2001: $4
2002: int
2003: main ()
2004: {
2005: static int test_array [1 - 2 * !(($2) < 0)];
2006: test_array [0] = 0
1.1 bertrand 2007:
1.15 bertrand 2008: ;
2009: return 0;
2010: }
1.1 bertrand 2011: _ACEOF
1.15 bertrand 2012: if ac_fn_c_try_compile "$LINENO"; then :
2013: ac_hi=-1 ac_mid=-1
2014: while :; do
2015: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016: /* end confdefs.h. */
2017: $4
2018: int
2019: main ()
2020: {
2021: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2022: test_array [0] = 0
1.1 bertrand 2023:
1.15 bertrand 2024: ;
2025: return 0;
2026: }
2027: _ACEOF
2028: if ac_fn_c_try_compile "$LINENO"; then :
2029: ac_lo=$ac_mid; break
2030: else
2031: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2032: if test $ac_mid -le $ac_hi; then
2033: ac_lo= ac_hi=
2034: break
2035: fi
2036: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2037: fi
2038: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039: done
1.1 bertrand 2040: else
1.15 bertrand 2041: ac_lo= ac_hi=
2042: fi
2043: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 2044: fi
1.15 bertrand 2045: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046: # Binary search between lo and hi bounds.
2047: while test "x$ac_lo" != "x$ac_hi"; do
2048: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2049: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050: /* end confdefs.h. */
2051: $4
2052: int
2053: main ()
2054: {
2055: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2056: test_array [0] = 0
1.1 bertrand 2057:
1.15 bertrand 2058: ;
2059: return 0;
2060: }
2061: _ACEOF
2062: if ac_fn_c_try_compile "$LINENO"; then :
2063: ac_hi=$ac_mid
1.1 bertrand 2064: else
1.15 bertrand 2065: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1.1 bertrand 2066: fi
1.15 bertrand 2067: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068: done
2069: case $ac_lo in #((
2070: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2071: '') ac_retval=1 ;;
2072: esac
2073: else
2074: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075: /* end confdefs.h. */
2076: $4
2077: static long int longval () { return $2; }
2078: static unsigned long int ulongval () { return $2; }
2079: #include <stdio.h>
2080: #include <stdlib.h>
2081: int
2082: main ()
2083: {
1.1 bertrand 2084:
1.15 bertrand 2085: FILE *f = fopen ("conftest.val", "w");
2086: if (! f)
2087: return 1;
2088: if (($2) < 0)
2089: {
2090: long int i = longval ();
2091: if (i != ($2))
2092: return 1;
2093: fprintf (f, "%ld", i);
2094: }
2095: else
2096: {
2097: unsigned long int i = ulongval ();
2098: if (i != ($2))
2099: return 1;
2100: fprintf (f, "%lu", i);
2101: }
2102: /* Do not output a trailing newline, as this causes \r\n confusion
2103: on some platforms. */
2104: return ferror (f) || fclose (f) != 0;
2105:
2106: ;
2107: return 0;
2108: }
2109: _ACEOF
2110: if ac_fn_c_try_run "$LINENO"; then :
2111: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2112: else
2113: ac_retval=1
1.14 bertrand 2114: fi
1.15 bertrand 2115: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2116: conftest.$ac_objext conftest.beam conftest.$ac_ext
2117: rm -f conftest.val
1.14 bertrand 2118:
1.15 bertrand 2119: fi
2120: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2121: as_fn_set_status $ac_retval
1.14 bertrand 2122:
1.15 bertrand 2123: } # ac_fn_c_compute_int
1.1 bertrand 2124:
1.15 bertrand 2125: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2126: # -------------------------------------------------------
2127: # Tests whether HEADER exists and can be compiled using the include files in
2128: # INCLUDES, setting the cache variable VAR accordingly.
2129: ac_fn_c_check_header_compile ()
2130: {
2131: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133: $as_echo_n "checking for $2... " >&6; }
2134: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2135: $as_echo_n "(cached) " >&6
2136: else
2137: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138: /* end confdefs.h. */
2139: $4
2140: #include <$2>
2141: _ACEOF
2142: if ac_fn_c_try_compile "$LINENO"; then :
2143: eval "$3=yes"
2144: else
2145: eval "$3=no"
2146: fi
2147: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2148: fi
2149: eval ac_res=\$$3
2150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2151: $as_echo "$ac_res" >&6; }
2152: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1 bertrand 2153:
1.15 bertrand 2154: } # ac_fn_c_check_header_compile
1.1 bertrand 2155:
1.15 bertrand 2156: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2157: # -------------------------------------------------------
2158: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2159: # the include files in INCLUDES and setting the cache variable VAR
2160: # accordingly.
2161: ac_fn_c_check_header_mongrel ()
2162: {
2163: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2165: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2166: $as_echo_n "checking for $2... " >&6; }
2167: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2168: $as_echo_n "(cached) " >&6
2169: fi
2170: eval ac_res=\$$3
2171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172: $as_echo "$ac_res" >&6; }
2173: else
2174: # Is the header compilable?
2175: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2176: $as_echo_n "checking $2 usability... " >&6; }
2177: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178: /* end confdefs.h. */
2179: $4
2180: #include <$2>
2181: _ACEOF
2182: if ac_fn_c_try_compile "$LINENO"; then :
2183: ac_header_compiler=yes
2184: else
2185: ac_header_compiler=no
2186: fi
2187: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2189: $as_echo "$ac_header_compiler" >&6; }
1.1 bertrand 2190:
1.15 bertrand 2191: # Is the header present?
2192: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2193: $as_echo_n "checking $2 presence... " >&6; }
2194: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195: /* end confdefs.h. */
2196: #include <$2>
2197: _ACEOF
2198: if ac_fn_c_try_cpp "$LINENO"; then :
2199: ac_header_preproc=yes
2200: else
2201: ac_header_preproc=no
2202: fi
2203: rm -f conftest.err conftest.$ac_ext
2204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2205: $as_echo "$ac_header_preproc" >&6; }
1.1 bertrand 2206:
1.15 bertrand 2207: # So? What about this header?
2208: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2209: yes:no: )
2210: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2211: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2212: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2213: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2214: ;;
2215: no:yes:* )
2216: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2217: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2218: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2219: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2220: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2221: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2222: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2223: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2224: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2225: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2226: ;;
2227: esac
2228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229: $as_echo_n "checking for $2... " >&6; }
2230: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2231: $as_echo_n "(cached) " >&6
2232: else
2233: eval "$3=\$ac_header_compiler"
2234: fi
2235: eval ac_res=\$$3
2236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237: $as_echo "$ac_res" >&6; }
2238: fi
2239: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1.1 bertrand 2240:
1.15 bertrand 2241: } # ac_fn_c_check_header_mongrel
2242: cat >config.log <<_ACEOF
2243: This file contains any messages produced by compilers while
2244: running configure, to aid debugging if configure makes a mistake.
1.1 bertrand 2245:
1.29 bertrand 2246: It was created by rpl $as_me 4.0.18, which was
1.15 bertrand 2247: generated by GNU Autoconf 2.65. Invocation command line was
1.1 bertrand 2248:
1.15 bertrand 2249: $ $0 $@
1.1 bertrand 2250:
1.15 bertrand 2251: _ACEOF
2252: exec 5>>config.log
2253: {
2254: cat <<_ASUNAME
2255: ## --------- ##
2256: ## Platform. ##
2257: ## --------- ##
1.1 bertrand 2258:
1.15 bertrand 2259: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2260: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2261: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2262: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2263: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1.1 bertrand 2264:
1.15 bertrand 2265: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2266: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1.1 bertrand 2267:
1.15 bertrand 2268: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2269: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2270: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2271: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2272: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2273: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2274: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1.1 bertrand 2275:
1.15 bertrand 2276: _ASUNAME
1.1 bertrand 2277:
1.15 bertrand 2278: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279: for as_dir in $PATH
2280: do
2281: IFS=$as_save_IFS
2282: test -z "$as_dir" && as_dir=.
2283: $as_echo "PATH: $as_dir"
2284: done
2285: IFS=$as_save_IFS
1.1 bertrand 2286:
1.15 bertrand 2287: } >&5
1.1 bertrand 2288:
1.15 bertrand 2289: cat >&5 <<_ACEOF
1.1 bertrand 2290:
2291:
1.15 bertrand 2292: ## ----------- ##
2293: ## Core tests. ##
2294: ## ----------- ##
1.1 bertrand 2295:
1.15 bertrand 2296: _ACEOF
1.1 bertrand 2297:
2298:
1.15 bertrand 2299: # Keep a trace of the command line.
2300: # Strip out --no-create and --no-recursion so they do not pile up.
2301: # Strip out --silent because we don't want to record it for future runs.
2302: # Also quote any args containing shell meta-characters.
2303: # Make two passes to allow for proper duplicate-argument suppression.
2304: ac_configure_args=
2305: ac_configure_args0=
2306: ac_configure_args1=
2307: ac_must_keep_next=false
2308: for ac_pass in 1 2
2309: do
2310: for ac_arg
2311: do
2312: case $ac_arg in
2313: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2314: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2315: | -silent | --silent | --silen | --sile | --sil)
2316: continue ;;
2317: *\'*)
2318: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2319: esac
2320: case $ac_pass in
2321: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2322: 2)
2323: as_fn_append ac_configure_args1 " '$ac_arg'"
2324: if test $ac_must_keep_next = true; then
2325: ac_must_keep_next=false # Got value, back to normal.
2326: else
2327: case $ac_arg in
2328: *=* | --config-cache | -C | -disable-* | --disable-* \
2329: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2330: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2331: | -with-* | --with-* | -without-* | --without-* | --x)
2332: case "$ac_configure_args0 " in
2333: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2334: esac
2335: ;;
2336: -* ) ac_must_keep_next=true ;;
2337: esac
2338: fi
2339: as_fn_append ac_configure_args " '$ac_arg'"
2340: ;;
2341: esac
2342: done
2343: done
2344: { ac_configure_args0=; unset ac_configure_args0;}
2345: { ac_configure_args1=; unset ac_configure_args1;}
1.1 bertrand 2346:
1.15 bertrand 2347: # When interrupted or exit'd, cleanup temporary files, and complete
2348: # config.log. We remove comments because anyway the quotes in there
2349: # would cause problems or look ugly.
2350: # WARNING: Use '\'' to represent an apostrophe within the trap.
2351: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2352: trap 'exit_status=$?
2353: # Save into config.log some information that might help in debugging.
2354: {
2355: echo
1.1 bertrand 2356:
1.15 bertrand 2357: cat <<\_ASBOX
2358: ## ---------------- ##
2359: ## Cache variables. ##
2360: ## ---------------- ##
2361: _ASBOX
2362: echo
2363: # The following way of writing the cache mishandles newlines in values,
2364: (
2365: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2366: eval ac_val=\$$ac_var
2367: case $ac_val in #(
2368: *${as_nl}*)
2369: case $ac_var in #(
2370: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2371: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2372: esac
2373: case $ac_var in #(
2374: _ | IFS | as_nl) ;; #(
2375: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2376: *) { eval $ac_var=; unset $ac_var;} ;;
2377: esac ;;
2378: esac
2379: done
2380: (set) 2>&1 |
2381: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2382: *${as_nl}ac_space=\ *)
2383: sed -n \
2384: "s/'\''/'\''\\\\'\'''\''/g;
2385: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2386: ;; #(
2387: *)
2388: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2389: ;;
2390: esac |
2391: sort
2392: )
2393: echo
1.1 bertrand 2394:
1.15 bertrand 2395: cat <<\_ASBOX
2396: ## ----------------- ##
2397: ## Output variables. ##
2398: ## ----------------- ##
2399: _ASBOX
2400: echo
2401: for ac_var in $ac_subst_vars
2402: do
2403: eval ac_val=\$$ac_var
2404: case $ac_val in
2405: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2406: esac
2407: $as_echo "$ac_var='\''$ac_val'\''"
2408: done | sort
2409: echo
1.1 bertrand 2410:
1.15 bertrand 2411: if test -n "$ac_subst_files"; then
2412: cat <<\_ASBOX
2413: ## ------------------- ##
2414: ## File substitutions. ##
2415: ## ------------------- ##
2416: _ASBOX
2417: echo
2418: for ac_var in $ac_subst_files
2419: do
2420: eval ac_val=\$$ac_var
2421: case $ac_val in
2422: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2423: esac
2424: $as_echo "$ac_var='\''$ac_val'\''"
2425: done | sort
2426: echo
1.14 bertrand 2427: fi
2428:
1.15 bertrand 2429: if test -s confdefs.h; then
2430: cat <<\_ASBOX
2431: ## ----------- ##
2432: ## confdefs.h. ##
2433: ## ----------- ##
2434: _ASBOX
2435: echo
2436: cat confdefs.h
2437: echo
2438: fi
2439: test "$ac_signal" != 0 &&
2440: $as_echo "$as_me: caught signal $ac_signal"
2441: $as_echo "$as_me: exit $exit_status"
2442: } >&5
2443: rm -f core *.core core.conftest.* &&
2444: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2445: exit $exit_status
2446: ' 0
2447: for ac_signal in 1 2 13 15; do
2448: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2449: done
2450: ac_signal=0
1.14 bertrand 2451:
1.15 bertrand 2452: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2453: rm -f -r conftest* confdefs.h
1.14 bertrand 2454:
1.15 bertrand 2455: $as_echo "/* confdefs.h */" > confdefs.h
1.14 bertrand 2456:
1.15 bertrand 2457: # Predefined preprocessor variables.
1.14 bertrand 2458:
1.15 bertrand 2459: cat >>confdefs.h <<_ACEOF
2460: #define PACKAGE_NAME "$PACKAGE_NAME"
2461: _ACEOF
1.14 bertrand 2462:
1.15 bertrand 2463: cat >>confdefs.h <<_ACEOF
2464: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1.14 bertrand 2465: _ACEOF
2466:
1.15 bertrand 2467: cat >>confdefs.h <<_ACEOF
2468: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2469: _ACEOF
1.14 bertrand 2470:
1.15 bertrand 2471: cat >>confdefs.h <<_ACEOF
2472: #define PACKAGE_STRING "$PACKAGE_STRING"
1.14 bertrand 2473: _ACEOF
2474:
1.15 bertrand 2475: cat >>confdefs.h <<_ACEOF
2476: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2477: _ACEOF
1.14 bertrand 2478:
1.15 bertrand 2479: cat >>confdefs.h <<_ACEOF
2480: #define PACKAGE_URL "$PACKAGE_URL"
2481: _ACEOF
1.14 bertrand 2482:
2483:
1.15 bertrand 2484: # Let the site file select an alternate cache file if it wants to.
2485: # Prefer an explicitly selected file to automatically selected ones.
2486: ac_site_file1=NONE
2487: ac_site_file2=NONE
2488: if test -n "$CONFIG_SITE"; then
2489: ac_site_file1=$CONFIG_SITE
2490: elif test "x$prefix" != xNONE; then
2491: ac_site_file1=$prefix/share/config.site
2492: ac_site_file2=$prefix/etc/config.site
1.14 bertrand 2493: else
1.15 bertrand 2494: ac_site_file1=$ac_default_prefix/share/config.site
2495: ac_site_file2=$ac_default_prefix/etc/config.site
1.14 bertrand 2496: fi
1.15 bertrand 2497: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2498: do
2499: test "x$ac_site_file" = xNONE && continue
2500: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2501: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2502: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2503: sed 's/^/| /' "$ac_site_file" >&5
2504: . "$ac_site_file"
2505: fi
2506: done
1.14 bertrand 2507:
1.15 bertrand 2508: if test -r "$cache_file"; then
2509: # Some versions of bash will fail to source /dev/null (special files
2510: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2511: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2512: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2513: $as_echo "$as_me: loading cache $cache_file" >&6;}
2514: case $cache_file in
2515: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2516: *) . "./$cache_file";;
2517: esac
2518: fi
1.14 bertrand 2519: else
1.15 bertrand 2520: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2521: $as_echo "$as_me: creating cache $cache_file" >&6;}
2522: >$cache_file
1.14 bertrand 2523: fi
2524:
1.15 bertrand 2525: # Check that the precious variables saved in the cache have kept the same
2526: # value.
2527: ac_cache_corrupted=false
2528: for ac_var in $ac_precious_vars; do
2529: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2530: eval ac_new_set=\$ac_env_${ac_var}_set
2531: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2532: eval ac_new_val=\$ac_env_${ac_var}_value
2533: case $ac_old_set,$ac_new_set in
2534: set,)
2535: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2536: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2537: ac_cache_corrupted=: ;;
2538: ,set)
2539: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2540: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2541: ac_cache_corrupted=: ;;
2542: ,);;
2543: *)
2544: if test "x$ac_old_val" != "x$ac_new_val"; then
2545: # differences in whitespace do not lead to failure.
2546: ac_old_val_w=`echo x $ac_old_val`
2547: ac_new_val_w=`echo x $ac_new_val`
2548: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2549: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2550: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2551: ac_cache_corrupted=:
2552: else
2553: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2554: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2555: eval $ac_var=\$ac_old_val
2556: fi
2557: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2558: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2559: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2560: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2561: fi;;
2562: esac
2563: # Pass precious variables to config.status.
2564: if test "$ac_new_set" = set; then
2565: case $ac_new_val in
2566: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2567: *) ac_arg=$ac_var=$ac_new_val ;;
2568: esac
2569: case " $ac_configure_args " in
2570: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2571: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2572: esac
1.14 bertrand 2573: fi
2574: done
1.15 bertrand 2575: if $ac_cache_corrupted; then
2576: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2577: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2578: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2579: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2580: as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2581: fi
2582: ## -------------------- ##
2583: ## Main body of script. ##
2584: ## -------------------- ##
1.14 bertrand 2585:
1.15 bertrand 2586: ac_ext=c
2587: ac_cpp='$CPP $CPPFLAGS'
2588: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2589: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2590: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14 bertrand 2591:
2592:
1.15 bertrand 2593: ac_aux_dir=
2594: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2595: for ac_t in install-sh install.sh shtool; do
2596: if test -f "$ac_dir/$ac_t"; then
2597: ac_aux_dir=$ac_dir
2598: ac_install_sh="$ac_aux_dir/$ac_t -c"
2599: break 2
2600: fi
2601: done
1.14 bertrand 2602: done
1.15 bertrand 2603: if test -z "$ac_aux_dir"; then
2604: as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2605: fi
1.14 bertrand 2606:
1.15 bertrand 2607: # These three variables are undocumented and unsupported,
2608: # and are intended to be withdrawn in a future Autoconf release.
2609: # They can cause serious problems if a builder's source tree is in a directory
2610: # whose full name contains unusual characters.
2611: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2612: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2613: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1.14 bertrand 2614:
2615:
1.15 bertrand 2616: # Make sure we can run config.sub.
2617: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2618: as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1.14 bertrand 2619:
1.15 bertrand 2620: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2621: $as_echo_n "checking build system type... " >&6; }
2622: if test "${ac_cv_build+set}" = set; then :
2623: $as_echo_n "(cached) " >&6
1.14 bertrand 2624: else
1.15 bertrand 2625: ac_build_alias=$build_alias
2626: test "x$ac_build_alias" = x &&
2627: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2628: test "x$ac_build_alias" = x &&
2629: as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2630: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2631: as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1.14 bertrand 2632:
2633: fi
1.15 bertrand 2634: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2635: $as_echo "$ac_cv_build" >&6; }
2636: case $ac_cv_build in
2637: *-*-*) ;;
2638: *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2639: esac
2640: build=$ac_cv_build
2641: ac_save_IFS=$IFS; IFS='-'
2642: set x $ac_cv_build
2643: shift
2644: build_cpu=$1
2645: build_vendor=$2
2646: shift; shift
2647: # Remember, the first character of IFS is used to create $*,
2648: # except with old shells:
2649: build_os=$*
2650: IFS=$ac_save_IFS
2651: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.14 bertrand 2652:
2653:
1.15 bertrand 2654: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2655: $as_echo_n "checking host system type... " >&6; }
2656: if test "${ac_cv_host+set}" = set; then :
2657: $as_echo_n "(cached) " >&6
1.14 bertrand 2658: else
1.15 bertrand 2659: if test "x$host_alias" = x; then
2660: ac_cv_host=$ac_cv_build
1.14 bertrand 2661: else
1.15 bertrand 2662: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2663: as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1.14 bertrand 2664: fi
2665:
2666: fi
1.15 bertrand 2667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2668: $as_echo "$ac_cv_host" >&6; }
2669: case $ac_cv_host in
2670: *-*-*) ;;
2671: *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2672: esac
2673: host=$ac_cv_host
2674: ac_save_IFS=$IFS; IFS='-'
2675: set x $ac_cv_host
2676: shift
2677: host_cpu=$1
2678: host_vendor=$2
2679: shift; shift
2680: # Remember, the first character of IFS is used to create $*,
2681: # except with old shells:
2682: host_os=$*
2683: IFS=$ac_save_IFS
2684: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.14 bertrand 2685:
2686:
1.15 bertrand 2687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2688: $as_echo_n "checking target system type... " >&6; }
2689: if test "${ac_cv_target+set}" = set; then :
2690: $as_echo_n "(cached) " >&6
2691: else
2692: if test "x$target_alias" = x; then
2693: ac_cv_target=$ac_cv_host
1.14 bertrand 2694: else
1.15 bertrand 2695: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2696: as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2697: fi
1.14 bertrand 2698:
2699: fi
1.15 bertrand 2700: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2701: $as_echo "$ac_cv_target" >&6; }
2702: case $ac_cv_target in
2703: *-*-*) ;;
2704: *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2705: esac
2706: target=$ac_cv_target
2707: ac_save_IFS=$IFS; IFS='-'
2708: set x $ac_cv_target
2709: shift
2710: target_cpu=$1
2711: target_vendor=$2
2712: shift; shift
2713: # Remember, the first character of IFS is used to create $*,
2714: # except with old shells:
2715: target_os=$*
2716: IFS=$ac_save_IFS
2717: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2718:
1.14 bertrand 2719:
1.15 bertrand 2720: # The aliases save the names the user supplied, while $host etc.
2721: # will get canonicalized.
2722: test -n "$target_alias" &&
2723: test "$program_prefix$program_suffix$program_transform_name" = \
2724: NONENONEs,x,x, &&
2725: program_prefix=${target_alias}-
1.1 bertrand 2726:
1.15 bertrand 2727: am__api_version='1.11'
1.1 bertrand 2728:
1.14 bertrand 2729: # Find a good install program. We prefer a C program (faster),
2730: # so one script is as good as another. But avoid the broken or
2731: # incompatible versions:
2732: # SysV /etc/install, /usr/sbin/install
2733: # SunOS /usr/etc/install
2734: # IRIX /sbin/install
2735: # AIX /bin/install
2736: # AmigaOS /C/install, which installs bootblocks on floppy discs
2737: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2738: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2739: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2740: # OS/2's system install, which has a completely different semantic
2741: # ./install, which can be erroneously created by make from ./install.sh.
1.15 bertrand 2742: # Reject install programs that cannot install multiple files.
2743: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2744: $as_echo_n "checking for a BSD-compatible install... " >&6; }
1.14 bertrand 2745: if test -z "$INSTALL"; then
1.15 bertrand 2746: if test "${ac_cv_path_install+set}" = set; then :
2747: $as_echo_n "(cached) " >&6
1.14 bertrand 2748: else
2749: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750: for as_dir in $PATH
2751: do
2752: IFS=$as_save_IFS
2753: test -z "$as_dir" && as_dir=.
1.15 bertrand 2754: # Account for people who put trailing slashes in PATH elements.
2755: case $as_dir/ in #((
2756: ./ | .// | /[cC]/* | \
1.14 bertrand 2757: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1.15 bertrand 2758: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1.14 bertrand 2759: /usr/ucb/* ) ;;
2760: *)
2761: # OSF1 and SCO ODT 3.0 have their own names for install.
2762: # Don't use installbsd from OSF since it installs stuff as root
2763: # by default.
2764: for ac_prog in ginstall scoinst install; do
2765: for ac_exec_ext in '' $ac_executable_extensions; do
2766: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2767: if test $ac_prog = install &&
2768: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2769: # AIX install. It has an incompatible calling convention.
2770: :
2771: elif test $ac_prog = install &&
2772: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2773: # program-specific install script used by HP pwplus--don't use.
2774: :
2775: else
1.15 bertrand 2776: rm -rf conftest.one conftest.two conftest.dir
2777: echo one > conftest.one
2778: echo two > conftest.two
2779: mkdir conftest.dir
2780: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2781: test -s conftest.one && test -s conftest.two &&
2782: test -s conftest.dir/conftest.one &&
2783: test -s conftest.dir/conftest.two
2784: then
2785: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2786: break 3
2787: fi
1.14 bertrand 2788: fi
2789: fi
2790: done
2791: done
2792: ;;
2793: esac
1.15 bertrand 2794:
2795: done
1.14 bertrand 2796: IFS=$as_save_IFS
1.1 bertrand 2797:
1.15 bertrand 2798: rm -rf conftest.one conftest.two conftest.dir
1.1 bertrand 2799:
1.14 bertrand 2800: fi
2801: if test "${ac_cv_path_install+set}" = set; then
2802: INSTALL=$ac_cv_path_install
2803: else
2804: # As a last resort, use the slow shell script. Don't cache a
2805: # value for INSTALL within a source directory, because that will
2806: # break other packages using the cache if that directory is
2807: # removed, or if the value is a relative name.
2808: INSTALL=$ac_install_sh
2809: fi
2810: fi
1.15 bertrand 2811: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2812: $as_echo "$INSTALL" >&6; }
1.1 bertrand 2813:
1.14 bertrand 2814: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2815: # It thinks the first close brace ends the variable substitution.
2816: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1.1 bertrand 2817:
1.14 bertrand 2818: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1.1 bertrand 2819:
1.14 bertrand 2820: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1.1 bertrand 2821:
1.15 bertrand 2822: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2823: $as_echo_n "checking whether build environment is sane... " >&6; }
2824: # Just in case
2825: sleep 1
2826: echo timestamp > conftest.file
2827: # Reject unsafe characters in $srcdir or the absolute working directory
2828: # name. Accept space and tab only in the latter.
2829: am_lf='
2830: '
2831: case `pwd` in
2832: *[\\\"\#\$\&\'\`$am_lf]*)
2833: as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2834: esac
2835: case $srcdir in
2836: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2837: as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2838: esac
2839:
2840: # Do `set' in a subshell so we don't clobber the current shell's
2841: # arguments. Must try -L first in case configure is actually a
2842: # symlink; some systems play weird games with the mod time of symlinks
2843: # (eg FreeBSD returns the mod time of the symlink's containing
2844: # directory).
2845: if (
2846: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2847: if test "$*" = "X"; then
2848: # -L didn't work.
2849: set X `ls -t "$srcdir/configure" conftest.file`
2850: fi
2851: rm -f conftest.file
2852: if test "$*" != "X $srcdir/configure conftest.file" \
2853: && test "$*" != "X conftest.file $srcdir/configure"; then
2854:
2855: # If neither matched, then we have a broken ls. This can happen
2856: # if, for instance, CONFIG_SHELL is bash and it inherits a
2857: # broken ls alias from the environment. This has actually
2858: # happened. Such a system could not be considered "sane".
2859: as_fn_error "ls -t appears to fail. Make sure there is not a broken
2860: alias in your environment" "$LINENO" 5
2861: fi
2862:
2863: test "$2" = conftest.file
2864: )
2865: then
2866: # Ok.
2867: :
1.14 bertrand 2868: else
1.15 bertrand 2869: as_fn_error "newly created file is older than distributed files!
2870: Check your system clock" "$LINENO" 5
1.14 bertrand 2871: fi
1.15 bertrand 2872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2873: $as_echo "yes" >&6; }
2874: test "$program_prefix" != NONE &&
2875: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2876: # Use a double $ so make ignores it.
2877: test "$program_suffix" != NONE &&
2878: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2879: # Double any \ or $.
2880: # By default was `s,x,x', remove it if useless.
2881: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2882: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2883:
2884: # expand $ac_aux_dir to an absolute path
2885: am_aux_dir=`cd $ac_aux_dir && pwd`
1.1 bertrand 2886:
1.15 bertrand 2887: if test x"${MISSING+set}" != xset; then
2888: case $am_aux_dir in
2889: *\ * | *\ *)
2890: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1.14 bertrand 2891: *)
1.15 bertrand 2892: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2893: esac
1.14 bertrand 2894: fi
1.15 bertrand 2895: # Use eval to expand $SHELL
2896: if eval "$MISSING --run true"; then
2897: am_missing_run="$MISSING --run "
1.14 bertrand 2898: else
1.15 bertrand 2899: am_missing_run=
2900: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2901: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2902: fi
2903:
2904: if test x"${install_sh}" != xset; then
2905: case $am_aux_dir in
2906: *\ * | *\ *)
2907: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2908: *)
2909: install_sh="\${SHELL} $am_aux_dir/install-sh"
2910: esac
1.14 bertrand 2911: fi
1.15 bertrand 2912:
2913: # Installed binaries are usually stripped using `strip' when the user
2914: # run `make install-strip'. However `strip' might not be the right
2915: # tool to use in cross-compilation environments, therefore Automake
2916: # will honor the `STRIP' environment variable to overrule this program.
2917: if test "$cross_compiling" != no; then
2918: if test -n "$ac_tool_prefix"; then
2919: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2920: set dummy ${ac_tool_prefix}strip; ac_word=$2
2921: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922: $as_echo_n "checking for $ac_word... " >&6; }
2923: if test "${ac_cv_prog_STRIP+set}" = set; then :
2924: $as_echo_n "(cached) " >&6
1.14 bertrand 2925: else
1.15 bertrand 2926: if test -n "$STRIP"; then
2927: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1.14 bertrand 2928: else
2929: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930: for as_dir in $PATH
2931: do
2932: IFS=$as_save_IFS
2933: test -z "$as_dir" && as_dir=.
1.15 bertrand 2934: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 2935: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 2936: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2937: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 2938: break 2
2939: fi
2940: done
1.15 bertrand 2941: done
1.14 bertrand 2942: IFS=$as_save_IFS
1.1 bertrand 2943:
1.14 bertrand 2944: fi
2945: fi
1.15 bertrand 2946: STRIP=$ac_cv_prog_STRIP
2947: if test -n "$STRIP"; then
2948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2949: $as_echo "$STRIP" >&6; }
1.14 bertrand 2950: else
1.15 bertrand 2951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952: $as_echo "no" >&6; }
1.14 bertrand 2953: fi
1.1 bertrand 2954:
2955:
1.14 bertrand 2956: fi
1.15 bertrand 2957: if test -z "$ac_cv_prog_STRIP"; then
2958: ac_ct_STRIP=$STRIP
2959: # Extract the first word of "strip", so it can be a program name with args.
2960: set dummy strip; ac_word=$2
2961: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2962: $as_echo_n "checking for $ac_word... " >&6; }
2963: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2964: $as_echo_n "(cached) " >&6
1.14 bertrand 2965: else
1.15 bertrand 2966: if test -n "$ac_ct_STRIP"; then
2967: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.1 bertrand 2968: else
1.14 bertrand 2969: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970: for as_dir in $PATH
1.1 bertrand 2971: do
1.14 bertrand 2972: IFS=$as_save_IFS
2973: test -z "$as_dir" && as_dir=.
1.15 bertrand 2974: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 2975: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 2976: ac_cv_prog_ac_ct_STRIP="strip"
2977: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 2978: break 2
1.1 bertrand 2979: fi
2980: done
1.15 bertrand 2981: done
1.14 bertrand 2982: IFS=$as_save_IFS
1.1 bertrand 2983:
1.14 bertrand 2984: fi
2985: fi
1.15 bertrand 2986: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2987: if test -n "$ac_ct_STRIP"; then
2988: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2989: $as_echo "$ac_ct_STRIP" >&6; }
1.1 bertrand 2990: else
1.15 bertrand 2991: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2992: $as_echo "no" >&6; }
1.1 bertrand 2993: fi
2994:
1.15 bertrand 2995: if test "x$ac_ct_STRIP" = x; then
2996: STRIP=":"
1.14 bertrand 2997: else
2998: case $cross_compiling:$ac_tool_warned in
2999: yes:)
1.15 bertrand 3000: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3001: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1.14 bertrand 3002: ac_tool_warned=yes ;;
3003: esac
1.15 bertrand 3004: STRIP=$ac_ct_STRIP
1.1 bertrand 3005: fi
1.14 bertrand 3006: else
1.15 bertrand 3007: STRIP="$ac_cv_prog_STRIP"
1.1 bertrand 3008: fi
3009:
1.15 bertrand 3010: fi
3011: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1.1 bertrand 3012:
1.15 bertrand 3013: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3014: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3015: if test -z "$MKDIR_P"; then
3016: if test "${ac_cv_path_mkdir+set}" = set; then :
3017: $as_echo_n "(cached) " >&6
1.14 bertrand 3018: else
1.15 bertrand 3019: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1.14 bertrand 3021: do
3022: IFS=$as_save_IFS
3023: test -z "$as_dir" && as_dir=.
1.15 bertrand 3024: for ac_prog in mkdir gmkdir; do
3025: for ac_exec_ext in '' $ac_executable_extensions; do
3026: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3027: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3028: 'mkdir (GNU coreutils) '* | \
3029: 'mkdir (coreutils) '* | \
3030: 'mkdir (fileutils) '4.1*)
3031: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3032: break 3;;
3033: esac
3034: done
3035: done
3036: done
1.14 bertrand 3037: IFS=$as_save_IFS
1.1 bertrand 3038:
3039: fi
1.15 bertrand 3040:
3041: test -d ./--version && rmdir ./--version
3042: if test "${ac_cv_path_mkdir+set}" = set; then
3043: MKDIR_P="$ac_cv_path_mkdir -p"
3044: else
3045: # As a last resort, use the slow shell script. Don't cache a
3046: # value for MKDIR_P within a source directory, because that will
3047: # break other packages using the cache if that directory is
3048: # removed, or if the value is a relative name.
3049: MKDIR_P="$ac_install_sh -d"
3050: fi
1.14 bertrand 3051: fi
1.15 bertrand 3052: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3053: $as_echo "$MKDIR_P" >&6; }
1.1 bertrand 3054:
1.15 bertrand 3055: mkdir_p="$MKDIR_P"
3056: case $mkdir_p in
3057: [\\/$]* | ?:[\\/]*) ;;
3058: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3059: esac
1.1 bertrand 3060:
1.15 bertrand 3061: for ac_prog in gawk mawk nawk awk
3062: do
3063: # Extract the first word of "$ac_prog", so it can be a program name with args.
3064: set dummy $ac_prog; ac_word=$2
3065: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066: $as_echo_n "checking for $ac_word... " >&6; }
3067: if test "${ac_cv_prog_AWK+set}" = set; then :
3068: $as_echo_n "(cached) " >&6
1.1 bertrand 3069: else
1.15 bertrand 3070: if test -n "$AWK"; then
3071: ac_cv_prog_AWK="$AWK" # Let the user override the test.
1.1 bertrand 3072: else
1.14 bertrand 3073: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074: for as_dir in $PATH
3075: do
3076: IFS=$as_save_IFS
3077: test -z "$as_dir" && as_dir=.
1.15 bertrand 3078: for ac_exec_ext in '' $ac_executable_extensions; do
1.14 bertrand 3079: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3080: ac_cv_prog_AWK="$ac_prog"
3081: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.14 bertrand 3082: break 2
3083: fi
3084: done
1.15 bertrand 3085: done
1.14 bertrand 3086: IFS=$as_save_IFS
3087:
3088: fi
1.1 bertrand 3089: fi
1.15 bertrand 3090: AWK=$ac_cv_prog_AWK
3091: if test -n "$AWK"; then
3092: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3093: $as_echo "$AWK" >&6; }
1.14 bertrand 3094: else
1.15 bertrand 3095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3096: $as_echo "no" >&6; }
1.1 bertrand 3097: fi
3098:
3099:
1.15 bertrand 3100: test -n "$AWK" && break
3101: done
1.1 bertrand 3102:
1.15 bertrand 3103: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3104: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3105: set x ${MAKE-make}
3106: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3107: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3108: $as_echo_n "(cached) " >&6
1.14 bertrand 3109: else
1.15 bertrand 3110: cat >conftest.make <<\_ACEOF
3111: SHELL = /bin/sh
3112: all:
3113: @echo '@@@%%%=$(MAKE)=@@@%%%'
3114: _ACEOF
3115: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3116: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3117: *@@@%%%=?*=@@@%%%*)
3118: eval ac_cv_prog_make_${ac_make}_set=yes;;
3119: *)
3120: eval ac_cv_prog_make_${ac_make}_set=no;;
3121: esac
3122: rm -f conftest.make
3123: fi
3124: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3125: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3126: $as_echo "yes" >&6; }
3127: SET_MAKE=
1.1 bertrand 3128: else
1.15 bertrand 3129: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130: $as_echo "no" >&6; }
3131: SET_MAKE="MAKE=${MAKE-make}"
3132: fi
1.1 bertrand 3133:
1.15 bertrand 3134: rm -rf .tst 2>/dev/null
3135: mkdir .tst 2>/dev/null
3136: if test -d .tst; then
3137: am__leading_dot=.
3138: else
3139: am__leading_dot=_
1.14 bertrand 3140: fi
1.15 bertrand 3141: rmdir .tst 2>/dev/null
3142:
3143: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3144: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3145: # is not polluted with repeated "-I."
3146: am__isrc=' -I$(srcdir)'
3147: # test to see if srcdir already configured
3148: if test -f $srcdir/config.status; then
3149: as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3150: fi
1.1 bertrand 3151: fi
1.15 bertrand 3152:
3153: # test whether we have cygpath
3154: if test -z "$CYGPATH_W"; then
3155: if (cygpath --version) >/dev/null 2>/dev/null; then
3156: CYGPATH_W='cygpath -w'
3157: else
3158: CYGPATH_W=echo
3159: fi
1.1 bertrand 3160: fi
3161:
3162:
1.15 bertrand 3163: # Define the identity of the package.
3164: PACKAGE='rpl'
1.29 bertrand 3165: VERSION='4.0.18'
1.15 bertrand 3166:
3167:
3168: cat >>confdefs.h <<_ACEOF
3169: #define PACKAGE "$PACKAGE"
3170: _ACEOF
3171:
3172:
3173: cat >>confdefs.h <<_ACEOF
3174: #define VERSION "$VERSION"
3175: _ACEOF
3176:
3177: # Some tools Automake needs.
3178:
3179: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3180:
3181:
3182: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3183:
3184:
3185: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3186:
3187:
3188: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3189:
3190:
3191: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3192:
3193: # We need awk for the "check" target. The system "awk" is bad on
3194: # some platforms.
3195: # Always define AMTAR for backward compatibility.
3196:
3197: AMTAR=${AMTAR-"${am_missing_run}tar"}
3198:
3199: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3200:
3201:
3202:
3203:
1.1 bertrand 3204:
3205:
1.15 bertrand 3206: ac_config_headers="$ac_config_headers rplconfig.h"
1.1 bertrand 3207:
3208:
1.27 bertrand 3209: NCURSES=ncurses-5.7-20100619
1.15 bertrand 3210: READLINE=readline-6.1
1.30 bertrand 3211: UNITS=units-1.88
1.15 bertrand 3212: GSL=gsl-1.14
3213: GPP=gpp-2.24
3214: GNUPLOT=gnuplot-4.4.0
3215: FILE=file-5.03
3216: ICONV=libiconv-1.13.1
1.31 bertrand 3217: SQLITE=sqlite-3.7.0.1
1.26 bertrand 3218: OPENSSL=openssl-1.0.0a
1.14 bertrand 3219:
1.15 bertrand 3220: ac_ext=c
3221: ac_cpp='$CPP $CPPFLAGS'
3222: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225: if test -n "$ac_tool_prefix"; then
1.23 bertrand 3226: for ac_prog in gcc
1.15 bertrand 3227: do
3228: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3229: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3230: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231: $as_echo_n "checking for $ac_word... " >&6; }
3232: if test "${ac_cv_prog_CC+set}" = set; then :
3233: $as_echo_n "(cached) " >&6
1.1 bertrand 3234: else
1.15 bertrand 3235: if test -n "$CC"; then
3236: ac_cv_prog_CC="$CC" # Let the user override the test.
1.1 bertrand 3237: else
3238: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239: for as_dir in $PATH
3240: do
3241: IFS=$as_save_IFS
3242: test -z "$as_dir" && as_dir=.
1.15 bertrand 3243: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 bertrand 3244: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3245: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3246: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 bertrand 3247: break 2
3248: fi
3249: done
1.15 bertrand 3250: done
1.1 bertrand 3251: IFS=$as_save_IFS
3252:
3253: fi
3254: fi
1.15 bertrand 3255: CC=$ac_cv_prog_CC
3256: if test -n "$CC"; then
3257: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258: $as_echo "$CC" >&6; }
1.1 bertrand 3259: else
1.15 bertrand 3260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261: $as_echo "no" >&6; }
1.1 bertrand 3262: fi
3263:
3264:
1.15 bertrand 3265: test -n "$CC" && break
3266: done
3267: fi
3268: if test -z "$CC"; then
3269: ac_ct_CC=$CC
1.23 bertrand 3270: for ac_prog in gcc
1.15 bertrand 3271: do
3272: # Extract the first word of "$ac_prog", so it can be a program name with args.
3273: set dummy $ac_prog; ac_word=$2
3274: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275: $as_echo_n "checking for $ac_word... " >&6; }
3276: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3277: $as_echo_n "(cached) " >&6
1.1 bertrand 3278: else
1.15 bertrand 3279: if test -n "$ac_ct_CC"; then
3280: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1.1 bertrand 3281: else
3282: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3283: for as_dir in $PATH
3284: do
3285: IFS=$as_save_IFS
3286: test -z "$as_dir" && as_dir=.
1.15 bertrand 3287: for ac_exec_ext in '' $ac_executable_extensions; do
1.1 bertrand 3288: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.15 bertrand 3289: ac_cv_prog_ac_ct_CC="$ac_prog"
3290: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1.1 bertrand 3291: break 2
3292: fi
3293: done
1.15 bertrand 3294: done
1.1 bertrand 3295: IFS=$as_save_IFS
3296:
3297: fi
3298: fi
1.15 bertrand 3299: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3300: if test -n "$ac_ct_CC"; then
3301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3302: $as_echo "$ac_ct_CC" >&6; }
1.1 bertrand 3303: else
1.15 bertrand 3304: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3305: $as_echo "no" >&6; }
1.1 bertrand 3306: fi
3307:
3308:
1.15 bertrand 3309: test -n "$ac_ct_CC" && break
3310: done
1.1 bertrand 3311:
1.15 bertrand 3312: if test "x$ac_ct_CC" = x; then
3313: CC=""
3314: else
3315: case $cross_compiling:$ac_tool_warned in
3316: yes:)
3317: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3318: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3319: ac_tool_warned=yes ;;
3320: esac
3321: CC=$ac_ct_CC
1.1 bertrand 3322: fi
3323: fi
3324:
3325:
1.15 bertrand 3326: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328: as_fn_error "no acceptable C compiler found in \$PATH
3329: See \`config.log' for more details." "$LINENO" 5; }
1.1 bertrand 3330:
1.15 bertrand 3331: # Provide some information about the compiler.
3332: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3333: set X $ac_compile
3334: ac_compiler=$2
3335: for ac_option in --version -v -V -qversion; do
3336: { { ac_try="$ac_compiler $ac_option >&5"
3337: case "(($ac_try" in
3338: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339: *) ac_try_echo=$ac_try;;
3340: esac
3341: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342: $as_echo "$ac_try_echo"; } >&5
3343: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3344: ac_status=$?
3345: if test -s conftest.err; then
3346: sed '10a\
3347: ... rest of stderr output deleted ...
3348: 10q' conftest.err >conftest.er1
3349: cat conftest.er1 >&5
1.1 bertrand 3350: fi
1.15 bertrand 3351: rm -f conftest.er1 conftest.err
3352: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353: test $ac_status = 0; }
1.1 bertrand 3354: done
3355:
1.15 bertrand 3356: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357: /* end confdefs.h. */
3358:
3359: int
3360: main ()
3361: {
1.14 bertrand 3362:
1.15 bertrand 3363: ;
3364: return 0;
3365: }
3366: _ACEOF
3367: ac_clean_files_save=$ac_clean_files
3368: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3369: # Try to create an executable without -o first, disregard a.out.
3370: # It will help us diagnose broken compilers, and finding out an intuition
3371: # of exeext.
3372: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3373: $as_echo_n "checking whether the C compiler works... " >&6; }
3374: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.14 bertrand 3375:
1.15 bertrand 3376: # The possible output files:
3377: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
1.1 bertrand 3378:
1.15 bertrand 3379: ac_rmfiles=
3380: for ac_file in $ac_files
1.1 bertrand 3381: do
1.15 bertrand 3382: case $ac_file in
3383: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3384: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3385: esac
1.1 bertrand 3386: done
1.15 bertrand 3387: rm -f $ac_rmfiles
3388:
3389: if { { ac_try="$ac_link_default"
3390: case "(($ac_try" in
3391: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392: *) ac_try_echo=$ac_try;;
3393: esac
3394: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395: $as_echo "$ac_try_echo"; } >&5
3396: (eval "$ac_link_default") 2>&5
3397: ac_status=$?
3398: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399: test $ac_status = 0; }; then :
3400: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3401: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3402: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3403: # so that the user can short-circuit this test for compilers unknown to
3404: # Autoconf.
3405: for ac_file in $ac_files ''
3406: do
3407: test -f "$ac_file" || continue
3408: case $ac_file in
3409: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3410: ;;
3411: [ab].out )
3412: # We found the default executable, but exeext='' is most
3413: # certainly right.
3414: break;;
3415: *.* )
3416: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3417: then :; else
3418: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3419: fi
3420: # We set ac_cv_exeext here because the later test for it is not
3421: # safe: cross compilers may not add the suffix if given an `-o'
3422: # argument, so we may need to know it at that point already.
3423: # Even if this section looks crufty: it has the advantage of
3424: # actually working.
3425: break;;
3426: * )
3427: break;;
3428: esac
1.14 bertrand 3429: done
1.15 bertrand 3430: test "$ac_cv_exeext" = no && ac_cv_exeext=
1.1 bertrand 3431:
1.14 bertrand 3432: else
1.15 bertrand 3433: ac_file=''
1.1 bertrand 3434: fi
1.15 bertrand 3435: if test -z "$ac_file"; then :
3436: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437: $as_echo "no" >&6; }
3438: $as_echo "$as_me: failed program was:" >&5
3439: sed 's/^/| /' conftest.$ac_ext >&5
3440:
3441: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443: { as_fn_set_status 77
3444: as_fn_error "C compiler cannot create executables
3445: See \`config.log' for more details." "$LINENO" 5; }; }
3446: else
3447: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3448: $as_echo "yes" >&6; }
3449: fi
3450: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3451: $as_echo_n "checking for C compiler default output file name... " >&6; }
3452: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3453: $as_echo "$ac_file" >&6; }
3454: ac_exeext=$ac_cv_exeext
1.1 bertrand 3455:
1.15 bertrand 3456: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3457: ac_clean_files=$ac_clean_files_save
3458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3459: $as_echo_n "checking for suffix of executables... " >&6; }
3460: if { { ac_try="$ac_link"
3461: case "(($ac_try" in
3462: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463: *) ac_try_echo=$ac_try;;
3464: esac
3465: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466: $as_echo "$ac_try_echo"; } >&5
3467: (eval "$ac_link") 2>&5
3468: ac_status=$?
3469: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470: test $ac_status = 0; }; then :
3471: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3472: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3473: # work properly (i.e., refer to `conftest.exe'), while it won't with
3474: # `rm'.
3475: for ac_file in conftest.exe conftest conftest.*; do
3476: test -f "$ac_file" || continue
3477: case $ac_file in
3478: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3479: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3480: break;;
3481: * ) break;;
3482: esac
3483: done
1.14 bertrand 3484: else
1.15 bertrand 3485: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3486: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3487: as_fn_error "cannot compute suffix of executables: cannot compile and link
3488: See \`config.log' for more details." "$LINENO" 5; }
3489: fi
3490: rm -f conftest conftest$ac_cv_exeext
3491: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3492: $as_echo "$ac_cv_exeext" >&6; }
3493:
3494: rm -f conftest.$ac_ext
3495: EXEEXT=$ac_cv_exeext
3496: ac_exeext=$EXEEXT
3497: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 3498: /* end confdefs.h. */
1.15 bertrand 3499: #include <stdio.h>
1.14 bertrand 3500: int
3501: main ()
3502: {
1.15 bertrand 3503: FILE *f = fopen ("conftest.out", "w");
3504: return ferror (f) || fclose (f) != 0;
3505:
1.14 bertrand 3506: ;
3507: return 0;
3508: }
3509: _ACEOF
1.15 bertrand 3510: ac_clean_files="$ac_clean_files conftest.out"
3511: # Check that the compiler produces executables we can run. If not, either
3512: # the compiler is broken, or we cross compile.
3513: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3514: $as_echo_n "checking whether we are cross compiling... " >&6; }
3515: if test "$cross_compiling" != yes; then
3516: { { ac_try="$ac_link"
1.1 bertrand 3517: case "(($ac_try" in
3518: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519: *) ac_try_echo=$ac_try;;
3520: esac
1.15 bertrand 3521: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522: $as_echo "$ac_try_echo"; } >&5
3523: (eval "$ac_link") 2>&5
3524: ac_status=$?
3525: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526: test $ac_status = 0; }
3527: if { ac_try='./conftest$ac_cv_exeext'
3528: { { case "(($ac_try" in
3529: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530: *) ac_try_echo=$ac_try;;
3531: esac
3532: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533: $as_echo "$ac_try_echo"; } >&5
3534: (eval "$ac_try") 2>&5
1.1 bertrand 3535: ac_status=$?
1.15 bertrand 3536: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537: test $ac_status = 0; }; }; then
3538: cross_compiling=no
3539: else
3540: if test "$cross_compiling" = maybe; then
3541: cross_compiling=yes
3542: else
3543: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3544: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3545: as_fn_error "cannot run C compiled programs.
3546: If you meant to cross compile, use \`--host'.
3547: See \`config.log' for more details." "$LINENO" 5; }
3548: fi
3549: fi
1.14 bertrand 3550: fi
1.15 bertrand 3551: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3552: $as_echo "$cross_compiling" >&6; }
1.14 bertrand 3553:
1.15 bertrand 3554: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3555: ac_clean_files=$ac_clean_files_save
3556: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3557: $as_echo_n "checking for suffix of object files... " >&6; }
3558: if test "${ac_cv_objext+set}" = set; then :
3559: $as_echo_n "(cached) " >&6
1.14 bertrand 3560: else
1.15 bertrand 3561: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 3562: /* end confdefs.h. */
3563:
3564: int
3565: main ()
3566: {
1.15 bertrand 3567:
1.1 bertrand 3568: ;
3569: return 0;
3570: }
3571: _ACEOF
1.15 bertrand 3572: rm -f conftest.o conftest.obj
3573: if { { ac_try="$ac_compile"
1.1 bertrand 3574: case "(($ac_try" in
3575: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576: *) ac_try_echo=$ac_try;;
3577: esac
1.15 bertrand 3578: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579: $as_echo "$ac_try_echo"; } >&5
3580: (eval "$ac_compile") 2>&5
1.1 bertrand 3581: ac_status=$?
1.15 bertrand 3582: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3583: test $ac_status = 0; }; then :
3584: for ac_file in conftest.o conftest.obj conftest.*; do
3585: test -f "$ac_file" || continue;
3586: case $ac_file in
3587: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3588: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3589: break;;
3590: esac
3591: done
1.14 bertrand 3592: else
1.15 bertrand 3593: $as_echo "$as_me: failed program was:" >&5
1.14 bertrand 3594: sed 's/^/| /' conftest.$ac_ext >&5
3595:
1.15 bertrand 3596: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3597: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3598: as_fn_error "cannot compute suffix of object files: cannot compile
3599: See \`config.log' for more details." "$LINENO" 5; }
1.14 bertrand 3600: fi
1.15 bertrand 3601: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3602: fi
3603: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3604: $as_echo "$ac_cv_objext" >&6; }
3605: OBJEXT=$ac_cv_objext
3606: ac_objext=$OBJEXT
3607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3608: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3609: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3610: $as_echo_n "(cached) " >&6
3611: else
3612: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613: /* end confdefs.h. */
3614:
3615: int
3616: main ()
3617: {
3618: #ifndef __GNUC__
3619: choke me
3620: #endif
1.14 bertrand 3621:
1.15 bertrand 3622: ;
3623: return 0;
3624: }
3625: _ACEOF
3626: if ac_fn_c_try_compile "$LINENO"; then :
3627: ac_compiler_gnu=yes
1.14 bertrand 3628: else
1.15 bertrand 3629: ac_compiler_gnu=no
1.14 bertrand 3630: fi
1.15 bertrand 3631: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1.14 bertrand 3633:
1.15 bertrand 3634: fi
3635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3636: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3637: if test $ac_compiler_gnu = yes; then
3638: GCC=yes
1.14 bertrand 3639: else
1.15 bertrand 3640: GCC=
1.14 bertrand 3641: fi
1.15 bertrand 3642: ac_test_CFLAGS=${CFLAGS+set}
3643: ac_save_CFLAGS=$CFLAGS
3644: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3645: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3646: if test "${ac_cv_prog_cc_g+set}" = set; then :
3647: $as_echo_n "(cached) " >&6
3648: else
3649: ac_save_c_werror_flag=$ac_c_werror_flag
3650: ac_c_werror_flag=yes
3651: ac_cv_prog_cc_g=no
3652: CFLAGS="-g"
3653: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654: /* end confdefs.h. */
1.14 bertrand 3655:
1.15 bertrand 3656: int
3657: main ()
3658: {
1.14 bertrand 3659:
1.15 bertrand 3660: ;
3661: return 0;
3662: }
3663: _ACEOF
3664: if ac_fn_c_try_compile "$LINENO"; then :
3665: ac_cv_prog_cc_g=yes
3666: else
3667: CFLAGS=""
3668: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669: /* end confdefs.h. */
1.14 bertrand 3670:
1.15 bertrand 3671: int
3672: main ()
3673: {
1.14 bertrand 3674:
1.15 bertrand 3675: ;
3676: return 0;
3677: }
3678: _ACEOF
3679: if ac_fn_c_try_compile "$LINENO"; then :
1.14 bertrand 3680:
1.15 bertrand 3681: else
3682: ac_c_werror_flag=$ac_save_c_werror_flag
3683: CFLAGS="-g"
3684: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685: /* end confdefs.h. */
1.14 bertrand 3686:
1.15 bertrand 3687: int
3688: main ()
3689: {
1.14 bertrand 3690:
1.15 bertrand 3691: ;
3692: return 0;
3693: }
3694: _ACEOF
3695: if ac_fn_c_try_compile "$LINENO"; then :
3696: ac_cv_prog_cc_g=yes
3697: fi
3698: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699: fi
3700: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701: fi
3702: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703: ac_c_werror_flag=$ac_save_c_werror_flag
3704: fi
3705: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3706: $as_echo "$ac_cv_prog_cc_g" >&6; }
3707: if test "$ac_test_CFLAGS" = set; then
3708: CFLAGS=$ac_save_CFLAGS
3709: elif test $ac_cv_prog_cc_g = yes; then
3710: if test "$GCC" = yes; then
3711: CFLAGS="-g -O2"
3712: else
3713: CFLAGS="-g"
3714: fi
3715: else
3716: if test "$GCC" = yes; then
3717: CFLAGS="-O2"
3718: else
3719: CFLAGS=
3720: fi
3721: fi
3722: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3723: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3724: if test "${ac_cv_prog_cc_c89+set}" = set; then :
3725: $as_echo_n "(cached) " >&6
1.1 bertrand 3726: else
1.15 bertrand 3727: ac_cv_prog_cc_c89=no
3728: ac_save_CC=$CC
3729: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 3730: /* end confdefs.h. */
1.15 bertrand 3731: #include <stdarg.h>
3732: #include <stdio.h>
3733: #include <sys/types.h>
3734: #include <sys/stat.h>
3735: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3736: struct buf { int x; };
3737: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3738: static char *e (p, i)
3739: char **p;
3740: int i;
3741: {
3742: return p[i];
3743: }
3744: static char *f (char * (*g) (char **, int), char **p, ...)
3745: {
3746: char *s;
3747: va_list v;
3748: va_start (v,p);
3749: s = g (p, va_arg (v,int));
3750: va_end (v);
3751: return s;
3752: }
3753:
3754: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3755: function prototypes and stuff, but not '\xHH' hex character constants.
3756: These don't provoke an error unfortunately, instead are silently treated
3757: as 'x'. The following induces an error, until -std is added to get
3758: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3759: array size at least. It's necessary to write '\x00'==0 to get something
3760: that's true only with -std. */
3761: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1.14 bertrand 3762:
1.15 bertrand 3763: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3764: inside strings and character constants. */
3765: #define FOO(x) 'x'
3766: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
1.1 bertrand 3767:
1.15 bertrand 3768: int test (int i, double x);
3769: struct s1 {int (*f) (int a);};
3770: struct s2 {int (*f) (double a);};
3771: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3772: int argc;
3773: char **argv;
1.14 bertrand 3774: int
3775: main ()
3776: {
1.15 bertrand 3777: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1.14 bertrand 3778: ;
3779: return 0;
3780: }
3781: _ACEOF
1.15 bertrand 3782: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3783: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3784: do
3785: CC="$ac_save_CC $ac_arg"
3786: if ac_fn_c_try_compile "$LINENO"; then :
3787: ac_cv_prog_cc_c89=$ac_arg
3788: fi
3789: rm -f core conftest.err conftest.$ac_objext
3790: test "x$ac_cv_prog_cc_c89" != "xno" && break
3791: done
3792: rm -f conftest.$ac_ext
3793: CC=$ac_save_CC
3794:
3795: fi
3796: # AC_CACHE_VAL
3797: case "x$ac_cv_prog_cc_c89" in
3798: x)
3799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3800: $as_echo "none needed" >&6; } ;;
3801: xno)
3802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3803: $as_echo "unsupported" >&6; } ;;
3804: *)
3805: CC="$CC $ac_cv_prog_cc_c89"
3806: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3807: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1.1 bertrand 3808: esac
1.15 bertrand 3809: if test "x$ac_cv_prog_cc_c89" != xno; then :
1.14 bertrand 3810:
3811: fi
3812:
1.15 bertrand 3813: ac_ext=c
3814: ac_cpp='$CPP $CPPFLAGS'
3815: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818: DEPDIR="${am__leading_dot}deps"
3819:
3820: ac_config_commands="$ac_config_commands depfiles"
3821:
3822:
3823: am_make=${MAKE-make}
3824: cat > confinc << 'END'
3825: am__doit:
3826: @echo this is the am__doit target
3827: .PHONY: am__doit
3828: END
3829: # If we don't find an include directive, just comment out the code.
3830: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3831: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3832: am__include="#"
3833: am__quote=
3834: _am_result=none
3835: # First try GNU make style include.
3836: echo "include confinc" > confmf
3837: # Ignore all kinds of additional output from `make'.
3838: case `$am_make -s -f confmf 2> /dev/null` in #(
3839: *the\ am__doit\ target*)
3840: am__include=include
3841: am__quote=
3842: _am_result=GNU
3843: ;;
3844: esac
3845: # Now try BSD make style include.
3846: if test "$am__include" = "#"; then
3847: echo '.include "confinc"' > confmf
3848: case `$am_make -s -f confmf 2> /dev/null` in #(
3849: *the\ am__doit\ target*)
3850: am__include=.include
3851: am__quote="\""
3852: _am_result=BSD
3853: ;;
3854: esac
1.14 bertrand 3855: fi
3856:
3857:
1.15 bertrand 3858: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3859: $as_echo "$_am_result" >&6; }
3860: rm -f confinc confmf
3861:
3862: # Check whether --enable-dependency-tracking was given.
3863: if test "${enable_dependency_tracking+set}" = set; then :
3864: enableval=$enable_dependency_tracking;
3865: fi
3866:
3867: if test "x$enable_dependency_tracking" != xno; then
3868: am_depcomp="$ac_aux_dir/depcomp"
3869: AMDEPBACKSLASH='\'
3870: fi
3871: if test "x$enable_dependency_tracking" != xno; then
3872: AMDEP_TRUE=
3873: AMDEP_FALSE='#'
1.1 bertrand 3874: else
1.15 bertrand 3875: AMDEP_TRUE='#'
3876: AMDEP_FALSE=
1.14 bertrand 3877: fi
1.1 bertrand 3878:
1.14 bertrand 3879:
3880:
1.15 bertrand 3881: depcc="$CC" am_compiler_list=
1.14 bertrand 3882:
1.15 bertrand 3883: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3884: $as_echo_n "checking dependency style of $depcc... " >&6; }
3885: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3886: $as_echo_n "(cached) " >&6
1.14 bertrand 3887: else
1.15 bertrand 3888: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3889: # We make a subdir and do the tests there. Otherwise we can end up
3890: # making bogus files that we don't know about and never remove. For
3891: # instance it was reported that on HP-UX the gcc test will end up
3892: # making a dummy file named `D' -- because `-MD' means `put the output
3893: # in D'.
3894: mkdir conftest.dir
3895: # Copy depcomp to subdir because otherwise we won't find it if we're
3896: # using a relative directory.
3897: cp "$am_depcomp" conftest.dir
3898: cd conftest.dir
3899: # We will build objects and dependencies in a subdirectory because
3900: # it helps to detect inapplicable dependency modes. For instance
3901: # both Tru64's cc and ICC support -MD to output dependencies as a
3902: # side effect of compilation, but ICC will put the dependencies in
3903: # the current directory while Tru64 will put them in the object
3904: # directory.
3905: mkdir sub
1.14 bertrand 3906:
1.15 bertrand 3907: am_cv_CC_dependencies_compiler_type=none
3908: if test "$am_compiler_list" = ""; then
3909: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3910: fi
3911: am__universal=false
3912: case " $depcc " in #(
3913: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3914: esac
1.14 bertrand 3915:
1.15 bertrand 3916: for depmode in $am_compiler_list; do
3917: # Setup a source with many dependencies, because some compilers
3918: # like to wrap large dependency lists on column 80 (with \), and
3919: # we should not choose a depcomp mode which is confused by this.
3920: #
3921: # We need to recreate these files for each test, as the compiler may
3922: # overwrite some of them when testing with obscure command lines.
3923: # This happens at least with the AIX C compiler.
3924: : > sub/conftest.c
3925: for i in 1 2 3 4 5 6; do
3926: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3927: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3928: # Solaris 8's {/usr,}/bin/sh.
3929: touch sub/conftst$i.h
3930: done
3931: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1.14 bertrand 3932:
1.15 bertrand 3933: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3934: # mode. It turns out that the SunPro C++ compiler does not properly
3935: # handle `-M -o', and we need to detect this. Also, some Intel
3936: # versions had trouble with output in subdirs
3937: am__obj=sub/conftest.${OBJEXT-o}
3938: am__minus_obj="-o $am__obj"
3939: case $depmode in
3940: gcc)
3941: # This depmode causes a compiler race in universal mode.
3942: test "$am__universal" = false || continue
3943: ;;
3944: nosideeffect)
3945: # after this tag, mechanisms are not by side-effect, so they'll
3946: # only be used when explicitly requested
3947: if test "x$enable_dependency_tracking" = xyes; then
3948: continue
3949: else
3950: break
3951: fi
3952: ;;
3953: msvisualcpp | msvcmsys)
3954: # This compiler won't grok `-c -o', but also, the minuso test has
3955: # not run yet. These depmodes are late enough in the game, and
3956: # so weak that their functioning should not be impacted.
3957: am__obj=conftest.${OBJEXT-o}
3958: am__minus_obj=
3959: ;;
3960: none) break ;;
3961: esac
3962: if depmode=$depmode \
3963: source=sub/conftest.c object=$am__obj \
3964: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3965: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3966: >/dev/null 2>conftest.err &&
3967: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3968: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3969: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3970: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3971: # icc doesn't choke on unknown options, it will just issue warnings
3972: # or remarks (even with -Werror). So we grep stderr for any message
3973: # that says an option was ignored or not supported.
3974: # When given -MP, icc 7.0 and 7.1 complain thusly:
3975: # icc: Command line warning: ignoring option '-M'; no argument required
3976: # The diagnosis changed in icc 8.0:
3977: # icc: Command line remark: option '-MP' not supported
3978: if (grep 'ignoring option' conftest.err ||
3979: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3980: am_cv_CC_dependencies_compiler_type=$depmode
3981: break
3982: fi
3983: fi
3984: done
1.14 bertrand 3985:
1.15 bertrand 3986: cd ..
3987: rm -rf conftest.dir
1.14 bertrand 3988: else
1.15 bertrand 3989: am_cv_CC_dependencies_compiler_type=none
1.1 bertrand 3990: fi
3991:
1.15 bertrand 3992: fi
3993: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3994: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3995: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
1.14 bertrand 3996:
1.15 bertrand 3997: if
3998: test "x$enable_dependency_tracking" != xno \
3999: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4000: am__fastdepCC_TRUE=
4001: am__fastdepCC_FALSE='#'
1.1 bertrand 4002: else
1.15 bertrand 4003: am__fastdepCC_TRUE='#'
4004: am__fastdepCC_FALSE=
4005: fi
4006:
1.1 bertrand 4007:
4008:
1.30 bertrand 4009: EXT_SQL=
4010:
1.15 bertrand 4011: if test x"$CC" != x""; then
4012: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4013: awk -F. '{ printf("%s", $1);}'`
4014: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4015: awk -F. '{ printf("%s", $2);}'`
1.23 bertrand 4016: if test $GCC_VERSION_MAJEURE -ge 5; then
1.15 bertrand 4017: OPTIMISATION_C=-O3
4018: else
1.23 bertrand 4019: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; \
4020: then
1.15 bertrand 4021: OPTIMISATION_C=-O3
4022: else
1.23 bertrand 4023: if test $GCC_VERSION_MAJEURE -ge 2; then
4024: OPTIMISATION_C=-O2
4025: else
4026: as_fn_error "Cannot find decent or recent gcc (gcc-4.2 or better)!" "$LINENO" 5
4027: fi
1.15 bertrand 4028: fi
4029: fi
1.14 bertrand 4030: fi
4031:
1.15 bertrand 4032: if test "x$CC" != xcc; then
4033: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4034: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
1.14 bertrand 4035: else
1.15 bertrand 4036: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4037: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
1.1 bertrand 4038: fi
1.15 bertrand 4039: set dummy $CC; ac_cc=`$as_echo "$2" |
4040: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4041: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4042: $as_echo_n "(cached) " >&6
1.1 bertrand 4043: else
1.15 bertrand 4044: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 4045: /* end confdefs.h. */
4046:
4047: int
4048: main ()
4049: {
1.15 bertrand 4050:
1.1 bertrand 4051: ;
4052: return 0;
4053: }
4054: _ACEOF
1.15 bertrand 4055: # Make sure it works both with $CC and with simple cc.
4056: # We do the test twice because some compilers refuse to overwrite an
4057: # existing .o file with -o, though they will create one.
4058: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4059: rm -f conftest2.*
4060: if { { case "(($ac_try" in
4061: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062: *) ac_try_echo=$ac_try;;
4063: esac
4064: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4065: $as_echo "$ac_try_echo"; } >&5
4066: (eval "$ac_try") 2>&5
4067: ac_status=$?
4068: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4069: test $ac_status = 0; } &&
4070: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4071: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4072: *) ac_try_echo=$ac_try;;
4073: esac
4074: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4075: $as_echo "$ac_try_echo"; } >&5
4076: (eval "$ac_try") 2>&5
4077: ac_status=$?
4078: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4079: test $ac_status = 0; };
4080: then
4081: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4082: if test "x$CC" != xcc; then
4083: # Test first that cc exists at all.
4084: if { ac_try='cc -c conftest.$ac_ext >&5'
4085: { { case "(($ac_try" in
4086: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087: *) ac_try_echo=$ac_try;;
4088: esac
4089: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090: $as_echo "$ac_try_echo"; } >&5
4091: (eval "$ac_try") 2>&5
4092: ac_status=$?
4093: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094: test $ac_status = 0; }; }; then
4095: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4096: rm -f conftest2.*
4097: if { { case "(($ac_try" in
4098: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099: *) ac_try_echo=$ac_try;;
4100: esac
4101: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4102: $as_echo "$ac_try_echo"; } >&5
4103: (eval "$ac_try") 2>&5
4104: ac_status=$?
4105: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4106: test $ac_status = 0; } &&
4107: test -f conftest2.$ac_objext && { { case "(($ac_try" in
1.14 bertrand 4108: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109: *) ac_try_echo=$ac_try;;
4110: esac
1.15 bertrand 4111: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4112: $as_echo "$ac_try_echo"; } >&5
4113: (eval "$ac_try") 2>&5
1.14 bertrand 4114: ac_status=$?
1.15 bertrand 4115: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4116: test $ac_status = 0; };
4117: then
4118: # cc works too.
4119: :
4120: else
4121: # cc exists but doesn't like -o.
4122: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4123: fi
4124: fi
4125: fi
1.1 bertrand 4126: else
1.15 bertrand 4127: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4128: fi
4129: rm -f core conftest*
1.14 bertrand 4130:
1.1 bertrand 4131: fi
1.15 bertrand 4132: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4134: $as_echo "yes" >&6; }
4135: else
4136: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4137: $as_echo "no" >&6; }
4138:
4139: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
1.1 bertrand 4140:
4141: fi
1.15 bertrand 4142:
4143: # FIXME: we rely on the cache variable name because
4144: # there is no other way.
4145: set dummy $CC
4146: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4147: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4148: if test "$am_t" != yes; then
4149: # Losing compiler, so override with the script.
4150: # FIXME: It is wrong to rewrite CC.
4151: # But if we don't then we get into trouble of one sort or another.
4152: # A longer-term fix would be to have automake use am__CC in this case,
4153: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4154: CC="$am_aux_dir/compile $CC"
1.1 bertrand 4155: fi
1.14 bertrand 4156:
4157:
1.15 bertrand 4158:
4159: if test "$GCC" != yes; then
4160: as_fn_error "Cannot find gcc! You have to install it." "$LINENO" 5
4161: fi
4162:
4163: ac_ext=cpp
4164: ac_cpp='$CXXCPP $CPPFLAGS'
4165: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4166: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4167: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4168: if test -z "$CXX"; then
4169: if test -n "$CCC"; then
4170: CXX=$CCC
4171: else
4172: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4173: for ac_prog in g++
1.15 bertrand 4174: do
4175: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4176: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4177: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178: $as_echo_n "checking for $ac_word... " >&6; }
4179: if test "${ac_cv_prog_CXX+set}" = set; then :
4180: $as_echo_n "(cached) " >&6
1.1 bertrand 4181: else
1.15 bertrand 4182: if test -n "$CXX"; then
4183: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1.14 bertrand 4184: else
1.15 bertrand 4185: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186: for as_dir in $PATH
4187: do
4188: IFS=$as_save_IFS
4189: test -z "$as_dir" && as_dir=.
4190: for ac_exec_ext in '' $ac_executable_extensions; do
4191: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4193: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194: break 2
4195: fi
4196: done
4197: done
4198: IFS=$as_save_IFS
1.14 bertrand 4199:
4200: fi
4201: fi
1.15 bertrand 4202: CXX=$ac_cv_prog_CXX
4203: if test -n "$CXX"; then
4204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4205: $as_echo "$CXX" >&6; }
1.14 bertrand 4206: else
1.15 bertrand 4207: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208: $as_echo "no" >&6; }
1.14 bertrand 4209: fi
4210:
4211:
1.15 bertrand 4212: test -n "$CXX" && break
4213: done
4214: fi
4215: if test -z "$CXX"; then
4216: ac_ct_CXX=$CXX
1.23 bertrand 4217: for ac_prog in g++
1.15 bertrand 4218: do
4219: # Extract the first word of "$ac_prog", so it can be a program name with args.
4220: set dummy $ac_prog; ac_word=$2
4221: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222: $as_echo_n "checking for $ac_word... " >&6; }
4223: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4224: $as_echo_n "(cached) " >&6
4225: else
4226: if test -n "$ac_ct_CXX"; then
4227: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4228: else
4229: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230: for as_dir in $PATH
4231: do
4232: IFS=$as_save_IFS
4233: test -z "$as_dir" && as_dir=.
4234: for ac_exec_ext in '' $ac_executable_extensions; do
4235: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236: ac_cv_prog_ac_ct_CXX="$ac_prog"
4237: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238: break 2
4239: fi
4240: done
4241: done
4242: IFS=$as_save_IFS
1.14 bertrand 4243:
1.15 bertrand 4244: fi
4245: fi
4246: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4247: if test -n "$ac_ct_CXX"; then
4248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4249: $as_echo "$ac_ct_CXX" >&6; }
1.1 bertrand 4250: else
1.15 bertrand 4251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252: $as_echo "no" >&6; }
1.14 bertrand 4253: fi
4254:
4255:
1.15 bertrand 4256: test -n "$ac_ct_CXX" && break
4257: done
1.14 bertrand 4258:
1.15 bertrand 4259: if test "x$ac_ct_CXX" = x; then
4260: CXX="g++"
4261: else
4262: case $cross_compiling:$ac_tool_warned in
4263: yes:)
4264: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4265: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4266: ac_tool_warned=yes ;;
4267: esac
4268: CXX=$ac_ct_CXX
4269: fi
4270: fi
1.1 bertrand 4271:
1.15 bertrand 4272: fi
4273: fi
4274: # Provide some information about the compiler.
4275: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4276: set X $ac_compile
4277: ac_compiler=$2
4278: for ac_option in --version -v -V -qversion; do
4279: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4280: case "(($ac_try" in
4281: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282: *) ac_try_echo=$ac_try;;
4283: esac
1.15 bertrand 4284: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4285: $as_echo "$ac_try_echo"; } >&5
4286: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4287: ac_status=$?
1.15 bertrand 4288: if test -s conftest.err; then
4289: sed '10a\
4290: ... rest of stderr output deleted ...
4291: 10q' conftest.err >conftest.er1
4292: cat conftest.er1 >&5
4293: fi
4294: rm -f conftest.er1 conftest.err
4295: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4296: test $ac_status = 0; }
4297: done
4298:
4299: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4300: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4301: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4302: $as_echo_n "(cached) " >&6
1.14 bertrand 4303: else
1.15 bertrand 4304: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305: /* end confdefs.h. */
1.1 bertrand 4306:
4307: int
4308: main ()
4309: {
1.15 bertrand 4310: #ifndef __GNUC__
4311: choke me
4312: #endif
1.1 bertrand 4313:
4314: ;
4315: return 0;
4316: }
4317: _ACEOF
1.15 bertrand 4318: if ac_fn_cxx_try_compile "$LINENO"; then :
4319: ac_compiler_gnu=yes
1.1 bertrand 4320: else
1.15 bertrand 4321: ac_compiler_gnu=no
1.1 bertrand 4322: fi
1.14 bertrand 4323: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 4324: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4325:
1.15 bertrand 4326: fi
4327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4328: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4329: if test $ac_compiler_gnu = yes; then
4330: GXX=yes
4331: else
4332: GXX=
4333: fi
4334: ac_test_CXXFLAGS=${CXXFLAGS+set}
4335: ac_save_CXXFLAGS=$CXXFLAGS
4336: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4337: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4338: if test "${ac_cv_prog_cxx_g+set}" = set; then :
4339: $as_echo_n "(cached) " >&6
4340: else
4341: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4342: ac_cxx_werror_flag=yes
4343: ac_cv_prog_cxx_g=no
4344: CXXFLAGS="-g"
4345: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 4346: /* end confdefs.h. */
1.15 bertrand 4347:
1.1 bertrand 4348: int
4349: main ()
4350: {
1.14 bertrand 4351:
1.1 bertrand 4352: ;
4353: return 0;
4354: }
4355: _ACEOF
1.15 bertrand 4356: if ac_fn_cxx_try_compile "$LINENO"; then :
4357: ac_cv_prog_cxx_g=yes
1.14 bertrand 4358: else
1.15 bertrand 4359: CXXFLAGS=""
4360: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361: /* end confdefs.h. */
1.1 bertrand 4362:
1.14 bertrand 4363: int
4364: main ()
4365: {
1.1 bertrand 4366:
1.14 bertrand 4367: ;
4368: return 0;
4369: }
4370: _ACEOF
1.15 bertrand 4371: if ac_fn_cxx_try_compile "$LINENO"; then :
1.1 bertrand 4372:
4373: else
1.15 bertrand 4374: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4375: CXXFLAGS="-g"
4376: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377: /* end confdefs.h. */
1.1 bertrand 4378:
1.14 bertrand 4379: int
4380: main ()
4381: {
1.1 bertrand 4382:
1.14 bertrand 4383: ;
4384: return 0;
4385: }
4386: _ACEOF
1.15 bertrand 4387: if ac_fn_cxx_try_compile "$LINENO"; then :
4388: ac_cv_prog_cxx_g=yes
4389: fi
4390: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391: fi
4392: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4393: fi
4394: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4395: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4396: fi
4397: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4398: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4399: if test "$ac_test_CXXFLAGS" = set; then
4400: CXXFLAGS=$ac_save_CXXFLAGS
4401: elif test $ac_cv_prog_cxx_g = yes; then
4402: if test "$GXX" = yes; then
4403: CXXFLAGS="-g -O2"
4404: else
4405: CXXFLAGS="-g"
4406: fi
4407: else
4408: if test "$GXX" = yes; then
4409: CXXFLAGS="-O2"
4410: else
4411: CXXFLAGS=
4412: fi
4413: fi
4414: ac_ext=c
4415: ac_cpp='$CPP $CPPFLAGS'
4416: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419:
4420: depcc="$CXX" am_compiler_list=
4421:
4422: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4423: $as_echo_n "checking dependency style of $depcc... " >&6; }
4424: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4425: $as_echo_n "(cached) " >&6
4426: else
4427: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4428: # We make a subdir and do the tests there. Otherwise we can end up
4429: # making bogus files that we don't know about and never remove. For
4430: # instance it was reported that on HP-UX the gcc test will end up
4431: # making a dummy file named `D' -- because `-MD' means `put the output
4432: # in D'.
4433: mkdir conftest.dir
4434: # Copy depcomp to subdir because otherwise we won't find it if we're
4435: # using a relative directory.
4436: cp "$am_depcomp" conftest.dir
4437: cd conftest.dir
4438: # We will build objects and dependencies in a subdirectory because
4439: # it helps to detect inapplicable dependency modes. For instance
4440: # both Tru64's cc and ICC support -MD to output dependencies as a
4441: # side effect of compilation, but ICC will put the dependencies in
4442: # the current directory while Tru64 will put them in the object
4443: # directory.
4444: mkdir sub
4445:
4446: am_cv_CXX_dependencies_compiler_type=none
4447: if test "$am_compiler_list" = ""; then
4448: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4449: fi
4450: am__universal=false
4451: case " $depcc " in #(
4452: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4453: esac
4454:
4455: for depmode in $am_compiler_list; do
4456: # Setup a source with many dependencies, because some compilers
4457: # like to wrap large dependency lists on column 80 (with \), and
4458: # we should not choose a depcomp mode which is confused by this.
4459: #
4460: # We need to recreate these files for each test, as the compiler may
4461: # overwrite some of them when testing with obscure command lines.
4462: # This happens at least with the AIX C compiler.
4463: : > sub/conftest.c
4464: for i in 1 2 3 4 5 6; do
4465: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4466: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4467: # Solaris 8's {/usr,}/bin/sh.
4468: touch sub/conftst$i.h
4469: done
4470: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4471:
4472: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4473: # mode. It turns out that the SunPro C++ compiler does not properly
4474: # handle `-M -o', and we need to detect this. Also, some Intel
4475: # versions had trouble with output in subdirs
4476: am__obj=sub/conftest.${OBJEXT-o}
4477: am__minus_obj="-o $am__obj"
4478: case $depmode in
4479: gcc)
4480: # This depmode causes a compiler race in universal mode.
4481: test "$am__universal" = false || continue
4482: ;;
4483: nosideeffect)
4484: # after this tag, mechanisms are not by side-effect, so they'll
4485: # only be used when explicitly requested
4486: if test "x$enable_dependency_tracking" = xyes; then
4487: continue
4488: else
4489: break
4490: fi
4491: ;;
4492: msvisualcpp | msvcmsys)
4493: # This compiler won't grok `-c -o', but also, the minuso test has
4494: # not run yet. These depmodes are late enough in the game, and
4495: # so weak that their functioning should not be impacted.
4496: am__obj=conftest.${OBJEXT-o}
4497: am__minus_obj=
4498: ;;
4499: none) break ;;
4500: esac
4501: if depmode=$depmode \
4502: source=sub/conftest.c object=$am__obj \
4503: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4504: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4505: >/dev/null 2>conftest.err &&
4506: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4507: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4508: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4509: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4510: # icc doesn't choke on unknown options, it will just issue warnings
4511: # or remarks (even with -Werror). So we grep stderr for any message
4512: # that says an option was ignored or not supported.
4513: # When given -MP, icc 7.0 and 7.1 complain thusly:
4514: # icc: Command line warning: ignoring option '-M'; no argument required
4515: # The diagnosis changed in icc 8.0:
4516: # icc: Command line remark: option '-MP' not supported
4517: if (grep 'ignoring option' conftest.err ||
4518: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4519: am_cv_CXX_dependencies_compiler_type=$depmode
4520: break
4521: fi
4522: fi
4523: done
4524:
4525: cd ..
4526: rm -rf conftest.dir
4527: else
4528: am_cv_CXX_dependencies_compiler_type=none
4529: fi
4530:
4531: fi
4532: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4533: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4534: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4535:
4536: if
4537: test "x$enable_dependency_tracking" != xno \
4538: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4539: am__fastdepCXX_TRUE=
4540: am__fastdepCXX_FALSE='#'
4541: else
4542: am__fastdepCXX_TRUE='#'
4543: am__fastdepCXX_FALSE=
4544: fi
4545:
4546:
4547:
4548: if test "$GXX" != yes; then
4549: as_fn_error "Cannot find g++! You have to install it." "$LINENO" 5
4550: fi
4551:
4552: ac_ext=f
4553: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4554: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4556: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4557: for ac_prog in gfortran
1.15 bertrand 4558: do
4559: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4560: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4561: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562: $as_echo_n "checking for $ac_word... " >&6; }
4563: if test "${ac_cv_prog_F77+set}" = set; then :
4564: $as_echo_n "(cached) " >&6
4565: else
4566: if test -n "$F77"; then
4567: ac_cv_prog_F77="$F77" # Let the user override the test.
4568: else
4569: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570: for as_dir in $PATH
4571: do
4572: IFS=$as_save_IFS
4573: test -z "$as_dir" && as_dir=.
4574: for ac_exec_ext in '' $ac_executable_extensions; do
4575: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4576: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4577: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578: break 2
4579: fi
4580: done
4581: done
4582: IFS=$as_save_IFS
4583:
4584: fi
4585: fi
4586: F77=$ac_cv_prog_F77
4587: if test -n "$F77"; then
4588: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4589: $as_echo "$F77" >&6; }
4590: else
4591: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592: $as_echo "no" >&6; }
4593: fi
4594:
4595:
4596: test -n "$F77" && break
4597: done
4598: fi
4599: if test -z "$F77"; then
4600: ac_ct_F77=$F77
1.23 bertrand 4601: for ac_prog in gfortran
1.15 bertrand 4602: do
4603: # Extract the first word of "$ac_prog", so it can be a program name with args.
4604: set dummy $ac_prog; ac_word=$2
4605: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606: $as_echo_n "checking for $ac_word... " >&6; }
4607: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
4608: $as_echo_n "(cached) " >&6
4609: else
4610: if test -n "$ac_ct_F77"; then
4611: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4612: else
4613: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614: for as_dir in $PATH
4615: do
4616: IFS=$as_save_IFS
4617: test -z "$as_dir" && as_dir=.
4618: for ac_exec_ext in '' $ac_executable_extensions; do
4619: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620: ac_cv_prog_ac_ct_F77="$ac_prog"
4621: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622: break 2
4623: fi
4624: done
4625: done
4626: IFS=$as_save_IFS
4627:
4628: fi
4629: fi
4630: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4631: if test -n "$ac_ct_F77"; then
4632: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4633: $as_echo "$ac_ct_F77" >&6; }
1.1 bertrand 4634: else
1.15 bertrand 4635: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636: $as_echo "no" >&6; }
4637: fi
4638:
4639:
4640: test -n "$ac_ct_F77" && break
4641: done
1.1 bertrand 4642:
1.15 bertrand 4643: if test "x$ac_ct_F77" = x; then
4644: F77=""
4645: else
4646: case $cross_compiling:$ac_tool_warned in
4647: yes:)
4648: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4649: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4650: ac_tool_warned=yes ;;
4651: esac
4652: F77=$ac_ct_F77
4653: fi
1.14 bertrand 4654: fi
1.1 bertrand 4655:
4656:
1.15 bertrand 4657: # Provide some information about the compiler.
4658: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4659: set X $ac_compile
4660: ac_compiler=$2
4661: for ac_option in --version -v -V -qversion; do
4662: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4663: case "(($ac_try" in
4664: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4665: *) ac_try_echo=$ac_try;;
4666: esac
1.15 bertrand 4667: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4668: $as_echo "$ac_try_echo"; } >&5
4669: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4670: ac_status=$?
1.15 bertrand 4671: if test -s conftest.err; then
4672: sed '10a\
4673: ... rest of stderr output deleted ...
4674: 10q' conftest.err >conftest.er1
4675: cat conftest.er1 >&5
4676: fi
4677: rm -f conftest.er1 conftest.err
4678: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4679: test $ac_status = 0; }
4680: done
4681: rm -f a.out
4682:
4683: # If we don't use `.F' as extension, the preprocessor is not run on the
4684: # input file. (Note that this only needs to work for GNU compilers.)
4685: ac_save_ext=$ac_ext
4686: ac_ext=F
4687: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4688: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4689: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
4690: $as_echo_n "(cached) " >&6
1.1 bertrand 4691: else
1.15 bertrand 4692: cat > conftest.$ac_ext <<_ACEOF
4693: program main
4694: #ifndef __GNUC__
4695: choke me
4696: #endif
1.14 bertrand 4697:
1.15 bertrand 4698: end
4699: _ACEOF
4700: if ac_fn_f77_try_compile "$LINENO"; then :
4701: ac_compiler_gnu=yes
4702: else
4703: ac_compiler_gnu=no
1.1 bertrand 4704: fi
1.15 bertrand 4705: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4707:
4708: fi
1.15 bertrand 4709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4710: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4711: ac_ext=$ac_save_ext
4712: ac_test_FFLAGS=${FFLAGS+set}
4713: ac_save_FFLAGS=$FFLAGS
4714: FFLAGS=
4715: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4716: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
4717: if test "${ac_cv_prog_f77_g+set}" = set; then :
4718: $as_echo_n "(cached) " >&6
4719: else
4720: FFLAGS=-g
4721: cat > conftest.$ac_ext <<_ACEOF
4722: program main
1.1 bertrand 4723:
1.15 bertrand 4724: end
1.14 bertrand 4725: _ACEOF
1.15 bertrand 4726: if ac_fn_f77_try_compile "$LINENO"; then :
4727: ac_cv_prog_f77_g=yes
1.1 bertrand 4728: else
1.15 bertrand 4729: ac_cv_prog_f77_g=no
1.1 bertrand 4730: fi
1.15 bertrand 4731: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 4732:
4733: fi
1.15 bertrand 4734: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4735: $as_echo "$ac_cv_prog_f77_g" >&6; }
4736: if test "$ac_test_FFLAGS" = set; then
4737: FFLAGS=$ac_save_FFLAGS
4738: elif test $ac_cv_prog_f77_g = yes; then
4739: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4740: FFLAGS="-g -O2"
4741: else
4742: FFLAGS="-g"
4743: fi
4744: else
4745: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4746: FFLAGS="-O2"
4747: else
4748: FFLAGS=
4749: fi
1.1 bertrand 4750: fi
4751:
1.15 bertrand 4752: if test $ac_compiler_gnu = yes; then
4753: G77=yes
1.1 bertrand 4754: else
1.15 bertrand 4755: G77=
1.1 bertrand 4756: fi
1.15 bertrand 4757: ac_ext=c
4758: ac_cpp='$CPP $CPPFLAGS'
4759: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4760: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4761: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 bertrand 4762:
4763:
1.15 bertrand 4764: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
4765: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4766: fi
1.14 bertrand 4767:
1.15 bertrand 4768: ac_ext=${ac_fc_srcext-f}
4769: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4770: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4771: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4772: if test -n "$ac_tool_prefix"; then
1.23 bertrand 4773: for ac_prog in gfortran
1.15 bertrand 4774: do
4775: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4776: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4777: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778: $as_echo_n "checking for $ac_word... " >&6; }
4779: if test "${ac_cv_prog_FC+set}" = set; then :
4780: $as_echo_n "(cached) " >&6
4781: else
4782: if test -n "$FC"; then
4783: ac_cv_prog_FC="$FC" # Let the user override the test.
1.1 bertrand 4784: else
1.15 bertrand 4785: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786: for as_dir in $PATH
4787: do
4788: IFS=$as_save_IFS
4789: test -z "$as_dir" && as_dir=.
4790: for ac_exec_ext in '' $ac_executable_extensions; do
4791: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4793: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794: break 2
4795: fi
4796: done
4797: done
4798: IFS=$as_save_IFS
1.1 bertrand 4799:
4800: fi
1.15 bertrand 4801: fi
4802: FC=$ac_cv_prog_FC
4803: if test -n "$FC"; then
4804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4805: $as_echo "$FC" >&6; }
1.14 bertrand 4806: else
1.15 bertrand 4807: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808: $as_echo "no" >&6; }
1.14 bertrand 4809: fi
4810:
1.1 bertrand 4811:
1.15 bertrand 4812: test -n "$FC" && break
4813: done
4814: fi
4815: if test -z "$FC"; then
4816: ac_ct_FC=$FC
1.23 bertrand 4817: for ac_prog in gfortran
1.15 bertrand 4818: do
4819: # Extract the first word of "$ac_prog", so it can be a program name with args.
4820: set dummy $ac_prog; ac_word=$2
4821: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822: $as_echo_n "checking for $ac_word... " >&6; }
4823: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4824: $as_echo_n "(cached) " >&6
4825: else
4826: if test -n "$ac_ct_FC"; then
4827: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4828: else
4829: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830: for as_dir in $PATH
4831: do
4832: IFS=$as_save_IFS
4833: test -z "$as_dir" && as_dir=.
4834: for ac_exec_ext in '' $ac_executable_extensions; do
4835: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836: ac_cv_prog_ac_ct_FC="$ac_prog"
4837: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838: break 2
4839: fi
4840: done
4841: done
4842: IFS=$as_save_IFS
1.1 bertrand 4843:
1.15 bertrand 4844: fi
4845: fi
4846: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4847: if test -n "$ac_ct_FC"; then
4848: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4849: $as_echo "$ac_ct_FC" >&6; }
1.1 bertrand 4850: else
1.15 bertrand 4851: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852: $as_echo "no" >&6; }
1.1 bertrand 4853: fi
1.14 bertrand 4854:
1.1 bertrand 4855:
1.15 bertrand 4856: test -n "$ac_ct_FC" && break
4857: done
1.1 bertrand 4858:
1.15 bertrand 4859: if test "x$ac_ct_FC" = x; then
4860: FC=""
4861: else
4862: case $cross_compiling:$ac_tool_warned in
4863: yes:)
4864: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4865: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4866: ac_tool_warned=yes ;;
1.14 bertrand 4867: esac
1.15 bertrand 4868: FC=$ac_ct_FC
4869: fi
1.14 bertrand 4870: fi
4871:
4872:
1.15 bertrand 4873: # Provide some information about the compiler.
4874: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4875: set X $ac_compile
4876: ac_compiler=$2
4877: for ac_option in --version -v -V -qversion; do
4878: { { ac_try="$ac_compiler $ac_option >&5"
1.14 bertrand 4879: case "(($ac_try" in
4880: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881: *) ac_try_echo=$ac_try;;
4882: esac
1.15 bertrand 4883: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4884: $as_echo "$ac_try_echo"; } >&5
4885: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1.14 bertrand 4886: ac_status=$?
1.15 bertrand 4887: if test -s conftest.err; then
4888: sed '10a\
4889: ... rest of stderr output deleted ...
4890: 10q' conftest.err >conftest.er1
4891: cat conftest.er1 >&5
4892: fi
4893: rm -f conftest.er1 conftest.err
4894: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4895: test $ac_status = 0; }
4896: done
4897: rm -f a.out
4898:
4899: # If we don't use `.F' as extension, the preprocessor is not run on the
4900: # input file. (Note that this only needs to work for GNU compilers.)
4901: ac_save_ext=$ac_ext
4902: ac_ext=F
4903: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4904: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4905: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4906: $as_echo_n "(cached) " >&6
1.14 bertrand 4907: else
1.15 bertrand 4908: cat > conftest.$ac_ext <<_ACEOF
4909: program main
4910: #ifndef __GNUC__
4911: choke me
4912: #endif
1.14 bertrand 4913:
1.15 bertrand 4914: end
4915: _ACEOF
4916: if ac_fn_fc_try_compile "$LINENO"; then :
4917: ac_compiler_gnu=yes
4918: else
4919: ac_compiler_gnu=no
1.14 bertrand 4920: fi
4921: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 4922: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
1.1 bertrand 4923:
1.15 bertrand 4924: fi
4925: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4926: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4927: ac_ext=$ac_save_ext
4928: ac_test_FCFLAGS=${FCFLAGS+set}
4929: ac_save_FCFLAGS=$FCFLAGS
4930: FCFLAGS=
4931: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4932: $as_echo_n "checking whether $FC accepts -g... " >&6; }
4933: if test "${ac_cv_prog_fc_g+set}" = set; then :
4934: $as_echo_n "(cached) " >&6
4935: else
4936: FCFLAGS=-g
4937: cat > conftest.$ac_ext <<_ACEOF
4938: program main
1.1 bertrand 4939:
1.15 bertrand 4940: end
1.1 bertrand 4941: _ACEOF
1.15 bertrand 4942: if ac_fn_fc_try_compile "$LINENO"; then :
4943: ac_cv_prog_fc_g=yes
1.1 bertrand 4944: else
1.15 bertrand 4945: ac_cv_prog_fc_g=no
1.1 bertrand 4946: fi
1.14 bertrand 4947: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 4948:
1.15 bertrand 4949: fi
4950: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4951: $as_echo "$ac_cv_prog_fc_g" >&6; }
4952: if test "$ac_test_FCFLAGS" = set; then
4953: FCFLAGS=$ac_save_FCFLAGS
4954: elif test $ac_cv_prog_fc_g = yes; then
4955: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4956: FCFLAGS="-g -O2"
4957: else
4958: FCFLAGS="-g"
4959: fi
1.1 bertrand 4960: else
1.15 bertrand 4961: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4962: FCFLAGS="-O2"
4963: else
4964: FCFLAGS=
4965: fi
1.1 bertrand 4966: fi
4967:
1.15 bertrand 4968: ac_ext=c
4969: ac_cpp='$CPP $CPPFLAGS'
4970: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 bertrand 4973:
4974:
1.15 bertrand 4975: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
4976: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
1.1 bertrand 4977: fi
4978:
1.15 bertrand 4979: if test x"$FC" != x""; then
4980: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4981: awk -F. '{ printf("%s", $1);}'`
4982: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4983: awk -F. '{ printf("%s", $2);}'`
1.23 bertrand 4984: if test $GCC_VERSION_MAJEURE -ge 5; then
1.15 bertrand 4985: OPTIMISATION_F=-O3
4986: else
1.23 bertrand 4987: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
1.15 bertrand 4988: OPTIMISATION_F=-O3
4989: else
1.23 bertrand 4990: if test $GCC_VERSION_MAJEURE -ge 3; then
4991: OPTIMISATION_F=-O2
4992: else
4993: as_fn_error "Cannot find decent or recent gfortran (gfortran-4.3 or better)!" "$LINENO" 5
4994: fi
1.14 bertrand 4995: fi
4996: fi
4997: fi
1.1 bertrand 4998:
4999:
1.15 bertrand 5000: ac_ext=c
5001: ac_cpp='$CPP $CPPFLAGS'
5002: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5005: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5006: $as_echo_n "checking how to run the C preprocessor... " >&6; }
5007: # On Suns, sometimes $CPP names a directory.
5008: if test -n "$CPP" && test -d "$CPP"; then
5009: CPP=
5010: fi
5011: if test -z "$CPP"; then
5012: if test "${ac_cv_prog_CPP+set}" = set; then :
5013: $as_echo_n "(cached) " >&6
5014: else
5015: # Double quotes because CPP needs to be expanded
5016: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5017: do
5018: ac_preproc_ok=false
5019: for ac_c_preproc_warn_flag in '' yes
5020: do
5021: # Use a header file that comes with gcc, so configuring glibc
5022: # with a fresh cross-compiler works.
5023: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5024: # <limits.h> exists even on freestanding compilers.
5025: # On the NeXT, cc -E runs the code through the compiler's parser,
5026: # not just through cpp. "Syntax error" is here to catch this case.
5027: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5028: /* end confdefs.h. */
1.15 bertrand 5029: #ifdef __STDC__
5030: # include <limits.h>
5031: #else
5032: # include <assert.h>
5033: #endif
5034: Syntax error
1.1 bertrand 5035: _ACEOF
1.15 bertrand 5036: if ac_fn_c_try_cpp "$LINENO"; then :
5037:
1.1 bertrand 5038: else
1.15 bertrand 5039: # Broken: fails on valid input.
5040: continue
1.1 bertrand 5041: fi
1.15 bertrand 5042: rm -f conftest.err conftest.$ac_ext
1.1 bertrand 5043:
1.15 bertrand 5044: # OK, works on sane cases. Now check whether nonexistent headers
5045: # can be detected and how.
5046: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047: /* end confdefs.h. */
5048: #include <ac_nonexistent.h>
5049: _ACEOF
5050: if ac_fn_c_try_cpp "$LINENO"; then :
5051: # Broken: success on invalid input.
5052: continue
5053: else
5054: # Passes both tests.
5055: ac_preproc_ok=:
5056: break
1.1 bertrand 5057: fi
1.15 bertrand 5058: rm -f conftest.err conftest.$ac_ext
1.14 bertrand 5059:
1.15 bertrand 5060: done
5061: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5062: rm -f conftest.err conftest.$ac_ext
5063: if $ac_preproc_ok; then :
5064: break
1.1 bertrand 5065: fi
5066:
1.15 bertrand 5067: done
5068: ac_cv_prog_CPP=$CPP
1.14 bertrand 5069:
1.15 bertrand 5070: fi
5071: CPP=$ac_cv_prog_CPP
1.1 bertrand 5072: else
1.15 bertrand 5073: ac_cv_prog_CPP=$CPP
5074: fi
5075: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5076: $as_echo "$CPP" >&6; }
5077: ac_preproc_ok=false
5078: for ac_c_preproc_warn_flag in '' yes
1.14 bertrand 5079: do
1.15 bertrand 5080: # Use a header file that comes with gcc, so configuring glibc
5081: # with a fresh cross-compiler works.
5082: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5083: # <limits.h> exists even on freestanding compilers.
5084: # On the NeXT, cc -E runs the code through the compiler's parser,
5085: # not just through cpp. "Syntax error" is here to catch this case.
5086: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087: /* end confdefs.h. */
5088: #ifdef __STDC__
5089: # include <limits.h>
5090: #else
5091: # include <assert.h>
5092: #endif
5093: Syntax error
5094: _ACEOF
5095: if ac_fn_c_try_cpp "$LINENO"; then :
1.1 bertrand 5096:
1.15 bertrand 5097: else
5098: # Broken: fails on valid input.
5099: continue
5100: fi
5101: rm -f conftest.err conftest.$ac_ext
1.1 bertrand 5102:
1.15 bertrand 5103: # OK, works on sane cases. Now check whether nonexistent headers
5104: # can be detected and how.
5105: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106: /* end confdefs.h. */
5107: #include <ac_nonexistent.h>
5108: _ACEOF
5109: if ac_fn_c_try_cpp "$LINENO"; then :
5110: # Broken: success on invalid input.
5111: continue
5112: else
5113: # Passes both tests.
5114: ac_preproc_ok=:
5115: break
5116: fi
5117: rm -f conftest.err conftest.$ac_ext
1.1 bertrand 5118:
5119: done
1.15 bertrand 5120: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121: rm -f conftest.err conftest.$ac_ext
5122: if $ac_preproc_ok; then :
1.1 bertrand 5123:
1.15 bertrand 5124: else
5125: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5126: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5127: as_fn_error "C preprocessor \"$CPP\" fails sanity check
5128: See \`config.log' for more details." "$LINENO" 5; }
5129: fi
1.14 bertrand 5130:
1.15 bertrand 5131: ac_ext=c
5132: ac_cpp='$CPP $CPPFLAGS'
5133: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5134: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5135: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.14 bertrand 5136:
5137:
1.15 bertrand 5138: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5139: $as_echo_n "checking for X... " >&6; }
1.1 bertrand 5140:
5141:
1.15 bertrand 5142: # Check whether --with-x was given.
5143: if test "${with_x+set}" = set; then :
5144: withval=$with_x;
1.1 bertrand 5145: fi
1.14 bertrand 5146:
1.15 bertrand 5147: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5148: if test "x$with_x" = xno; then
5149: # The user explicitly disabled X.
5150: have_x=disabled
1.1 bertrand 5151: else
1.15 bertrand 5152: case $x_includes,$x_libraries in #(
5153: *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5154: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5155: $as_echo_n "(cached) " >&6
1.1 bertrand 5156: else
1.15 bertrand 5157: # One or both of the vars are not set, and there is no cached value.
5158: ac_x_includes=no ac_x_libraries=no
5159: rm -f -r conftest.dir
5160: if mkdir conftest.dir; then
5161: cd conftest.dir
5162: cat >Imakefile <<'_ACEOF'
5163: incroot:
5164: @echo incroot='${INCROOT}'
5165: usrlibdir:
5166: @echo usrlibdir='${USRLIBDIR}'
5167: libdir:
5168: @echo libdir='${LIBDIR}'
5169: _ACEOF
5170: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5171: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5172: for ac_var in incroot usrlibdir libdir; do
5173: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5174: done
5175: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5176: for ac_extension in a so sl dylib la dll; do
5177: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5178: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5179: ac_im_usrlibdir=$ac_im_libdir; break
5180: fi
5181: done
5182: # Screen out bogus values from the imake configuration. They are
5183: # bogus both because they are the default anyway, and because
5184: # using them would break gcc on systems where it needs fixed includes.
5185: case $ac_im_incroot in
5186: /usr/include) ac_x_includes= ;;
5187: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5188: esac
5189: case $ac_im_usrlibdir in
5190: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5191: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5192: esac
5193: fi
5194: cd ..
5195: rm -f -r conftest.dir
5196: fi
5197:
5198: # Standard set of common directories for X headers.
5199: # Check X11 before X11Rn because it is often a symlink to the current release.
5200: ac_x_header_dirs='
5201: /usr/X11/include
5202: /usr/X11R7/include
5203: /usr/X11R6/include
5204: /usr/X11R5/include
5205: /usr/X11R4/include
1.1 bertrand 5206:
1.15 bertrand 5207: /usr/include/X11
5208: /usr/include/X11R7
5209: /usr/include/X11R6
5210: /usr/include/X11R5
5211: /usr/include/X11R4
1.1 bertrand 5212:
1.15 bertrand 5213: /usr/local/X11/include
5214: /usr/local/X11R7/include
5215: /usr/local/X11R6/include
5216: /usr/local/X11R5/include
5217: /usr/local/X11R4/include
1.1 bertrand 5218:
1.15 bertrand 5219: /usr/local/include/X11
5220: /usr/local/include/X11R7
5221: /usr/local/include/X11R6
5222: /usr/local/include/X11R5
5223: /usr/local/include/X11R4
1.1 bertrand 5224:
1.15 bertrand 5225: /usr/X386/include
5226: /usr/x386/include
5227: /usr/XFree86/include/X11
1.1 bertrand 5228:
1.15 bertrand 5229: /usr/include
5230: /usr/local/include
5231: /usr/unsupported/include
5232: /usr/athena/include
5233: /usr/local/x11r5/include
5234: /usr/lpp/Xamples/include
1.1 bertrand 5235:
1.15 bertrand 5236: /usr/openwin/include
5237: /usr/openwin/share/include'
1.1 bertrand 5238:
1.15 bertrand 5239: if test "$ac_x_includes" = no; then
5240: # Guess where to find include files, by looking for Xlib.h.
5241: # First, try using that file with no special directory specified.
5242: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243: /* end confdefs.h. */
5244: #include <X11/Xlib.h>
5245: _ACEOF
5246: if ac_fn_c_try_cpp "$LINENO"; then :
5247: # We can compile using X headers with no special include directory.
5248: ac_x_includes=
1.1 bertrand 5249: else
1.15 bertrand 5250: for ac_dir in $ac_x_header_dirs; do
5251: if test -r "$ac_dir/X11/Xlib.h"; then
5252: ac_x_includes=$ac_dir
5253: break
5254: fi
5255: done
1.1 bertrand 5256: fi
1.15 bertrand 5257: rm -f conftest.err conftest.$ac_ext
5258: fi # $ac_x_includes = no
1.1 bertrand 5259:
1.15 bertrand 5260: if test "$ac_x_libraries" = no; then
5261: # Check for the libraries.
5262: # See if we find them without any special options.
5263: # Don't add to $LIBS permanently.
5264: ac_save_LIBS=$LIBS
5265: LIBS="-lX11 $LIBS"
5266: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5267: /* end confdefs.h. */
1.15 bertrand 5268: #include <X11/Xlib.h>
1.14 bertrand 5269: int
5270: main ()
5271: {
1.15 bertrand 5272: XrmInitialize ()
1.14 bertrand 5273: ;
5274: return 0;
5275: }
1.1 bertrand 5276: _ACEOF
1.15 bertrand 5277: if ac_fn_c_try_link "$LINENO"; then :
5278: LIBS=$ac_save_LIBS
5279: # We can link X programs with no special library path.
5280: ac_x_libraries=
1.1 bertrand 5281: else
1.15 bertrand 5282: LIBS=$ac_save_LIBS
5283: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5284: do
5285: # Don't even attempt the hair of trying to link an X program!
5286: for ac_extension in a so sl dylib la dll; do
5287: if test -r "$ac_dir/libX11.$ac_extension"; then
5288: ac_x_libraries=$ac_dir
5289: break 2
5290: fi
5291: done
5292: done
5293: fi
5294: rm -f core conftest.err conftest.$ac_objext \
5295: conftest$ac_exeext conftest.$ac_ext
5296: fi # $ac_x_libraries = no
1.1 bertrand 5297:
1.15 bertrand 5298: case $ac_x_includes,$ac_x_libraries in #(
5299: no,* | *,no | *\'*)
5300: # Didn't find X, or a directory has "'" in its name.
5301: ac_cv_have_x="have_x=no";; #(
5302: *)
5303: # Record where we found X for the cache.
5304: ac_cv_have_x="have_x=yes\
5305: ac_x_includes='$ac_x_includes'\
5306: ac_x_libraries='$ac_x_libraries'"
5307: esac
1.1 bertrand 5308: fi
1.15 bertrand 5309: ;; #(
5310: *) have_x=yes;;
5311: esac
5312: eval "$ac_cv_have_x"
5313: fi # $with_x != no
1.1 bertrand 5314:
1.15 bertrand 5315: if test "$have_x" != yes; then
5316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5317: $as_echo "$have_x" >&6; }
5318: no_x=yes
1.14 bertrand 5319: else
1.15 bertrand 5320: # If each of the values was on the command line, it overrides each guess.
5321: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5322: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5323: # Update the cache value to reflect the command line values.
5324: ac_cv_have_x="have_x=yes\
5325: ac_x_includes='$x_includes'\
5326: ac_x_libraries='$x_libraries'"
5327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5328: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
1.14 bertrand 5329: fi
1.1 bertrand 5330:
1.15 bertrand 5331: if test "$no_x" = yes; then
5332: # Not all programs may use this symbol, but it does not hurt to define it.
1.1 bertrand 5333:
1.15 bertrand 5334: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
1.14 bertrand 5335:
1.15 bertrand 5336: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1.1 bertrand 5337: else
1.15 bertrand 5338: if test -n "$x_includes"; then
5339: X_CFLAGS="$X_CFLAGS -I$x_includes"
5340: fi
5341:
5342: # It would also be nice to do this for all -L options, not just this one.
5343: if test -n "$x_libraries"; then
5344: X_LIBS="$X_LIBS -L$x_libraries"
5345: # For Solaris; some versions of Sun CC require a space after -R and
5346: # others require no space. Words are not sufficient . . . .
5347: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5348: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5349: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5350: ac_xsave_c_werror_flag=$ac_c_werror_flag
5351: ac_c_werror_flag=yes
5352: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353: /* end confdefs.h. */
1.1 bertrand 5354:
1.15 bertrand 5355: int
5356: main ()
5357: {
1.1 bertrand 5358:
1.15 bertrand 5359: ;
5360: return 0;
5361: }
5362: _ACEOF
5363: if ac_fn_c_try_link "$LINENO"; then :
5364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365: $as_echo "no" >&6; }
5366: X_LIBS="$X_LIBS -R$x_libraries"
1.1 bertrand 5367: else
1.15 bertrand 5368: LIBS="$ac_xsave_LIBS -R $x_libraries"
5369: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5370: /* end confdefs.h. */
1.1 bertrand 5371:
1.14 bertrand 5372: int
5373: main ()
5374: {
1.15 bertrand 5375:
5376: ;
1.14 bertrand 5377: return 0;
5378: }
5379: _ACEOF
1.15 bertrand 5380: if ac_fn_c_try_link "$LINENO"; then :
5381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5382: $as_echo "yes" >&6; }
5383: X_LIBS="$X_LIBS -R $x_libraries"
1.14 bertrand 5384: else
1.15 bertrand 5385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5386: $as_echo "neither works" >&6; }
1.14 bertrand 5387: fi
1.15 bertrand 5388: rm -f core conftest.err conftest.$ac_objext \
5389: conftest$ac_exeext conftest.$ac_ext
1.14 bertrand 5390: fi
1.15 bertrand 5391: rm -f core conftest.err conftest.$ac_objext \
5392: conftest$ac_exeext conftest.$ac_ext
5393: ac_c_werror_flag=$ac_xsave_c_werror_flag
5394: LIBS=$ac_xsave_LIBS
5395: fi
1.1 bertrand 5396:
1.15 bertrand 5397: # Check for system-dependent libraries X programs must link with.
5398: # Do this before checking for the system-independent R6 libraries
5399: # (-lICE), since we may need -lsocket or whatever for X linking.
1.1 bertrand 5400:
1.15 bertrand 5401: if test "$ISC" = yes; then
5402: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5403: else
5404: # Martyn Johnson says this is needed for Ultrix, if the X
5405: # libraries were built with DECnet support. And Karl Berry says
5406: # the Alpha needs dnet_stub (dnet does not exist).
5407: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5408: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409: /* end confdefs.h. */
1.1 bertrand 5410:
1.15 bertrand 5411: /* Override any GCC internal prototype to avoid an error.
5412: Use char because int might match the return type of a GCC
5413: builtin and then its argument prototype would still apply. */
5414: #ifdef __cplusplus
5415: extern "C"
5416: #endif
5417: char XOpenDisplay ();
5418: int
5419: main ()
5420: {
5421: return XOpenDisplay ();
5422: ;
5423: return 0;
5424: }
1.1 bertrand 5425: _ACEOF
1.15 bertrand 5426: if ac_fn_c_try_link "$LINENO"; then :
1.14 bertrand 5427:
5428: else
1.15 bertrand 5429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5430: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5431: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5432: $as_echo_n "(cached) " >&6
5433: else
5434: ac_check_lib_save_LIBS=$LIBS
5435: LIBS="-ldnet $LIBS"
5436: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5437: /* end confdefs.h. */
1.14 bertrand 5438:
1.15 bertrand 5439: /* Override any GCC internal prototype to avoid an error.
5440: Use char because int might match the return type of a GCC
5441: builtin and then its argument prototype would still apply. */
5442: #ifdef __cplusplus
5443: extern "C"
5444: #endif
5445: char dnet_ntoa ();
5446: int
5447: main ()
5448: {
5449: return dnet_ntoa ();
5450: ;
5451: return 0;
5452: }
1.1 bertrand 5453: _ACEOF
1.15 bertrand 5454: if ac_fn_c_try_link "$LINENO"; then :
5455: ac_cv_lib_dnet_dnet_ntoa=yes
1.1 bertrand 5456: else
1.15 bertrand 5457: ac_cv_lib_dnet_dnet_ntoa=no
1.14 bertrand 5458: fi
1.15 bertrand 5459: rm -f core conftest.err conftest.$ac_objext \
5460: conftest$ac_exeext conftest.$ac_ext
5461: LIBS=$ac_check_lib_save_LIBS
1.14 bertrand 5462: fi
1.15 bertrand 5463: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5464: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5465: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5466: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1.14 bertrand 5467: fi
5468:
1.15 bertrand 5469: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5470: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5471: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5472: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5473: $as_echo_n "(cached) " >&6
1.14 bertrand 5474: else
1.15 bertrand 5475: ac_check_lib_save_LIBS=$LIBS
5476: LIBS="-ldnet_stub $LIBS"
5477: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5478: /* end confdefs.h. */
1.15 bertrand 5479:
5480: /* Override any GCC internal prototype to avoid an error.
5481: Use char because int might match the return type of a GCC
5482: builtin and then its argument prototype would still apply. */
5483: #ifdef __cplusplus
5484: extern "C"
5485: #endif
5486: char dnet_ntoa ();
1.1 bertrand 5487: int
5488: main ()
5489: {
1.15 bertrand 5490: return dnet_ntoa ();
1.1 bertrand 5491: ;
5492: return 0;
5493: }
5494: _ACEOF
1.15 bertrand 5495: if ac_fn_c_try_link "$LINENO"; then :
5496: ac_cv_lib_dnet_stub_dnet_ntoa=yes
1.14 bertrand 5497: else
1.15 bertrand 5498: ac_cv_lib_dnet_stub_dnet_ntoa=no
5499: fi
5500: rm -f core conftest.err conftest.$ac_objext \
5501: conftest$ac_exeext conftest.$ac_ext
5502: LIBS=$ac_check_lib_save_LIBS
5503: fi
5504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5505: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5506: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5507: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5508: fi
1.14 bertrand 5509:
1.15 bertrand 5510: fi
1.1 bertrand 5511: fi
1.15 bertrand 5512: rm -f core conftest.err conftest.$ac_objext \
5513: conftest$ac_exeext conftest.$ac_ext
5514: LIBS="$ac_xsave_LIBS"
5515:
5516: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5517: # to get the SysV transport functions.
5518: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5519: # needs -lnsl.
5520: # The nsl library prevents programs from opening the X display
5521: # on Irix 5.2, according to T.E. Dickey.
5522: # The functions gethostbyname, getservbyname, and inet_addr are
5523: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5524: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5525: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
1.1 bertrand 5526:
5527: fi
5528:
1.15 bertrand 5529: if test $ac_cv_func_gethostbyname = no; then
5530: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5531: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5532: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5533: $as_echo_n "(cached) " >&6
1.1 bertrand 5534: else
1.15 bertrand 5535: ac_check_lib_save_LIBS=$LIBS
5536: LIBS="-lnsl $LIBS"
5537: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5538: /* end confdefs.h. */
1.15 bertrand 5539:
5540: /* Override any GCC internal prototype to avoid an error.
5541: Use char because int might match the return type of a GCC
5542: builtin and then its argument prototype would still apply. */
5543: #ifdef __cplusplus
5544: extern "C"
5545: #endif
5546: char gethostbyname ();
1.1 bertrand 5547: int
5548: main ()
5549: {
1.15 bertrand 5550: return gethostbyname ();
1.1 bertrand 5551: ;
5552: return 0;
5553: }
5554: _ACEOF
1.15 bertrand 5555: if ac_fn_c_try_link "$LINENO"; then :
5556: ac_cv_lib_nsl_gethostbyname=yes
5557: else
5558: ac_cv_lib_nsl_gethostbyname=no
5559: fi
5560: rm -f core conftest.err conftest.$ac_objext \
5561: conftest$ac_exeext conftest.$ac_ext
5562: LIBS=$ac_check_lib_save_LIBS
5563: fi
5564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5565: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5566: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5567: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5568: fi
5569:
5570: if test $ac_cv_lib_nsl_gethostbyname = no; then
5571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5572: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5573: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5574: $as_echo_n "(cached) " >&6
5575: else
5576: ac_check_lib_save_LIBS=$LIBS
5577: LIBS="-lbsd $LIBS"
5578: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5579: /* end confdefs.h. */
1.15 bertrand 5580:
5581: /* Override any GCC internal prototype to avoid an error.
5582: Use char because int might match the return type of a GCC
5583: builtin and then its argument prototype would still apply. */
5584: #ifdef __cplusplus
5585: extern "C"
5586: #endif
5587: char gethostbyname ();
1.1 bertrand 5588: int
5589: main ()
5590: {
1.15 bertrand 5591: return gethostbyname ();
1.1 bertrand 5592: ;
5593: return 0;
5594: }
5595: _ACEOF
1.15 bertrand 5596: if ac_fn_c_try_link "$LINENO"; then :
5597: ac_cv_lib_bsd_gethostbyname=yes
1.1 bertrand 5598: else
1.15 bertrand 5599: ac_cv_lib_bsd_gethostbyname=no
5600: fi
5601: rm -f core conftest.err conftest.$ac_objext \
5602: conftest$ac_exeext conftest.$ac_ext
5603: LIBS=$ac_check_lib_save_LIBS
5604: fi
5605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5606: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5607: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5608: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5609: fi
5610:
5611: fi
5612: fi
5613:
5614: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5615: # socket/setsockopt and other routines are undefined under SCO ODT
5616: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5617: # on later versions), says Simon Leinen: it contains gethostby*
5618: # variants that don't use the name server (or something). -lsocket
5619: # must be given before -lnsl if both are needed. We assume that
5620: # if connect needs -lnsl, so does gethostbyname.
5621: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5622: if test "x$ac_cv_func_connect" = x""yes; then :
1.14 bertrand 5623:
1.1 bertrand 5624: fi
5625:
1.15 bertrand 5626: if test $ac_cv_func_connect = no; then
5627: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5628: $as_echo_n "checking for connect in -lsocket... " >&6; }
5629: if test "${ac_cv_lib_socket_connect+set}" = set; then :
5630: $as_echo_n "(cached) " >&6
1.14 bertrand 5631: else
1.15 bertrand 5632: ac_check_lib_save_LIBS=$LIBS
5633: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5634: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635: /* end confdefs.h. */
1.1 bertrand 5636:
1.15 bertrand 5637: /* Override any GCC internal prototype to avoid an error.
5638: Use char because int might match the return type of a GCC
5639: builtin and then its argument prototype would still apply. */
5640: #ifdef __cplusplus
5641: extern "C"
5642: #endif
5643: char connect ();
1.14 bertrand 5644: int
5645: main ()
5646: {
1.15 bertrand 5647: return connect ();
1.14 bertrand 5648: ;
5649: return 0;
5650: }
5651: _ACEOF
1.15 bertrand 5652: if ac_fn_c_try_link "$LINENO"; then :
5653: ac_cv_lib_socket_connect=yes
5654: else
5655: ac_cv_lib_socket_connect=no
5656: fi
5657: rm -f core conftest.err conftest.$ac_objext \
5658: conftest$ac_exeext conftest.$ac_ext
5659: LIBS=$ac_check_lib_save_LIBS
5660: fi
5661: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5662: $as_echo "$ac_cv_lib_socket_connect" >&6; }
5663: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
5664: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5665: fi
5666:
5667: fi
5668:
5669: # Guillermo Gomez says -lposix is necessary on A/UX.
5670: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5671: if test "x$ac_cv_func_remove" = x""yes; then :
5672:
5673: fi
5674:
5675: if test $ac_cv_func_remove = no; then
5676: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5677: $as_echo_n "checking for remove in -lposix... " >&6; }
5678: if test "${ac_cv_lib_posix_remove+set}" = set; then :
5679: $as_echo_n "(cached) " >&6
5680: else
5681: ac_check_lib_save_LIBS=$LIBS
5682: LIBS="-lposix $LIBS"
5683: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 5684: /* end confdefs.h. */
1.15 bertrand 5685:
5686: /* Override any GCC internal prototype to avoid an error.
5687: Use char because int might match the return type of a GCC
5688: builtin and then its argument prototype would still apply. */
5689: #ifdef __cplusplus
5690: extern "C"
5691: #endif
5692: char remove ();
1.1 bertrand 5693: int
5694: main ()
5695: {
1.15 bertrand 5696: return remove ();
1.1 bertrand 5697: ;
5698: return 0;
5699: }
5700: _ACEOF
1.15 bertrand 5701: if ac_fn_c_try_link "$LINENO"; then :
5702: ac_cv_lib_posix_remove=yes
1.14 bertrand 5703: else
1.15 bertrand 5704: ac_cv_lib_posix_remove=no
5705: fi
5706: rm -f core conftest.err conftest.$ac_objext \
5707: conftest$ac_exeext conftest.$ac_ext
5708: LIBS=$ac_check_lib_save_LIBS
5709: fi
5710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5711: $as_echo "$ac_cv_lib_posix_remove" >&6; }
5712: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
5713: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1.14 bertrand 5714: fi
1.1 bertrand 5715:
1.15 bertrand 5716: fi
1.14 bertrand 5717:
1.15 bertrand 5718: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5719: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5720: if test "x$ac_cv_func_shmat" = x""yes; then :
1.14 bertrand 5721:
5722: fi
5723:
1.15 bertrand 5724: if test $ac_cv_func_shmat = no; then
5725: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5726: $as_echo_n "checking for shmat in -lipc... " >&6; }
5727: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
5728: $as_echo_n "(cached) " >&6
5729: else
5730: ac_check_lib_save_LIBS=$LIBS
5731: LIBS="-lipc $LIBS"
5732: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5733: /* end confdefs.h. */
1.15 bertrand 5734:
5735: /* Override any GCC internal prototype to avoid an error.
5736: Use char because int might match the return type of a GCC
5737: builtin and then its argument prototype would still apply. */
5738: #ifdef __cplusplus
5739: extern "C"
5740: #endif
5741: char shmat ();
1.1 bertrand 5742: int
5743: main ()
5744: {
1.15 bertrand 5745: return shmat ();
1.1 bertrand 5746: ;
5747: return 0;
5748: }
5749: _ACEOF
1.15 bertrand 5750: if ac_fn_c_try_link "$LINENO"; then :
5751: ac_cv_lib_ipc_shmat=yes
1.1 bertrand 5752: else
1.15 bertrand 5753: ac_cv_lib_ipc_shmat=no
5754: fi
5755: rm -f core conftest.err conftest.$ac_objext \
5756: conftest$ac_exeext conftest.$ac_ext
5757: LIBS=$ac_check_lib_save_LIBS
5758: fi
5759: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5760: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5761: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
5762: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5763: fi
1.14 bertrand 5764:
1.15 bertrand 5765: fi
5766: fi
1.1 bertrand 5767:
1.15 bertrand 5768: # Check for libraries that X11R6 Xt/Xaw programs need.
5769: ac_save_LDFLAGS=$LDFLAGS
5770: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5771: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5772: # check for ICE first), but we must link in the order -lSM -lICE or
5773: # we get undefined symbols. So assume we have SM if we have ICE.
5774: # These have to be linked with before -lX11, unlike the other
5775: # libraries we check for below, so use a different variable.
5776: # John Interrante, Karl Berry
5777: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5778: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5779: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5780: $as_echo_n "(cached) " >&6
1.1 bertrand 5781: else
1.15 bertrand 5782: ac_check_lib_save_LIBS=$LIBS
5783: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5784: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 5785: /* end confdefs.h. */
1.15 bertrand 5786:
5787: /* Override any GCC internal prototype to avoid an error.
5788: Use char because int might match the return type of a GCC
5789: builtin and then its argument prototype would still apply. */
5790: #ifdef __cplusplus
5791: extern "C"
5792: #endif
5793: char IceConnectionNumber ();
1.1 bertrand 5794: int
5795: main ()
5796: {
1.15 bertrand 5797: return IceConnectionNumber ();
1.1 bertrand 5798: ;
5799: return 0;
5800: }
5801: _ACEOF
1.15 bertrand 5802: if ac_fn_c_try_link "$LINENO"; then :
5803: ac_cv_lib_ICE_IceConnectionNumber=yes
1.1 bertrand 5804: else
1.15 bertrand 5805: ac_cv_lib_ICE_IceConnectionNumber=no
5806: fi
5807: rm -f core conftest.err conftest.$ac_objext \
5808: conftest$ac_exeext conftest.$ac_ext
5809: LIBS=$ac_check_lib_save_LIBS
5810: fi
5811: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5812: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5813: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5814: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5815: fi
5816:
5817: LDFLAGS=$ac_save_LDFLAGS
5818:
5819: fi
5820:
1.14 bertrand 5821:
1.15 bertrand 5822: if test "$ac_x_includes" != "no"; then
5823: if test x"$ac_x_includes" != x; then
5824: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5825: includeX="-I$ac_x_includes"
5826: fi
1.1 bertrand 5827: fi
1.15 bertrand 5828: if test "$ac_x_libraries" != "no"; then
5829: if test x"$ac_x_libraries" != x; then
5830: X_LIBS="$X_LIBS -L$ac_x_libraries"
5831: fi
1.1 bertrand 5832: fi
1.15 bertrand 5833:
5834: # Check whether --enable-optimization was given.
5835: if test "${enable_optimization+set}" = set; then :
5836: enableval=$enable_optimization;
5837: if test "$enableval" = "no"; then
5838: CFLAGS=
5839: FFLAGS=
5840: CXXFLAGS=
5841: FCFLAGS=
5842: else
5843: CFLAGS="$CFLAGS $enable_optimization"
5844: FFLAGS="$FFLAGS $enable_optimization"
5845: FCFLAGS="$FCFLAGS $enable_optimization"
1.1 bertrand 5846: fi
1.15 bertrand 5847: else
1.14 bertrand 5848:
1.15 bertrand 5849: CFLAGS="$CFLAGS $OPTIMISATION_C"
5850: FFLAGS="$FFLAGS $OPTIMISATION_F"
5851: FCFLAGS="$FCFLAGS $OPTIMISATION_F"
1.1 bertrand 5852:
5853:
1.15 bertrand 5854: fi
1.1 bertrand 5855:
5856:
1.30 bertrand 5857: # Check whether --enable-full-static was given.
5858: if test "${enable_full_static+set}" = set; then :
5859: enableval=$enable_full_static;
5860: if test "$enableval" = "no"; then
5861: STATIC=no
5862: else
5863: STATIC=yes
5864: fi
5865: else
5866: STATIC=no
5867: fi
5868:
5869:
1.15 bertrand 5870: # Check whether --enable-final-encoding was given.
5871: if test "${enable_final_encoding+set}" = set; then :
5872: enableval=$enable_final_encoding;
5873: if test "$enableval" = "no"; then
5874: FINAL_ENCODING="\$(shell locale charmap | \
5875: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
1.1 bertrand 5876: else
1.15 bertrand 5877: FINAL_ENCODING="$enable_final_encoding"
5878: fi
1.1 bertrand 5879: else
1.15 bertrand 5880: FINAL_ENCODING="\$(shell locale charmap | \
5881: \$(AWK) '/\=/ { print \$\$3;} !/\=/ { print \$\$1;}')"
5882: fi
5883:
1.14 bertrand 5884:
1.15 bertrand 5885: # Check whether --enable-tex was given.
5886: if test "${enable_tex+set}" = set; then :
5887: enableval=$enable_tex;
5888: if test "$enableval" = "no"; then
5889: TEX_SUPPORT=no
5890: else
5891: TEX_SUPPORT=yes
1.1 bertrand 5892: fi
1.15 bertrand 5893: else
5894: TEX_SUPPORT=guessed
5895: fi
5896:
1.14 bertrand 5897:
1.15 bertrand 5898: # Check whether --enable-vim was given.
5899: if test "${enable_vim+set}" = set; then :
5900: enableval=$enable_vim;
5901: if test "$enableval" = "no"; then
5902: VIM_SUPPORT=no
5903: else
5904: VIM_SUPPORT=yes
5905: fi
5906: else
5907: VIM_SUPPORT=guessed
1.1 bertrand 5908: fi
5909:
1.15 bertrand 5910:
5911: # Check whether --enable-embedded-gnuplot was given.
5912: if test "${enable_embedded_gnuplot+set}" = set; then :
5913: enableval=$enable_embedded_gnuplot;
5914: if test "$enableval" = "no"; then
5915: MYGNUPLOT=no
5916: else
5917: MYGNUPLOT=yes
5918: fi
1.1 bertrand 5919: else
5920:
1.15 bertrand 5921: MYGNUPLOT=yes
5922: fi
5923:
1.14 bertrand 5924:
1.15 bertrand 5925: # Check whether --enable-gnuplot was given.
5926: if test "${enable_gnuplot+set}" = set; then :
5927: enableval=$enable_gnuplot;
5928: if test "$enableval" = "no"; then
5929: GNUPLOT_SUPPORT=no
5930: MYGNUPLOT=no
5931: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5932: else
5933: GNUPLOT_SUPPORT=yes
5934: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5935: fi
1.1 bertrand 5936: else
5937:
1.15 bertrand 5938: if test "$MYGNUPLOT" = "yes"; then
5939: GNUPLOT_SUPPORT=yes
5940: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5941: else
5942: GNUPLOT_SUPPORT=guessed
5943: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5944: fi
1.1 bertrand 5945: fi
5946:
1.15 bertrand 5947:
5948: # Check whether --enable-motif was given.
5949: if test "${enable_motif+set}" = set; then :
5950: enableval=$enable_motif;
5951: if test "$enableval" = "no"; then
5952: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5953: else
5954: CFLAGS_ORIG=$CFLAGS
5955: LIBS_ORIG=$LIBS
5956: CFLAGS="$CFLAGS $X_CFLAGS"
5957: LIBS="$LIB $X_LIBS"
5958: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
5959: $as_echo_n "checking for main in -lXm... " >&6; }
5960: if test "${ac_cv_lib_Xm_main+set}" = set; then :
5961: $as_echo_n "(cached) " >&6
1.1 bertrand 5962: else
1.15 bertrand 5963: ac_check_lib_save_LIBS=$LIBS
5964: LIBS="-lXm $LIBS"
5965: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966: /* end confdefs.h. */
1.14 bertrand 5967:
5968:
1.1 bertrand 5969: int
5970: main ()
5971: {
1.15 bertrand 5972: return main ();
1.1 bertrand 5973: ;
5974: return 0;
5975: }
5976: _ACEOF
1.15 bertrand 5977: if ac_fn_c_try_link "$LINENO"; then :
5978: ac_cv_lib_Xm_main=yes
5979: else
5980: ac_cv_lib_Xm_main=no
5981: fi
5982: rm -f core conftest.err conftest.$ac_objext \
5983: conftest$ac_exeext conftest.$ac_ext
5984: LIBS=$ac_check_lib_save_LIBS
5985: fi
5986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
5987: $as_echo "$ac_cv_lib_Xm_main" >&6; }
5988: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
5989: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1 bertrand 5990: else
1.15 bertrand 5991: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5992: fi
1.14 bertrand 5993:
1.15 bertrand 5994: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
5995: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
5996: Motif flag is disabled.
5997: " >&5
5998: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
5999: Motif flag is disabled.
6000: " >&2;}
6001: fi
6002: LIBS=$LIBS_ORIG
6003: CFLAGS=$CFLAGS_ORIG
6004: fi
6005: else
6006: MOTIF_SUPPORT=guessed
1.1 bertrand 6007: fi
6008:
1.15 bertrand 6009:
6010: # Check whether --enable-experimental was given.
6011: if test "${enable_experimental+set}" = set; then :
6012: enableval=$enable_experimental;
6013: if test "$enableval" = "no"; then
6014: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6015: else
6016: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
6017: fi
1.14 bertrand 6018: else
1.15 bertrand 6019: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
6020: fi
6021:
1.1 bertrand 6022:
1.15 bertrand 6023: # Check whether --enable-debug was given.
6024: if test "${enable_debug+set}" = set; then :
6025: enableval=$enable_debug;
6026: if test "$enableval" = "no"; then
1.24 bertrand 6027: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
6028: MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"
1.15 bertrand 6029: else
1.24 bertrand 6030: DEBUG="-DDEBUG_MEMOIRE -UDEBUG_ERREURS"
6031: MALLOC=""
1.15 bertrand 6032: fi
6033: else
1.24 bertrand 6034: DEBUG="-UDEBUG_MEMOIRE -UDEBUG_ERREURS"
6035: MALLOC="\$(top_builddir)/ptmalloc3/libptmalloc3.a"
1.14 bertrand 6036: fi
1.1 bertrand 6037:
1.15 bertrand 6038:
6039: # Check whether --enable-profile was given.
6040: if test "${enable_profile+set}" = set; then :
6041: enableval=$enable_profile;
6042: if test "$enableval" = "no"; then
6043: PROFILAGE=""
6044: else
6045: PROFILAGE="-pg"
6046: fi
6047: else
6048: PROFILAGE=""
1.1 bertrand 6049: fi
6050:
1.14 bertrand 6051:
6052:
1.15 bertrand 6053:
6054: if test ! -d tools; then
6055: mkdir tools
6056: fi
6057: if test ! -d "$srcdir"/tools/$NCURSES; then
6058: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6059: (cd "$srcdir/tools" && tar -xf -)
6060: fi
6061: if test ! -d "$srcdir"/tools/$READLINE; then
6062: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6063: (cd "$srcdir/tools" && tar -xf -)
6064: fi
6065: if test ! -d "$srcdir"/tools/$UNITS; then
6066: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6067: (cd "$srcdir/tools" && tar -xf -)
6068: fi
6069: if test ! -d "$srcdir"/tools/$GSL; then
6070: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6071: (cd "$srcdir/tools" && tar -xf -)
1.33 ! bertrand 6072: if test $(uname) = "OS/2"; then
! 6073: (cd "$srcdir"/tools/$GSL; \
! 6074: TMP=$(mktemp tmp.XXXXXXXXXX); \
! 6075: sed -e '1,$s/\${1+"\$@"}/"\$@"/g' ltmain.sh > $TMP; \
! 6076: \mv -f $TMP ltmain.sh)
! 6077: fi
1.15 bertrand 6078: fi
6079: if test ! -d "$srcdir"/tools/$GPP; then
6080: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6081: (cd "$srcdir/tools" && tar -xf -)
6082: fi
6083: if test ! -d "$srcdir"/tools/$FILE; then
6084: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
6085: (cd "$srcdir/tools" && tar -xf - )
6086: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
6087: fi
6088: if test ! -d "$srcdir"/tools/$ICONV; then
6089: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6090: (cd "$srcdir/tools" && tar -xf -)
6091: fi
6092: if test ! -d "$srcdir"/tools/$SQLITE; then
6093: gunzip -c "$srcdir"/tools/$SQLITE.tar.gz | \
6094: (cd "$srcdir/tools" && tar -xf -)
1.31 bertrand 6095: (cd "$srcdir/tools"/$SQLITE && gunzip -c ../$SQLITE.diff.gz | patch -p1)
1.15 bertrand 6096: fi
6097: if test ! -d tools/$OPENSSL; then
6098: gunzip -c "$srcdir"/tools/$OPENSSL.tar.gz | \
6099: (cd tools && tar -xf -)
1.1 bertrand 6100: fi
6101:
6102:
6103:
1.15 bertrand 6104: # Check whether --enable-final-run-path was given.
6105: if test "${enable_final_run_path+set}" = set; then :
6106: enableval=$enable_final_run_path;
6107: if test "x$enable_final_run_path" = "x"; then
6108: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6109: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
6110: as_fn_error "\"You should specify final path !\"" "$LINENO" 5
6111: else
6112: RUNPATH="$enable_final_run_path"
6113: fi
1.1 bertrand 6114:
6115: else
1.15 bertrand 6116: RUNPATH="\${prefix}"
1.1 bertrand 6117:
6118: fi
6119:
1.15 bertrand 6120:
6121:
6122:
6123: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6124: $as_echo_n "checking whether ln -s works... " >&6; }
6125: LN_S=$as_ln_s
6126: if test "$LN_S" = "ln -s"; then
6127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6128: $as_echo "yes" >&6; }
6129: else
6130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6131: $as_echo "no, using $LN_S" >&6; }
1.1 bertrand 6132: fi
6133:
1.15 bertrand 6134: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6135: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6136: set x ${MAKE-make}
6137: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6138: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6139: $as_echo_n "(cached) " >&6
1.1 bertrand 6140: else
1.15 bertrand 6141: cat >conftest.make <<\_ACEOF
6142: SHELL = /bin/sh
6143: all:
6144: @echo '@@@%%%=$(MAKE)=@@@%%%'
1.14 bertrand 6145: _ACEOF
1.15 bertrand 6146: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6147: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6148: *@@@%%%=?*=@@@%%%*)
6149: eval ac_cv_prog_make_${ac_make}_set=yes;;
6150: *)
6151: eval ac_cv_prog_make_${ac_make}_set=no;;
1.14 bertrand 6152: esac
1.15 bertrand 6153: rm -f conftest.make
6154: fi
6155: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6157: $as_echo "yes" >&6; }
6158: SET_MAKE=
6159: else
6160: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161: $as_echo "no" >&6; }
6162: SET_MAKE="MAKE=${MAKE-make}"
6163: fi
1.1 bertrand 6164:
1.15 bertrand 6165: if test -n "$ac_tool_prefix"; then
6166: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6167: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6168: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6169: $as_echo_n "checking for $ac_word... " >&6; }
6170: if test "${ac_cv_prog_RANLIB+set}" = set; then :
6171: $as_echo_n "(cached) " >&6
6172: else
6173: if test -n "$RANLIB"; then
6174: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1.1 bertrand 6175: else
1.15 bertrand 6176: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177: for as_dir in $PATH
6178: do
6179: IFS=$as_save_IFS
6180: test -z "$as_dir" && as_dir=.
6181: for ac_exec_ext in '' $ac_executable_extensions; do
6182: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6183: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6184: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6185: break 2
6186: fi
6187: done
6188: done
6189: IFS=$as_save_IFS
1.1 bertrand 6190:
6191: fi
1.15 bertrand 6192: fi
6193: RANLIB=$ac_cv_prog_RANLIB
6194: if test -n "$RANLIB"; then
6195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6196: $as_echo "$RANLIB" >&6; }
6197: else
6198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6199: $as_echo "no" >&6; }
6200: fi
6201:
1.1 bertrand 6202:
1.15 bertrand 6203: fi
6204: if test -z "$ac_cv_prog_RANLIB"; then
6205: ac_ct_RANLIB=$RANLIB
6206: # Extract the first word of "ranlib", so it can be a program name with args.
6207: set dummy ranlib; ac_word=$2
6208: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6209: $as_echo_n "checking for $ac_word... " >&6; }
6210: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6211: $as_echo_n "(cached) " >&6
6212: else
6213: if test -n "$ac_ct_RANLIB"; then
6214: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6215: else
6216: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217: for as_dir in $PATH
6218: do
6219: IFS=$as_save_IFS
6220: test -z "$as_dir" && as_dir=.
6221: for ac_exec_ext in '' $ac_executable_extensions; do
6222: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223: ac_cv_prog_ac_ct_RANLIB="ranlib"
6224: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6225: break 2
6226: fi
6227: done
1.14 bertrand 6228: done
1.15 bertrand 6229: IFS=$as_save_IFS
6230:
6231: fi
6232: fi
6233: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6234: if test -n "$ac_ct_RANLIB"; then
6235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6236: $as_echo "$ac_ct_RANLIB" >&6; }
6237: else
6238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239: $as_echo "no" >&6; }
6240: fi
6241:
6242: if test "x$ac_ct_RANLIB" = x; then
6243: RANLIB=":"
6244: else
6245: case $cross_compiling:$ac_tool_warned in
6246: yes:)
6247: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6248: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6249: ac_tool_warned=yes ;;
6250: esac
6251: RANLIB=$ac_ct_RANLIB
6252: fi
1.14 bertrand 6253: else
1.15 bertrand 6254: RANLIB="$ac_cv_prog_RANLIB"
6255: fi
1.1 bertrand 6256:
6257:
1.15 bertrand 6258: # Extract the first word of "nawk", so it can be a program name with args.
6259: set dummy nawk; ac_word=$2
6260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6261: $as_echo_n "checking for $ac_word... " >&6; }
6262: if test "${ac_cv_prog_AWK+set}" = set; then :
6263: $as_echo_n "(cached) " >&6
6264: else
6265: if test -n "$AWK"; then
6266: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6267: else
6268: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269: for as_dir in $PATH
6270: do
6271: IFS=$as_save_IFS
6272: test -z "$as_dir" && as_dir=.
6273: for ac_exec_ext in '' $ac_executable_extensions; do
6274: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6275: ac_cv_prog_AWK="yes"
6276: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277: break 2
6278: fi
6279: done
6280: done
6281: IFS=$as_save_IFS
1.1 bertrand 6282:
1.15 bertrand 6283: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6284: fi
6285: fi
6286: AWK=$ac_cv_prog_AWK
6287: if test -n "$AWK"; then
6288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6289: $as_echo "$AWK" >&6; }
1.1 bertrand 6290: else
1.15 bertrand 6291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6292: $as_echo "no" >&6; }
6293: fi
6294:
1.1 bertrand 6295:
1.15 bertrand 6296: if test "$AWK" = no; then
6297: as_fn_error "Can not find nawk !" "$LINENO" 5
1.1 bertrand 6298: fi
6299:
1.15 bertrand 6300: # Extract the first word of "sed", so it can be a program name with args.
6301: set dummy sed; ac_word=$2
6302: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303: $as_echo_n "checking for $ac_word... " >&6; }
6304: if test "${ac_cv_prog_SED+set}" = set; then :
6305: $as_echo_n "(cached) " >&6
6306: else
6307: if test -n "$SED"; then
6308: ac_cv_prog_SED="$SED" # Let the user override the test.
6309: else
6310: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311: for as_dir in $PATH
6312: do
6313: IFS=$as_save_IFS
6314: test -z "$as_dir" && as_dir=.
6315: for ac_exec_ext in '' $ac_executable_extensions; do
6316: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317: ac_cv_prog_SED="yes"
6318: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319: break 2
6320: fi
6321: done
1.14 bertrand 6322: done
1.15 bertrand 6323: IFS=$as_save_IFS
1.1 bertrand 6324:
1.15 bertrand 6325: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
1.14 bertrand 6326: fi
1.15 bertrand 6327: fi
6328: SED=$ac_cv_prog_SED
6329: if test -n "$SED"; then
6330: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6331: $as_echo "$SED" >&6; }
6332: else
6333: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334: $as_echo "no" >&6; }
1.14 bertrand 6335: fi
1.1 bertrand 6336:
6337:
1.15 bertrand 6338: if test "$SED" = no; then
6339: as_fn_error "Can not find sed !" "$LINENO" 5
6340: fi
1.14 bertrand 6341:
1.15 bertrand 6342: if test "$TEX_SUPPORT" = guessed; then
6343: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
1.1 bertrand 6344:
1.15 bertrand 6345: # Extract the first word of "tex", so it can be a program name with args.
6346: set dummy tex; ac_word=$2
6347: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6348: $as_echo_n "checking for $ac_word... " >&6; }
6349: if test "${ac_cv_prog_TEX+set}" = set; then :
6350: $as_echo_n "(cached) " >&6
1.1 bertrand 6351: else
1.15 bertrand 6352: if test -n "$TEX"; then
6353: ac_cv_prog_TEX="$TEX" # Let the user override the test.
1.1 bertrand 6354: else
1.15 bertrand 6355: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356: for as_dir in $PATH
6357: do
6358: IFS=$as_save_IFS
6359: test -z "$as_dir" && as_dir=.
6360: for ac_exec_ext in '' $ac_executable_extensions; do
6361: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6362: ac_cv_prog_TEX="yes"
6363: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6364: break 2
6365: fi
6366: done
6367: done
6368: IFS=$as_save_IFS
1.1 bertrand 6369:
1.15 bertrand 6370: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
1.1 bertrand 6371: fi
6372: fi
1.15 bertrand 6373: TEX=$ac_cv_prog_TEX
6374: if test -n "$TEX"; then
6375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6376: $as_echo "$TEX" >&6; }
6377: else
6378: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379: $as_echo "no" >&6; }
1.1 bertrand 6380: fi
1.14 bertrand 6381:
6382:
1.15 bertrand 6383: if test "$TEX" = no; then
6384: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6385: Download at http://tex.loria.fr/
6386: " >&5
6387: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6388: Download at http://tex.loria.fr/
6389: " >&2;}
6390: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6391: fi
1.14 bertrand 6392:
1.15 bertrand 6393: # Extract the first word of "latex", so it can be a program name with args.
6394: set dummy latex; ac_word=$2
6395: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396: $as_echo_n "checking for $ac_word... " >&6; }
6397: if test "${ac_cv_prog_LATEX+set}" = set; then :
6398: $as_echo_n "(cached) " >&6
1.1 bertrand 6399: else
1.15 bertrand 6400: if test -n "$LATEX"; then
6401: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
1.1 bertrand 6402: else
1.15 bertrand 6403: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404: for as_dir in $PATH
6405: do
6406: IFS=$as_save_IFS
6407: test -z "$as_dir" && as_dir=.
6408: for ac_exec_ext in '' $ac_executable_extensions; do
6409: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410: ac_cv_prog_LATEX="yes"
6411: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412: break 2
6413: fi
6414: done
6415: done
6416: IFS=$as_save_IFS
1.1 bertrand 6417:
1.15 bertrand 6418: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
1.1 bertrand 6419: fi
6420: fi
1.15 bertrand 6421: LATEX=$ac_cv_prog_LATEX
6422: if test -n "$LATEX"; then
6423: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6424: $as_echo "$LATEX" >&6; }
6425: else
6426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427: $as_echo "no" >&6; }
6428: fi
1.14 bertrand 6429:
1.1 bertrand 6430:
1.15 bertrand 6431: if test "$LATEX" = no; then
6432: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6433: Download at http://tex.loria.fr/
6434: " >&5
6435: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6436: Download at http://tex.loria.fr/
6437: " >&2;}
6438: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6439: fi
1.1 bertrand 6440:
1.15 bertrand 6441: # Extract the first word of "dvips", so it can be a program name with args.
6442: set dummy dvips; ac_word=$2
6443: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444: $as_echo_n "checking for $ac_word... " >&6; }
6445: if test "${ac_cv_prog_DVIPS+set}" = set; then :
6446: $as_echo_n "(cached) " >&6
6447: else
6448: if test -n "$DVIPS"; then
6449: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6450: else
6451: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452: for as_dir in $PATH
6453: do
6454: IFS=$as_save_IFS
6455: test -z "$as_dir" && as_dir=.
6456: for ac_exec_ext in '' $ac_executable_extensions; do
6457: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458: ac_cv_prog_DVIPS="yes"
6459: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460: break 2
6461: fi
6462: done
6463: done
6464: IFS=$as_save_IFS
1.1 bertrand 6465:
1.15 bertrand 6466: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6467: fi
1.1 bertrand 6468: fi
1.15 bertrand 6469: DVIPS=$ac_cv_prog_DVIPS
6470: if test -n "$DVIPS"; then
6471: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6472: $as_echo "$DVIPS" >&6; }
1.1 bertrand 6473: else
1.15 bertrand 6474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475: $as_echo "no" >&6; }
6476: fi
1.1 bertrand 6477:
6478:
1.15 bertrand 6479: if test "$DVIPS" = no; then
6480: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6481: Download at http://tex.loria.fr/
6482: " >&5
6483: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6484: Download at http://tex.loria.fr/
6485: " >&2;}
6486: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6487: fi
1.1 bertrand 6488:
1.15 bertrand 6489: # Extract the first word of "gs", so it can be a program name with args.
6490: set dummy gs; ac_word=$2
6491: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492: $as_echo_n "checking for $ac_word... " >&6; }
6493: if test "${ac_cv_prog_GS+set}" = set; then :
6494: $as_echo_n "(cached) " >&6
6495: else
6496: if test -n "$GS"; then
6497: ac_cv_prog_GS="$GS" # Let the user override the test.
1.1 bertrand 6498: else
1.15 bertrand 6499: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6500: for as_dir in $PATH
6501: do
6502: IFS=$as_save_IFS
6503: test -z "$as_dir" && as_dir=.
6504: for ac_exec_ext in '' $ac_executable_extensions; do
6505: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6506: ac_cv_prog_GS="yes"
6507: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508: break 2
6509: fi
6510: done
6511: done
6512: IFS=$as_save_IFS
1.1 bertrand 6513:
1.15 bertrand 6514: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6515: fi
6516: fi
6517: GS=$ac_cv_prog_GS
6518: if test -n "$GS"; then
6519: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6520: $as_echo "$GS" >&6; }
6521: else
6522: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523: $as_echo "no" >&6; }
1.1 bertrand 6524: fi
6525:
1.15 bertrand 6526:
6527: if test "$GS" = no; then
6528: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6529: Download at http://ftp.lip6.fr/
6530: " >&5
6531: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6532: Download at http://ftp.lip6.fr/
6533: " >&2;}
6534: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6535: fi
6536:
6537: # Extract the first word of "gv", so it can be a program name with args.
6538: set dummy gv; ac_word=$2
6539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540: $as_echo_n "checking for $ac_word... " >&6; }
6541: if test "${ac_cv_prog_GV+set}" = set; then :
6542: $as_echo_n "(cached) " >&6
6543: else
6544: if test -n "$GV"; then
6545: ac_cv_prog_GV="$GV" # Let the user override the test.
6546: else
6547: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548: for as_dir in $PATH
6549: do
6550: IFS=$as_save_IFS
6551: test -z "$as_dir" && as_dir=.
6552: for ac_exec_ext in '' $ac_executable_extensions; do
6553: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554: ac_cv_prog_GV="yes"
6555: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556: break 2
6557: fi
6558: done
1.14 bertrand 6559: done
1.15 bertrand 6560: IFS=$as_save_IFS
1.1 bertrand 6561:
1.15 bertrand 6562: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6563: fi
1.1 bertrand 6564: fi
1.15 bertrand 6565: GV=$ac_cv_prog_GV
6566: if test -n "$GV"; then
6567: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6568: $as_echo "$GV" >&6; }
6569: else
6570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571: $as_echo "no" >&6; }
1.1 bertrand 6572: fi
1.14 bertrand 6573:
6574:
1.15 bertrand 6575: if test "$GV" = no; then
6576: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6577: Download at http://ftp.lip6.fr/
6578: " >&5
6579: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6580: Download at http://ftp.lip6.fr/
6581: " >&2;}
6582: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6583: fi
1.1 bertrand 6584: else
1.15 bertrand 6585: if test "$TEX_SUPPORT" = no; then
6586: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6587: else
6588: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6589: fi
1.1 bertrand 6590: fi
6591:
1.15 bertrand 6592: if test "$GNUPLOT_SUPPORT" = guessed; then
6593: # Extract the first word of "gnuplot", so it can be a program name with args.
6594: set dummy gnuplot; ac_word=$2
6595: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6596: $as_echo_n "checking for $ac_word... " >&6; }
6597: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
6598: $as_echo_n "(cached) " >&6
1.14 bertrand 6599: else
1.15 bertrand 6600: if test -n "$GNUPLOT_P"; then
6601: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
1.1 bertrand 6602: else
1.15 bertrand 6603: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6604: for as_dir in $PATH
6605: do
6606: IFS=$as_save_IFS
6607: test -z "$as_dir" && as_dir=.
6608: for ac_exec_ext in '' $ac_executable_extensions; do
6609: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6610: ac_cv_prog_GNUPLOT_P="yes"
6611: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6612: break 2
6613: fi
6614: done
6615: done
6616: IFS=$as_save_IFS
1.1 bertrand 6617:
1.15 bertrand 6618: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
1.1 bertrand 6619: fi
6620: fi
1.15 bertrand 6621: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6622: if test -n "$GNUPLOT_P"; then
6623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6624: $as_echo "$GNUPLOT_P" >&6; }
6625: else
6626: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627: $as_echo "no" >&6; }
1.1 bertrand 6628: fi
6629:
6630:
1.15 bertrand 6631: if test "$GNUPLOT_P" = no; then
6632: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6633: Download at http://www.gnuplot.vt.edu/
6634: " >&5
6635: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6636: Download at http://www.gnuplot.vt.edu/
6637: " >&2;}
6638: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6639: else
6640: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6641: fi
6642: else
6643: if test "$GNUPLOT_SUPPORT" = no; then
6644: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6645: else
6646: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6647: fi
6648: fi
1.1 bertrand 6649:
1.15 bertrand 6650: if test "$VIM_SUPPORT" = guessed; then
6651: # Extract the first word of "vim", so it can be a program name with args.
6652: set dummy vim; ac_word=$2
6653: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654: $as_echo_n "checking for $ac_word... " >&6; }
6655: if test "${ac_cv_prog_VIM+set}" = set; then :
6656: $as_echo_n "(cached) " >&6
1.1 bertrand 6657: else
1.15 bertrand 6658: if test -n "$VIM"; then
6659: ac_cv_prog_VIM="$VIM" # Let the user override the test.
1.1 bertrand 6660: else
1.15 bertrand 6661: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662: for as_dir in $PATH
6663: do
6664: IFS=$as_save_IFS
6665: test -z "$as_dir" && as_dir=.
6666: for ac_exec_ext in '' $ac_executable_extensions; do
6667: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6668: ac_cv_prog_VIM="yes"
6669: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670: break 2
6671: fi
6672: done
6673: done
6674: IFS=$as_save_IFS
1.1 bertrand 6675:
1.15 bertrand 6676: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
1.1 bertrand 6677: fi
6678: fi
1.15 bertrand 6679: VIM=$ac_cv_prog_VIM
6680: if test -n "$VIM"; then
6681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6682: $as_echo "$VIM" >&6; }
1.1 bertrand 6683: else
1.15 bertrand 6684: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685: $as_echo "no" >&6; }
6686: fi
1.1 bertrand 6687:
6688:
1.15 bertrand 6689: if test "$VIM" = no; then
6690: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6691: Download at http://www.vim.org/
6692: " >&5
6693: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6694: Download at http://www.vim.org/
6695: " >&2;}
6696: VIM_SUPPORT="-UVIM_SUPPORT"
6697: else
6698: VIM_SUPPORT="-DVIM_SUPPORT"
6699: fi
1.1 bertrand 6700: else
1.15 bertrand 6701: if test "$VIM_SUPPORT" = no; then
6702: VIM_SUPPORT="-UVIM_SUPPORT"
6703: else
6704: VIM_SUPPORT="-DVIM_SUPPORT"
6705: fi
1.1 bertrand 6706: fi
6707:
1.15 bertrand 6708: if test "$MOTIF_SUPPORT" = guessed; then
6709: CFLAGS_ORIG=$CFLAGS
6710: LIBS_ORIG=$LIBS
6711: CFLAGS="$CFLAGS $X_CFLAGS"
6712: LIBS="$LIB $X_LIBS"
6713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
6714: $as_echo_n "checking for main in -lXm... " >&6; }
6715: if test "${ac_cv_lib_Xm_main+set}" = set; then :
6716: $as_echo_n "(cached) " >&6
1.1 bertrand 6717: else
1.15 bertrand 6718: ac_check_lib_save_LIBS=$LIBS
6719: LIBS="-lXm $LIBS"
6720: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721: /* end confdefs.h. */
1.1 bertrand 6722:
6723:
1.14 bertrand 6724: int
6725: main ()
6726: {
1.15 bertrand 6727: return main ();
1.14 bertrand 6728: ;
6729: return 0;
6730: }
6731: _ACEOF
1.15 bertrand 6732: if ac_fn_c_try_link "$LINENO"; then :
6733: ac_cv_lib_Xm_main=yes
1.1 bertrand 6734: else
1.15 bertrand 6735: ac_cv_lib_Xm_main=no
6736: fi
6737: rm -f core conftest.err conftest.$ac_objext \
6738: conftest$ac_exeext conftest.$ac_ext
6739: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 6740: fi
1.15 bertrand 6741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6742: $as_echo "$ac_cv_lib_Xm_main" >&6; }
6743: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
6744: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
1.1 bertrand 6745: else
1.15 bertrand 6746: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1 bertrand 6747: fi
1.14 bertrand 6748:
1.15 bertrand 6749: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6750: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
6751: Motif flag is disabled.
6752: " >&5
6753: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
6754: Motif flag is disabled.
6755: " >&2;}
6756: fi
6757: LIBS=$LIBS_ORIG
6758: CFLAGS=$CFLAGS_ORIG
1.1 bertrand 6759: fi
6760:
1.15 bertrand 6761: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6762: CFLAGS_ORIG=$CFLAGS
6763: LIBS_ORIG=$LIBS
6764: CFLAGS="$CFLAGS $X_CFLAGS"
6765: LIBS="$LIB $X_LIBS"
6766: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
6767: $as_echo_n "checking for main in -lXpm... " >&6; }
6768: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
6769: $as_echo_n "(cached) " >&6
6770: else
6771: ac_check_lib_save_LIBS=$LIBS
6772: LIBS="-lXpm $LIBS"
6773: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 6774: /* end confdefs.h. */
6775:
1.1 bertrand 6776:
6777: int
6778: main ()
6779: {
1.15 bertrand 6780: return main ();
1.1 bertrand 6781: ;
6782: return 0;
6783: }
6784: _ACEOF
1.15 bertrand 6785: if ac_fn_c_try_link "$LINENO"; then :
6786: ac_cv_lib_Xpm_main=yes
1.1 bertrand 6787: else
1.15 bertrand 6788: ac_cv_lib_Xpm_main=no
6789: fi
6790: rm -f core conftest.err conftest.$ac_objext \
6791: conftest$ac_exeext conftest.$ac_ext
6792: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 6793: fi
1.15 bertrand 6794: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
6795: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
6796: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
6797: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6798: else
6799: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
1.1 bertrand 6800: fi
1.15 bertrand 6801:
6802: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6803: libX="$X_LIBS -lXm -lXpm -lXt -lX11"
6804: else
6805: libX=""
6806: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
6807: Motif flag is disabled.
6808: " >&5
6809: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
6810: Motif flag is disabled.
6811: " >&2;}
6812: fi
6813: LIBS=$LIBS_ORIG
6814: CFLAGS=$CFLAGS_ORIG
6815: else
6816: libX=""
1.1 bertrand 6817: fi
1.14 bertrand 6818:
6819:
6820:
1.1 bertrand 6821:
6822:
1.15 bertrand 6823:
6824:
6825:
6826:
6827:
6828:
6829: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
6830:
6831:
6832: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6833: $as_echo_n "checking for main in -lm... " >&6; }
6834: if test "${ac_cv_lib_m_main+set}" = set; then :
6835: $as_echo_n "(cached) " >&6
1.1 bertrand 6836: else
1.15 bertrand 6837: ac_check_lib_save_LIBS=$LIBS
6838: LIBS="-lm $LIBS"
6839: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 6840: /* end confdefs.h. */
1.15 bertrand 6841:
6842:
1.1 bertrand 6843: int
6844: main ()
6845: {
1.15 bertrand 6846: return main ();
1.1 bertrand 6847: ;
6848: return 0;
6849: }
6850: _ACEOF
1.15 bertrand 6851: if ac_fn_c_try_link "$LINENO"; then :
6852: ac_cv_lib_m_main=yes
1.1 bertrand 6853: else
1.15 bertrand 6854: ac_cv_lib_m_main=no
6855: fi
6856: rm -f core conftest.err conftest.$ac_objext \
6857: conftest$ac_exeext conftest.$ac_ext
6858: LIBS=$ac_check_lib_save_LIBS
6859: fi
6860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6861: $as_echo "$ac_cv_lib_m_main" >&6; }
6862: if test "x$ac_cv_lib_m_main" = x""yes; then :
6863: cat >>confdefs.h <<_ACEOF
6864: #define HAVE_LIBM 1
6865: _ACEOF
1.14 bertrand 6866:
1.15 bertrand 6867: LIBS="-lm $LIBS"
1.1 bertrand 6868:
1.15 bertrand 6869: else
6870: as_fn_error "Can not find libm !" "$LINENO" 5
1.1 bertrand 6871: fi
6872:
1.15 bertrand 6873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
6874: $as_echo_n "checking for main in -lpthread... " >&6; }
6875: if test "${ac_cv_lib_pthread_main+set}" = set; then :
6876: $as_echo_n "(cached) " >&6
1.1 bertrand 6877: else
1.15 bertrand 6878: ac_check_lib_save_LIBS=$LIBS
6879: LIBS="-lpthread $LIBS"
6880: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 6881: /* end confdefs.h. */
1.15 bertrand 6882:
6883:
1.14 bertrand 6884: int
6885: main ()
6886: {
1.15 bertrand 6887: return main ();
1.14 bertrand 6888: ;
6889: return 0;
6890: }
6891: _ACEOF
1.15 bertrand 6892: if ac_fn_c_try_link "$LINENO"; then :
6893: ac_cv_lib_pthread_main=yes
6894: else
6895: ac_cv_lib_pthread_main=no
6896: fi
6897: rm -f core conftest.err conftest.$ac_objext \
6898: conftest$ac_exeext conftest.$ac_ext
6899: LIBS=$ac_check_lib_save_LIBS
6900: fi
6901: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
6902: $as_echo "$ac_cv_lib_pthread_main" >&6; }
6903: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
6904: cat >>confdefs.h <<_ACEOF
6905: #define HAVE_LIBPTHREAD 1
1.14 bertrand 6906: _ACEOF
6907:
1.15 bertrand 6908: LIBS="-lpthread $LIBS"
6909:
1.1 bertrand 6910: else
1.15 bertrand 6911: as_fn_error "Can not find libpthread !" "$LINENO" 5
6912: fi
1.14 bertrand 6913:
1.1 bertrand 6914:
1.33 ! bertrand 6915: ac_fn_c_check_type "$LINENO" "union semun" "ac_cv_type_union_semun" "
! 6916: #include <sys/sem.h>
! 6917:
! 6918: "
! 6919: if test "x$ac_cv_type_union_semun" = x""yes; then :
! 6920: SEMUN=-DUNION_SEMUN
! 6921: else
! 6922: SEMUN=-UUNION_SEMUN
! 6923: fi
! 6924:
! 6925:
1.15 bertrand 6926: if test "$CYGWIN" != yes; then
6927: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
6928: $as_echo_n "checking for dlopen in -ldl... " >&6; }
6929: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
6930: $as_echo_n "(cached) " >&6
1.1 bertrand 6931: else
1.15 bertrand 6932: ac_check_lib_save_LIBS=$LIBS
6933: LIBS="-ldl $LIBS"
6934: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 6935: /* end confdefs.h. */
6936:
1.15 bertrand 6937: /* Override any GCC internal prototype to avoid an error.
6938: Use char because int might match the return type of a GCC
6939: builtin and then its argument prototype would still apply. */
6940: #ifdef __cplusplus
6941: extern "C"
6942: #endif
6943: char dlopen ();
1.1 bertrand 6944: int
6945: main ()
6946: {
1.15 bertrand 6947: return dlopen ();
1.1 bertrand 6948: ;
6949: return 0;
6950: }
6951: _ACEOF
1.15 bertrand 6952: if ac_fn_c_try_link "$LINENO"; then :
6953: ac_cv_lib_dl_dlopen=yes
1.1 bertrand 6954: else
1.15 bertrand 6955: ac_cv_lib_dl_dlopen=no
6956: fi
6957: rm -f core conftest.err conftest.$ac_objext \
6958: conftest$ac_exeext conftest.$ac_ext
6959: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 6960: fi
1.15 bertrand 6961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
6962: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
6963: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
6964: LIBS="$LIBS -ldl"
1.14 bertrand 6965: else
1.15 bertrand 6966: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
6967: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
1.1 bertrand 6968: fi
6969:
1.14 bertrand 6970: fi
1.1 bertrand 6971:
1.15 bertrand 6972: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
6973: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
6974: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
6975: $as_echo_n "(cached) " >&6
6976: else
6977: ac_check_lib_save_LIBS=$LIBS
6978: LIBS="-lrt $LIBS"
6979: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 6980: /* end confdefs.h. */
1.15 bertrand 6981:
6982: /* Override any GCC internal prototype to avoid an error.
6983: Use char because int might match the return type of a GCC
6984: builtin and then its argument prototype would still apply. */
6985: #ifdef __cplusplus
6986: extern "C"
6987: #endif
6988: char nanosleep ();
1.1 bertrand 6989: int
6990: main ()
6991: {
1.15 bertrand 6992: return nanosleep ();
1.1 bertrand 6993: ;
6994: return 0;
6995: }
6996: _ACEOF
1.15 bertrand 6997: if ac_fn_c_try_link "$LINENO"; then :
6998: ac_cv_lib_rt_nanosleep=yes
6999: else
7000: ac_cv_lib_rt_nanosleep=no
7001: fi
7002: rm -f core conftest.err conftest.$ac_objext \
7003: conftest$ac_exeext conftest.$ac_ext
7004: LIBS=$ac_check_lib_save_LIBS
7005: fi
7006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7007: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7008: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
7009: LIBS="$LIBS -lrt"
1.1 bertrand 7010: else
1.15 bertrand 7011: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7012: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7013: fi
1.1 bertrand 7014:
7015:
1.15 bertrand 7016: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7017: $as_echo_n "checking for bind in -lsocket... " >&6; }
7018: if test "${ac_cv_lib_socket_bind+set}" = set; then :
7019: $as_echo_n "(cached) " >&6
1.1 bertrand 7020: else
1.15 bertrand 7021: ac_check_lib_save_LIBS=$LIBS
7022: LIBS="-lsocket $LIBS"
7023: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7024: /* end confdefs.h. */
1.15 bertrand 7025:
7026: /* Override any GCC internal prototype to avoid an error.
7027: Use char because int might match the return type of a GCC
7028: builtin and then its argument prototype would still apply. */
7029: #ifdef __cplusplus
7030: extern "C"
7031: #endif
7032: char bind ();
1.1 bertrand 7033: int
7034: main ()
7035: {
1.15 bertrand 7036: return bind ();
1.1 bertrand 7037: ;
7038: return 0;
7039: }
7040: _ACEOF
1.15 bertrand 7041: if ac_fn_c_try_link "$LINENO"; then :
7042: ac_cv_lib_socket_bind=yes
1.1 bertrand 7043: else
1.15 bertrand 7044: ac_cv_lib_socket_bind=no
1.1 bertrand 7045: fi
1.15 bertrand 7046: rm -f core conftest.err conftest.$ac_objext \
7047: conftest$ac_exeext conftest.$ac_ext
7048: LIBS=$ac_check_lib_save_LIBS
1.1 bertrand 7049: fi
1.15 bertrand 7050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7051: $as_echo "$ac_cv_lib_socket_bind" >&6; }
7052: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
7053: LIBS="$LIBS -lsocket"
7054: else
7055: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7056: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
1.1 bertrand 7057: fi
7058:
7059:
1.15 bertrand 7060: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7061:
7062: # Check whether --with-mysql was given.
7063: if test "${with_mysql+set}" = set; then :
7064: withval=$with_mysql;
7065: else
7066: with_mysql=check
7067: fi
1.14 bertrand 7068:
7069:
1.15 bertrand 7070: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7071: libMySQLinc="-I/usr/include"
1.30 bertrand 7072: libMySQLlib="/usr/lib"
1.14 bertrand 7073:
1.15 bertrand 7074: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7075: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7076: saved_CFLAGS="$CFLAGS"
1.30 bertrand 7077: CFLAGS="$CFLAGS -L/$libMySQLinc"
1.15 bertrand 7078: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7079: /* end confdefs.h. */
1.15 bertrand 7080: #include "mysql.h"
1.1 bertrand 7081: int
7082: main ()
7083: {
1.15 bertrand 7084:
1.1 bertrand 7085: ;
7086: return 0;
7087: }
7088: _ACEOF
1.15 bertrand 7089: if ac_fn_c_try_compile "$LINENO"; then :
7090: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7091: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7092: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7093: else
1.15 bertrand 7094: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1 bertrand 7096: fi
1.14 bertrand 7097: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7098: CFLAGS=$saved_CFLAGS
1.1 bertrand 7099:
1.15 bertrand 7100: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7101: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7102: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7103: saved_CFLAGS="$CFLAGS"
7104: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7105: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7106: /* end confdefs.h. */
1.15 bertrand 7107: #include "mysql.h"
1.1 bertrand 7108: int
7109: main ()
7110: {
7111:
7112: ;
7113: return 0;
7114: }
7115: _ACEOF
1.15 bertrand 7116: if ac_fn_c_try_compile "$LINENO"; then :
7117: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7118: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7119: libMySQLinc=$libMySQLinc
7120: else
7121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7123: fi
7124: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125: CFLAGS=$saved_CFLAGS
7126: libMySQLinc=$libMySQLinc/mysql
7127: fi
7128:
7129: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7130: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7131: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7132: saved_CFLAGS="$CFLAGS"
7133: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7134: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7135: /* end confdefs.h. */
1.15 bertrand 7136: #include "mysql.h"
1.1 bertrand 7137: int
7138: main ()
7139: {
7140:
7141: ;
7142: return 0;
7143: }
7144: _ACEOF
1.15 bertrand 7145: if ac_fn_c_try_compile "$LINENO"; then :
7146: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7147: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7148: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7149: else
1.15 bertrand 7150: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.1 bertrand 7152: fi
7153: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7154: CFLAGS=$saved_CFLAGS
7155: libMySQLinc=$libMySQLinc/../local/include
7156: libMySQLlib=$libMySQLlib/../local/lib
7157: fi
1.1 bertrand 7158:
1.15 bertrand 7159: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7161: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7162: saved_CFLAGS="$CFLAGS"
7163: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7164: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7165: /* end confdefs.h. */
1.15 bertrand 7166: #include "mysql.h"
1.1 bertrand 7167: int
7168: main ()
7169: {
7170:
7171: ;
7172: return 0;
7173: }
7174: _ACEOF
1.15 bertrand 7175: if ac_fn_c_try_compile "$LINENO"; then :
7176: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7177: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7178: libMySQLinc=$libMySQLinc/mysql
7179: else
7180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7182: fi
7183: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7184: CFLAGS=$saved_CFLAGS
7185: libMySQLinc=$libMySQLinc/../local/include/mysql
7186: libMySQLlib=$libMySQLlib/../local/lib
7187: fi
7188: else
7189: if test "x$with_mysql" != xno; then
7190: libMySQLinc="-I$with_mysql/include"
1.30 bertrand 7191: libMySQLlib="$with_mysql/lib"
1.15 bertrand 7192:
7193: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7194: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7195: saved_CFLAGS="$CFLAGS"
7196: CFLAGS="$CFLAGS $libMySQLinc"
7197: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7198: /* end confdefs.h. */
1.15 bertrand 7199: #include "mysql.h"
1.1 bertrand 7200: int
7201: main ()
7202: {
7203:
7204: ;
7205: return 0;
7206: }
7207: _ACEOF
1.15 bertrand 7208: if ac_fn_c_try_compile "$LINENO"; then :
7209: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7210: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7211: libMySQLinc=$libMySQLinc/mysql
1.1 bertrand 7212: else
1.15 bertrand 7213: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
1.14 bertrand 7215: fi
7216: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7217: CFLAGS=$saved_CFLAGS
1.1 bertrand 7218:
1.15 bertrand 7219: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7220: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7221: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7222: saved_CFLAGS="$CFLAGS"
7223: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7224: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7225: /* end confdefs.h. */
1.15 bertrand 7226: #include "mysql.h"
1.1 bertrand 7227: int
7228: main ()
7229: {
7230:
7231: ;
7232: return 0;
7233: }
7234: _ACEOF
1.15 bertrand 7235: if ac_fn_c_try_compile "$LINENO"; then :
7236: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7237: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7238: libMySQLinc=$libMySQLinc
1.1 bertrand 7239: else
1.15 bertrand 7240: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7241: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7242: fi
7243: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244: CFLAGS=$saved_CFLAGS
7245: libMySQLinc=$libMySQLinc/mysql
7246: fi
7247: else
7248: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7249: fi
7250: fi
1.14 bertrand 7251:
1.15 bertrand 7252: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7253: MYSQL_LIB=no
1.14 bertrand 7254:
1.15 bertrand 7255: if test $MYSQL_LIB = no; then
7256: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7257: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7258: saved_LIBS="$LIBS"
1.30 bertrand 7259: if test $STATIC = no; then
7260: LIBS="$LIBS -L/$libMySQLlib -lmysqlclient_r $libMySQLinc"
7261: else
7262: LIBS="$LIBS $libMySQLlib/libmysqlclient_r.a -lz $libMySQLinc"
7263: fi
1.15 bertrand 7264: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7265: /* end confdefs.h. */
1.15 bertrand 7266: #include "mysql.h"
1.1 bertrand 7267: int
7268: main ()
7269: {
1.15 bertrand 7270: MYSQL mysql; mysql_init(&mysql);
1.1 bertrand 7271: ;
7272: return 0;
7273: }
7274: _ACEOF
1.15 bertrand 7275: if ac_fn_c_try_link "$LINENO"; then :
7276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7277: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
1.1 bertrand 7278: else
1.15 bertrand 7279: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280: $as_echo "no" >&6; }; MYSQL_LIB="no"
7281: fi
7282: rm -f core conftest.err conftest.$ac_objext \
7283: conftest$ac_exeext conftest.$ac_ext
7284: LIBS=$saved_LIBS;
1.30 bertrand 7285: if test $STATIC = no; then
7286: libMySQLlib="-L/$libMySQLlib -lmysqlclient_r"
7287: else
7288: libMySQLlib="$libMySQLlib/libmysqlclient_r.a"
7289: EXT_SQL="$EXT_SQL $libMySQLlib"
7290: fi
1.15 bertrand 7291: fi
1.14 bertrand 7292:
1.15 bertrand 7293: if test $MYSQL_LIB = no; then
7294: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7295: fi
1.14 bertrand 7296: fi
1.15 bertrand 7297:
7298: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7299: libMySQLinc=
7300: libMySQLlib=
1.1 bertrand 7301: fi
1.14 bertrand 7302:
7303:
7304:
1.1 bertrand 7305:
7306:
1.15 bertrand 7307: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7308:
7309: # Check whether --with-postgresql was given.
7310: if test "${with_postgresql+set}" = set; then :
7311: withval=$with_postgresql;
1.14 bertrand 7312: else
1.15 bertrand 7313: with_postgresql=check
7314: fi
7315:
7316:
7317: # with_postgresql : check [pas défini], yes [uniquement --with],
7318: # no [--without], valeur [--with=valeur].
7319:
7320: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7321: libPgSQLinc="-I/usr/include"
1.30 bertrand 7322: libPgSQLlib="/usr/lib"
1.15 bertrand 7323:
7324: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7325: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7326: saved_CFLAGS="$CFLAGS"
7327: CFLAGS="$CFLAGS $libPgSQLinc"
7328: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7329: /* end confdefs.h. */
1.15 bertrand 7330: #include "libpq-fe.h"
1.1 bertrand 7331: int
7332: main ()
7333: {
1.15 bertrand 7334:
1.1 bertrand 7335: ;
7336: return 0;
7337: }
7338: _ACEOF
1.15 bertrand 7339: if ac_fn_c_try_compile "$LINENO"; then :
7340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7342: else
1.15 bertrand 7343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7345: fi
1.14 bertrand 7346: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7347: CFLAGS=$saved_CFLAGS
1.1 bertrand 7348:
1.15 bertrand 7349: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7350: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7351: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7352: saved_CFLAGS="$CFLAGS"
7353: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7354: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7355: /* end confdefs.h. */
1.15 bertrand 7356: #include "libpq-fe.h"
1.1 bertrand 7357: int
7358: main ()
7359: {
7360:
7361: ;
7362: return 0;
7363: }
7364: _ACEOF
1.15 bertrand 7365: if ac_fn_c_try_compile "$LINENO"; then :
7366: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7367: $as_echo "yes" >&6; };
7368: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7369: else
7370: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371: $as_echo "no" >&6; };
7372: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7373: fi
7374: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375: CFLAGS=$saved_CFLAGS
7376: libPgSQLinc=$libPgSQLinc/postgresql
7377: fi
7378:
7379: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7380: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7381: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7382: saved_CFLAGS="$CFLAGS"
7383: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7384: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7385: /* end confdefs.h. */
1.15 bertrand 7386: #include "libpq-fe.h"
1.1 bertrand 7387: int
7388: main ()
7389: {
7390:
7391: ;
7392: return 0;
7393: }
7394: _ACEOF
1.15 bertrand 7395: if ac_fn_c_try_compile "$LINENO"; then :
7396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7397: $as_echo "yes" >&6; };
7398: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7399: else
1.15 bertrand 7400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401: $as_echo "no" >&6; };
7402: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7403: fi
7404: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7405: CFLAGS=$saved_CFLAGS
7406: libPgSQLinc=$libPgSQLinc/pgsql
7407: fi
1.1 bertrand 7408:
1.15 bertrand 7409: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7410: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7411: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7412: saved_CFLAGS="$CFLAGS"
7413: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7414: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7415: /* end confdefs.h. */
1.15 bertrand 7416: #include "libpq-fe.h"
1.1 bertrand 7417: int
7418: main ()
7419: {
7420:
7421: ;
7422: return 0;
7423: }
7424: _ACEOF
1.15 bertrand 7425: if ac_fn_c_try_compile "$LINENO"; then :
7426: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7427: $as_echo "yes" >&6; };
7428: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7429: else
7430: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431: $as_echo "no" >&6; };
7432: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7433: fi
7434: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435: CFLAGS=$saved_CFLAGS
7436: libPgSQLinc=$libPgSQLinc/../local/include
7437: libPgSQLlib=$libPgSQLlib/../local/lib
7438: fi
7439:
7440: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7441: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7442: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7443: saved_CFLAGS="$CFLAGS"
7444: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7445: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7446: /* end confdefs.h. */
1.15 bertrand 7447: #include "libpq-fe.h"
1.1 bertrand 7448: int
7449: main ()
7450: {
7451:
7452: ;
7453: return 0;
7454: }
7455: _ACEOF
1.15 bertrand 7456: if ac_fn_c_try_compile "$LINENO"; then :
7457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7458: $as_echo "yes" >&6; };
7459: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.14 bertrand 7460: else
1.15 bertrand 7461: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462: $as_echo "no" >&6; };
7463: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14 bertrand 7464: fi
7465: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7466: CFLAGS=$saved_CFLAGS
7467: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7468: libPgSQLlib=$libPgSQLlib/../local/lib
7469: fi
1.14 bertrand 7470:
1.15 bertrand 7471: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7472: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7473: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7474: saved_CFLAGS="$CFLAGS"
7475: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7476: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7477: /* end confdefs.h. */
1.15 bertrand 7478: #include "libpq-fe.h"
1.1 bertrand 7479: int
7480: main ()
7481: {
7482:
7483: ;
7484: return 0;
7485: }
7486: _ACEOF
1.15 bertrand 7487: if ac_fn_c_try_compile "$LINENO"; then :
7488: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7489: $as_echo "yes" >&6; };
7490: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7491: else
1.15 bertrand 7492: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493: $as_echo "no" >&6; };
7494: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7495: fi
7496: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7497: CFLAGS=$saved_CFLAGS
7498: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7499: libPgSQLlib=$libPgSQLlib/../local/lib
7500: fi
1.14 bertrand 7501: else
1.15 bertrand 7502: if test "x$with_postgresql" != xno; then
7503: libPgSQLinc="-I$with_postgresql/include"
1.30 bertrand 7504: libPgSQLlib="$with_postgresql/lib"
1.15 bertrand 7505:
7506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7507: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7508: saved_CFLAGS="$CFLAGS"
7509: CFLAGS="$CFLAGS $libPgSQLinc"
7510: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7511: /* end confdefs.h. */
1.15 bertrand 7512: #include "libpq-fe.h"
1.1 bertrand 7513: int
7514: main ()
7515: {
7516:
7517: ;
7518: return 0;
7519: }
7520: _ACEOF
1.15 bertrand 7521: if ac_fn_c_try_compile "$LINENO"; then :
7522: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7523: $as_echo "yes" >&6; };
7524: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7525: else
1.15 bertrand 7526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527: $as_echo "no" >&6; };
7528: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.14 bertrand 7529: fi
1.15 bertrand 7530: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531: CFLAGS=$saved_CFLAGS
1.14 bertrand 7532:
1.15 bertrand 7533: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7534: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7535: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7536: saved_CFLAGS="$CFLAGS"
7537: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7538: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 7539: /* end confdefs.h. */
1.15 bertrand 7540: #include "libpq-fe.h"
1.1 bertrand 7541: int
7542: main ()
7543: {
1.15 bertrand 7544:
1.1 bertrand 7545: ;
7546: return 0;
7547: }
7548: _ACEOF
1.15 bertrand 7549: if ac_fn_c_try_compile "$LINENO"; then :
7550: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7551: $as_echo "yes" >&6; };
7552: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7553: else
1.15 bertrand 7554: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555: $as_echo "no" >&6; };
7556: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7557: fi
7558: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.15 bertrand 7559: CFLAGS=$saved_CFLAGS
7560: libPgSQLinc=$libPgSQLinc/postgresql
7561: fi
1.14 bertrand 7562:
1.15 bertrand 7563: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7565: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7566: saved_CFLAGS="$CFLAGS"
7567: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7568: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7569: /* end confdefs.h. */
1.15 bertrand 7570: #include "libpq-fe.h"
1.1 bertrand 7571: int
7572: main ()
7573: {
1.15 bertrand 7574:
1.1 bertrand 7575: ;
7576: return 0;
7577: }
7578: _ACEOF
1.15 bertrand 7579: if ac_fn_c_try_compile "$LINENO"; then :
7580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7581: $as_echo "yes" >&6; };
7582: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
1.1 bertrand 7583: else
1.15 bertrand 7584: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7585: $as_echo "no" >&6; };
7586: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
1.1 bertrand 7587: fi
1.15 bertrand 7588: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7589: CFLAGS=$saved_CFLAGS
7590: libPgSQLinc=$libPgSQLinc/pgsql
7591: fi
7592: else
7593: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7594: fi
1.1 bertrand 7595: fi
7596:
1.15 bertrand 7597: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7598: POSTGRESQL_LIB=no
1.1 bertrand 7599:
1.15 bertrand 7600: if test $POSTGRESQL_LIB = no; then
7601: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7602: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7603: saved_LIBS="$LIBS"
1.30 bertrand 7604: if test $STATIC = no; then
7605: LIBS="$LIBS -L/$libPgSQLlib $libPgSQLinc -lpq"
7606: else
7607: LIBS="$LIBS $libPgSQLlib/libpq.a $libPgSQLinc"
7608: fi
1.15 bertrand 7609: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7610: /* end confdefs.h. */
1.15 bertrand 7611: #include "libpq-fe.h"
1.1 bertrand 7612: int
7613: main ()
7614: {
1.15 bertrand 7615: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7616: PQconnectdb(conninfo);
1.1 bertrand 7617: ;
7618: return 0;
7619: }
7620: _ACEOF
1.15 bertrand 7621: if ac_fn_c_try_link "$LINENO"; then :
7622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7623: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
1.1 bertrand 7624: else
1.15 bertrand 7625: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7626: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7627: fi
7628: rm -f core conftest.err conftest.$ac_objext \
7629: conftest$ac_exeext conftest.$ac_ext
7630: LIBS=$saved_LIBS;
1.30 bertrand 7631: if test $STATIC = no; then
7632: libPgSQLlib="-L/$libPgSQLlib -lpq"
7633: else
7634: libPgSQLlib="$libPgSQLlib/libpq.a"
7635: EXT_SQL="$EXT_SQL $libPgSQLlib"
7636: fi
1.15 bertrand 7637: fi
7638: fi
7639:
7640: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7641: libPgSQLinc=
7642: libPgSQLlib=
7643: fi
7644:
7645:
7646:
7647:
1.14 bertrand 7648:
1.15 bertrand 7649: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7650: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7651: if test "${ac_cv_path_GREP+set}" = set; then :
7652: $as_echo_n "(cached) " >&6
7653: else
7654: if test -z "$GREP"; then
7655: ac_path_GREP_found=false
7656: # Loop through the user's path and test for each of PROGNAME-LIST
7657: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7659: do
7660: IFS=$as_save_IFS
7661: test -z "$as_dir" && as_dir=.
7662: for ac_prog in grep ggrep; do
7663: for ac_exec_ext in '' $ac_executable_extensions; do
7664: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7665: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7666: # Check for GNU ac_path_GREP and select it if it is found.
7667: # Check for GNU $ac_path_GREP
7668: case `"$ac_path_GREP" --version 2>&1` in
7669: *GNU*)
7670: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7671: *)
7672: ac_count=0
7673: $as_echo_n 0123456789 >"conftest.in"
7674: while :
7675: do
7676: cat "conftest.in" "conftest.in" >"conftest.tmp"
7677: mv "conftest.tmp" "conftest.in"
7678: cp "conftest.in" "conftest.nl"
7679: $as_echo 'GREP' >> "conftest.nl"
7680: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7681: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7682: as_fn_arith $ac_count + 1 && ac_count=$as_val
7683: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7684: # Best one so far, save it but keep looking for a better one
7685: ac_cv_path_GREP="$ac_path_GREP"
7686: ac_path_GREP_max=$ac_count
7687: fi
7688: # 10*(2^10) chars as input seems more than enough
7689: test $ac_count -gt 10 && break
7690: done
7691: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7692: esac
1.14 bertrand 7693:
1.15 bertrand 7694: $ac_path_GREP_found && break 3
7695: done
7696: done
7697: done
7698: IFS=$as_save_IFS
7699: if test -z "$ac_cv_path_GREP"; then
7700: as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7701: fi
7702: else
7703: ac_cv_path_GREP=$GREP
1.1 bertrand 7704: fi
7705:
7706: fi
1.15 bertrand 7707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7708: $as_echo "$ac_cv_path_GREP" >&6; }
7709: GREP="$ac_cv_path_GREP"
7710:
7711:
7712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7713: $as_echo_n "checking for egrep... " >&6; }
7714: if test "${ac_cv_path_EGREP+set}" = set; then :
7715: $as_echo_n "(cached) " >&6
7716: else
7717: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7718: then ac_cv_path_EGREP="$GREP -E"
7719: else
7720: if test -z "$EGREP"; then
7721: ac_path_EGREP_found=false
7722: # Loop through the user's path and test for each of PROGNAME-LIST
7723: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7725: do
7726: IFS=$as_save_IFS
7727: test -z "$as_dir" && as_dir=.
7728: for ac_prog in egrep; do
7729: for ac_exec_ext in '' $ac_executable_extensions; do
7730: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7731: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7732: # Check for GNU ac_path_EGREP and select it if it is found.
7733: # Check for GNU $ac_path_EGREP
7734: case `"$ac_path_EGREP" --version 2>&1` in
7735: *GNU*)
7736: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7737: *)
7738: ac_count=0
7739: $as_echo_n 0123456789 >"conftest.in"
7740: while :
7741: do
7742: cat "conftest.in" "conftest.in" >"conftest.tmp"
7743: mv "conftest.tmp" "conftest.in"
7744: cp "conftest.in" "conftest.nl"
7745: $as_echo 'EGREP' >> "conftest.nl"
7746: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7747: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7748: as_fn_arith $ac_count + 1 && ac_count=$as_val
7749: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7750: # Best one so far, save it but keep looking for a better one
7751: ac_cv_path_EGREP="$ac_path_EGREP"
7752: ac_path_EGREP_max=$ac_count
7753: fi
7754: # 10*(2^10) chars as input seems more than enough
7755: test $ac_count -gt 10 && break
7756: done
7757: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7758: esac
7759:
7760: $ac_path_EGREP_found && break 3
7761: done
7762: done
7763: done
7764: IFS=$as_save_IFS
7765: if test -z "$ac_cv_path_EGREP"; then
7766: as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7767: fi
1.1 bertrand 7768: else
1.15 bertrand 7769: ac_cv_path_EGREP=$EGREP
1.1 bertrand 7770: fi
7771:
1.15 bertrand 7772: fi
1.1 bertrand 7773: fi
1.15 bertrand 7774: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7775: $as_echo "$ac_cv_path_EGREP" >&6; }
7776: EGREP="$ac_cv_path_EGREP"
1.1 bertrand 7777:
7778:
1.15 bertrand 7779: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7780: $as_echo_n "checking for ANSI C header files... " >&6; }
7781: if test "${ac_cv_header_stdc+set}" = set; then :
7782: $as_echo_n "(cached) " >&6
1.1 bertrand 7783: else
1.15 bertrand 7784: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7785: /* end confdefs.h. */
7786: #include <stdlib.h>
7787: #include <stdarg.h>
7788: #include <string.h>
7789: #include <float.h>
7790:
7791: int
7792: main ()
7793: {
7794:
7795: ;
7796: return 0;
7797: }
7798: _ACEOF
1.15 bertrand 7799: if ac_fn_c_try_compile "$LINENO"; then :
1.1 bertrand 7800: ac_cv_header_stdc=yes
7801: else
1.15 bertrand 7802: ac_cv_header_stdc=no
1.1 bertrand 7803: fi
7804: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7805:
7806: if test $ac_cv_header_stdc = yes; then
7807: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1.15 bertrand 7808: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7809: /* end confdefs.h. */
7810: #include <string.h>
7811:
7812: _ACEOF
7813: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15 bertrand 7814: $EGREP "memchr" >/dev/null 2>&1; then :
7815:
1.1 bertrand 7816: else
7817: ac_cv_header_stdc=no
7818: fi
7819: rm -f conftest*
7820:
7821: fi
7822:
7823: if test $ac_cv_header_stdc = yes; then
7824: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1.15 bertrand 7825: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7826: /* end confdefs.h. */
7827: #include <stdlib.h>
7828:
7829: _ACEOF
7830: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1.15 bertrand 7831: $EGREP "free" >/dev/null 2>&1; then :
7832:
1.1 bertrand 7833: else
7834: ac_cv_header_stdc=no
7835: fi
7836: rm -f conftest*
7837:
7838: fi
7839:
7840: if test $ac_cv_header_stdc = yes; then
7841: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1.15 bertrand 7842: if test "$cross_compiling" = yes; then :
1.1 bertrand 7843: :
7844: else
1.15 bertrand 7845: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 7846: /* end confdefs.h. */
7847: #include <ctype.h>
7848: #include <stdlib.h>
7849: #if ((' ' & 0x0FF) == 0x020)
7850: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7851: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7852: #else
7853: # define ISLOWER(c) \
7854: (('a' <= (c) && (c) <= 'i') \
7855: || ('j' <= (c) && (c) <= 'r') \
7856: || ('s' <= (c) && (c) <= 'z'))
7857: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7858: #endif
7859:
7860: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7861: int
7862: main ()
7863: {
7864: int i;
7865: for (i = 0; i < 256; i++)
7866: if (XOR (islower (i), ISLOWER (i))
7867: || toupper (i) != TOUPPER (i))
7868: return 2;
7869: return 0;
7870: }
7871: _ACEOF
1.15 bertrand 7872: if ac_fn_c_try_run "$LINENO"; then :
7873:
1.14 bertrand 7874: else
1.15 bertrand 7875: ac_cv_header_stdc=no
7876: fi
7877: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7878: conftest.$ac_objext conftest.beam conftest.$ac_ext
7879: fi
1.1 bertrand 7880:
7881: fi
7882: fi
1.15 bertrand 7883: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7884: $as_echo "$ac_cv_header_stdc" >&6; }
7885: if test $ac_cv_header_stdc = yes; then
1.1 bertrand 7886:
1.15 bertrand 7887: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.14 bertrand 7888:
1.1 bertrand 7889: fi
7890:
1.15 bertrand 7891: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7892: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7893: inttypes.h stdint.h unistd.h
7894: do :
7895: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7896: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7897: "
7898: eval as_val=\$$as_ac_Header
7899: if test "x$as_val" = x""yes; then :
7900: cat >>confdefs.h <<_ACEOF
7901: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.14 bertrand 7902: _ACEOF
1.1 bertrand 7903:
7904: fi
7905:
1.15 bertrand 7906: done
7907:
7908:
7909: # The cast to long int works around a bug in the HP C Compiler
7910: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7911: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7912: # This bug is HP SR number 8606223364.
7913: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
7914: $as_echo_n "checking size of void *... " >&6; }
7915: if test "${ac_cv_sizeof_void_p+set}" = set; then :
7916: $as_echo_n "(cached) " >&6
7917: else
7918: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
1.14 bertrand 7919:
7920: else
1.15 bertrand 7921: if test "$ac_cv_type_void_p" = yes; then
7922: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7923: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7924: { as_fn_set_status 77
7925: as_fn_error "cannot compute sizeof (void *)
7926: See \`config.log' for more details." "$LINENO" 5; }; }
7927: else
7928: ac_cv_sizeof_void_p=0
7929: fi
7930: fi
1.1 bertrand 7931:
7932: fi
1.15 bertrand 7933: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
7934: $as_echo "$ac_cv_sizeof_void_p" >&6; }
7935:
1.1 bertrand 7936:
7937:
1.15 bertrand 7938: cat >>confdefs.h <<_ACEOF
7939: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
1.14 bertrand 7940: _ACEOF
1.1 bertrand 7941:
1.15 bertrand 7942:
7943: # The cast to long int works around a bug in the HP C Compiler
7944: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7945: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7946: # This bug is HP SR number 8606223364.
7947: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
7948: $as_echo_n "checking size of char... " >&6; }
7949: if test "${ac_cv_sizeof_char+set}" = set; then :
7950: $as_echo_n "(cached) " >&6
7951: else
7952: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
7953:
7954: else
7955: if test "$ac_cv_type_char" = yes; then
7956: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7957: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7958: { as_fn_set_status 77
7959: as_fn_error "cannot compute sizeof (char)
7960: See \`config.log' for more details." "$LINENO" 5; }; }
7961: else
7962: ac_cv_sizeof_char=0
7963: fi
7964: fi
7965:
1.1 bertrand 7966: fi
1.15 bertrand 7967: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
7968: $as_echo "$ac_cv_sizeof_char" >&6; }
1.1 bertrand 7969:
7970:
7971:
1.15 bertrand 7972: cat >>confdefs.h <<_ACEOF
7973: #define SIZEOF_CHAR $ac_cv_sizeof_char
7974: _ACEOF
1.1 bertrand 7975:
7976:
1.15 bertrand 7977: # The cast to long int works around a bug in the HP C Compiler
7978: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7979: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7980: # This bug is HP SR number 8606223364.
7981: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
7982: $as_echo_n "checking size of short int... " >&6; }
7983: if test "${ac_cv_sizeof_short_int+set}" = set; then :
7984: $as_echo_n "(cached) " >&6
7985: else
7986: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
1.1 bertrand 7987:
1.15 bertrand 7988: else
7989: if test "$ac_cv_type_short_int" = yes; then
7990: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7991: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7992: { as_fn_set_status 77
7993: as_fn_error "cannot compute sizeof (short int)
7994: See \`config.log' for more details." "$LINENO" 5; }; }
7995: else
7996: ac_cv_sizeof_short_int=0
7997: fi
7998: fi
1.1 bertrand 7999:
1.15 bertrand 8000: fi
8001: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8002: $as_echo "$ac_cv_sizeof_short_int" >&6; }
1.1 bertrand 8003:
8004:
8005:
1.15 bertrand 8006: cat >>confdefs.h <<_ACEOF
8007: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8008: _ACEOF
1.1 bertrand 8009:
8010:
1.15 bertrand 8011: # The cast to long int works around a bug in the HP C Compiler
8012: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8013: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8014: # This bug is HP SR number 8606223364.
8015: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8016: $as_echo_n "checking size of int... " >&6; }
8017: if test "${ac_cv_sizeof_int+set}" = set; then :
8018: $as_echo_n "(cached) " >&6
8019: else
8020: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
1.1 bertrand 8021:
1.15 bertrand 8022: else
8023: if test "$ac_cv_type_int" = yes; then
8024: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8025: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8026: { as_fn_set_status 77
8027: as_fn_error "cannot compute sizeof (int)
8028: See \`config.log' for more details." "$LINENO" 5; }; }
8029: else
8030: ac_cv_sizeof_int=0
8031: fi
8032: fi
1.1 bertrand 8033:
1.15 bertrand 8034: fi
8035: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8036: $as_echo "$ac_cv_sizeof_int" >&6; }
1.1 bertrand 8037:
8038:
8039:
1.15 bertrand 8040: cat >>confdefs.h <<_ACEOF
8041: #define SIZEOF_INT $ac_cv_sizeof_int
8042: _ACEOF
1.1 bertrand 8043:
8044:
1.15 bertrand 8045: # The cast to long int works around a bug in the HP C Compiler
8046: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8047: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8048: # This bug is HP SR number 8606223364.
8049: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8050: $as_echo_n "checking size of long int... " >&6; }
8051: if test "${ac_cv_sizeof_long_int+set}" = set; then :
8052: $as_echo_n "(cached) " >&6
8053: else
8054: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
1.1 bertrand 8055:
1.14 bertrand 8056: else
1.15 bertrand 8057: if test "$ac_cv_type_long_int" = yes; then
8058: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8059: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8060: { as_fn_set_status 77
8061: as_fn_error "cannot compute sizeof (long int)
8062: See \`config.log' for more details." "$LINENO" 5; }; }
8063: else
8064: ac_cv_sizeof_long_int=0
8065: fi
8066: fi
1.1 bertrand 8067:
8068: fi
1.15 bertrand 8069: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8070: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8071:
1.1 bertrand 8072:
8073:
1.15 bertrand 8074: cat >>confdefs.h <<_ACEOF
8075: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
1.14 bertrand 8076: _ACEOF
1.15 bertrand 8077:
8078:
8079: # The cast to long int works around a bug in the HP C Compiler
8080: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8081: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8082: # This bug is HP SR number 8606223364.
8083: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8084: $as_echo_n "checking size of long long int... " >&6; }
8085: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
8086: $as_echo_n "(cached) " >&6
8087: else
8088: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8089:
1.14 bertrand 8090: else
1.15 bertrand 8091: if test "$ac_cv_type_long_long_int" = yes; then
8092: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8093: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8094: { as_fn_set_status 77
8095: as_fn_error "cannot compute sizeof (long long int)
8096: See \`config.log' for more details." "$LINENO" 5; }; }
8097: else
8098: ac_cv_sizeof_long_long_int=0
8099: fi
8100: fi
1.1 bertrand 8101:
1.14 bertrand 8102: fi
1.15 bertrand 8103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8104: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8105:
8106:
8107:
8108: cat >>confdefs.h <<_ACEOF
8109: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8110: _ACEOF
1.1 bertrand 8111:
8112:
1.15 bertrand 8113: # The cast to long int works around a bug in the HP C Compiler
8114: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8115: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8116: # This bug is HP SR number 8606223364.
8117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8118: $as_echo_n "checking size of float... " >&6; }
8119: if test "${ac_cv_sizeof_float+set}" = set; then :
8120: $as_echo_n "(cached) " >&6
8121: else
8122: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
1.1 bertrand 8123:
8124: else
1.15 bertrand 8125: if test "$ac_cv_type_float" = yes; then
8126: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8127: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8128: { as_fn_set_status 77
8129: as_fn_error "cannot compute sizeof (float)
8130: See \`config.log' for more details." "$LINENO" 5; }; }
8131: else
8132: ac_cv_sizeof_float=0
8133: fi
1.14 bertrand 8134: fi
8135:
1.1 bertrand 8136: fi
1.15 bertrand 8137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8138: $as_echo "$ac_cv_sizeof_float" >&6; }
8139:
8140:
8141:
8142: cat >>confdefs.h <<_ACEOF
8143: #define SIZEOF_FLOAT $ac_cv_sizeof_float
1.14 bertrand 8144: _ACEOF
1.1 bertrand 8145:
8146:
1.15 bertrand 8147: # The cast to long int works around a bug in the HP C Compiler
8148: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8149: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8150: # This bug is HP SR number 8606223364.
8151: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8152: $as_echo_n "checking size of double... " >&6; }
8153: if test "${ac_cv_sizeof_double+set}" = set; then :
8154: $as_echo_n "(cached) " >&6
8155: else
8156: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
1.1 bertrand 8157:
1.15 bertrand 8158: else
8159: if test "$ac_cv_type_double" = yes; then
8160: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8161: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8162: { as_fn_set_status 77
8163: as_fn_error "cannot compute sizeof (double)
8164: See \`config.log' for more details." "$LINENO" 5; }; }
8165: else
8166: ac_cv_sizeof_double=0
8167: fi
8168: fi
1.1 bertrand 8169:
1.15 bertrand 8170: fi
8171: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8172: $as_echo "$ac_cv_sizeof_double" >&6; }
1.14 bertrand 8173:
1.1 bertrand 8174:
8175:
1.15 bertrand 8176: cat >>confdefs.h <<_ACEOF
8177: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
1.14 bertrand 8178: _ACEOF
1.15 bertrand 8179:
8180:
8181: # The cast to long int works around a bug in the HP C Compiler
8182: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8183: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8184: # This bug is HP SR number 8606223364.
8185: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8186: $as_echo_n "checking size of long double... " >&6; }
8187: if test "${ac_cv_sizeof_long_double+set}" = set; then :
8188: $as_echo_n "(cached) " >&6
8189: else
8190: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8191:
1.14 bertrand 8192: else
1.15 bertrand 8193: if test "$ac_cv_type_long_double" = yes; then
8194: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8195: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8196: { as_fn_set_status 77
8197: as_fn_error "cannot compute sizeof (long double)
8198: See \`config.log' for more details." "$LINENO" 5; }; }
8199: else
8200: ac_cv_sizeof_long_double=0
8201: fi
8202: fi
1.1 bertrand 8203:
8204: fi
1.15 bertrand 8205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8206: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8207:
1.1 bertrand 8208:
8209:
1.15 bertrand 8210: cat >>confdefs.h <<_ACEOF
8211: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
1.1 bertrand 8212: _ACEOF
8213:
8214:
1.15 bertrand 8215:
8216: ac_header_dirent=no
8217: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8218: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8219: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8220: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8221: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8222: $as_echo_n "(cached) " >&6
1.1 bertrand 8223: else
1.15 bertrand 8224: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 8225: /* end confdefs.h. */
8226: #include <sys/types.h>
1.15 bertrand 8227: #include <$ac_hdr>
1.1 bertrand 8228:
1.15 bertrand 8229: int
8230: main ()
8231: {
8232: if ((DIR *) 0)
8233: return 0;
8234: ;
8235: return 0;
8236: }
1.1 bertrand 8237: _ACEOF
1.15 bertrand 8238: if ac_fn_c_try_compile "$LINENO"; then :
8239: eval "$as_ac_Header=yes"
1.1 bertrand 8240: else
1.15 bertrand 8241: eval "$as_ac_Header=no"
8242: fi
8243: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8244: fi
1.15 bertrand 8245: eval ac_res=\$$as_ac_Header
8246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8247: $as_echo "$ac_res" >&6; }
8248: eval as_val=\$$as_ac_Header
8249: if test "x$as_val" = x""yes; then :
8250: cat >>confdefs.h <<_ACEOF
8251: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8252: _ACEOF
1.1 bertrand 8253:
1.15 bertrand 8254: ac_header_dirent=$ac_hdr; break
1.1 bertrand 8255: fi
8256:
1.15 bertrand 8257: done
8258: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8259: if test $ac_header_dirent = dirent.h; then
8260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8261: $as_echo_n "checking for library containing opendir... " >&6; }
8262: if test "${ac_cv_search_opendir+set}" = set; then :
8263: $as_echo_n "(cached) " >&6
8264: else
8265: ac_func_search_save_LIBS=$LIBS
8266: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267: /* end confdefs.h. */
8268:
8269: /* Override any GCC internal prototype to avoid an error.
8270: Use char because int might match the return type of a GCC
8271: builtin and then its argument prototype would still apply. */
8272: #ifdef __cplusplus
8273: extern "C"
8274: #endif
8275: char opendir ();
8276: int
8277: main ()
8278: {
8279: return opendir ();
8280: ;
8281: return 0;
8282: }
1.14 bertrand 8283: _ACEOF
1.15 bertrand 8284: for ac_lib in '' dir; do
8285: if test -z "$ac_lib"; then
8286: ac_res="none required"
8287: else
8288: ac_res=-l$ac_lib
8289: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8290: fi
8291: if ac_fn_c_try_link "$LINENO"; then :
8292: ac_cv_search_opendir=$ac_res
8293: fi
8294: rm -f core conftest.err conftest.$ac_objext \
8295: conftest$ac_exeext
8296: if test "${ac_cv_search_opendir+set}" = set; then :
8297: break
8298: fi
8299: done
8300: if test "${ac_cv_search_opendir+set}" = set; then :
1.1 bertrand 8301:
1.15 bertrand 8302: else
8303: ac_cv_search_opendir=no
8304: fi
8305: rm conftest.$ac_ext
8306: LIBS=$ac_func_search_save_LIBS
8307: fi
8308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8309: $as_echo "$ac_cv_search_opendir" >&6; }
8310: ac_res=$ac_cv_search_opendir
8311: if test "$ac_res" != no; then :
8312: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 bertrand 8313:
1.14 bertrand 8314: fi
1.1 bertrand 8315:
8316: else
1.15 bertrand 8317: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8318: $as_echo_n "checking for library containing opendir... " >&6; }
8319: if test "${ac_cv_search_opendir+set}" = set; then :
8320: $as_echo_n "(cached) " >&6
8321: else
8322: ac_func_search_save_LIBS=$LIBS
8323: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8324: /* end confdefs.h. */
1.15 bertrand 8325:
8326: /* Override any GCC internal prototype to avoid an error.
8327: Use char because int might match the return type of a GCC
8328: builtin and then its argument prototype would still apply. */
8329: #ifdef __cplusplus
8330: extern "C"
8331: #endif
8332: char opendir ();
1.1 bertrand 8333: int
8334: main ()
8335: {
1.15 bertrand 8336: return opendir ();
1.1 bertrand 8337: ;
8338: return 0;
8339: }
8340: _ACEOF
1.15 bertrand 8341: for ac_lib in '' x; do
8342: if test -z "$ac_lib"; then
8343: ac_res="none required"
8344: else
8345: ac_res=-l$ac_lib
8346: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8347: fi
8348: if ac_fn_c_try_link "$LINENO"; then :
8349: ac_cv_search_opendir=$ac_res
8350: fi
8351: rm -f core conftest.err conftest.$ac_objext \
8352: conftest$ac_exeext
8353: if test "${ac_cv_search_opendir+set}" = set; then :
8354: break
8355: fi
8356: done
8357: if test "${ac_cv_search_opendir+set}" = set; then :
8358:
1.1 bertrand 8359: else
1.15 bertrand 8360: ac_cv_search_opendir=no
8361: fi
8362: rm conftest.$ac_ext
8363: LIBS=$ac_func_search_save_LIBS
1.1 bertrand 8364: fi
1.15 bertrand 8365: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8366: $as_echo "$ac_cv_search_opendir" >&6; }
8367: ac_res=$ac_cv_search_opendir
8368: if test "$ac_res" != no; then :
8369: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.14 bertrand 8370:
1.1 bertrand 8371: fi
8372:
8373: fi
8374:
1.15 bertrand 8375: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8376: $as_echo_n "checking for ANSI C header files... " >&6; }
8377: if test "${ac_cv_header_stdc+set}" = set; then :
8378: $as_echo_n "(cached) " >&6
1.1 bertrand 8379: else
1.15 bertrand 8380: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8381: /* end confdefs.h. */
1.15 bertrand 8382: #include <stdlib.h>
8383: #include <stdarg.h>
8384: #include <string.h>
8385: #include <float.h>
8386:
1.1 bertrand 8387: int
8388: main ()
8389: {
1.15 bertrand 8390:
1.1 bertrand 8391: ;
8392: return 0;
8393: }
8394: _ACEOF
1.15 bertrand 8395: if ac_fn_c_try_compile "$LINENO"; then :
8396: ac_cv_header_stdc=yes
1.14 bertrand 8397: else
1.15 bertrand 8398: ac_cv_header_stdc=no
8399: fi
8400: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8401:
8402: if test $ac_cv_header_stdc = yes; then
8403: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8404: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8405: /* end confdefs.h. */
8406: #include <string.h>
8407:
8408: _ACEOF
8409: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8410: $EGREP "memchr" >/dev/null 2>&1; then :
1.14 bertrand 8411:
1.15 bertrand 8412: else
8413: ac_cv_header_stdc=no
1.1 bertrand 8414: fi
1.15 bertrand 8415: rm -f conftest*
1.14 bertrand 8416:
1.1 bertrand 8417: fi
8418:
1.15 bertrand 8419: if test $ac_cv_header_stdc = yes; then
8420: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8421: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8422: /* end confdefs.h. */
8423: #include <stdlib.h>
8424:
1.14 bertrand 8425: _ACEOF
1.15 bertrand 8426: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8427: $EGREP "free" >/dev/null 2>&1; then :
8428:
8429: else
8430: ac_cv_header_stdc=no
8431: fi
8432: rm -f conftest*
1.1 bertrand 8433:
8434: fi
8435:
1.15 bertrand 8436: if test $ac_cv_header_stdc = yes; then
8437: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8438: if test "$cross_compiling" = yes; then :
8439: :
1.1 bertrand 8440: else
1.15 bertrand 8441: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8442: /* end confdefs.h. */
1.15 bertrand 8443: #include <ctype.h>
8444: #include <stdlib.h>
8445: #if ((' ' & 0x0FF) == 0x020)
8446: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8447: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8448: #else
8449: # define ISLOWER(c) \
8450: (('a' <= (c) && (c) <= 'i') \
8451: || ('j' <= (c) && (c) <= 'r') \
8452: || ('s' <= (c) && (c) <= 'z'))
8453: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8454: #endif
1.1 bertrand 8455:
1.15 bertrand 8456: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1.1 bertrand 8457: int
8458: main ()
8459: {
1.15 bertrand 8460: int i;
8461: for (i = 0; i < 256; i++)
8462: if (XOR (islower (i), ISLOWER (i))
8463: || toupper (i) != TOUPPER (i))
8464: return 2;
1.1 bertrand 8465: return 0;
8466: }
8467: _ACEOF
1.15 bertrand 8468: if ac_fn_c_try_run "$LINENO"; then :
8469:
1.14 bertrand 8470: else
1.15 bertrand 8471: ac_cv_header_stdc=no
8472: fi
8473: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8474: conftest.$ac_objext conftest.beam conftest.$ac_ext
8475: fi
1.14 bertrand 8476:
1.1 bertrand 8477: fi
8478: fi
1.15 bertrand 8479: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8480: $as_echo "$ac_cv_header_stdc" >&6; }
8481: if test $ac_cv_header_stdc = yes; then
1.1 bertrand 8482:
1.15 bertrand 8483: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
1.1 bertrand 8484:
8485: fi
8486:
1.15 bertrand 8487: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8488: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8489: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8490: $as_echo_n "(cached) " >&6
1.1 bertrand 8491: else
1.15 bertrand 8492: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8493: /* end confdefs.h. */
1.14 bertrand 8494: #include <sys/types.h>
1.15 bertrand 8495: #include <sys/wait.h>
8496: #ifndef WEXITSTATUS
8497: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8498: #endif
8499: #ifndef WIFEXITED
8500: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8501: #endif
1.1 bertrand 8502:
8503: int
8504: main ()
8505: {
1.15 bertrand 8506: int s;
8507: wait (&s);
8508: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1.1 bertrand 8509: ;
8510: return 0;
8511: }
8512: _ACEOF
1.15 bertrand 8513: if ac_fn_c_try_compile "$LINENO"; then :
8514: ac_cv_header_sys_wait_h=yes
1.1 bertrand 8515: else
1.15 bertrand 8516: ac_cv_header_sys_wait_h=no
8517: fi
8518: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8519: fi
8520: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8521: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8522: if test $ac_cv_header_sys_wait_h = yes; then
1.1 bertrand 8523:
1.15 bertrand 8524: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
1.1 bertrand 8525:
8526: fi
8527:
1.15 bertrand 8528: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8529: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8530: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8531: do :
8532: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8533: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8534: eval as_val=\$$as_ac_Header
8535: if test "x$as_val" = x""yes; then :
8536: cat >>confdefs.h <<_ACEOF
8537: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.1 bertrand 8538: _ACEOF
8539:
8540: fi
8541:
1.15 bertrand 8542: done
8543:
1.1 bertrand 8544:
1.15 bertrand 8545: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8546: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8547: if test "${ac_cv_c_const+set}" = set; then :
8548: $as_echo_n "(cached) " >&6
1.1 bertrand 8549: else
1.15 bertrand 8550: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8551: /* end confdefs.h. */
8552:
8553: int
8554: main ()
8555: {
1.15 bertrand 8556: /* FIXME: Include the comments suggested by Paul. */
8557: #ifndef __cplusplus
8558: /* Ultrix mips cc rejects this. */
8559: typedef int charset[2];
8560: const charset cs;
8561: /* SunOS 4.1.1 cc rejects this. */
8562: char const *const *pcpcc;
8563: char **ppc;
8564: /* NEC SVR4.0.2 mips cc rejects this. */
8565: struct point {int x, y;};
8566: static struct point const zero = {0,0};
8567: /* AIX XL C 1.02.0.0 rejects this.
8568: It does not let you subtract one const X* pointer from another in
8569: an arm of an if-expression whose if-part is not a constant
8570: expression */
8571: const char *g = "string";
8572: pcpcc = &g + (g ? g-g : 0);
8573: /* HPUX 7.0 cc rejects these. */
8574: ++pcpcc;
8575: ppc = (char**) pcpcc;
8576: pcpcc = (char const *const *) ppc;
8577: { /* SCO 3.2v4 cc rejects this. */
8578: char *t;
8579: char const *s = 0 ? (char *) 0 : (char const *) 0;
8580:
8581: *t++ = 0;
8582: if (s) return 0;
8583: }
8584: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8585: int x[] = {25, 17};
8586: const int *foo = &x[0];
8587: ++foo;
8588: }
8589: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8590: typedef const int *iptr;
8591: iptr p = 0;
8592: ++p;
8593: }
8594: { /* AIX XL C 1.02.0.0 rejects this saying
8595: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8596: struct s { int j; const int *ap[3]; };
8597: struct s *b; b->j = 5;
8598: }
8599: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8600: const int foo = 10;
8601: if (!foo) return 0;
8602: }
8603: return !cs[0] && !zero.x;
8604: #endif
8605:
1.14 bertrand 8606: ;
1.1 bertrand 8607: return 0;
8608: }
8609: _ACEOF
1.15 bertrand 8610: if ac_fn_c_try_compile "$LINENO"; then :
8611: ac_cv_c_const=yes
1.14 bertrand 8612: else
1.15 bertrand 8613: ac_cv_c_const=no
1.1 bertrand 8614: fi
1.14 bertrand 8615: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8616: fi
1.15 bertrand 8617: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8618: $as_echo "$ac_cv_c_const" >&6; }
8619: if test $ac_cv_c_const = no; then
1.1 bertrand 8620:
1.15 bertrand 8621: $as_echo "#define const /**/" >>confdefs.h
1.1 bertrand 8622:
1.15 bertrand 8623: fi
1.1 bertrand 8624:
1.15 bertrand 8625: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8626: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8627: if test "${ac_cv_type_uid_t+set}" = set; then :
8628: $as_echo_n "(cached) " >&6
1.1 bertrand 8629: else
1.15 bertrand 8630: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8631: /* end confdefs.h. */
1.15 bertrand 8632: #include <sys/types.h>
8633:
1.1 bertrand 8634: _ACEOF
1.15 bertrand 8635: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8636: $EGREP "uid_t" >/dev/null 2>&1; then :
8637: ac_cv_type_uid_t=yes
1.1 bertrand 8638: else
1.15 bertrand 8639: ac_cv_type_uid_t=no
8640: fi
8641: rm -f conftest*
1.14 bertrand 8642:
1.1 bertrand 8643: fi
1.15 bertrand 8644: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8645: $as_echo "$ac_cv_type_uid_t" >&6; }
8646: if test $ac_cv_type_uid_t = no; then
1.1 bertrand 8647:
1.15 bertrand 8648: $as_echo "#define uid_t int" >>confdefs.h
1.1 bertrand 8649:
8650:
1.15 bertrand 8651: $as_echo "#define gid_t int" >>confdefs.h
1.1 bertrand 8652:
8653: fi
8654:
1.15 bertrand 8655: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8656: if test "x$ac_cv_type_pid_t" = x""yes; then :
1.1 bertrand 8657:
8658: else
1.15 bertrand 8659:
8660: cat >>confdefs.h <<_ACEOF
8661: #define pid_t int
1.14 bertrand 8662: _ACEOF
8663:
1.15 bertrand 8664: fi
1.14 bertrand 8665:
1.15 bertrand 8666: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8667: if test "x$ac_cv_type_size_t" = x""yes; then :
1.14 bertrand 8668:
1.15 bertrand 8669: else
1.1 bertrand 8670:
1.15 bertrand 8671: cat >>confdefs.h <<_ACEOF
8672: #define size_t unsigned int
1.1 bertrand 8673: _ACEOF
1.14 bertrand 8674:
1.1 bertrand 8675: fi
8676:
1.15 bertrand 8677: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8678: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8679: if test "${ac_cv_header_time+set}" = set; then :
8680: $as_echo_n "(cached) " >&6
1.1 bertrand 8681: else
1.15 bertrand 8682: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8683: /* end confdefs.h. */
1.15 bertrand 8684: #include <sys/types.h>
8685: #include <sys/time.h>
8686: #include <time.h>
1.1 bertrand 8687:
1.14 bertrand 8688: int
8689: main ()
8690: {
1.15 bertrand 8691: if ((struct tm *) 0)
8692: return 0;
1.14 bertrand 8693: ;
8694: return 0;
8695: }
1.1 bertrand 8696: _ACEOF
1.15 bertrand 8697: if ac_fn_c_try_compile "$LINENO"; then :
8698: ac_cv_header_time=yes
1.1 bertrand 8699: else
1.15 bertrand 8700: ac_cv_header_time=no
1.1 bertrand 8701: fi
1.15 bertrand 8702: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8703: fi
1.15 bertrand 8704: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8705: $as_echo "$ac_cv_header_time" >&6; }
8706: if test $ac_cv_header_time = yes; then
1.1 bertrand 8707:
1.15 bertrand 8708: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
1.1 bertrand 8709:
8710: fi
8711:
1.15 bertrand 8712: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8713: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8714: if test "${ac_cv_struct_tm+set}" = set; then :
8715: $as_echo_n "(cached) " >&6
1.1 bertrand 8716: else
1.15 bertrand 8717: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.14 bertrand 8718: /* end confdefs.h. */
1.15 bertrand 8719: #include <sys/types.h>
8720: #include <time.h>
1.1 bertrand 8721:
8722: int
8723: main ()
8724: {
1.15 bertrand 8725: struct tm tm;
8726: int *p = &tm.tm_sec;
8727: return !p;
1.1 bertrand 8728: ;
8729: return 0;
8730: }
8731: _ACEOF
1.15 bertrand 8732: if ac_fn_c_try_compile "$LINENO"; then :
8733: ac_cv_struct_tm=time.h
1.1 bertrand 8734: else
1.15 bertrand 8735: ac_cv_struct_tm=sys/time.h
8736: fi
8737: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738: fi
8739: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8740: $as_echo "$ac_cv_struct_tm" >&6; }
8741: if test $ac_cv_struct_tm = sys/time.h; then
8742:
8743: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
1.14 bertrand 8744:
1.1 bertrand 8745: fi
8746:
8747:
1.15 bertrand 8748: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8749: $as_echo_n "checking return type of signal handlers... " >&6; }
8750: if test "${ac_cv_type_signal+set}" = set; then :
8751: $as_echo_n "(cached) " >&6
1.1 bertrand 8752: else
1.15 bertrand 8753: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8754: /* end confdefs.h. */
1.15 bertrand 8755: #include <sys/types.h>
8756: #include <signal.h>
1.1 bertrand 8757:
8758: int
8759: main ()
8760: {
1.15 bertrand 8761: return *(signal (0, 0)) (0) == 1;
1.1 bertrand 8762: ;
8763: return 0;
8764: }
8765: _ACEOF
1.15 bertrand 8766: if ac_fn_c_try_compile "$LINENO"; then :
8767: ac_cv_type_signal=int
1.1 bertrand 8768: else
1.15 bertrand 8769: ac_cv_type_signal=void
1.1 bertrand 8770: fi
1.15 bertrand 8771: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 bertrand 8772: fi
1.15 bertrand 8773: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8774: $as_echo "$ac_cv_type_signal" >&6; }
1.14 bertrand 8775:
1.15 bertrand 8776: cat >>confdefs.h <<_ACEOF
8777: #define RETSIGTYPE $ac_cv_type_signal
1.14 bertrand 8778: _ACEOF
1.1 bertrand 8779:
1.15 bertrand 8780:
8781: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8782: $as_echo_n "checking for working strcoll... " >&6; }
8783: if test "${ac_cv_func_strcoll_works+set}" = set; then :
8784: $as_echo_n "(cached) " >&6
8785: else
8786: if test "$cross_compiling" = yes; then :
8787: ac_cv_func_strcoll_works=no
8788: else
8789: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790: /* end confdefs.h. */
8791: $ac_includes_default
8792: int
8793: main ()
8794: {
8795: return (strcoll ("abc", "def") >= 0 ||
8796: strcoll ("ABC", "DEF") >= 0 ||
8797: strcoll ("123", "456") >= 0)
8798: ;
8799: return 0;
8800: }
8801: _ACEOF
8802: if ac_fn_c_try_run "$LINENO"; then :
8803: ac_cv_func_strcoll_works=yes
8804: else
8805: ac_cv_func_strcoll_works=no
8806: fi
8807: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8808: conftest.$ac_objext conftest.beam conftest.$ac_ext
1.14 bertrand 8809: fi
1.1 bertrand 8810:
8811: fi
1.15 bertrand 8812: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
8813: $as_echo "$ac_cv_func_strcoll_works" >&6; }
8814: if test $ac_cv_func_strcoll_works = yes; then
1.14 bertrand 8815:
1.15 bertrand 8816: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
1.1 bertrand 8817:
1.15 bertrand 8818: fi
1.1 bertrand 8819:
1.15 bertrand 8820: for ac_func in strftime
8821: do :
8822: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8823: if test "x$ac_cv_func_strftime" = x""yes; then :
8824: cat >>confdefs.h <<_ACEOF
8825: #define HAVE_STRFTIME 1
8826: _ACEOF
1.1 bertrand 8827:
8828: else
1.15 bertrand 8829: # strftime is in -lintl on SCO UNIX.
8830: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8831: $as_echo_n "checking for strftime in -lintl... " >&6; }
8832: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8833: $as_echo_n "(cached) " >&6
8834: else
8835: ac_check_lib_save_LIBS=$LIBS
8836: LIBS="-lintl $LIBS"
8837: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 bertrand 8838: /* end confdefs.h. */
8839:
8840: /* Override any GCC internal prototype to avoid an error.
8841: Use char because int might match the return type of a GCC
8842: builtin and then its argument prototype would still apply. */
8843: #ifdef __cplusplus
8844: extern "C"
8845: #endif
1.15 bertrand 8846: char strftime ();
1.1 bertrand 8847: int
8848: main ()
8849: {
1.15 bertrand 8850: return strftime ();
1.1 bertrand 8851: ;
8852: return 0;
8853: }
8854: _ACEOF
1.15 bertrand 8855: if ac_fn_c_try_link "$LINENO"; then :
8856: ac_cv_lib_intl_strftime=yes
1.1 bertrand 8857: else
1.15 bertrand 8858: ac_cv_lib_intl_strftime=no
8859: fi
8860: rm -f core conftest.err conftest.$ac_objext \
8861: conftest$ac_exeext conftest.$ac_ext
8862: LIBS=$ac_check_lib_save_LIBS
8863: fi
8864: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8865: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
8866: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
8867: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8868:
8869: LIBS="-lintl $LIBS"
8870: fi
8871:
8872: fi
8873: done
8874:
8875: for ac_func in vprintf
8876: do :
8877: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
8878: if test "x$ac_cv_func_vprintf" = x""yes; then :
8879: cat >>confdefs.h <<_ACEOF
8880: #define HAVE_VPRINTF 1
8881: _ACEOF
8882:
8883: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
8884: if test "x$ac_cv_func__doprnt" = x""yes; then :
8885:
8886: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
1.1 bertrand 8887:
8888: fi
8889:
8890: fi
1.15 bertrand 8891: done
8892:
8893:
8894: for ac_func in ftime getcwd putenv select strcspn strdup \
8895: strerror strspn strstr strtod
8896: do :
8897: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8898: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8899: eval as_val=\$$as_ac_var
8900: if test "x$as_val" = x""yes; then :
1.1 bertrand 8901: cat >>confdefs.h <<_ACEOF
1.15 bertrand 8902: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.1 bertrand 8903: _ACEOF
8904:
8905: fi
8906: done
8907:
8908:
1.15 bertrand 8909:
8910:
1.1 bertrand 8911: subdirs="$subdirs tools/$NCURSES"
8912:
8913: subdirs="$subdirs tools/$READLINE"
8914:
8915: subdirs="$subdirs tools/$GSL"
8916:
8917: subdirs="$subdirs tools/$GPP"
8918:
8919: subdirs="$subdirs tools/$FILE"
8920:
8921: subdirs="$subdirs tools/$ICONV"
8922:
1.9 bertrand 8923: subdirs="$subdirs tools/$SQLITE"
8924:
1.17 bertrand 8925: subdirs="$subdirs tools/$UNITS"
8926:
1.15 bertrand 8927:
8928:
8929: # Check whether --with-openssl_arch was given.
8930: if test "${with_openssl_arch+set}" = set; then :
8931: withval=$with_openssl_arch;
8932: else
8933: with_openssl_arch=none
8934: fi
8935:
8936:
1.31 bertrand 8937: if test $(uname) = "OS/2"; then
8938: (cd tools/$OPENSSL && os2/OS2-EMX.cmd)
1.15 bertrand 8939: else
1.31 bertrand 8940: if test "x$with_openssl_arch" = xnone; then
8941: (cd tools/$OPENSSL && ./config)
8942: elif test "x$with_openssl_arch" = xyes -o "x$with_openssl_arch" = xno; then
8943: (cd tools/$OPENSSL && ./Configure)
8944: as_fn_error "OS/COMP informations are required!" "$LINENO" 5
8945: elif test "x$with_openssl_arch" = xlist; then
8946: (cd tools/$OPENSSL && ./Configure)
8947: as_fn_error "Please specify OS and Architecture" "$LINENO" 5
8948: else
8949: (cd tools/$OPENSSL && ./Configure $with_openssl_arch)
8950: fi
1.15 bertrand 8951: fi
1.1 bertrand 8952:
8953: if test "$MYGNUPLOT" = "yes"; then
8954: if test ! -d "$srcdir"/tools/$GNUPLOT; then
8955: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
8956: (cd "$srcdir/tools" && tar -xf -)
8957: fi
8958: subdirs="$subdirs tools/$GNUPLOT"
8959:
8960: GNUPLOT_COMPILATION=$GNUPLOT
8961: else
8962: GNUPLOT_COMPILATION=
8963: fi
8964:
8965:
8966:
8967: case $host_cpu in
8968:
8969: i?86)
8970: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
8971: -Wno-pointer-sign"
8972: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
8973: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
8974: break ;;
8975:
8976: x86_64*)
8977: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
8978: -Wno-pointer-sign"
8979: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
8980: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
8981: break ;;
8982:
8983: alpha*)
8984: CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
8985: -Wno-pointer-sign"
8986: FFLAGS="$FFLAGS -mieee -Wall"
8987: FCFLAGS="$FCFLAGS -mieee -Wall"
8988: break ;;
8989:
8990: sparc*)
8991: CFLAGS="$CFLAGS -Wall -funsigned-char \
8992: -Wno-pointer-sign"
8993: FFLAGS="$FFLAGS -Wall"
8994: FCFLAGS="$FCFLAGS -Wall"
8995: break ;;
8996:
8997: esac
8998:
1.8 bertrand 8999: case $host_os in
9000:
9001: cygwin*)
9002: OS=Cygwin
9003: break ;;
9004:
9005: interix*)
9006: OS=Interix
9007: break ;;
9008:
9009: *)
9010: OS=$(uname)
9011: break ;;
9012:
9013: esac
9014:
9015:
9016:
1.1 bertrand 9017: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9018: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
9019:
1.22 bertrand 9020: case $OS in
1.17 bertrand 9021:
9022: Darwin)
1.31 bertrand 9023: EXPORT_DYNAMIC=-Wl,-flat_namespace
1.17 bertrand 9024: NESTED_FUNCTIONS=-fnested-functions
9025: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.33 ! bertrand 9026: SEMAPHORES_SYSV=-USEMAPHORES_SYSV
1.23 bertrand 9027: CXXFLAGS="$CXXFLAGS -D_GLIBCXX_FULLY_DYNAMIC_STRING"
1.31 bertrand 9028: ac_configure_args="$ac_configure_args --with-readline=builtin \
9029: --disable-shared --enable-static"
1.33 ! bertrand 9030: C_STANDARD=-std=gnu99
1.17 bertrand 9031: break ;;
9032:
1.31 bertrand 9033: Cygwin)
9034: EXPORT_DYNAMIC=-Wl,--export-all-symbols
1.17 bertrand 9035: NESTED_FUNCTIONS=
9036: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.33 ! bertrand 9037: SEMAPHORES_SYSV=-USEMAPHORES_SYSV
1.31 bertrand 9038: ac_configure_args="$ac_configure_args --with-readline=builtin \
9039: --disable-shared --enable-static"
1.33 ! bertrand 9040: C_STANDARD=-std=gnu99
1.17 bertrand 9041: break ;;
9042:
1.31 bertrand 9043: AIX)
9044: EXPORT_DYNAMIC=-Wl,--export-dynamic
1.18 bertrand 9045: NESTED_FUNCTIONS=
9046: SEMAPHORES_NOMMES=-DSEMAPHORES_NOMMES
1.33 ! bertrand 9047: SEMAPHORES_SYSV=-USEMAPHORES_SYSV
1.31 bertrand 9048: ac_configure_args="$ac_configure_args --with-readline=builtin \
9049: --disable-shared --enable-static"
1.33 ! bertrand 9050: C_STANDARD=-std=gnu99
1.18 bertrand 9051: break ;;
9052:
1.31 bertrand 9053: OS/2)
9054: MALLOC=
9055: OS=OS2
9056: FINAL_ENCODING=UTF-8
9057: NESTED_FUNCTIONS=
9058: EXPORT_DYNAMIC=-Zmap
9059: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.33 ! bertrand 9060: SEMAPHORES_SYSV=-DSEMAPHORES_SYSV
1.31 bertrand 9061: ac_configure_args="$ac_configure_args --without-readline \
9062: --without-cairo --disable-shared --enable-static"
1.33 ! bertrand 9063: C_STANDARD=
1.31 bertrand 9064: break;;
9065:
1.17 bertrand 9066: *)
1.31 bertrand 9067: EXPORT_DYNAMIC=-Wl,--export-dynamic
1.17 bertrand 9068: NESTED_FUNCTIONS=
9069: SEMAPHORES_NOMMES=-USEMAPHORES_NOMMES
1.33 ! bertrand 9070: SEMAPHORES_SYSV=-USEMAPHORES_SYSV
1.31 bertrand 9071: ac_configure_args="$ac_configure_args --with-readline=builtin \
9072: --disable-shared --enable-static"
1.33 ! bertrand 9073: C_STANDARD=-std=gnu99
1.17 bertrand 9074: break ;;
9075:
9076: esac
9077:
9078:
9079:
9080:
1.1 bertrand 9081:
9082:
9083:
9084:
9085:
9086:
9087:
9088:
9089:
9090:
9091:
9092:
9093:
9094:
9095:
9096:
9097:
9098:
9099:
1.9 bertrand 9100:
1.24 bertrand 9101:
1.30 bertrand 9102:
1.33 ! bertrand 9103:
! 9104:
! 9105:
1.1 bertrand 9106: ac_config_files="$ac_config_files Makefile"
9107:
9108: ac_config_files="$ac_config_files COPYING"
9109:
9110: ac_config_files="$ac_config_files tools/Makefile"
9111:
9112: ac_config_files="$ac_config_files src/Makefile"
9113:
9114: ac_config_files="$ac_config_files man/Makefile"
9115:
9116: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9117:
9118: ac_config_files="$ac_config_files doc/Makefile"
9119:
9120: ac_config_files="$ac_config_files scripts/Makefile"
9121:
9122: ac_config_files="$ac_config_files scripts/mkrplso"
9123:
9124: ac_config_files="$ac_config_files scripts/rplcc"
9125:
9126: ac_config_files="$ac_config_files scripts/rpllink"
9127:
9128: ac_config_files="$ac_config_files rpltags/Makefile"
9129:
9130: ac_config_files="$ac_config_files rpliconv/Makefile"
9131:
1.9 bertrand 9132: ac_config_files="$ac_config_files rplsums/Makefile"
9133:
1.1 bertrand 9134: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9135:
9136: ac_config_files="$ac_config_files lapack/blas/Makefile"
9137:
1.20 bertrand 9138: ac_config_files="$ac_config_files ptmalloc3/Makefile"
9139:
1.1 bertrand 9140:
9141: ac_config_files="$ac_config_files man/rpl.1"
9142:
9143: ac_config_files="$ac_config_files man/rplcc.1"
9144:
9145: ac_config_files="$ac_config_files man/rpllink.1"
9146:
9147: ac_config_files="$ac_config_files man/rpltags.1"
9148:
9149: ac_config_files="$ac_config_files man/mkrplso.1"
9150:
9151: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9152:
9153: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9154:
9155: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9156:
9157: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9158:
9159: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9160:
9161:
9162: cat >confcache <<\_ACEOF
9163: # This file is a shell script that caches the results of configure
9164: # tests run on this system so they can be shared between configure
9165: # scripts and configure runs, see configure's option --config-cache.
9166: # It is not useful on other systems. If it contains results you don't
9167: # want to keep, you may remove or edit it.
9168: #
9169: # config.status only pays attention to the cache file if you give it
9170: # the --recheck option to rerun configure.
9171: #
9172: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9173: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9174: # following values.
9175:
9176: _ACEOF
9177:
9178: # The following way of writing the cache mishandles newlines in values,
9179: # but we know of no workaround that is simple, portable, and efficient.
9180: # So, we kill variables containing newlines.
9181: # Ultrix sh set writes to stderr and can't be redirected directly,
9182: # and sets the high bit in the cache file unless we assign to the vars.
9183: (
9184: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9185: eval ac_val=\$$ac_var
9186: case $ac_val in #(
9187: *${as_nl}*)
9188: case $ac_var in #(
1.15 bertrand 9189: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9190: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1.1 bertrand 9191: esac
9192: case $ac_var in #(
9193: _ | IFS | as_nl) ;; #(
1.15 bertrand 9194: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9195: *) { eval $ac_var=; unset $ac_var;} ;;
1.1 bertrand 9196: esac ;;
9197: esac
9198: done
9199:
9200: (set) 2>&1 |
9201: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9202: *${as_nl}ac_space=\ *)
1.15 bertrand 9203: # `set' does not quote correctly, so add quotes: double-quote
9204: # substitution turns \\\\ into \\, and sed turns \\ into \.
1.1 bertrand 9205: sed -n \
9206: "s/'/'\\\\''/g;
9207: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9208: ;; #(
9209: *)
9210: # `set' quotes correctly as required by POSIX, so do not add quotes.
9211: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9212: ;;
9213: esac |
9214: sort
9215: ) |
9216: sed '
9217: /^ac_cv_env_/b end
9218: t clear
9219: :clear
9220: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9221: t end
9222: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9223: :end' >>confcache
9224: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9225: if test -w "$cache_file"; then
9226: test "x$cache_file" != "x/dev/null" &&
1.15 bertrand 9227: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9228: $as_echo "$as_me: updating cache $cache_file" >&6;}
1.1 bertrand 9229: cat confcache >$cache_file
9230: else
1.15 bertrand 9231: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9232: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.1 bertrand 9233: fi
9234: fi
9235: rm -f confcache
9236:
9237: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9238: # Let make expand exec_prefix.
9239: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9240:
9241: DEFS=-DHAVE_CONFIG_H
9242:
9243: ac_libobjs=
9244: ac_ltlibobjs=
9245: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9246: # 1. Remove the extension, and $U if already installed.
9247: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1.15 bertrand 9248: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
1.1 bertrand 9249: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9250: # will be set to the directory where LIBOBJS objects are built.
1.15 bertrand 9251: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9252: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1.1 bertrand 9253: done
9254: LIBOBJS=$ac_libobjs
9255:
9256: LTLIBOBJS=$ac_ltlibobjs
9257:
9258:
1.15 bertrand 9259: if test -n "$EXEEXT"; then
9260: am__EXEEXT_TRUE=
9261: am__EXEEXT_FALSE='#'
9262: else
9263: am__EXEEXT_TRUE='#'
9264: am__EXEEXT_FALSE=
9265: fi
9266:
1.1 bertrand 9267: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
1.15 bertrand 9268: as_fn_error "conditional \"AMDEP\" was never defined.
9269: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9270: fi
9271: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
1.15 bertrand 9272: as_fn_error "conditional \"am__fastdepCC\" was never defined.
9273: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9274: fi
9275: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
1.15 bertrand 9276: as_fn_error "conditional \"am__fastdepCXX\" was never defined.
9277: Usually this means the macro was only invoked conditionally." "$LINENO" 5
1.1 bertrand 9278: fi
9279:
9280: : ${CONFIG_STATUS=./config.status}
1.15 bertrand 9281: ac_write_fail=0
1.1 bertrand 9282: ac_clean_files_save=$ac_clean_files
9283: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
1.15 bertrand 9284: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9285: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9286: as_write_fail=0
9287: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1.1 bertrand 9288: #! $SHELL
9289: # Generated by $as_me.
9290: # Run this file to recreate the current configuration.
9291: # Compiler output produced by configure, useful for debugging
9292: # configure, is in config.log if it exists.
9293:
9294: debug=false
9295: ac_cs_recheck=false
9296: ac_cs_silent=false
1.15 bertrand 9297:
1.14 bertrand 9298: SHELL=\${CONFIG_SHELL-$SHELL}
1.15 bertrand 9299: export SHELL
9300: _ASEOF
9301: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9302: ## -------------------- ##
9303: ## M4sh Initialization. ##
9304: ## -------------------- ##
1.1 bertrand 9305:
9306: # Be more Bourne compatible
9307: DUALCASE=1; export DUALCASE # for MKS sh
1.15 bertrand 9308: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1.1 bertrand 9309: emulate sh
9310: NULLCMD=:
1.15 bertrand 9311: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1.1 bertrand 9312: # is contrary to our usage. Disable this feature.
9313: alias -g '${1+"$@"}'='"$@"'
9314: setopt NO_GLOB_SUBST
9315: else
1.15 bertrand 9316: case `(set -o) 2>/dev/null` in #(
9317: *posix*) :
9318: set -o posix ;; #(
9319: *) :
9320: ;;
1.1 bertrand 9321: esac
9322: fi
9323:
9324:
1.15 bertrand 9325: as_nl='
9326: '
9327: export as_nl
9328: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9329: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9330: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9331: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9332: # Prefer a ksh shell builtin over an external printf program on Solaris,
9333: # but without wasting forks for bash or zsh.
9334: if test -z "$BASH_VERSION$ZSH_VERSION" \
9335: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9336: as_echo='print -r --'
9337: as_echo_n='print -rn --'
9338: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9339: as_echo='printf %s\n'
9340: as_echo_n='printf %s'
9341: else
9342: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9343: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9344: as_echo_n='/usr/ucb/echo -n'
9345: else
9346: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9347: as_echo_n_body='eval
9348: arg=$1;
9349: case $arg in #(
9350: *"$as_nl"*)
9351: expr "X$arg" : "X\\(.*\\)$as_nl";
9352: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9353: esac;
9354: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9355: '
9356: export as_echo_n_body
9357: as_echo_n='sh -c $as_echo_n_body as_echo'
9358: fi
9359: export as_echo_body
9360: as_echo='sh -c $as_echo_body as_echo'
9361: fi
1.14 bertrand 9362:
9363: # The user is always right.
9364: if test "${PATH_SEPARATOR+set}" != set; then
1.15 bertrand 9365: PATH_SEPARATOR=:
9366: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9367: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9368: PATH_SEPARATOR=';'
9369: }
1.1 bertrand 9370: fi
9371:
9372:
9373: # IFS
9374: # We need space, tab and new line, in precisely that order. Quoting is
9375: # there to prevent editors from complaining about space-tab.
9376: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9377: # splitting by setting IFS to empty value.)
9378: IFS=" "" $as_nl"
9379:
9380: # Find who we are. Look in the path if we contain no directory separator.
1.15 bertrand 9381: case $0 in #((
1.1 bertrand 9382: *[\\/]* ) as_myself=$0 ;;
9383: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9384: for as_dir in $PATH
9385: do
9386: IFS=$as_save_IFS
9387: test -z "$as_dir" && as_dir=.
1.15 bertrand 9388: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9389: done
1.1 bertrand 9390: IFS=$as_save_IFS
9391:
9392: ;;
9393: esac
9394: # We did not find ourselves, most probably we were run as `sh COMMAND'
9395: # in which case we are not to be found in the path.
9396: if test "x$as_myself" = x; then
9397: as_myself=$0
9398: fi
9399: if test ! -f "$as_myself"; then
1.15 bertrand 9400: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9401: exit 1
1.1 bertrand 9402: fi
9403:
1.15 bertrand 9404: # Unset variables that we do not need and which cause bugs (e.g. in
9405: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9406: # suppresses any "Segmentation fault" message there. '((' could
9407: # trigger a bug in pdksh 5.2.14.
9408: for as_var in BASH_ENV ENV MAIL MAILPATH
9409: do eval test x\${$as_var+set} = xset \
9410: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
1.1 bertrand 9411: done
9412: PS1='$ '
9413: PS2='> '
9414: PS4='+ '
9415:
9416: # NLS nuisances.
1.15 bertrand 9417: LC_ALL=C
9418: export LC_ALL
9419: LANGUAGE=C
9420: export LANGUAGE
9421:
9422: # CDPATH.
9423: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9424:
9425:
9426: # as_fn_error ERROR [LINENO LOG_FD]
9427: # ---------------------------------
9428: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9429: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9430: # script with status $?, using 1 if that was 0.
9431: as_fn_error ()
9432: {
9433: as_status=$?; test $as_status -eq 0 && as_status=1
9434: if test "$3"; then
9435: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9436: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9437: fi
9438: $as_echo "$as_me: error: $1" >&2
9439: as_fn_exit $as_status
9440: } # as_fn_error
9441:
9442:
9443: # as_fn_set_status STATUS
9444: # -----------------------
9445: # Set $? to STATUS, without forking.
9446: as_fn_set_status ()
9447: {
9448: return $1
9449: } # as_fn_set_status
9450:
9451: # as_fn_exit STATUS
9452: # -----------------
9453: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9454: as_fn_exit ()
9455: {
9456: set +e
9457: as_fn_set_status $1
9458: exit $1
9459: } # as_fn_exit
9460:
9461: # as_fn_unset VAR
9462: # ---------------
9463: # Portably unset VAR.
9464: as_fn_unset ()
9465: {
9466: { eval $1=; unset $1;}
9467: }
9468: as_unset=as_fn_unset
9469: # as_fn_append VAR VALUE
9470: # ----------------------
9471: # Append the text in VALUE to the end of the definition contained in VAR. Take
9472: # advantage of any shell optimizations that allow amortized linear growth over
9473: # repeated appends, instead of the typical quadratic growth present in naive
9474: # implementations.
9475: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9476: eval 'as_fn_append ()
9477: {
9478: eval $1+=\$2
9479: }'
9480: else
9481: as_fn_append ()
9482: {
9483: eval $1=\$$1\$2
9484: }
9485: fi # as_fn_append
9486:
9487: # as_fn_arith ARG...
9488: # ------------------
9489: # Perform arithmetic evaluation on the ARGs, and store the result in the
9490: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9491: # must be portable across $(()) and expr.
9492: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9493: eval 'as_fn_arith ()
9494: {
9495: as_val=$(( $* ))
9496: }'
9497: else
9498: as_fn_arith ()
9499: {
9500: as_val=`expr "$@" || test $? -eq 1`
9501: }
9502: fi # as_fn_arith
9503:
1.1 bertrand 9504:
9505: if expr a : '\(a\)' >/dev/null 2>&1 &&
9506: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9507: as_expr=expr
9508: else
9509: as_expr=false
9510: fi
9511:
9512: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9513: as_basename=basename
9514: else
9515: as_basename=false
9516: fi
9517:
1.15 bertrand 9518: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9519: as_dirname=dirname
9520: else
9521: as_dirname=false
9522: fi
1.1 bertrand 9523:
9524: as_me=`$as_basename -- "$0" ||
9525: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9526: X"$0" : 'X\(//\)$' \| \
9527: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 9528: $as_echo X/"$0" |
1.1 bertrand 9529: sed '/^.*\/\([^/][^/]*\)\/*$/{
9530: s//\1/
9531: q
9532: }
9533: /^X\/\(\/\/\)$/{
9534: s//\1/
9535: q
9536: }
9537: /^X\/\(\/\).*/{
9538: s//\1/
9539: q
9540: }
1.14 bertrand 9541: s/.*/./; q'`
9542:
1.15 bertrand 9543: # Avoid depending upon Character Ranges.
9544: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9545: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9546: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9547: as_cr_digits='0123456789'
9548: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 bertrand 9549:
9550: ECHO_C= ECHO_N= ECHO_T=
1.15 bertrand 9551: case `echo -n x` in #(((((
1.1 bertrand 9552: -n*)
1.15 bertrand 9553: case `echo 'xy\c'` in
1.1 bertrand 9554: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
1.15 bertrand 9555: xy) ECHO_C='\c';;
9556: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9557: ECHO_T=' ';;
1.1 bertrand 9558: esac;;
9559: *)
9560: ECHO_N='-n';;
9561: esac
9562:
9563: rm -f conf$$ conf$$.exe conf$$.file
9564: if test -d conf$$.dir; then
9565: rm -f conf$$.dir/conf$$.file
9566: else
9567: rm -f conf$$.dir
1.15 bertrand 9568: mkdir conf$$.dir 2>/dev/null
1.1 bertrand 9569: fi
1.15 bertrand 9570: if (echo >conf$$.file) 2>/dev/null; then
9571: if ln -s conf$$.file conf$$ 2>/dev/null; then
9572: as_ln_s='ln -s'
9573: # ... but there are two gotchas:
9574: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9575: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9576: # In both cases, we have to default to `cp -p'.
9577: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9578: as_ln_s='cp -p'
9579: elif ln conf$$.file conf$$ 2>/dev/null; then
9580: as_ln_s=ln
9581: else
1.1 bertrand 9582: as_ln_s='cp -p'
1.15 bertrand 9583: fi
1.1 bertrand 9584: else
9585: as_ln_s='cp -p'
9586: fi
9587: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9588: rmdir conf$$.dir 2>/dev/null
9589:
1.15 bertrand 9590:
9591: # as_fn_mkdir_p
9592: # -------------
9593: # Create "$as_dir" as a directory, including parents if necessary.
9594: as_fn_mkdir_p ()
9595: {
9596:
9597: case $as_dir in #(
9598: -*) as_dir=./$as_dir;;
9599: esac
9600: test -d "$as_dir" || eval $as_mkdir_p || {
9601: as_dirs=
9602: while :; do
9603: case $as_dir in #(
9604: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9605: *) as_qdir=$as_dir;;
9606: esac
9607: as_dirs="'$as_qdir' $as_dirs"
9608: as_dir=`$as_dirname -- "$as_dir" ||
9609: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9610: X"$as_dir" : 'X\(//\)[^/]' \| \
9611: X"$as_dir" : 'X\(//\)$' \| \
9612: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9613: $as_echo X"$as_dir" |
9614: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9615: s//\1/
9616: q
9617: }
9618: /^X\(\/\/\)[^/].*/{
9619: s//\1/
9620: q
9621: }
9622: /^X\(\/\/\)$/{
9623: s//\1/
9624: q
9625: }
9626: /^X\(\/\).*/{
9627: s//\1/
9628: q
9629: }
9630: s/.*/./; q'`
9631: test -d "$as_dir" && break
9632: done
9633: test -z "$as_dirs" || eval "mkdir $as_dirs"
9634: } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9635:
9636:
9637: } # as_fn_mkdir_p
1.1 bertrand 9638: if mkdir -p . 2>/dev/null; then
1.15 bertrand 9639: as_mkdir_p='mkdir -p "$as_dir"'
1.1 bertrand 9640: else
9641: test -d ./-p && rmdir ./-p
9642: as_mkdir_p=false
9643: fi
9644:
9645: if test -x / >/dev/null 2>&1; then
9646: as_test_x='test -x'
9647: else
9648: if ls -dL / >/dev/null 2>&1; then
9649: as_ls_L_option=L
9650: else
9651: as_ls_L_option=
9652: fi
9653: as_test_x='
9654: eval sh -c '\''
9655: if test -d "$1"; then
1.15 bertrand 9656: test -d "$1/.";
1.1 bertrand 9657: else
1.15 bertrand 9658: case $1 in #(
9659: -*)set "./$1";;
1.1 bertrand 9660: esac;
1.15 bertrand 9661: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
1.1 bertrand 9662: ???[sx]*):;;*)false;;esac;fi
9663: '\'' sh
9664: '
9665: fi
9666: as_executable_p=$as_test_x
9667:
9668: # Sed expression to map a string onto a valid CPP name.
9669: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9670:
9671: # Sed expression to map a string onto a valid variable name.
9672: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9673:
9674:
9675: exec 6>&1
1.15 bertrand 9676: ## ----------------------------------- ##
9677: ## Main body of $CONFIG_STATUS script. ##
9678: ## ----------------------------------- ##
9679: _ASEOF
9680: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
1.1 bertrand 9681:
1.15 bertrand 9682: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9683: # Save the log message, to keep $0 and so on meaningful, and to
1.1 bertrand 9684: # report actual input values of CONFIG_FILES etc. instead of their
9685: # values after options handling.
9686: ac_log="
1.29 bertrand 9687: This file was extended by rpl $as_me 4.0.18, which was
1.15 bertrand 9688: generated by GNU Autoconf 2.65. Invocation command line was
1.1 bertrand 9689:
9690: CONFIG_FILES = $CONFIG_FILES
9691: CONFIG_HEADERS = $CONFIG_HEADERS
9692: CONFIG_LINKS = $CONFIG_LINKS
9693: CONFIG_COMMANDS = $CONFIG_COMMANDS
9694: $ $0 $@
9695:
9696: on `(hostname || uname -n) 2>/dev/null | sed 1q`
9697: "
9698:
9699: _ACEOF
9700:
1.15 bertrand 9701: case $ac_config_files in *"
9702: "*) set x $ac_config_files; shift; ac_config_files=$*;;
9703: esac
9704:
9705: case $ac_config_headers in *"
9706: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9707: esac
9708:
9709:
9710: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 9711: # Files that config.status was made for.
9712: config_files="$ac_config_files"
9713: config_headers="$ac_config_headers"
9714: config_commands="$ac_config_commands"
9715:
9716: _ACEOF
9717:
1.15 bertrand 9718: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 9719: ac_cs_usage="\
1.15 bertrand 9720: \`$as_me' instantiates files and other configuration actions
9721: from templates according to the current configuration. Unless the files
9722: and actions are specified as TAGs, all are instantiated by default.
1.1 bertrand 9723:
1.15 bertrand 9724: Usage: $0 [OPTION]... [TAG]...
1.1 bertrand 9725:
9726: -h, --help print this help, then exit
9727: -V, --version print version number and configuration settings, then exit
1.15 bertrand 9728: --config print configuration, then exit
9729: -q, --quiet, --silent
9730: do not print progress messages
1.1 bertrand 9731: -d, --debug don't remove temporary files
9732: --recheck update $as_me by reconfiguring in the same conditions
1.15 bertrand 9733: --file=FILE[:TEMPLATE]
9734: instantiate the configuration file FILE
9735: --header=FILE[:TEMPLATE]
9736: instantiate the configuration header FILE
1.1 bertrand 9737:
9738: Configuration files:
9739: $config_files
9740:
9741: Configuration headers:
9742: $config_headers
9743:
9744: Configuration commands:
9745: $config_commands
9746:
1.15 bertrand 9747: Report bugs to the package provider."
1.1 bertrand 9748:
9749: _ACEOF
1.15 bertrand 9750: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9751: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1.1 bertrand 9752: ac_cs_version="\\
1.29 bertrand 9753: rpl config.status 4.0.18
1.15 bertrand 9754: configured by $0, generated by GNU Autoconf 2.65,
9755: with options \\"\$ac_cs_config\\"
1.1 bertrand 9756:
1.15 bertrand 9757: Copyright (C) 2009 Free Software Foundation, Inc.
1.1 bertrand 9758: This config.status script is free software; the Free Software Foundation
9759: gives unlimited permission to copy, distribute and modify it."
9760:
9761: ac_pwd='$ac_pwd'
9762: srcdir='$srcdir'
9763: INSTALL='$INSTALL'
9764: MKDIR_P='$MKDIR_P'
1.15 bertrand 9765: AWK='$AWK'
9766: test -n "\$AWK" || AWK=awk
1.1 bertrand 9767: _ACEOF
9768:
1.15 bertrand 9769: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9770: # The default lists apply if the user does not specify any file.
1.1 bertrand 9771: ac_need_defaults=:
9772: while test $# != 0
9773: do
9774: case $1 in
9775: --*=*)
9776: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9777: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9778: ac_shift=:
9779: ;;
9780: *)
9781: ac_option=$1
9782: ac_optarg=$2
9783: ac_shift=shift
9784: ;;
9785: esac
9786:
9787: case $ac_option in
9788: # Handling of the options.
9789: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9790: ac_cs_recheck=: ;;
9791: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
1.15 bertrand 9792: $as_echo "$ac_cs_version"; exit ;;
9793: --config | --confi | --conf | --con | --co | --c )
9794: $as_echo "$ac_cs_config"; exit ;;
1.1 bertrand 9795: --debug | --debu | --deb | --de | --d | -d )
9796: debug=: ;;
9797: --file | --fil | --fi | --f )
9798: $ac_shift
1.15 bertrand 9799: case $ac_optarg in
9800: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9801: esac
9802: as_fn_append CONFIG_FILES " '$ac_optarg'"
1.1 bertrand 9803: ac_need_defaults=false;;
9804: --header | --heade | --head | --hea )
9805: $ac_shift
1.15 bertrand 9806: case $ac_optarg in
9807: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9808: esac
9809: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
1.1 bertrand 9810: ac_need_defaults=false;;
9811: --he | --h)
9812: # Conflict between --help and --header
1.15 bertrand 9813: as_fn_error "ambiguous option: \`$1'
9814: Try \`$0 --help' for more information.";;
1.1 bertrand 9815: --help | --hel | -h )
1.15 bertrand 9816: $as_echo "$ac_cs_usage"; exit ;;
1.1 bertrand 9817: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9818: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9819: ac_cs_silent=: ;;
9820:
9821: # This is an error.
1.15 bertrand 9822: -*) as_fn_error "unrecognized option: \`$1'
9823: Try \`$0 --help' for more information." ;;
1.1 bertrand 9824:
1.15 bertrand 9825: *) as_fn_append ac_config_targets " $1"
1.1 bertrand 9826: ac_need_defaults=false ;;
9827:
9828: esac
9829: shift
9830: done
9831:
9832: ac_configure_extra_args=
9833:
9834: if $ac_cs_silent; then
9835: exec 6>/dev/null
9836: ac_configure_extra_args="$ac_configure_extra_args --silent"
9837: fi
9838:
9839: _ACEOF
1.15 bertrand 9840: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 9841: if \$ac_cs_recheck; then
1.15 bertrand 9842: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9843: shift
9844: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9845: CONFIG_SHELL='$SHELL'
1.1 bertrand 9846: export CONFIG_SHELL
1.15 bertrand 9847: exec "\$@"
1.1 bertrand 9848: fi
9849:
9850: _ACEOF
1.15 bertrand 9851: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 9852: exec 5>>config.log
9853: {
9854: echo
9855: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9856: ## Running $as_me. ##
9857: _ASBOX
1.15 bertrand 9858: $as_echo "$ac_log"
1.1 bertrand 9859: } >&5
9860:
9861: _ACEOF
1.15 bertrand 9862: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 9863: #
9864: # INIT-COMMANDS
9865: #
9866: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9867:
9868: _ACEOF
9869:
1.15 bertrand 9870: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 9871:
9872: # Handling of arguments.
9873: for ac_config_target in $ac_config_targets
9874: do
9875: case $ac_config_target in
9876: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
9877: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9878: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9879: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
9880: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9881: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9882: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9883: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
9884: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9885: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
9886: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
9887: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
9888: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
9889: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
9890: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
1.9 bertrand 9891: "rplsums/Makefile") CONFIG_FILES="$CONFIG_FILES rplsums/Makefile" ;;
1.1 bertrand 9892: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
9893: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
1.20 bertrand 9894: "ptmalloc3/Makefile") CONFIG_FILES="$CONFIG_FILES ptmalloc3/Makefile" ;;
1.1 bertrand 9895: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
9896: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
9897: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
9898: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
9899: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
9900: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
9901: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
9902: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
9903: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
9904: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
9905:
1.15 bertrand 9906: *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1.1 bertrand 9907: esac
9908: done
9909:
9910:
9911: # If the user did not use the arguments to specify the items to instantiate,
9912: # then the envvar interface is used. Set only those that are not.
9913: # We use the long form for the default assignment because of an extremely
9914: # bizarre bug on SunOS 4.1.3.
9915: if $ac_need_defaults; then
9916: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9917: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9918: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9919: fi
9920:
9921: # Have a temporary directory for convenience. Make it in the build tree
9922: # simply because there is no reason against having it here, and in addition,
9923: # creating and moving files from /tmp can sometimes cause problems.
9924: # Hook for its removal unless debugging.
9925: # Note that there is a small window in which the directory will not be cleaned:
9926: # after its creation but before its name has been assigned to `$tmp'.
9927: $debug ||
9928: {
9929: tmp=
9930: trap 'exit_status=$?
9931: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9932: ' 0
1.15 bertrand 9933: trap 'as_fn_exit 1' 1 2 13 15
1.1 bertrand 9934: }
9935: # Create a (secure) tmp directory for tmp files.
9936:
9937: {
9938: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9939: test -n "$tmp" && test -d "$tmp"
9940: } ||
9941: {
9942: tmp=./conf$$-$RANDOM
9943: (umask 077 && mkdir "$tmp")
1.15 bertrand 9944: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9945:
9946: # Set up the scripts for CONFIG_FILES section.
9947: # No need to generate them if there are no CONFIG_FILES.
9948: # This happens for instance with `./config.status config.h'.
9949: if test -n "$CONFIG_FILES"; then
1.14 bertrand 9950:
1.1 bertrand 9951:
1.15 bertrand 9952: ac_cr=`echo X | tr X '\015'`
9953: # On cygwin, bash can eat \r inside `` if the user requested igncr.
9954: # But we know of no other shell where ac_cr would be empty at this
9955: # point, so we can use a bashism as a fallback.
9956: if test "x$ac_cr" = x; then
9957: eval ac_cr=\$\'\\r\'
9958: fi
9959: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9960: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9961: ac_cs_awk_cr='\r'
9962: else
9963: ac_cs_awk_cr=$ac_cr
9964: fi
1.1 bertrand 9965:
1.15 bertrand 9966: echo 'BEGIN {' >"$tmp/subs1.awk" &&
1.14 bertrand 9967: _ACEOF
9968:
9969:
1.15 bertrand 9970: {
9971: echo "cat >conf$$subs.awk <<_ACEOF" &&
9972: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9973: echo "_ACEOF"
9974: } >conf$$subs.sh ||
9975: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9976: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
1.14 bertrand 9977: ac_delim='%!_!# '
9978: for ac_last_try in false false false false false :; do
1.15 bertrand 9979: . ./conf$$subs.sh ||
9980: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 bertrand 9981:
1.15 bertrand 9982: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9983: if test $ac_delim_n = $ac_delim_num; then
1.14 bertrand 9984: break
9985: elif $ac_last_try; then
1.15 bertrand 9986: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
1.14 bertrand 9987: else
9988: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9989: fi
9990: done
1.15 bertrand 9991: rm -f conf$$subs.sh
1.1 bertrand 9992:
1.15 bertrand 9993: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9994: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9995: _ACEOF
9996: sed -n '
9997: h
9998: s/^/S["/; s/!.*/"]=/
9999: p
10000: g
10001: s/^[^!]*!//
10002: :repl
10003: t repl
10004: s/'"$ac_delim"'$//
10005: t delim
10006: :nl
10007: h
10008: s/\(.\{148\}\)..*/\1/
10009: t more1
10010: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10011: p
10012: n
10013: b repl
10014: :more1
10015: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10016: p
10017: g
10018: s/.\{148\}//
10019: t nl
10020: :delim
10021: h
10022: s/\(.\{148\}\)..*/\1/
10023: t more2
10024: s/["\\]/\\&/g; s/^/"/; s/$/"/
10025: p
10026: b
10027: :more2
10028: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10029: p
10030: g
10031: s/.\{148\}//
10032: t delim
10033: ' <conf$$subs.awk | sed '
10034: /^[^""]/{
10035: N
10036: s/\n//
10037: }
10038: ' >>$CONFIG_STATUS || ac_write_fail=1
10039: rm -f conf$$subs.awk
10040: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10041: _ACAWK
10042: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10043: for (key in S) S_is_set[key] = 1
10044: FS = ""
1.1 bertrand 10045:
1.15 bertrand 10046: }
10047: {
10048: line = $ 0
10049: nfields = split(line, field, "@")
10050: substed = 0
10051: len = length(field[1])
10052: for (i = 2; i < nfields; i++) {
10053: key = field[i]
10054: keylen = length(key)
10055: if (S_is_set[key]) {
10056: value = S[key]
10057: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10058: len += length(value) + length(field[++i])
10059: substed = 1
10060: } else
10061: len += 1 + keylen
10062: }
1.1 bertrand 10063:
1.15 bertrand 10064: print line
10065: }
1.1 bertrand 10066:
1.15 bertrand 10067: _ACAWK
1.14 bertrand 10068: _ACEOF
1.15 bertrand 10069: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10070: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10071: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10072: else
10073: cat
10074: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10075: || as_fn_error "could not setup config files machinery" "$LINENO" 5
1.1 bertrand 10076: _ACEOF
10077:
10078: # VPATH may cause trouble with some makes, so we remove $(srcdir),
10079: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10080: # trailing colons and then remove the whole line if VPATH becomes empty
10081: # (actually we leave an empty line to preserve line numbers).
10082: if test "x$srcdir" = x.; then
10083: ac_vpsub='/^[ ]*VPATH[ ]*=/{
10084: s/:*\$(srcdir):*/:/
10085: s/:*\${srcdir}:*/:/
10086: s/:*@srcdir@:*/:/
10087: s/^\([^=]*=[ ]*\):*/\1/
10088: s/:*$//
10089: s/^[^=]*=[ ]*$//
10090: }'
10091: fi
10092:
1.15 bertrand 10093: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10094: fi # test -n "$CONFIG_FILES"
10095:
1.15 bertrand 10096: # Set up the scripts for CONFIG_HEADERS section.
10097: # No need to generate them if there are no CONFIG_HEADERS.
10098: # This happens for instance with `./config.status Makefile'.
10099: if test -n "$CONFIG_HEADERS"; then
10100: cat >"$tmp/defines.awk" <<\_ACAWK ||
10101: BEGIN {
10102: _ACEOF
10103:
10104: # Transform confdefs.h into an awk script `defines.awk', embedded as
10105: # here-document in config.status, that substitutes the proper values into
10106: # config.h.in to produce config.h.
10107:
10108: # Create a delimiter string that does not exist in confdefs.h, to ease
10109: # handling of long lines.
10110: ac_delim='%!_!# '
10111: for ac_last_try in false false :; do
10112: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10113: if test -z "$ac_t"; then
10114: break
10115: elif $ac_last_try; then
10116: as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10117: else
10118: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10119: fi
10120: done
10121:
10122: # For the awk script, D is an array of macro values keyed by name,
10123: # likewise P contains macro parameters if any. Preserve backslash
10124: # newline sequences.
10125:
10126: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10127: sed -n '
10128: s/.\{148\}/&'"$ac_delim"'/g
10129: t rset
10130: :rset
10131: s/^[ ]*#[ ]*define[ ][ ]*/ /
10132: t def
10133: d
10134: :def
10135: s/\\$//
10136: t bsnl
10137: s/["\\]/\\&/g
10138: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10139: D["\1"]=" \3"/p
10140: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10141: d
10142: :bsnl
10143: s/["\\]/\\&/g
10144: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10145: D["\1"]=" \3\\\\\\n"\\/p
10146: t cont
10147: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10148: t cont
10149: d
10150: :cont
10151: n
10152: s/.\{148\}/&'"$ac_delim"'/g
10153: t clear
10154: :clear
10155: s/\\$//
10156: t bsnlc
10157: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10158: d
10159: :bsnlc
10160: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10161: b cont
10162: ' <confdefs.h | sed '
10163: s/'"$ac_delim"'/"\\\
10164: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10165:
10166: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10167: for (key in D) D_is_set[key] = 1
10168: FS = ""
10169: }
10170: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10171: line = \$ 0
10172: split(line, arg, " ")
10173: if (arg[1] == "#") {
10174: defundef = arg[2]
10175: mac1 = arg[3]
10176: } else {
10177: defundef = substr(arg[1], 2)
10178: mac1 = arg[2]
10179: }
10180: split(mac1, mac2, "(") #)
10181: macro = mac2[1]
10182: prefix = substr(line, 1, index(line, defundef) - 1)
10183: if (D_is_set[macro]) {
10184: # Preserve the white space surrounding the "#".
10185: print prefix "define", macro P[macro] D[macro]
10186: next
10187: } else {
10188: # Replace #undef with comments. This is necessary, for example,
10189: # in the case of _POSIX_SOURCE, which is predefined and required
10190: # on some systems where configure will not decide to define it.
10191: if (defundef == "undef") {
10192: print "/*", prefix defundef, macro, "*/"
10193: next
10194: }
10195: }
10196: }
10197: { print }
10198: _ACAWK
10199: _ACEOF
10200: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10201: as_fn_error "could not setup config headers machinery" "$LINENO" 5
10202: fi # test -n "$CONFIG_HEADERS"
10203:
1.1 bertrand 10204:
1.15 bertrand 10205: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10206: shift
10207: for ac_tag
1.1 bertrand 10208: do
10209: case $ac_tag in
10210: :[FHLC]) ac_mode=$ac_tag; continue;;
10211: esac
10212: case $ac_mode$ac_tag in
10213: :[FHL]*:*);;
1.15 bertrand 10214: :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
1.1 bertrand 10215: :[FH]-) ac_tag=-:-;;
10216: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10217: esac
10218: ac_save_IFS=$IFS
10219: IFS=:
10220: set x $ac_tag
10221: IFS=$ac_save_IFS
10222: shift
10223: ac_file=$1
10224: shift
10225:
10226: case $ac_mode in
10227: :L) ac_source=$1;;
10228: :[FH])
10229: ac_file_inputs=
10230: for ac_f
10231: do
10232: case $ac_f in
10233: -) ac_f="$tmp/stdin";;
10234: *) # Look for the file first in the build tree, then in the source tree
10235: # (if the path is not absolute). The absolute path cannot be DOS-style,
10236: # because $ac_f cannot contain `:'.
10237: test -f "$ac_f" ||
10238: case $ac_f in
10239: [\\/$]*) false;;
10240: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10241: esac ||
1.15 bertrand 10242: as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
1.1 bertrand 10243: esac
1.15 bertrand 10244: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10245: as_fn_append ac_file_inputs " '$ac_f'"
1.1 bertrand 10246: done
10247:
10248: # Let's still pretend it is `configure' which instantiates (i.e., don't
10249: # use $as_me), people would be surprised to read:
10250: # /* config.h. Generated by config.status. */
1.15 bertrand 10251: configure_input='Generated from '`
10252: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10253: `' by configure.'
1.1 bertrand 10254: if test x"$ac_file" != x-; then
10255: configure_input="$ac_file. $configure_input"
1.15 bertrand 10256: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10257: $as_echo "$as_me: creating $ac_file" >&6;}
1.1 bertrand 10258: fi
1.15 bertrand 10259: # Neutralize special characters interpreted by sed in replacement strings.
10260: case $configure_input in #(
10261: *\&* | *\|* | *\\* )
10262: ac_sed_conf_input=`$as_echo "$configure_input" |
10263: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10264: *) ac_sed_conf_input=$configure_input;;
10265: esac
1.1 bertrand 10266:
10267: case $ac_tag in
1.15 bertrand 10268: *:-:* | *:-) cat >"$tmp/stdin" \
10269: || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
1.1 bertrand 10270: esac
10271: ;;
10272: esac
10273:
10274: ac_dir=`$as_dirname -- "$ac_file" ||
10275: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10276: X"$ac_file" : 'X\(//\)[^/]' \| \
10277: X"$ac_file" : 'X\(//\)$' \| \
10278: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10279: $as_echo X"$ac_file" |
1.1 bertrand 10280: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10281: s//\1/
10282: q
10283: }
10284: /^X\(\/\/\)[^/].*/{
10285: s//\1/
10286: q
10287: }
10288: /^X\(\/\/\)$/{
10289: s//\1/
10290: q
10291: }
10292: /^X\(\/\).*/{
10293: s//\1/
10294: q
10295: }
10296: s/.*/./; q'`
1.15 bertrand 10297: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 bertrand 10298: ac_builddir=.
10299:
10300: case "$ac_dir" in
10301: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10302: *)
1.15 bertrand 10303: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 10304: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 10305: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 10306: case $ac_top_builddir_sub in
10307: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10308: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10309: esac ;;
10310: esac
10311: ac_abs_top_builddir=$ac_pwd
10312: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10313: # for backward compatibility:
10314: ac_top_builddir=$ac_top_build_prefix
10315:
10316: case $srcdir in
10317: .) # We are building in place.
10318: ac_srcdir=.
10319: ac_top_srcdir=$ac_top_builddir_sub
10320: ac_abs_top_srcdir=$ac_pwd ;;
10321: [\\/]* | ?:[\\/]* ) # Absolute name.
10322: ac_srcdir=$srcdir$ac_dir_suffix;
10323: ac_top_srcdir=$srcdir
10324: ac_abs_top_srcdir=$srcdir ;;
10325: *) # Relative name.
10326: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10327: ac_top_srcdir=$ac_top_build_prefix$srcdir
10328: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10329: esac
10330: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10331:
10332:
10333: case $ac_mode in
10334: :F)
10335: #
10336: # CONFIG_FILE
10337: #
10338:
10339: case $INSTALL in
10340: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10341: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10342: esac
10343: ac_MKDIR_P=$MKDIR_P
10344: case $MKDIR_P in
10345: [\\/$]* | ?:[\\/]* ) ;;
10346: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10347: esac
10348: _ACEOF
10349:
1.15 bertrand 10350: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10351: # If the template does not know about datarootdir, expand it.
10352: # FIXME: This hack should be removed a few years after 2.60.
10353: ac_datarootdir_hack=; ac_datarootdir_seen=
1.15 bertrand 10354: ac_sed_dataroot='
10355: /datarootdir/ {
1.1 bertrand 10356: p
10357: q
10358: }
10359: /@datadir@/p
10360: /@docdir@/p
10361: /@infodir@/p
10362: /@localedir@/p
1.15 bertrand 10363: /@mandir@/p'
10364: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
1.1 bertrand 10365: *datarootdir*) ac_datarootdir_seen=yes;;
10366: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
1.15 bertrand 10367: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10368: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
1.1 bertrand 10369: _ACEOF
1.15 bertrand 10370: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1.1 bertrand 10371: ac_datarootdir_hack='
10372: s&@datadir@&$datadir&g
10373: s&@docdir@&$docdir&g
10374: s&@infodir@&$infodir&g
10375: s&@localedir@&$localedir&g
10376: s&@mandir@&$mandir&g
1.15 bertrand 10377: s&\\\${datarootdir}&$datarootdir&g' ;;
1.1 bertrand 10378: esac
10379: _ACEOF
10380:
10381: # Neutralize VPATH when `$srcdir' = `.'.
10382: # Shell code in configure.ac might set extrasub.
10383: # FIXME: do we really want to maintain this feature?
1.15 bertrand 10384: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10385: ac_sed_extra="$ac_vpsub
1.1 bertrand 10386: $extrasub
10387: _ACEOF
1.15 bertrand 10388: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1.1 bertrand 10389: :t
10390: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
1.15 bertrand 10391: s|@configure_input@|$ac_sed_conf_input|;t t
1.1 bertrand 10392: s&@top_builddir@&$ac_top_builddir_sub&;t t
1.15 bertrand 10393: s&@top_build_prefix@&$ac_top_build_prefix&;t t
1.1 bertrand 10394: s&@srcdir@&$ac_srcdir&;t t
10395: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10396: s&@top_srcdir@&$ac_top_srcdir&;t t
10397: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10398: s&@builddir@&$ac_builddir&;t t
10399: s&@abs_builddir@&$ac_abs_builddir&;t t
10400: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10401: s&@INSTALL@&$ac_INSTALL&;t t
10402: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10403: $ac_datarootdir_hack
1.15 bertrand 10404: "
10405: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10406: || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10407:
10408: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10409: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10410: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
1.15 bertrand 10411: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1 bertrand 10412: which seems to be undefined. Please make sure it is defined." >&5
1.15 bertrand 10413: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
1.1 bertrand 10414: which seems to be undefined. Please make sure it is defined." >&2;}
10415:
10416: rm -f "$tmp/stdin"
10417: case $ac_file in
1.15 bertrand 10418: -) cat "$tmp/out" && rm -f "$tmp/out";;
10419: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10420: esac \
10421: || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10422: ;;
10423: :H)
10424: #
10425: # CONFIG_HEADER
10426: #
10427: if test x"$ac_file" != x-; then
1.15 bertrand 10428: {
10429: $as_echo "/* $configure_input */" \
10430: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10431: } >"$tmp/config.h" \
10432: || as_fn_error "could not create $ac_file" "$LINENO" 5
10433: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10434: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10435: $as_echo "$as_me: $ac_file is unchanged" >&6;}
1.1 bertrand 10436: else
1.15 bertrand 10437: rm -f "$ac_file"
10438: mv "$tmp/config.h" "$ac_file" \
10439: || as_fn_error "could not create $ac_file" "$LINENO" 5
1.1 bertrand 10440: fi
10441: else
1.15 bertrand 10442: $as_echo "/* $configure_input */" \
10443: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10444: || as_fn_error "could not create -" "$LINENO" 5
1.1 bertrand 10445: fi
1.15 bertrand 10446: # Compute "$ac_file"'s index in $config_headers.
10447: _am_arg="$ac_file"
1.1 bertrand 10448: _am_stamp_count=1
10449: for _am_header in $config_headers :; do
10450: case $_am_header in
10451: $_am_arg | $_am_arg:* )
10452: break ;;
10453: * )
10454: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10455: esac
10456: done
10457: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10458: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10459: X"$_am_arg" : 'X\(//\)[^/]' \| \
10460: X"$_am_arg" : 'X\(//\)$' \| \
10461: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10462: $as_echo X"$_am_arg" |
1.1 bertrand 10463: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10464: s//\1/
10465: q
10466: }
10467: /^X\(\/\/\)[^/].*/{
10468: s//\1/
10469: q
10470: }
10471: /^X\(\/\/\)$/{
10472: s//\1/
10473: q
10474: }
10475: /^X\(\/\).*/{
10476: s//\1/
10477: q
10478: }
10479: s/.*/./; q'`/stamp-h$_am_stamp_count
10480: ;;
10481:
1.15 bertrand 10482: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10483: $as_echo "$as_me: executing $ac_file commands" >&6;}
1.1 bertrand 10484: ;;
10485: esac
10486:
10487:
10488: case $ac_file$ac_mode in
1.15 bertrand 10489: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10490: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10491: # are listed without --file. Let's play safe and only enable the eval
10492: # if we detect the quoting.
10493: case $CONFIG_FILES in
10494: *\'*) eval set x "$CONFIG_FILES" ;;
10495: *) set x $CONFIG_FILES ;;
10496: esac
10497: shift
10498: for mf
10499: do
10500: # Strip MF so we end up with the name of the file.
10501: mf=`echo "$mf" | sed -e 's/:.*$//'`
10502: # Check whether this is an Automake generated Makefile or not.
10503: # We used to match only the files named `Makefile.in', but
10504: # some people rename them; so instead we look at the file content.
10505: # Grep'ing the first line is not enough: some people post-process
10506: # each Makefile.in and add a new line on top of each file to say so.
10507: # Grep'ing the whole file is not good either: AIX grep has a line
10508: # limit of 2048, but all sed's we know have understand at least 4000.
10509: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10510: dirpart=`$as_dirname -- "$mf" ||
1.1 bertrand 10511: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10512: X"$mf" : 'X\(//\)[^/]' \| \
10513: X"$mf" : 'X\(//\)$' \| \
10514: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10515: $as_echo X"$mf" |
1.1 bertrand 10516: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10517: s//\1/
10518: q
10519: }
10520: /^X\(\/\/\)[^/].*/{
10521: s//\1/
10522: q
10523: }
10524: /^X\(\/\/\)$/{
10525: s//\1/
10526: q
10527: }
10528: /^X\(\/\).*/{
10529: s//\1/
10530: q
10531: }
10532: s/.*/./; q'`
1.15 bertrand 10533: else
10534: continue
10535: fi
10536: # Extract the definition of DEPDIR, am__include, and am__quote
10537: # from the Makefile without running `make'.
10538: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10539: test -z "$DEPDIR" && continue
10540: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10541: test -z "am__include" && continue
10542: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10543: # When using ansi2knr, U may be empty or an underscore; expand it
10544: U=`sed -n 's/^U = //p' < "$mf"`
10545: # Find all dependency output files, they are included files with
10546: # $(DEPDIR) in their names. We invoke sed twice because it is the
10547: # simplest approach to changing $(DEPDIR) to its actual value in the
10548: # expansion.
10549: for file in `sed -n "
10550: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10551: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10552: # Make sure the directory exists.
10553: test -f "$dirpart/$file" && continue
10554: fdir=`$as_dirname -- "$file" ||
1.1 bertrand 10555: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10556: X"$file" : 'X\(//\)[^/]' \| \
10557: X"$file" : 'X\(//\)$' \| \
10558: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
1.15 bertrand 10559: $as_echo X"$file" |
1.1 bertrand 10560: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10561: s//\1/
10562: q
10563: }
10564: /^X\(\/\/\)[^/].*/{
10565: s//\1/
10566: q
10567: }
10568: /^X\(\/\/\)$/{
10569: s//\1/
10570: q
10571: }
10572: /^X\(\/\).*/{
10573: s//\1/
10574: q
10575: }
10576: s/.*/./; q'`
1.15 bertrand 10577: as_dir=$dirpart/$fdir; as_fn_mkdir_p
10578: # echo "creating $dirpart/$file"
10579: echo '# dummy' > "$dirpart/$file"
1.1 bertrand 10580: done
10581: done
1.15 bertrand 10582: }
1.1 bertrand 10583: ;;
10584:
10585: esac
10586: done # for ac_tag
10587:
10588:
1.15 bertrand 10589: as_fn_exit 0
1.1 bertrand 10590: _ACEOF
10591: ac_clean_files=$ac_clean_files_save
10592:
1.15 bertrand 10593: test $ac_write_fail = 0 ||
10594: as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10595:
1.1 bertrand 10596:
10597: # configure is writing to config.log, and then calls config.status.
10598: # config.status does its own redirection, appending to config.log.
10599: # Unfortunately, on DOS this fails, as config.log is still kept open
10600: # by configure, so config.status won't be able to write to it; its
10601: # output is simply discarded. So we exec the FD to /dev/null,
10602: # effectively closing config.log, so it can be properly (re)opened and
10603: # appended to by config.status. When coming back to configure, we
10604: # need to make the FD available again.
10605: if test "$no_create" != yes; then
10606: ac_cs_success=:
10607: ac_config_status_args=
10608: test "$silent" = yes &&
10609: ac_config_status_args="$ac_config_status_args --quiet"
10610: exec 5>/dev/null
10611: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10612: exec 5>>config.log
10613: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10614: # would make configure fail if this is the last instruction.
1.15 bertrand 10615: $ac_cs_success || as_fn_exit $?
1.1 bertrand 10616: fi
10617:
10618: #
10619: # CONFIG_SUBDIRS section.
10620: #
10621: if test "$no_recursion" != yes; then
10622:
1.15 bertrand 10623: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10624: # so they do not pile up.
1.1 bertrand 10625: ac_sub_configure_args=
10626: ac_prev=
10627: eval "set x $ac_configure_args"
10628: shift
10629: for ac_arg
10630: do
10631: if test -n "$ac_prev"; then
10632: ac_prev=
10633: continue
10634: fi
10635: case $ac_arg in
10636: -cache-file | --cache-file | --cache-fil | --cache-fi \
10637: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10638: ac_prev=cache_file ;;
10639: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10640: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10641: | --c=*)
10642: ;;
10643: --config-cache | -C)
10644: ;;
10645: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10646: ac_prev=srcdir ;;
10647: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10648: ;;
10649: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10650: ac_prev=prefix ;;
10651: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10652: ;;
1.15 bertrand 10653: --disable-option-checking)
10654: ;;
1.1 bertrand 10655: *)
10656: case $ac_arg in
1.15 bertrand 10657: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 bertrand 10658: esac
1.15 bertrand 10659: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
1.1 bertrand 10660: esac
10661: done
10662:
10663: # Always prepend --prefix to ensure using the same prefix
10664: # in subdir configurations.
10665: ac_arg="--prefix=$prefix"
10666: case $ac_arg in
1.15 bertrand 10667: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1.1 bertrand 10668: esac
10669: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10670:
10671: # Pass --silent
10672: if test "$silent" = yes; then
10673: ac_sub_configure_args="--silent $ac_sub_configure_args"
10674: fi
10675:
1.15 bertrand 10676: # Always prepend --disable-option-checking to silence warnings, since
10677: # different subdirs can have different --enable and --with options.
10678: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10679:
1.1 bertrand 10680: ac_popdir=`pwd`
10681: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10682:
10683: # Do not complain, so a configure script can configure whichever
10684: # parts of a large source tree are present.
10685: test -d "$srcdir/$ac_dir" || continue
10686:
10687: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
1.15 bertrand 10688: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10689: $as_echo "$ac_msg" >&6
10690: as_dir="$ac_dir"; as_fn_mkdir_p
1.1 bertrand 10691: ac_builddir=.
10692:
10693: case "$ac_dir" in
10694: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10695: *)
1.15 bertrand 10696: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1.1 bertrand 10697: # A ".." for each directory in $ac_dir_suffix.
1.15 bertrand 10698: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1.1 bertrand 10699: case $ac_top_builddir_sub in
10700: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10701: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10702: esac ;;
10703: esac
10704: ac_abs_top_builddir=$ac_pwd
10705: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10706: # for backward compatibility:
10707: ac_top_builddir=$ac_top_build_prefix
10708:
10709: case $srcdir in
10710: .) # We are building in place.
10711: ac_srcdir=.
10712: ac_top_srcdir=$ac_top_builddir_sub
10713: ac_abs_top_srcdir=$ac_pwd ;;
10714: [\\/]* | ?:[\\/]* ) # Absolute name.
10715: ac_srcdir=$srcdir$ac_dir_suffix;
10716: ac_top_srcdir=$srcdir
10717: ac_abs_top_srcdir=$srcdir ;;
10718: *) # Relative name.
10719: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10720: ac_top_srcdir=$ac_top_build_prefix$srcdir
10721: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10722: esac
10723: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10724:
10725:
10726: cd "$ac_dir"
10727:
10728: # Check for guested configure; otherwise get Cygnus style configure.
10729: if test -f "$ac_srcdir/configure.gnu"; then
10730: ac_sub_configure=$ac_srcdir/configure.gnu
10731: elif test -f "$ac_srcdir/configure"; then
10732: ac_sub_configure=$ac_srcdir/configure
10733: elif test -f "$ac_srcdir/configure.in"; then
10734: # This should be Cygnus configure.
10735: ac_sub_configure=$ac_aux_dir/configure
10736: else
1.15 bertrand 10737: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10738: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
1.1 bertrand 10739: ac_sub_configure=
10740: fi
10741:
10742: # The recursion is here.
10743: if test -n "$ac_sub_configure"; then
10744: # Make the cache file name correct relative to the subdirectory.
10745: case $cache_file in
10746: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10747: *) # Relative name.
10748: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10749: esac
10750:
1.15 bertrand 10751: { $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
10752: $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 10753: # The eval makes quoting arguments work.
10754: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10755: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
1.15 bertrand 10756: as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
1.1 bertrand 10757: fi
10758:
10759: cd "$ac_popdir"
10760: done
10761: fi
1.15 bertrand 10762: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10763: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10764: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10765: fi
1.1 bertrand 10766:
CVSweb interface <joel.bertrand@systella.fr>