1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.65 for rpl 4.0.11.
4: #
5: #
6: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8: # Inc.
9: #
10: #
11: # This configure script is free software; the Free Software Foundation
12: # gives unlimited permission to copy, distribute and modify it.
13: ## -------------------- ##
14: ## M4sh Initialization. ##
15: ## -------------------- ##
16:
17: # Be more Bourne compatible
18: DUALCASE=1; export DUALCASE # for MKS sh
19: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20: emulate sh
21: NULLCMD=:
22: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23: # is contrary to our usage. Disable this feature.
24: alias -g '${1+"$@"}'='"$@"'
25: setopt NO_GLOB_SUBST
26: else
27: case `(set -o) 2>/dev/null` in #(
28: *posix*) :
29: set -o posix ;; #(
30: *) :
31: ;;
32: esac
33: fi
34:
35:
36: as_nl='
37: '
38: export as_nl
39: # Printing a long string crashes Solaris 7 /usr/bin/printf.
40: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43: # Prefer a ksh shell builtin over an external printf program on Solaris,
44: # but without wasting forks for bash or zsh.
45: if test -z "$BASH_VERSION$ZSH_VERSION" \
46: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47: as_echo='print -r --'
48: as_echo_n='print -rn --'
49: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50: as_echo='printf %s\n'
51: as_echo_n='printf %s'
52: else
53: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55: as_echo_n='/usr/ucb/echo -n'
56: else
57: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58: as_echo_n_body='eval
59: arg=$1;
60: case $arg in #(
61: *"$as_nl"*)
62: expr "X$arg" : "X\\(.*\\)$as_nl";
63: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64: esac;
65: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66: '
67: export as_echo_n_body
68: as_echo_n='sh -c $as_echo_n_body as_echo'
69: fi
70: export as_echo_body
71: as_echo='sh -c $as_echo_body as_echo'
72: fi
73:
74: # The user is always right.
75: if test "${PATH_SEPARATOR+set}" != set; then
76: PATH_SEPARATOR=:
77: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79: PATH_SEPARATOR=';'
80: }
81: fi
82:
83:
84: # IFS
85: # We need space, tab and new line, in precisely that order. Quoting is
86: # there to prevent editors from complaining about space-tab.
87: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88: # splitting by setting IFS to empty value.)
89: IFS=" "" $as_nl"
90:
91: # Find who we are. Look in the path if we contain no directory separator.
92: case $0 in #((
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=.
99: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100: done
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
111: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112: exit 1
113: fi
114:
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 || :
122: done
123: PS1='$ '
124: PS2='> '
125: PS4='+ '
126:
127: # NLS nuisances.
128: LC_ALL=C
129: export LC_ALL
130: LANGUAGE=C
131: export LANGUAGE
132:
133: # CDPATH.
134: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135:
136: if test "x$CONFIG_SHELL" = x; then
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
144: else
145: case \`(set -o) 2>/dev/null\` in #(
146: *posix*) :
147: set -o posix ;; #(
148: *) :
149: ;;
150: esac
151: fi
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; }
158:
159: exitcode=0
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
177: else
178: as_have_required=no
179: fi
180: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181:
182: else
183: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184: as_found=false
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=.
189: as_found=:
190: case $as_dir in #(
191: /*)
192: for as_base in sh bash ksh sh5; do
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
202: done;;
203: esac
204: as_found=false
205: done
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; }
210: IFS=$as_save_IFS
211:
212:
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
238: fi
239: fi
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
245:
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: {
281:
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"
320:
321:
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: }'
334: else
335: as_fn_append ()
336: {
337: eval $1=\$$1\$2
338: }
339: fi # as_fn_append
340:
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: }'
351: else
352: as_fn_arith ()
353: {
354: as_val=`expr "$@" || test $? -eq 1`
355: }
356: fi # as_fn_arith
357:
358:
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
374:
375: if expr a : '\(a\)' >/dev/null 2>&1 &&
376: test "X`expr 00001 : '.*\(...\)'`" = X001; then
377: as_expr=expr
378: else
379: as_expr=false
380: fi
381:
382: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383: as_basename=basename
384: else
385: as_basename=false
386: fi
387:
388: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389: as_dirname=dirname
390: else
391: as_dirname=false
392: fi
393:
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'`
412:
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
419:
420:
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. :-)
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" ||
442: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
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:
452: ECHO_C= ECHO_N= ECHO_T=
453: case `echo -n x` in #(((((
454: -n*)
455: case `echo 'xy\c'` in
456: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457: xy) ECHO_C='\c';;
458: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459: ECHO_T=' ';;
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
470: mkdir conf$$.dir 2>/dev/null
471: fi
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
484: as_ln_s='cp -p'
485: fi
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
493: as_mkdir_p='mkdir -p "$as_dir"'
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
510: test -d "$1/.";
511: else
512: case $1 in #(
513: -*)set "./$1";;
514: esac;
515: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
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:
529: test -n "$DJDIR" || exec 7<&0 </dev/null
530: exec 6>&1
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'
552: PACKAGE_VERSION='4.0.11'
553: PACKAGE_STRING='rpl 4.0.11'
554: PACKAGE_BUGREPORT=''
555: PACKAGE_URL=''
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:
594: enable_option_checking=no
595: ac_subst_vars='am__EXEEXT_FALSE
596: am__EXEEXT_TRUE
597: LTLIBOBJS
598: LIBOBJS
599: DATE_FR
600: FINAL_ENCODING
601: ICONV
602: FILE
603: GNUPLOT
604: GPP
605: GSL
606: UNITS
607: READLINE
608: NCURSES
609: LIBMTMALLOC
610: OS
611: LIBICONV
612: GNUPLOT_COMPILATION
613: subdirs
614: EGREP
615: GREP
616: libPgSQLlib
617: libPgSQLinc
618: POSTGRESQL_SUPPORT
619: libMySQLlib
620: libMySQLinc
621: MYSQL_SUPPORT
622: DATE
623: includeX
624: libX
625: MOTIF_SUPPORT
626: DEBUG
627: EXPERIMENTAL_CODE
628: VIM_SUPPORT
629: POSTSCRIPT_SUPPORT
630: FORCE_GNUPLOT_PATH
631: GNUPLOT_SUPPORT
632: VIM
633: GNUPLOT_P
634: GV
635: GS
636: DVIPS
637: LATEX
638: TEX
639: SED
640: RANLIB
641: LN_S
642: RUNPATH
643: LIBTOOLIZE
644: PROFILAGE
645: X_EXTRA_LIBS
646: X_LIBS
647: X_PRE_LIBS
648: X_CFLAGS
649: CPP
650: XMKMF
651: ac_ct_FC
652: FCFLAGS
653: FC
654: ac_ct_F77
655: FFLAGS
656: F77
657: am__fastdepCXX_FALSE
658: am__fastdepCXX_TRUE
659: CXXDEPMODE
660: ac_ct_CXX
661: CXXFLAGS
662: CXX
663: am__fastdepCC_FALSE
664: am__fastdepCC_TRUE
665: CCDEPMODE
666: AMDEPBACKSLASH
667: AMDEP_FALSE
668: AMDEP_TRUE
669: am__quote
670: am__include
671: DEPDIR
672: OBJEXT
673: EXEEXT
674: ac_ct_CC
675: CPPFLAGS
676: LDFLAGS
677: CFLAGS
678: CC
679: am__untar
680: am__tar
681: AMTAR
682: am__leading_dot
683: SET_MAKE
684: AWK
685: mkdir_p
686: MKDIR_P
687: INSTALL_STRIP_PROGRAM
688: STRIP
689: install_sh
690: MAKEINFO
691: AUTOHEADER
692: AUTOMAKE
693: AUTOCONF
694: ACLOCAL
695: VERSION
696: PACKAGE
697: CYGPATH_W
698: am__isrc
699: INSTALL_DATA
700: INSTALL_SCRIPT
701: INSTALL_PROGRAM
702: target_os
703: target_vendor
704: target_cpu
705: target
706: host_os
707: host_vendor
708: host_cpu
709: host
710: build_os
711: build_vendor
712: build_cpu
713: build
714: target_alias
715: host_alias
716: build_alias
717: LIBS
718: ECHO_T
719: ECHO_N
720: ECHO_C
721: DEFS
722: mandir
723: localedir
724: libdir
725: psdir
726: pdfdir
727: dvidir
728: htmldir
729: infodir
730: docdir
731: oldincludedir
732: includedir
733: localstatedir
734: sharedstatedir
735: sysconfdir
736: datadir
737: datarootdir
738: libexecdir
739: sbindir
740: bindir
741: program_transform_name
742: prefix
743: exec_prefix
744: PACKAGE_URL
745: PACKAGE_BUGREPORT
746: PACKAGE_STRING
747: PACKAGE_VERSION
748: PACKAGE_TARNAME
749: PACKAGE_NAME
750: PATH_SEPARATOR
751: SHELL'
752: ac_subst_files=''
753: ac_user_opts='
754: enable_option_checking
755: enable_dependency_tracking
756: with_x
757: enable_optimization
758: enable_final_encoding
759: enable_tex
760: enable_vim
761: enable_embedded_gnuplot
762: enable_gnuplot
763: enable_motif
764: enable_experimental
765: enable_debug
766: enable_profile
767: enable_final_run_path
768: with_mysql
769: with_postgresql
770: '
771: ac_precious_vars='build_alias
772: host_alias
773: target_alias
774: CC
775: CFLAGS
776: LDFLAGS
777: LIBS
778: CPPFLAGS
779: CXX
780: CXXFLAGS
781: CCC
782: F77
783: FFLAGS
784: FC
785: FCFLAGS
786: XMKMF
787: CPP'
788: ac_subdirs_all='tools/$NCURSES
789: tools/$READLINE
790: tools/$UNITS
791: tools/$GSL
792: tools/$GPP
793: tools/$FILE
794: tools/$ICONV
795: tools/$GNUPLOT'
796:
797: # Initialize some variables set by options.
798: ac_init_help=
799: ac_init_version=false
800: ac_unrecognized_opts=
801: ac_unrecognized_sep=
802: # The variables have the same names as the options, with
803: # dashes changed to underlines.
804: cache_file=/dev/null
805: exec_prefix=NONE
806: no_create=
807: no_recursion=
808: prefix=NONE
809: program_prefix=NONE
810: program_suffix=NONE
811: program_transform_name=s,x,x,
812: silent=
813: site=
814: srcdir=
815: verbose=
816: x_includes=NONE
817: x_libraries=NONE
818:
819: # Installation directory options.
820: # These are left unexpanded so users can "make install exec_prefix=/foo"
821: # and all the variables that are supposed to be based on exec_prefix
822: # by default will actually change.
823: # Use braces instead of parens because sh, perl, etc. also accept them.
824: # (The list follows the same order as the GNU Coding Standards.)
825: bindir='${exec_prefix}/bin'
826: sbindir='${exec_prefix}/sbin'
827: libexecdir='${exec_prefix}/libexec'
828: datarootdir='${prefix}/share'
829: datadir='${datarootdir}'
830: sysconfdir='${prefix}/etc'
831: sharedstatedir='${prefix}/com'
832: localstatedir='${prefix}/var'
833: includedir='${prefix}/include'
834: oldincludedir='/usr/include'
835: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836: infodir='${datarootdir}/info'
837: htmldir='${docdir}'
838: dvidir='${docdir}'
839: pdfdir='${docdir}'
840: psdir='${docdir}'
841: libdir='${exec_prefix}/lib'
842: localedir='${datarootdir}/locale'
843: mandir='${datarootdir}/man'
844:
845: ac_prev=
846: ac_dashdash=
847: for ac_option
848: do
849: # If the previous option needs an argument, assign it.
850: if test -n "$ac_prev"; then
851: eval $ac_prev=\$ac_option
852: ac_prev=
853: continue
854: fi
855:
856: case $ac_option in
857: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858: *) ac_optarg=yes ;;
859: esac
860:
861: # Accept the important Cygnus configure options, so we can diagnose typos.
862:
863: case $ac_dashdash$ac_option in
864: --)
865: ac_dashdash=yes ;;
866:
867: -bindir | --bindir | --bindi | --bind | --bin | --bi)
868: ac_prev=bindir ;;
869: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870: bindir=$ac_optarg ;;
871:
872: -build | --build | --buil | --bui | --bu)
873: ac_prev=build_alias ;;
874: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875: build_alias=$ac_optarg ;;
876:
877: -cache-file | --cache-file | --cache-fil | --cache-fi \
878: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879: ac_prev=cache_file ;;
880: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882: cache_file=$ac_optarg ;;
883:
884: --config-cache | -C)
885: cache_file=config.cache ;;
886:
887: -datadir | --datadir | --datadi | --datad)
888: ac_prev=datadir ;;
889: -datadir=* | --datadir=* | --datadi=* | --datad=*)
890: datadir=$ac_optarg ;;
891:
892: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893: | --dataroo | --dataro | --datar)
894: ac_prev=datarootdir ;;
895: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897: datarootdir=$ac_optarg ;;
898:
899: -disable-* | --disable-*)
900: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901: # Reject names that are not valid shell variable names.
902: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903: as_fn_error "invalid feature name: $ac_useropt"
904: ac_useropt_orig=$ac_useropt
905: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906: case $ac_user_opts in
907: *"
908: "enable_$ac_useropt"
909: "*) ;;
910: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911: ac_unrecognized_sep=', ';;
912: esac
913: eval enable_$ac_useropt=no ;;
914:
915: -docdir | --docdir | --docdi | --doc | --do)
916: ac_prev=docdir ;;
917: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918: docdir=$ac_optarg ;;
919:
920: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921: ac_prev=dvidir ;;
922: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923: dvidir=$ac_optarg ;;
924:
925: -enable-* | --enable-*)
926: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927: # Reject names that are not valid shell variable names.
928: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929: as_fn_error "invalid feature name: $ac_useropt"
930: ac_useropt_orig=$ac_useropt
931: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932: case $ac_user_opts in
933: *"
934: "enable_$ac_useropt"
935: "*) ;;
936: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937: ac_unrecognized_sep=', ';;
938: esac
939: eval enable_$ac_useropt=\$ac_optarg ;;
940:
941: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943: | --exec | --exe | --ex)
944: ac_prev=exec_prefix ;;
945: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947: | --exec=* | --exe=* | --ex=*)
948: exec_prefix=$ac_optarg ;;
949:
950: -gas | --gas | --ga | --g)
951: # Obsolete; use --with-gas.
952: with_gas=yes ;;
953:
954: -help | --help | --hel | --he | -h)
955: ac_init_help=long ;;
956: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957: ac_init_help=recursive ;;
958: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959: ac_init_help=short ;;
960:
961: -host | --host | --hos | --ho)
962: ac_prev=host_alias ;;
963: -host=* | --host=* | --hos=* | --ho=*)
964: host_alias=$ac_optarg ;;
965:
966: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967: ac_prev=htmldir ;;
968: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969: | --ht=*)
970: htmldir=$ac_optarg ;;
971:
972: -includedir | --includedir | --includedi | --included | --include \
973: | --includ | --inclu | --incl | --inc)
974: ac_prev=includedir ;;
975: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976: | --includ=* | --inclu=* | --incl=* | --inc=*)
977: includedir=$ac_optarg ;;
978:
979: -infodir | --infodir | --infodi | --infod | --info | --inf)
980: ac_prev=infodir ;;
981: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982: infodir=$ac_optarg ;;
983:
984: -libdir | --libdir | --libdi | --libd)
985: ac_prev=libdir ;;
986: -libdir=* | --libdir=* | --libdi=* | --libd=*)
987: libdir=$ac_optarg ;;
988:
989: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990: | --libexe | --libex | --libe)
991: ac_prev=libexecdir ;;
992: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993: | --libexe=* | --libex=* | --libe=*)
994: libexecdir=$ac_optarg ;;
995:
996: -localedir | --localedir | --localedi | --localed | --locale)
997: ac_prev=localedir ;;
998: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999: localedir=$ac_optarg ;;
1000:
1001: -localstatedir | --localstatedir | --localstatedi | --localstated \
1002: | --localstate | --localstat | --localsta | --localst | --locals)
1003: ac_prev=localstatedir ;;
1004: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006: localstatedir=$ac_optarg ;;
1007:
1008: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009: ac_prev=mandir ;;
1010: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011: mandir=$ac_optarg ;;
1012:
1013: -nfp | --nfp | --nf)
1014: # Obsolete; use --without-fp.
1015: with_fp=no ;;
1016:
1017: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018: | --no-cr | --no-c | -n)
1019: no_create=yes ;;
1020:
1021: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023: no_recursion=yes ;;
1024:
1025: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027: | --oldin | --oldi | --old | --ol | --o)
1028: ac_prev=oldincludedir ;;
1029: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032: oldincludedir=$ac_optarg ;;
1033:
1034: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035: ac_prev=prefix ;;
1036: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037: prefix=$ac_optarg ;;
1038:
1039: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040: | --program-pre | --program-pr | --program-p)
1041: ac_prev=program_prefix ;;
1042: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044: program_prefix=$ac_optarg ;;
1045:
1046: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047: | --program-suf | --program-su | --program-s)
1048: ac_prev=program_suffix ;;
1049: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051: program_suffix=$ac_optarg ;;
1052:
1053: -program-transform-name | --program-transform-name \
1054: | --program-transform-nam | --program-transform-na \
1055: | --program-transform-n | --program-transform- \
1056: | --program-transform | --program-transfor \
1057: | --program-transfo | --program-transf \
1058: | --program-trans | --program-tran \
1059: | --progr-tra | --program-tr | --program-t)
1060: ac_prev=program_transform_name ;;
1061: -program-transform-name=* | --program-transform-name=* \
1062: | --program-transform-nam=* | --program-transform-na=* \
1063: | --program-transform-n=* | --program-transform-=* \
1064: | --program-transform=* | --program-transfor=* \
1065: | --program-transfo=* | --program-transf=* \
1066: | --program-trans=* | --program-tran=* \
1067: | --progr-tra=* | --program-tr=* | --program-t=*)
1068: program_transform_name=$ac_optarg ;;
1069:
1070: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071: ac_prev=pdfdir ;;
1072: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073: pdfdir=$ac_optarg ;;
1074:
1075: -psdir | --psdir | --psdi | --psd | --ps)
1076: ac_prev=psdir ;;
1077: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078: psdir=$ac_optarg ;;
1079:
1080: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081: | -silent | --silent | --silen | --sile | --sil)
1082: silent=yes ;;
1083:
1084: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085: ac_prev=sbindir ;;
1086: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087: | --sbi=* | --sb=*)
1088: sbindir=$ac_optarg ;;
1089:
1090: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092: | --sharedst | --shareds | --shared | --share | --shar \
1093: | --sha | --sh)
1094: ac_prev=sharedstatedir ;;
1095: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098: | --sha=* | --sh=*)
1099: sharedstatedir=$ac_optarg ;;
1100:
1101: -site | --site | --sit)
1102: ac_prev=site ;;
1103: -site=* | --site=* | --sit=*)
1104: site=$ac_optarg ;;
1105:
1106: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107: ac_prev=srcdir ;;
1108: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109: srcdir=$ac_optarg ;;
1110:
1111: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112: | --syscon | --sysco | --sysc | --sys | --sy)
1113: ac_prev=sysconfdir ;;
1114: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116: sysconfdir=$ac_optarg ;;
1117:
1118: -target | --target | --targe | --targ | --tar | --ta | --t)
1119: ac_prev=target_alias ;;
1120: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121: target_alias=$ac_optarg ;;
1122:
1123: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124: verbose=yes ;;
1125:
1126: -version | --version | --versio | --versi | --vers | -V)
1127: ac_init_version=: ;;
1128:
1129: -with-* | --with-*)
1130: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131: # Reject names that are not valid shell variable names.
1132: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133: as_fn_error "invalid package name: $ac_useropt"
1134: ac_useropt_orig=$ac_useropt
1135: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136: case $ac_user_opts in
1137: *"
1138: "with_$ac_useropt"
1139: "*) ;;
1140: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141: ac_unrecognized_sep=', ';;
1142: esac
1143: eval with_$ac_useropt=\$ac_optarg ;;
1144:
1145: -without-* | --without-*)
1146: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147: # Reject names that are not valid shell variable names.
1148: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149: as_fn_error "invalid package name: $ac_useropt"
1150: ac_useropt_orig=$ac_useropt
1151: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152: case $ac_user_opts in
1153: *"
1154: "with_$ac_useropt"
1155: "*) ;;
1156: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157: ac_unrecognized_sep=', ';;
1158: esac
1159: eval with_$ac_useropt=no ;;
1160:
1161: --x)
1162: # Obsolete; use --with-x.
1163: with_x=yes ;;
1164:
1165: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166: | --x-incl | --x-inc | --x-in | --x-i)
1167: ac_prev=x_includes ;;
1168: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170: x_includes=$ac_optarg ;;
1171:
1172: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174: ac_prev=x_libraries ;;
1175: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177: x_libraries=$ac_optarg ;;
1178:
1179: -*) as_fn_error "unrecognized option: \`$ac_option'
1180: Try \`$0 --help' for more information."
1181: ;;
1182:
1183: *=*)
1184: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185: # Reject names that are not valid shell variable names.
1186: case $ac_envvar in #(
1187: '' | [0-9]* | *[!_$as_cr_alnum]* )
1188: as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1189: esac
1190: eval $ac_envvar=\$ac_optarg
1191: export $ac_envvar ;;
1192:
1193: *)
1194: # FIXME: should be removed in autoconf 3.0.
1195: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199: ;;
1200:
1201: esac
1202: done
1203:
1204: if test -n "$ac_prev"; then
1205: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206: as_fn_error "missing argument to $ac_option"
1207: fi
1208:
1209: if test -n "$ac_unrecognized_opts"; then
1210: case $enable_option_checking in
1211: no) ;;
1212: fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1213: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214: esac
1215: fi
1216:
1217: # Check all directory arguments for consistency.
1218: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219: datadir sysconfdir sharedstatedir localstatedir includedir \
1220: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221: libdir localedir mandir
1222: do
1223: eval ac_val=\$$ac_var
1224: # Remove trailing slashes.
1225: case $ac_val in
1226: */ )
1227: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228: eval $ac_var=\$ac_val;;
1229: esac
1230: # Be sure to have absolute directory names.
1231: case $ac_val in
1232: [\\/$]* | ?:[\\/]* ) continue;;
1233: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234: esac
1235: as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1236: done
1237:
1238: # There might be people who depend on the old broken behavior: `$host'
1239: # used to hold the argument of --host etc.
1240: # FIXME: To remove some day.
1241: build=$build_alias
1242: host=$host_alias
1243: target=$target_alias
1244:
1245: # FIXME: To remove some day.
1246: if test "x$host_alias" != x; then
1247: if test "x$build_alias" = x; then
1248: cross_compiling=maybe
1249: $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1250: If a cross compiler is detected then cross compile mode will be used." >&2
1251: elif test "x$build_alias" != "x$host_alias"; then
1252: cross_compiling=yes
1253: fi
1254: fi
1255:
1256: ac_tool_prefix=
1257: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258:
1259: test "$silent" = yes && exec 6>/dev/null
1260:
1261:
1262: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263: ac_ls_di=`ls -di .` &&
1264: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265: as_fn_error "working directory cannot be determined"
1266: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267: as_fn_error "pwd does not report name of working directory"
1268:
1269:
1270: # Find the source files, if location was not specified.
1271: if test -z "$srcdir"; then
1272: ac_srcdir_defaulted=yes
1273: # Try the directory containing this script, then the parent directory.
1274: ac_confdir=`$as_dirname -- "$as_myself" ||
1275: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276: X"$as_myself" : 'X\(//\)[^/]' \| \
1277: X"$as_myself" : 'X\(//\)$' \| \
1278: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279: $as_echo X"$as_myself" |
1280: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281: s//\1/
1282: q
1283: }
1284: /^X\(\/\/\)[^/].*/{
1285: s//\1/
1286: q
1287: }
1288: /^X\(\/\/\)$/{
1289: s//\1/
1290: q
1291: }
1292: /^X\(\/\).*/{
1293: s//\1/
1294: q
1295: }
1296: s/.*/./; q'`
1297: srcdir=$ac_confdir
1298: if test ! -r "$srcdir/$ac_unique_file"; then
1299: srcdir=..
1300: fi
1301: else
1302: ac_srcdir_defaulted=no
1303: fi
1304: if test ! -r "$srcdir/$ac_unique_file"; then
1305: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306: as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1307: fi
1308: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309: ac_abs_confdir=`(
1310: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1311: pwd)`
1312: # When building in place, set srcdir=.
1313: if test "$ac_abs_confdir" = "$ac_pwd"; then
1314: srcdir=.
1315: fi
1316: # Remove unnecessary trailing slashes from srcdir.
1317: # Double slashes in file names in object file debugging info
1318: # mess up M-x gdb in Emacs.
1319: case $srcdir in
1320: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321: esac
1322: for ac_var in $ac_precious_vars; do
1323: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324: eval ac_env_${ac_var}_value=\$${ac_var}
1325: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327: done
1328:
1329: #
1330: # Report the --help message.
1331: #
1332: if test "$ac_init_help" = "long"; then
1333: # Omit some internal or obsolete options to make the list less imposing.
1334: # This message is too long to be a string in the A/UX 3.1 sh.
1335: cat <<_ACEOF
1336: \`configure' configures rpl 4.0.11 to adapt to many kinds of systems.
1337:
1338: Usage: $0 [OPTION]... [VAR=VALUE]...
1339:
1340: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341: VAR=VALUE. See below for descriptions of some of the useful variables.
1342:
1343: Defaults for the options are specified in brackets.
1344:
1345: Configuration:
1346: -h, --help display this help and exit
1347: --help=short display options specific to this package
1348: --help=recursive display the short help of all the included packages
1349: -V, --version display version information and exit
1350: -q, --quiet, --silent do not print \`checking...' messages
1351: --cache-file=FILE cache test results in FILE [disabled]
1352: -C, --config-cache alias for \`--cache-file=config.cache'
1353: -n, --no-create do not create output files
1354: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1355:
1356: Installation directories:
1357: --prefix=PREFIX install architecture-independent files in PREFIX
1358: [$ac_default_prefix]
1359: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1360: [PREFIX]
1361:
1362: By default, \`make install' will install all the files in
1363: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1364: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365: for instance \`--prefix=\$HOME'.
1366:
1367: For better control, use the options below.
1368:
1369: Fine tuning of the installation directories:
1370: --bindir=DIR user executables [EPREFIX/bin]
1371: --sbindir=DIR system admin executables [EPREFIX/sbin]
1372: --libexecdir=DIR program executables [EPREFIX/libexec]
1373: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1374: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1375: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1376: --libdir=DIR object code libraries [EPREFIX/lib]
1377: --includedir=DIR C header files [PREFIX/include]
1378: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381: --infodir=DIR info documentation [DATAROOTDIR/info]
1382: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383: --mandir=DIR man documentation [DATAROOTDIR/man]
1384: --docdir=DIR documentation root [DATAROOTDIR/doc/rpl]
1385: --htmldir=DIR html documentation [DOCDIR]
1386: --dvidir=DIR dvi documentation [DOCDIR]
1387: --pdfdir=DIR pdf documentation [DOCDIR]
1388: --psdir=DIR ps documentation [DOCDIR]
1389: _ACEOF
1390:
1391: cat <<\_ACEOF
1392:
1393: Program names:
1394: --program-prefix=PREFIX prepend PREFIX to installed program names
1395: --program-suffix=SUFFIX append SUFFIX to installed program names
1396: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1397:
1398: X features:
1399: --x-includes=DIR X include files are in DIR
1400: --x-libraries=DIR X library files are in DIR
1401:
1402: System types:
1403: --build=BUILD configure for building on BUILD [guessed]
1404: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1405: --target=TARGET configure for building compilers for TARGET [HOST]
1406: _ACEOF
1407: fi
1408:
1409: if test -n "$ac_init_help"; then
1410: case $ac_init_help in
1411: short | recursive ) echo "Configuration of rpl 4.0.11:";;
1412: esac
1413: cat <<\_ACEOF
1414:
1415: Optional Features:
1416: --disable-option-checking ignore unrecognized --enable/--with options
1417: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419: --disable-dependency-tracking speeds up one-time build
1420: --enable-dependency-tracking do not reject slow dependency extractors
1421: --enable-optimization set compiler flags [default=environment variables -O3]
1422: --enable-final-encoding force final encoding [default=guessed]
1423: --enable-tex provide the TeX support [default=guessed]
1424: --enable-vim provide the vim support [default=guessed]
1425: --enable-embedded-gnuplot build gnuplot provided by this package [default=yes]
1426: --enable-gnuplot provide the GnuPlot support [default=guessed]
1427: --enable-motif provide the Motif support [default=guessed]
1428: --enable-experimental enable experimental code [default=no]
1429: --enable-debug enable debug code [default=no]
1430: --enable-profile enable profile code [default=no]
1431: --enable-final-run-path=PATH enable another final run path than PREFIX
1432:
1433: Optional Packages:
1434: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1436: --with-x use the X Window System
1437: --with-mysql=PATH specify directory for installed mysql
1438: --with-postgresql=PATH specify directory for installed postgresql
1439:
1440: Some influential environment variables:
1441: CC C compiler command
1442: CFLAGS C compiler flags
1443: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1444: nonstandard directory <lib dir>
1445: LIBS libraries to pass to the linker, e.g. -l<library>
1446: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1447: you have headers in a nonstandard directory <include dir>
1448: CXX C++ compiler command
1449: CXXFLAGS C++ compiler flags
1450: F77 Fortran 77 compiler command
1451: FFLAGS Fortran 77 compiler flags
1452: FC Fortran compiler command
1453: FCFLAGS Fortran compiler flags
1454: XMKMF Path to xmkmf, Makefile generator for X Window System
1455: CPP C preprocessor
1456:
1457: Use these variables to override the choices made by `configure' or to help
1458: it to find libraries and programs with nonstandard names/locations.
1459:
1460: Report bugs to the package provider.
1461: _ACEOF
1462: ac_status=$?
1463: fi
1464:
1465: if test "$ac_init_help" = "recursive"; then
1466: # If there are subdirs, report their specific --help.
1467: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1468: test -d "$ac_dir" ||
1469: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1470: continue
1471: ac_builddir=.
1472:
1473: case "$ac_dir" in
1474: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475: *)
1476: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1477: # A ".." for each directory in $ac_dir_suffix.
1478: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1479: case $ac_top_builddir_sub in
1480: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1482: esac ;;
1483: esac
1484: ac_abs_top_builddir=$ac_pwd
1485: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1486: # for backward compatibility:
1487: ac_top_builddir=$ac_top_build_prefix
1488:
1489: case $srcdir in
1490: .) # We are building in place.
1491: ac_srcdir=.
1492: ac_top_srcdir=$ac_top_builddir_sub
1493: ac_abs_top_srcdir=$ac_pwd ;;
1494: [\\/]* | ?:[\\/]* ) # Absolute name.
1495: ac_srcdir=$srcdir$ac_dir_suffix;
1496: ac_top_srcdir=$srcdir
1497: ac_abs_top_srcdir=$srcdir ;;
1498: *) # Relative name.
1499: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1500: ac_top_srcdir=$ac_top_build_prefix$srcdir
1501: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1502: esac
1503: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1504:
1505: cd "$ac_dir" || { ac_status=$?; continue; }
1506: # Check for guested configure.
1507: if test -f "$ac_srcdir/configure.gnu"; then
1508: echo &&
1509: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1510: elif test -f "$ac_srcdir/configure"; then
1511: echo &&
1512: $SHELL "$ac_srcdir/configure" --help=recursive
1513: else
1514: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1515: fi || ac_status=$?
1516: cd "$ac_pwd" || { ac_status=$?; break; }
1517: done
1518: fi
1519:
1520: test -n "$ac_init_help" && exit $ac_status
1521: if $ac_init_version; then
1522: cat <<\_ACEOF
1523: rpl configure 4.0.11
1524: generated by GNU Autoconf 2.65
1525:
1526: Copyright (C) 2009 Free Software Foundation, Inc.
1527: This configure script is free software; the Free Software Foundation
1528: gives unlimited permission to copy, distribute and modify it.
1529: _ACEOF
1530: exit
1531: fi
1532:
1533: ## ------------------------ ##
1534: ## Autoconf initialization. ##
1535: ## ------------------------ ##
1536:
1537: # ac_fn_c_try_compile LINENO
1538: # --------------------------
1539: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1540: ac_fn_c_try_compile ()
1541: {
1542: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1543: rm -f conftest.$ac_objext
1544: if { { ac_try="$ac_compile"
1545: case "(($ac_try" in
1546: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1547: *) ac_try_echo=$ac_try;;
1548: esac
1549: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1550: $as_echo "$ac_try_echo"; } >&5
1551: (eval "$ac_compile") 2>conftest.err
1552: ac_status=$?
1553: if test -s conftest.err; then
1554: grep -v '^ *+' conftest.err >conftest.er1
1555: cat conftest.er1 >&5
1556: mv -f conftest.er1 conftest.err
1557: fi
1558: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1559: test $ac_status = 0; } && {
1560: test -z "$ac_c_werror_flag" ||
1561: test ! -s conftest.err
1562: } && test -s conftest.$ac_objext; then :
1563: ac_retval=0
1564: else
1565: $as_echo "$as_me: failed program was:" >&5
1566: sed 's/^/| /' conftest.$ac_ext >&5
1567:
1568: ac_retval=1
1569: fi
1570: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1571: as_fn_set_status $ac_retval
1572:
1573: } # ac_fn_c_try_compile
1574:
1575: # ac_fn_cxx_try_compile LINENO
1576: # ----------------------------
1577: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1578: ac_fn_cxx_try_compile ()
1579: {
1580: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581: rm -f conftest.$ac_objext
1582: if { { ac_try="$ac_compile"
1583: case "(($ac_try" in
1584: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585: *) ac_try_echo=$ac_try;;
1586: esac
1587: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588: $as_echo "$ac_try_echo"; } >&5
1589: (eval "$ac_compile") 2>conftest.err
1590: ac_status=$?
1591: if test -s conftest.err; then
1592: grep -v '^ *+' conftest.err >conftest.er1
1593: cat conftest.er1 >&5
1594: mv -f conftest.er1 conftest.err
1595: fi
1596: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1597: test $ac_status = 0; } && {
1598: test -z "$ac_cxx_werror_flag" ||
1599: test ! -s conftest.err
1600: } && test -s conftest.$ac_objext; then :
1601: ac_retval=0
1602: else
1603: $as_echo "$as_me: failed program was:" >&5
1604: sed 's/^/| /' conftest.$ac_ext >&5
1605:
1606: ac_retval=1
1607: fi
1608: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609: as_fn_set_status $ac_retval
1610:
1611: } # ac_fn_cxx_try_compile
1612:
1613: # ac_fn_f77_try_compile LINENO
1614: # ----------------------------
1615: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616: ac_fn_f77_try_compile ()
1617: {
1618: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619: rm -f conftest.$ac_objext
1620: if { { ac_try="$ac_compile"
1621: case "(($ac_try" in
1622: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623: *) ac_try_echo=$ac_try;;
1624: esac
1625: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626: $as_echo "$ac_try_echo"; } >&5
1627: (eval "$ac_compile") 2>conftest.err
1628: ac_status=$?
1629: if test -s conftest.err; then
1630: grep -v '^ *+' conftest.err >conftest.er1
1631: cat conftest.er1 >&5
1632: mv -f conftest.er1 conftest.err
1633: fi
1634: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635: test $ac_status = 0; } && {
1636: test -z "$ac_f77_werror_flag" ||
1637: test ! -s conftest.err
1638: } && test -s conftest.$ac_objext; then :
1639: ac_retval=0
1640: else
1641: $as_echo "$as_me: failed program was:" >&5
1642: sed 's/^/| /' conftest.$ac_ext >&5
1643:
1644: ac_retval=1
1645: fi
1646: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1647: as_fn_set_status $ac_retval
1648:
1649: } # ac_fn_f77_try_compile
1650:
1651: # ac_fn_fc_try_compile LINENO
1652: # ---------------------------
1653: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1654: ac_fn_fc_try_compile ()
1655: {
1656: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657: rm -f conftest.$ac_objext
1658: if { { ac_try="$ac_compile"
1659: case "(($ac_try" in
1660: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661: *) ac_try_echo=$ac_try;;
1662: esac
1663: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664: $as_echo "$ac_try_echo"; } >&5
1665: (eval "$ac_compile") 2>conftest.err
1666: ac_status=$?
1667: if test -s conftest.err; then
1668: grep -v '^ *+' conftest.err >conftest.er1
1669: cat conftest.er1 >&5
1670: mv -f conftest.er1 conftest.err
1671: fi
1672: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673: test $ac_status = 0; } && {
1674: test -z "$ac_fc_werror_flag" ||
1675: test ! -s conftest.err
1676: } && test -s conftest.$ac_objext; then :
1677: ac_retval=0
1678: else
1679: $as_echo "$as_me: failed program was:" >&5
1680: sed 's/^/| /' conftest.$ac_ext >&5
1681:
1682: ac_retval=1
1683: fi
1684: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1685: as_fn_set_status $ac_retval
1686:
1687: } # ac_fn_fc_try_compile
1688:
1689: # ac_fn_c_try_cpp LINENO
1690: # ----------------------
1691: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692: ac_fn_c_try_cpp ()
1693: {
1694: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695: if { { ac_try="$ac_cpp conftest.$ac_ext"
1696: case "(($ac_try" in
1697: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698: *) ac_try_echo=$ac_try;;
1699: esac
1700: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701: $as_echo "$ac_try_echo"; } >&5
1702: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703: ac_status=$?
1704: if test -s conftest.err; then
1705: grep -v '^ *+' conftest.err >conftest.er1
1706: cat conftest.er1 >&5
1707: mv -f conftest.er1 conftest.err
1708: fi
1709: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710: test $ac_status = 0; } >/dev/null && {
1711: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712: test ! -s conftest.err
1713: }; then :
1714: ac_retval=0
1715: else
1716: $as_echo "$as_me: failed program was:" >&5
1717: sed 's/^/| /' conftest.$ac_ext >&5
1718:
1719: ac_retval=1
1720: fi
1721: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722: as_fn_set_status $ac_retval
1723:
1724: } # ac_fn_c_try_cpp
1725:
1726: # ac_fn_c_try_link LINENO
1727: # -----------------------
1728: # Try to link conftest.$ac_ext, and return whether this succeeded.
1729: ac_fn_c_try_link ()
1730: {
1731: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732: rm -f conftest.$ac_objext conftest$ac_exeext
1733: if { { ac_try="$ac_link"
1734: case "(($ac_try" in
1735: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736: *) ac_try_echo=$ac_try;;
1737: esac
1738: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739: $as_echo "$ac_try_echo"; } >&5
1740: (eval "$ac_link") 2>conftest.err
1741: ac_status=$?
1742: if test -s conftest.err; then
1743: grep -v '^ *+' conftest.err >conftest.er1
1744: cat conftest.er1 >&5
1745: mv -f conftest.er1 conftest.err
1746: fi
1747: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748: test $ac_status = 0; } && {
1749: test -z "$ac_c_werror_flag" ||
1750: test ! -s conftest.err
1751: } && test -s conftest$ac_exeext && {
1752: test "$cross_compiling" = yes ||
1753: $as_test_x conftest$ac_exeext
1754: }; then :
1755: ac_retval=0
1756: else
1757: $as_echo "$as_me: failed program was:" >&5
1758: sed 's/^/| /' conftest.$ac_ext >&5
1759:
1760: ac_retval=1
1761: fi
1762: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764: # interfere with the next link command; also delete a directory that is
1765: # left behind by Apple's compiler. We do this before executing the actions.
1766: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1768: as_fn_set_status $ac_retval
1769:
1770: } # ac_fn_c_try_link
1771:
1772: # ac_fn_c_check_func LINENO FUNC VAR
1773: # ----------------------------------
1774: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1775: ac_fn_c_check_func ()
1776: {
1777: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779: $as_echo_n "checking for $2... " >&6; }
1780: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1781: $as_echo_n "(cached) " >&6
1782: else
1783: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784: /* end confdefs.h. */
1785: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1786: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1787: #define $2 innocuous_$2
1788:
1789: /* System header to define __stub macros and hopefully few prototypes,
1790: which can conflict with char $2 (); below.
1791: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1792: <limits.h> exists even on freestanding compilers. */
1793:
1794: #ifdef __STDC__
1795: # include <limits.h>
1796: #else
1797: # include <assert.h>
1798: #endif
1799:
1800: #undef $2
1801:
1802: /* Override any GCC internal prototype to avoid an error.
1803: Use char because int might match the return type of a GCC
1804: builtin and then its argument prototype would still apply. */
1805: #ifdef __cplusplus
1806: extern "C"
1807: #endif
1808: char $2 ();
1809: /* The GNU C library defines this for functions which it implements
1810: to always fail with ENOSYS. Some functions are actually named
1811: something starting with __ and the normal name is an alias. */
1812: #if defined __stub_$2 || defined __stub___$2
1813: choke me
1814: #endif
1815:
1816: int
1817: main ()
1818: {
1819: return $2 ();
1820: ;
1821: return 0;
1822: }
1823: _ACEOF
1824: if ac_fn_c_try_link "$LINENO"; then :
1825: eval "$3=yes"
1826: else
1827: eval "$3=no"
1828: fi
1829: rm -f core conftest.err conftest.$ac_objext \
1830: conftest$ac_exeext conftest.$ac_ext
1831: fi
1832: eval ac_res=\$$3
1833: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834: $as_echo "$ac_res" >&6; }
1835: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836:
1837: } # ac_fn_c_check_func
1838:
1839: # ac_fn_c_try_run LINENO
1840: # ----------------------
1841: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1842: # that executables *can* be run.
1843: ac_fn_c_try_run ()
1844: {
1845: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846: if { { ac_try="$ac_link"
1847: case "(($ac_try" in
1848: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849: *) ac_try_echo=$ac_try;;
1850: esac
1851: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852: $as_echo "$ac_try_echo"; } >&5
1853: (eval "$ac_link") 2>&5
1854: ac_status=$?
1855: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1857: { { case "(($ac_try" in
1858: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859: *) ac_try_echo=$ac_try;;
1860: esac
1861: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862: $as_echo "$ac_try_echo"; } >&5
1863: (eval "$ac_try") 2>&5
1864: ac_status=$?
1865: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1866: test $ac_status = 0; }; }; then :
1867: ac_retval=0
1868: else
1869: $as_echo "$as_me: program exited with status $ac_status" >&5
1870: $as_echo "$as_me: failed program was:" >&5
1871: sed 's/^/| /' conftest.$ac_ext >&5
1872:
1873: ac_retval=$ac_status
1874: fi
1875: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877: as_fn_set_status $ac_retval
1878:
1879: } # ac_fn_c_try_run
1880:
1881: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1882: # --------------------------------------------
1883: # Tries to find the compile-time value of EXPR in a program that includes
1884: # INCLUDES, setting VAR accordingly. Returns whether the value could be
1885: # computed
1886: ac_fn_c_compute_int ()
1887: {
1888: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889: if test "$cross_compiling" = yes; then
1890: # Depending upon the size, compute the lo and hi bounds.
1891: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892: /* end confdefs.h. */
1893: $4
1894: int
1895: main ()
1896: {
1897: static int test_array [1 - 2 * !(($2) >= 0)];
1898: test_array [0] = 0
1899:
1900: ;
1901: return 0;
1902: }
1903: _ACEOF
1904: if ac_fn_c_try_compile "$LINENO"; then :
1905: ac_lo=0 ac_mid=0
1906: while :; do
1907: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908: /* end confdefs.h. */
1909: $4
1910: int
1911: main ()
1912: {
1913: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1914: test_array [0] = 0
1915:
1916: ;
1917: return 0;
1918: }
1919: _ACEOF
1920: if ac_fn_c_try_compile "$LINENO"; then :
1921: ac_hi=$ac_mid; break
1922: else
1923: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1924: if test $ac_lo -le $ac_mid; then
1925: ac_lo= ac_hi=
1926: break
1927: fi
1928: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1929: fi
1930: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931: done
1932: else
1933: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934: /* end confdefs.h. */
1935: $4
1936: int
1937: main ()
1938: {
1939: static int test_array [1 - 2 * !(($2) < 0)];
1940: test_array [0] = 0
1941:
1942: ;
1943: return 0;
1944: }
1945: _ACEOF
1946: if ac_fn_c_try_compile "$LINENO"; then :
1947: ac_hi=-1 ac_mid=-1
1948: while :; do
1949: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950: /* end confdefs.h. */
1951: $4
1952: int
1953: main ()
1954: {
1955: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1956: test_array [0] = 0
1957:
1958: ;
1959: return 0;
1960: }
1961: _ACEOF
1962: if ac_fn_c_try_compile "$LINENO"; then :
1963: ac_lo=$ac_mid; break
1964: else
1965: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1966: if test $ac_mid -le $ac_hi; then
1967: ac_lo= ac_hi=
1968: break
1969: fi
1970: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1971: fi
1972: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973: done
1974: else
1975: ac_lo= ac_hi=
1976: fi
1977: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978: fi
1979: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980: # Binary search between lo and hi bounds.
1981: while test "x$ac_lo" != "x$ac_hi"; do
1982: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1983: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984: /* end confdefs.h. */
1985: $4
1986: int
1987: main ()
1988: {
1989: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1990: test_array [0] = 0
1991:
1992: ;
1993: return 0;
1994: }
1995: _ACEOF
1996: if ac_fn_c_try_compile "$LINENO"; then :
1997: ac_hi=$ac_mid
1998: else
1999: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2000: fi
2001: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002: done
2003: case $ac_lo in #((
2004: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2005: '') ac_retval=1 ;;
2006: esac
2007: else
2008: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009: /* end confdefs.h. */
2010: $4
2011: static long int longval () { return $2; }
2012: static unsigned long int ulongval () { return $2; }
2013: #include <stdio.h>
2014: #include <stdlib.h>
2015: int
2016: main ()
2017: {
2018:
2019: FILE *f = fopen ("conftest.val", "w");
2020: if (! f)
2021: return 1;
2022: if (($2) < 0)
2023: {
2024: long int i = longval ();
2025: if (i != ($2))
2026: return 1;
2027: fprintf (f, "%ld", i);
2028: }
2029: else
2030: {
2031: unsigned long int i = ulongval ();
2032: if (i != ($2))
2033: return 1;
2034: fprintf (f, "%lu", i);
2035: }
2036: /* Do not output a trailing newline, as this causes \r\n confusion
2037: on some platforms. */
2038: return ferror (f) || fclose (f) != 0;
2039:
2040: ;
2041: return 0;
2042: }
2043: _ACEOF
2044: if ac_fn_c_try_run "$LINENO"; then :
2045: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2046: else
2047: ac_retval=1
2048: fi
2049: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2050: conftest.$ac_objext conftest.beam conftest.$ac_ext
2051: rm -f conftest.val
2052:
2053: fi
2054: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055: as_fn_set_status $ac_retval
2056:
2057: } # ac_fn_c_compute_int
2058:
2059: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2060: # -------------------------------------------------------
2061: # Tests whether HEADER exists and can be compiled using the include files in
2062: # INCLUDES, setting the cache variable VAR accordingly.
2063: ac_fn_c_check_header_compile ()
2064: {
2065: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067: $as_echo_n "checking for $2... " >&6; }
2068: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2069: $as_echo_n "(cached) " >&6
2070: else
2071: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072: /* end confdefs.h. */
2073: $4
2074: #include <$2>
2075: _ACEOF
2076: if ac_fn_c_try_compile "$LINENO"; then :
2077: eval "$3=yes"
2078: else
2079: eval "$3=no"
2080: fi
2081: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082: fi
2083: eval ac_res=\$$3
2084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085: $as_echo "$ac_res" >&6; }
2086: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2087:
2088: } # ac_fn_c_check_header_compile
2089:
2090: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2091: # -------------------------------------------------------
2092: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2093: # the include files in INCLUDES and setting the cache variable VAR
2094: # accordingly.
2095: ac_fn_c_check_header_mongrel ()
2096: {
2097: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2099: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100: $as_echo_n "checking for $2... " >&6; }
2101: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2102: $as_echo_n "(cached) " >&6
2103: fi
2104: eval ac_res=\$$3
2105: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106: $as_echo "$ac_res" >&6; }
2107: else
2108: # Is the header compilable?
2109: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2110: $as_echo_n "checking $2 usability... " >&6; }
2111: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112: /* end confdefs.h. */
2113: $4
2114: #include <$2>
2115: _ACEOF
2116: if ac_fn_c_try_compile "$LINENO"; then :
2117: ac_header_compiler=yes
2118: else
2119: ac_header_compiler=no
2120: fi
2121: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2123: $as_echo "$ac_header_compiler" >&6; }
2124:
2125: # Is the header present?
2126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2127: $as_echo_n "checking $2 presence... " >&6; }
2128: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129: /* end confdefs.h. */
2130: #include <$2>
2131: _ACEOF
2132: if ac_fn_c_try_cpp "$LINENO"; then :
2133: ac_header_preproc=yes
2134: else
2135: ac_header_preproc=no
2136: fi
2137: rm -f conftest.err conftest.$ac_ext
2138: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2139: $as_echo "$ac_header_preproc" >&6; }
2140:
2141: # So? What about this header?
2142: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2143: yes:no: )
2144: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2145: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2146: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2147: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2148: ;;
2149: no:yes:* )
2150: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2151: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2152: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2153: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2154: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2155: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2156: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2157: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2158: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2159: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2160: ;;
2161: esac
2162: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2163: $as_echo_n "checking for $2... " >&6; }
2164: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2165: $as_echo_n "(cached) " >&6
2166: else
2167: eval "$3=\$ac_header_compiler"
2168: fi
2169: eval ac_res=\$$3
2170: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171: $as_echo "$ac_res" >&6; }
2172: fi
2173: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174:
2175: } # ac_fn_c_check_header_mongrel
2176:
2177: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2178: # -------------------------------------------
2179: # Tests whether TYPE exists after having included INCLUDES, setting cache
2180: # variable VAR accordingly.
2181: ac_fn_c_check_type ()
2182: {
2183: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185: $as_echo_n "checking for $2... " >&6; }
2186: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2187: $as_echo_n "(cached) " >&6
2188: else
2189: eval "$3=no"
2190: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191: /* end confdefs.h. */
2192: $4
2193: int
2194: main ()
2195: {
2196: if (sizeof ($2))
2197: return 0;
2198: ;
2199: return 0;
2200: }
2201: _ACEOF
2202: if ac_fn_c_try_compile "$LINENO"; then :
2203: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204: /* end confdefs.h. */
2205: $4
2206: int
2207: main ()
2208: {
2209: if (sizeof (($2)))
2210: return 0;
2211: ;
2212: return 0;
2213: }
2214: _ACEOF
2215: if ac_fn_c_try_compile "$LINENO"; then :
2216:
2217: else
2218: eval "$3=yes"
2219: fi
2220: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221: fi
2222: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223: fi
2224: eval ac_res=\$$3
2225: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226: $as_echo "$ac_res" >&6; }
2227: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2228:
2229: } # ac_fn_c_check_type
2230: cat >config.log <<_ACEOF
2231: This file contains any messages produced by compilers while
2232: running configure, to aid debugging if configure makes a mistake.
2233:
2234: It was created by rpl $as_me 4.0.11, which was
2235: generated by GNU Autoconf 2.65. Invocation command line was
2236:
2237: $ $0 $@
2238:
2239: _ACEOF
2240: exec 5>>config.log
2241: {
2242: cat <<_ASUNAME
2243: ## --------- ##
2244: ## Platform. ##
2245: ## --------- ##
2246:
2247: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2248: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2249: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2250: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2251: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2252:
2253: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2254: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2255:
2256: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2257: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2258: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2259: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2260: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2261: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2262: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2263:
2264: _ASUNAME
2265:
2266: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267: for as_dir in $PATH
2268: do
2269: IFS=$as_save_IFS
2270: test -z "$as_dir" && as_dir=.
2271: $as_echo "PATH: $as_dir"
2272: done
2273: IFS=$as_save_IFS
2274:
2275: } >&5
2276:
2277: cat >&5 <<_ACEOF
2278:
2279:
2280: ## ----------- ##
2281: ## Core tests. ##
2282: ## ----------- ##
2283:
2284: _ACEOF
2285:
2286:
2287: # Keep a trace of the command line.
2288: # Strip out --no-create and --no-recursion so they do not pile up.
2289: # Strip out --silent because we don't want to record it for future runs.
2290: # Also quote any args containing shell meta-characters.
2291: # Make two passes to allow for proper duplicate-argument suppression.
2292: ac_configure_args=
2293: ac_configure_args0=
2294: ac_configure_args1=
2295: ac_must_keep_next=false
2296: for ac_pass in 1 2
2297: do
2298: for ac_arg
2299: do
2300: case $ac_arg in
2301: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2302: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2303: | -silent | --silent | --silen | --sile | --sil)
2304: continue ;;
2305: *\'*)
2306: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2307: esac
2308: case $ac_pass in
2309: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2310: 2)
2311: as_fn_append ac_configure_args1 " '$ac_arg'"
2312: if test $ac_must_keep_next = true; then
2313: ac_must_keep_next=false # Got value, back to normal.
2314: else
2315: case $ac_arg in
2316: *=* | --config-cache | -C | -disable-* | --disable-* \
2317: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2318: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2319: | -with-* | --with-* | -without-* | --without-* | --x)
2320: case "$ac_configure_args0 " in
2321: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2322: esac
2323: ;;
2324: -* ) ac_must_keep_next=true ;;
2325: esac
2326: fi
2327: as_fn_append ac_configure_args " '$ac_arg'"
2328: ;;
2329: esac
2330: done
2331: done
2332: { ac_configure_args0=; unset ac_configure_args0;}
2333: { ac_configure_args1=; unset ac_configure_args1;}
2334:
2335: # When interrupted or exit'd, cleanup temporary files, and complete
2336: # config.log. We remove comments because anyway the quotes in there
2337: # would cause problems or look ugly.
2338: # WARNING: Use '\'' to represent an apostrophe within the trap.
2339: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2340: trap 'exit_status=$?
2341: # Save into config.log some information that might help in debugging.
2342: {
2343: echo
2344:
2345: cat <<\_ASBOX
2346: ## ---------------- ##
2347: ## Cache variables. ##
2348: ## ---------------- ##
2349: _ASBOX
2350: echo
2351: # The following way of writing the cache mishandles newlines in values,
2352: (
2353: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2354: eval ac_val=\$$ac_var
2355: case $ac_val in #(
2356: *${as_nl}*)
2357: case $ac_var in #(
2358: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2359: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2360: esac
2361: case $ac_var in #(
2362: _ | IFS | as_nl) ;; #(
2363: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2364: *) { eval $ac_var=; unset $ac_var;} ;;
2365: esac ;;
2366: esac
2367: done
2368: (set) 2>&1 |
2369: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2370: *${as_nl}ac_space=\ *)
2371: sed -n \
2372: "s/'\''/'\''\\\\'\'''\''/g;
2373: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2374: ;; #(
2375: *)
2376: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2377: ;;
2378: esac |
2379: sort
2380: )
2381: echo
2382:
2383: cat <<\_ASBOX
2384: ## ----------------- ##
2385: ## Output variables. ##
2386: ## ----------------- ##
2387: _ASBOX
2388: echo
2389: for ac_var in $ac_subst_vars
2390: do
2391: eval ac_val=\$$ac_var
2392: case $ac_val in
2393: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2394: esac
2395: $as_echo "$ac_var='\''$ac_val'\''"
2396: done | sort
2397: echo
2398:
2399: if test -n "$ac_subst_files"; then
2400: cat <<\_ASBOX
2401: ## ------------------- ##
2402: ## File substitutions. ##
2403: ## ------------------- ##
2404: _ASBOX
2405: echo
2406: for ac_var in $ac_subst_files
2407: do
2408: eval ac_val=\$$ac_var
2409: case $ac_val in
2410: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2411: esac
2412: $as_echo "$ac_var='\''$ac_val'\''"
2413: done | sort
2414: echo
2415: fi
2416:
2417: if test -s confdefs.h; then
2418: cat <<\_ASBOX
2419: ## ----------- ##
2420: ## confdefs.h. ##
2421: ## ----------- ##
2422: _ASBOX
2423: echo
2424: cat confdefs.h
2425: echo
2426: fi
2427: test "$ac_signal" != 0 &&
2428: $as_echo "$as_me: caught signal $ac_signal"
2429: $as_echo "$as_me: exit $exit_status"
2430: } >&5
2431: rm -f core *.core core.conftest.* &&
2432: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2433: exit $exit_status
2434: ' 0
2435: for ac_signal in 1 2 13 15; do
2436: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2437: done
2438: ac_signal=0
2439:
2440: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2441: rm -f -r conftest* confdefs.h
2442:
2443: $as_echo "/* confdefs.h */" > confdefs.h
2444:
2445: # Predefined preprocessor variables.
2446:
2447: cat >>confdefs.h <<_ACEOF
2448: #define PACKAGE_NAME "$PACKAGE_NAME"
2449: _ACEOF
2450:
2451: cat >>confdefs.h <<_ACEOF
2452: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2453: _ACEOF
2454:
2455: cat >>confdefs.h <<_ACEOF
2456: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2457: _ACEOF
2458:
2459: cat >>confdefs.h <<_ACEOF
2460: #define PACKAGE_STRING "$PACKAGE_STRING"
2461: _ACEOF
2462:
2463: cat >>confdefs.h <<_ACEOF
2464: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2465: _ACEOF
2466:
2467: cat >>confdefs.h <<_ACEOF
2468: #define PACKAGE_URL "$PACKAGE_URL"
2469: _ACEOF
2470:
2471:
2472: # Let the site file select an alternate cache file if it wants to.
2473: # Prefer an explicitly selected file to automatically selected ones.
2474: ac_site_file1=NONE
2475: ac_site_file2=NONE
2476: if test -n "$CONFIG_SITE"; then
2477: ac_site_file1=$CONFIG_SITE
2478: elif test "x$prefix" != xNONE; then
2479: ac_site_file1=$prefix/share/config.site
2480: ac_site_file2=$prefix/etc/config.site
2481: else
2482: ac_site_file1=$ac_default_prefix/share/config.site
2483: ac_site_file2=$ac_default_prefix/etc/config.site
2484: fi
2485: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2486: do
2487: test "x$ac_site_file" = xNONE && continue
2488: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2489: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2490: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2491: sed 's/^/| /' "$ac_site_file" >&5
2492: . "$ac_site_file"
2493: fi
2494: done
2495:
2496: if test -r "$cache_file"; then
2497: # Some versions of bash will fail to source /dev/null (special files
2498: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2499: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2500: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2501: $as_echo "$as_me: loading cache $cache_file" >&6;}
2502: case $cache_file in
2503: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2504: *) . "./$cache_file";;
2505: esac
2506: fi
2507: else
2508: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2509: $as_echo "$as_me: creating cache $cache_file" >&6;}
2510: >$cache_file
2511: fi
2512:
2513: # Check that the precious variables saved in the cache have kept the same
2514: # value.
2515: ac_cache_corrupted=false
2516: for ac_var in $ac_precious_vars; do
2517: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2518: eval ac_new_set=\$ac_env_${ac_var}_set
2519: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2520: eval ac_new_val=\$ac_env_${ac_var}_value
2521: case $ac_old_set,$ac_new_set in
2522: set,)
2523: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2524: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2525: ac_cache_corrupted=: ;;
2526: ,set)
2527: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2528: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2529: ac_cache_corrupted=: ;;
2530: ,);;
2531: *)
2532: if test "x$ac_old_val" != "x$ac_new_val"; then
2533: # differences in whitespace do not lead to failure.
2534: ac_old_val_w=`echo x $ac_old_val`
2535: ac_new_val_w=`echo x $ac_new_val`
2536: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2537: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2538: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2539: ac_cache_corrupted=:
2540: else
2541: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2542: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2543: eval $ac_var=\$ac_old_val
2544: fi
2545: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2546: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2547: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2548: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2549: fi;;
2550: esac
2551: # Pass precious variables to config.status.
2552: if test "$ac_new_set" = set; then
2553: case $ac_new_val in
2554: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2555: *) ac_arg=$ac_var=$ac_new_val ;;
2556: esac
2557: case " $ac_configure_args " in
2558: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2559: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2560: esac
2561: fi
2562: done
2563: if $ac_cache_corrupted; then
2564: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2565: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2567: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2568: as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2569: fi
2570: ## -------------------- ##
2571: ## Main body of script. ##
2572: ## -------------------- ##
2573:
2574: ac_ext=c
2575: ac_cpp='$CPP $CPPFLAGS'
2576: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579:
2580:
2581: ac_aux_dir=
2582: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2583: for ac_t in install-sh install.sh shtool; do
2584: if test -f "$ac_dir/$ac_t"; then
2585: ac_aux_dir=$ac_dir
2586: ac_install_sh="$ac_aux_dir/$ac_t -c"
2587: break 2
2588: fi
2589: done
2590: done
2591: if test -z "$ac_aux_dir"; then
2592: as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2593: fi
2594:
2595: # These three variables are undocumented and unsupported,
2596: # and are intended to be withdrawn in a future Autoconf release.
2597: # They can cause serious problems if a builder's source tree is in a directory
2598: # whose full name contains unusual characters.
2599: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2600: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2601: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2602:
2603:
2604: # Make sure we can run config.sub.
2605: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2606: as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2607:
2608: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2609: $as_echo_n "checking build system type... " >&6; }
2610: if test "${ac_cv_build+set}" = set; then :
2611: $as_echo_n "(cached) " >&6
2612: else
2613: ac_build_alias=$build_alias
2614: test "x$ac_build_alias" = x &&
2615: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2616: test "x$ac_build_alias" = x &&
2617: as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2618: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2619: as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2620:
2621: fi
2622: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2623: $as_echo "$ac_cv_build" >&6; }
2624: case $ac_cv_build in
2625: *-*-*) ;;
2626: *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2627: esac
2628: build=$ac_cv_build
2629: ac_save_IFS=$IFS; IFS='-'
2630: set x $ac_cv_build
2631: shift
2632: build_cpu=$1
2633: build_vendor=$2
2634: shift; shift
2635: # Remember, the first character of IFS is used to create $*,
2636: # except with old shells:
2637: build_os=$*
2638: IFS=$ac_save_IFS
2639: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2640:
2641:
2642: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2643: $as_echo_n "checking host system type... " >&6; }
2644: if test "${ac_cv_host+set}" = set; then :
2645: $as_echo_n "(cached) " >&6
2646: else
2647: if test "x$host_alias" = x; then
2648: ac_cv_host=$ac_cv_build
2649: else
2650: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2651: as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2652: fi
2653:
2654: fi
2655: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2656: $as_echo "$ac_cv_host" >&6; }
2657: case $ac_cv_host in
2658: *-*-*) ;;
2659: *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2660: esac
2661: host=$ac_cv_host
2662: ac_save_IFS=$IFS; IFS='-'
2663: set x $ac_cv_host
2664: shift
2665: host_cpu=$1
2666: host_vendor=$2
2667: shift; shift
2668: # Remember, the first character of IFS is used to create $*,
2669: # except with old shells:
2670: host_os=$*
2671: IFS=$ac_save_IFS
2672: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2673:
2674:
2675: { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2676: $as_echo_n "checking target system type... " >&6; }
2677: if test "${ac_cv_target+set}" = set; then :
2678: $as_echo_n "(cached) " >&6
2679: else
2680: if test "x$target_alias" = x; then
2681: ac_cv_target=$ac_cv_host
2682: else
2683: ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2684: as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2685: fi
2686:
2687: fi
2688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2689: $as_echo "$ac_cv_target" >&6; }
2690: case $ac_cv_target in
2691: *-*-*) ;;
2692: *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2693: esac
2694: target=$ac_cv_target
2695: ac_save_IFS=$IFS; IFS='-'
2696: set x $ac_cv_target
2697: shift
2698: target_cpu=$1
2699: target_vendor=$2
2700: shift; shift
2701: # Remember, the first character of IFS is used to create $*,
2702: # except with old shells:
2703: target_os=$*
2704: IFS=$ac_save_IFS
2705: case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2706:
2707:
2708: # The aliases save the names the user supplied, while $host etc.
2709: # will get canonicalized.
2710: test -n "$target_alias" &&
2711: test "$program_prefix$program_suffix$program_transform_name" = \
2712: NONENONEs,x,x, &&
2713: program_prefix=${target_alias}-
2714:
2715: am__api_version='1.11'
2716:
2717: # Find a good install program. We prefer a C program (faster),
2718: # so one script is as good as another. But avoid the broken or
2719: # incompatible versions:
2720: # SysV /etc/install, /usr/sbin/install
2721: # SunOS /usr/etc/install
2722: # IRIX /sbin/install
2723: # AIX /bin/install
2724: # AmigaOS /C/install, which installs bootblocks on floppy discs
2725: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2726: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2727: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2728: # OS/2's system install, which has a completely different semantic
2729: # ./install, which can be erroneously created by make from ./install.sh.
2730: # Reject install programs that cannot install multiple files.
2731: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2732: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2733: if test -z "$INSTALL"; then
2734: if test "${ac_cv_path_install+set}" = set; then :
2735: $as_echo_n "(cached) " >&6
2736: else
2737: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738: for as_dir in $PATH
2739: do
2740: IFS=$as_save_IFS
2741: test -z "$as_dir" && as_dir=.
2742: # Account for people who put trailing slashes in PATH elements.
2743: case $as_dir/ in #((
2744: ./ | .// | /[cC]/* | \
2745: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2746: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2747: /usr/ucb/* ) ;;
2748: *)
2749: # OSF1 and SCO ODT 3.0 have their own names for install.
2750: # Don't use installbsd from OSF since it installs stuff as root
2751: # by default.
2752: for ac_prog in ginstall scoinst install; do
2753: for ac_exec_ext in '' $ac_executable_extensions; do
2754: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2755: if test $ac_prog = install &&
2756: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2757: # AIX install. It has an incompatible calling convention.
2758: :
2759: elif test $ac_prog = install &&
2760: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2761: # program-specific install script used by HP pwplus--don't use.
2762: :
2763: else
2764: rm -rf conftest.one conftest.two conftest.dir
2765: echo one > conftest.one
2766: echo two > conftest.two
2767: mkdir conftest.dir
2768: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2769: test -s conftest.one && test -s conftest.two &&
2770: test -s conftest.dir/conftest.one &&
2771: test -s conftest.dir/conftest.two
2772: then
2773: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2774: break 3
2775: fi
2776: fi
2777: fi
2778: done
2779: done
2780: ;;
2781: esac
2782:
2783: done
2784: IFS=$as_save_IFS
2785:
2786: rm -rf conftest.one conftest.two conftest.dir
2787:
2788: fi
2789: if test "${ac_cv_path_install+set}" = set; then
2790: INSTALL=$ac_cv_path_install
2791: else
2792: # As a last resort, use the slow shell script. Don't cache a
2793: # value for INSTALL within a source directory, because that will
2794: # break other packages using the cache if that directory is
2795: # removed, or if the value is a relative name.
2796: INSTALL=$ac_install_sh
2797: fi
2798: fi
2799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2800: $as_echo "$INSTALL" >&6; }
2801:
2802: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2803: # It thinks the first close brace ends the variable substitution.
2804: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2805:
2806: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2807:
2808: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2809:
2810: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2811: $as_echo_n "checking whether build environment is sane... " >&6; }
2812: # Just in case
2813: sleep 1
2814: echo timestamp > conftest.file
2815: # Reject unsafe characters in $srcdir or the absolute working directory
2816: # name. Accept space and tab only in the latter.
2817: am_lf='
2818: '
2819: case `pwd` in
2820: *[\\\"\#\$\&\'\`$am_lf]*)
2821: as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2822: esac
2823: case $srcdir in
2824: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2825: as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2826: esac
2827:
2828: # Do `set' in a subshell so we don't clobber the current shell's
2829: # arguments. Must try -L first in case configure is actually a
2830: # symlink; some systems play weird games with the mod time of symlinks
2831: # (eg FreeBSD returns the mod time of the symlink's containing
2832: # directory).
2833: if (
2834: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2835: if test "$*" = "X"; then
2836: # -L didn't work.
2837: set X `ls -t "$srcdir/configure" conftest.file`
2838: fi
2839: rm -f conftest.file
2840: if test "$*" != "X $srcdir/configure conftest.file" \
2841: && test "$*" != "X conftest.file $srcdir/configure"; then
2842:
2843: # If neither matched, then we have a broken ls. This can happen
2844: # if, for instance, CONFIG_SHELL is bash and it inherits a
2845: # broken ls alias from the environment. This has actually
2846: # happened. Such a system could not be considered "sane".
2847: as_fn_error "ls -t appears to fail. Make sure there is not a broken
2848: alias in your environment" "$LINENO" 5
2849: fi
2850:
2851: test "$2" = conftest.file
2852: )
2853: then
2854: # Ok.
2855: :
2856: else
2857: as_fn_error "newly created file is older than distributed files!
2858: Check your system clock" "$LINENO" 5
2859: fi
2860: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2861: $as_echo "yes" >&6; }
2862: test "$program_prefix" != NONE &&
2863: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2864: # Use a double $ so make ignores it.
2865: test "$program_suffix" != NONE &&
2866: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2867: # Double any \ or $.
2868: # By default was `s,x,x', remove it if useless.
2869: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2870: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2871:
2872: # expand $ac_aux_dir to an absolute path
2873: am_aux_dir=`cd $ac_aux_dir && pwd`
2874:
2875: if test x"${MISSING+set}" != xset; then
2876: case $am_aux_dir in
2877: *\ * | *\ *)
2878: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2879: *)
2880: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2881: esac
2882: fi
2883: # Use eval to expand $SHELL
2884: if eval "$MISSING --run true"; then
2885: am_missing_run="$MISSING --run "
2886: else
2887: am_missing_run=
2888: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2889: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2890: fi
2891:
2892: if test x"${install_sh}" != xset; then
2893: case $am_aux_dir in
2894: *\ * | *\ *)
2895: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2896: *)
2897: install_sh="\${SHELL} $am_aux_dir/install-sh"
2898: esac
2899: fi
2900:
2901: # Installed binaries are usually stripped using `strip' when the user
2902: # run `make install-strip'. However `strip' might not be the right
2903: # tool to use in cross-compilation environments, therefore Automake
2904: # will honor the `STRIP' environment variable to overrule this program.
2905: if test "$cross_compiling" != no; then
2906: if test -n "$ac_tool_prefix"; then
2907: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2908: set dummy ${ac_tool_prefix}strip; ac_word=$2
2909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910: $as_echo_n "checking for $ac_word... " >&6; }
2911: if test "${ac_cv_prog_STRIP+set}" = set; then :
2912: $as_echo_n "(cached) " >&6
2913: else
2914: if test -n "$STRIP"; then
2915: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2916: else
2917: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918: for as_dir in $PATH
2919: do
2920: IFS=$as_save_IFS
2921: test -z "$as_dir" && as_dir=.
2922: for ac_exec_ext in '' $ac_executable_extensions; do
2923: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2925: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926: break 2
2927: fi
2928: done
2929: done
2930: IFS=$as_save_IFS
2931:
2932: fi
2933: fi
2934: STRIP=$ac_cv_prog_STRIP
2935: if test -n "$STRIP"; then
2936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2937: $as_echo "$STRIP" >&6; }
2938: else
2939: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940: $as_echo "no" >&6; }
2941: fi
2942:
2943:
2944: fi
2945: if test -z "$ac_cv_prog_STRIP"; then
2946: ac_ct_STRIP=$STRIP
2947: # Extract the first word of "strip", so it can be a program name with args.
2948: set dummy strip; ac_word=$2
2949: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950: $as_echo_n "checking for $ac_word... " >&6; }
2951: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2952: $as_echo_n "(cached) " >&6
2953: else
2954: if test -n "$ac_ct_STRIP"; then
2955: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2956: else
2957: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958: for as_dir in $PATH
2959: do
2960: IFS=$as_save_IFS
2961: test -z "$as_dir" && as_dir=.
2962: for ac_exec_ext in '' $ac_executable_extensions; do
2963: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964: ac_cv_prog_ac_ct_STRIP="strip"
2965: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966: break 2
2967: fi
2968: done
2969: done
2970: IFS=$as_save_IFS
2971:
2972: fi
2973: fi
2974: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2975: if test -n "$ac_ct_STRIP"; then
2976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2977: $as_echo "$ac_ct_STRIP" >&6; }
2978: else
2979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980: $as_echo "no" >&6; }
2981: fi
2982:
2983: if test "x$ac_ct_STRIP" = x; then
2984: STRIP=":"
2985: else
2986: case $cross_compiling:$ac_tool_warned in
2987: yes:)
2988: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2989: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2990: ac_tool_warned=yes ;;
2991: esac
2992: STRIP=$ac_ct_STRIP
2993: fi
2994: else
2995: STRIP="$ac_cv_prog_STRIP"
2996: fi
2997:
2998: fi
2999: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3000:
3001: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3002: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3003: if test -z "$MKDIR_P"; then
3004: if test "${ac_cv_path_mkdir+set}" = set; then :
3005: $as_echo_n "(cached) " >&6
3006: else
3007: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3009: do
3010: IFS=$as_save_IFS
3011: test -z "$as_dir" && as_dir=.
3012: for ac_prog in mkdir gmkdir; do
3013: for ac_exec_ext in '' $ac_executable_extensions; do
3014: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3015: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3016: 'mkdir (GNU coreutils) '* | \
3017: 'mkdir (coreutils) '* | \
3018: 'mkdir (fileutils) '4.1*)
3019: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3020: break 3;;
3021: esac
3022: done
3023: done
3024: done
3025: IFS=$as_save_IFS
3026:
3027: fi
3028:
3029: test -d ./--version && rmdir ./--version
3030: if test "${ac_cv_path_mkdir+set}" = set; then
3031: MKDIR_P="$ac_cv_path_mkdir -p"
3032: else
3033: # As a last resort, use the slow shell script. Don't cache a
3034: # value for MKDIR_P within a source directory, because that will
3035: # break other packages using the cache if that directory is
3036: # removed, or if the value is a relative name.
3037: MKDIR_P="$ac_install_sh -d"
3038: fi
3039: fi
3040: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3041: $as_echo "$MKDIR_P" >&6; }
3042:
3043: mkdir_p="$MKDIR_P"
3044: case $mkdir_p in
3045: [\\/$]* | ?:[\\/]*) ;;
3046: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3047: esac
3048:
3049: for ac_prog in gawk mawk nawk awk
3050: do
3051: # Extract the first word of "$ac_prog", so it can be a program name with args.
3052: set dummy $ac_prog; ac_word=$2
3053: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054: $as_echo_n "checking for $ac_word... " >&6; }
3055: if test "${ac_cv_prog_AWK+set}" = set; then :
3056: $as_echo_n "(cached) " >&6
3057: else
3058: if test -n "$AWK"; then
3059: ac_cv_prog_AWK="$AWK" # Let the user override the test.
3060: else
3061: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062: for as_dir in $PATH
3063: do
3064: IFS=$as_save_IFS
3065: test -z "$as_dir" && as_dir=.
3066: for ac_exec_ext in '' $ac_executable_extensions; do
3067: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068: ac_cv_prog_AWK="$ac_prog"
3069: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070: break 2
3071: fi
3072: done
3073: done
3074: IFS=$as_save_IFS
3075:
3076: fi
3077: fi
3078: AWK=$ac_cv_prog_AWK
3079: if test -n "$AWK"; then
3080: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3081: $as_echo "$AWK" >&6; }
3082: else
3083: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084: $as_echo "no" >&6; }
3085: fi
3086:
3087:
3088: test -n "$AWK" && break
3089: done
3090:
3091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3092: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3093: set x ${MAKE-make}
3094: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3095: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3096: $as_echo_n "(cached) " >&6
3097: else
3098: cat >conftest.make <<\_ACEOF
3099: SHELL = /bin/sh
3100: all:
3101: @echo '@@@%%%=$(MAKE)=@@@%%%'
3102: _ACEOF
3103: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3104: case `${MAKE-make} -f conftest.make 2>/dev/null` in
3105: *@@@%%%=?*=@@@%%%*)
3106: eval ac_cv_prog_make_${ac_make}_set=yes;;
3107: *)
3108: eval ac_cv_prog_make_${ac_make}_set=no;;
3109: esac
3110: rm -f conftest.make
3111: fi
3112: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3114: $as_echo "yes" >&6; }
3115: SET_MAKE=
3116: else
3117: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118: $as_echo "no" >&6; }
3119: SET_MAKE="MAKE=${MAKE-make}"
3120: fi
3121:
3122: rm -rf .tst 2>/dev/null
3123: mkdir .tst 2>/dev/null
3124: if test -d .tst; then
3125: am__leading_dot=.
3126: else
3127: am__leading_dot=_
3128: fi
3129: rmdir .tst 2>/dev/null
3130:
3131: if test "`cd $srcdir && pwd`" != "`pwd`"; then
3132: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3133: # is not polluted with repeated "-I."
3134: am__isrc=' -I$(srcdir)'
3135: # test to see if srcdir already configured
3136: if test -f $srcdir/config.status; then
3137: as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3138: fi
3139: fi
3140:
3141: # test whether we have cygpath
3142: if test -z "$CYGPATH_W"; then
3143: if (cygpath --version) >/dev/null 2>/dev/null; then
3144: CYGPATH_W='cygpath -w'
3145: else
3146: CYGPATH_W=echo
3147: fi
3148: fi
3149:
3150:
3151: # Define the identity of the package.
3152: PACKAGE='rpl'
3153: VERSION='4.0.11'
3154:
3155:
3156: cat >>confdefs.h <<_ACEOF
3157: #define PACKAGE "$PACKAGE"
3158: _ACEOF
3159:
3160:
3161: cat >>confdefs.h <<_ACEOF
3162: #define VERSION "$VERSION"
3163: _ACEOF
3164:
3165: # Some tools Automake needs.
3166:
3167: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3168:
3169:
3170: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3171:
3172:
3173: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3174:
3175:
3176: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3177:
3178:
3179: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3180:
3181: # We need awk for the "check" target. The system "awk" is bad on
3182: # some platforms.
3183: # Always define AMTAR for backward compatibility.
3184:
3185: AMTAR=${AMTAR-"${am_missing_run}tar"}
3186:
3187: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3188:
3189:
3190:
3191:
3192:
3193:
3194: ac_config_headers="$ac_config_headers rplconfig.h"
3195:
3196:
3197: NCURSES=ncurses-5.7-20100206
3198: READLINE=readline-6.1
3199: UNITS=units-1.87
3200: GSL=gsl-1.13
3201: GPP=gpp-2.24
3202: GNUPLOT=gnuplot-4.2.6
3203: FILE=file-5.03
3204: ICONV=libiconv-1.13.1
3205:
3206: ac_ext=c
3207: ac_cpp='$CPP $CPPFLAGS'
3208: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211: if test -n "$ac_tool_prefix"; then
3212: for ac_prog in gcc-4.4 gcc
3213: do
3214: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3215: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3216: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3217: $as_echo_n "checking for $ac_word... " >&6; }
3218: if test "${ac_cv_prog_CC+set}" = set; then :
3219: $as_echo_n "(cached) " >&6
3220: else
3221: if test -n "$CC"; then
3222: ac_cv_prog_CC="$CC" # Let the user override the test.
3223: else
3224: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225: for as_dir in $PATH
3226: do
3227: IFS=$as_save_IFS
3228: test -z "$as_dir" && as_dir=.
3229: for ac_exec_ext in '' $ac_executable_extensions; do
3230: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3232: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233: break 2
3234: fi
3235: done
3236: done
3237: IFS=$as_save_IFS
3238:
3239: fi
3240: fi
3241: CC=$ac_cv_prog_CC
3242: if test -n "$CC"; then
3243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3244: $as_echo "$CC" >&6; }
3245: else
3246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247: $as_echo "no" >&6; }
3248: fi
3249:
3250:
3251: test -n "$CC" && break
3252: done
3253: fi
3254: if test -z "$CC"; then
3255: ac_ct_CC=$CC
3256: for ac_prog in gcc-4.4 gcc
3257: do
3258: # Extract the first word of "$ac_prog", so it can be a program name with args.
3259: set dummy $ac_prog; ac_word=$2
3260: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3261: $as_echo_n "checking for $ac_word... " >&6; }
3262: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3263: $as_echo_n "(cached) " >&6
3264: else
3265: if test -n "$ac_ct_CC"; then
3266: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267: else
3268: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269: for as_dir in $PATH
3270: do
3271: IFS=$as_save_IFS
3272: test -z "$as_dir" && as_dir=.
3273: for ac_exec_ext in '' $ac_executable_extensions; do
3274: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3275: ac_cv_prog_ac_ct_CC="$ac_prog"
3276: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277: break 2
3278: fi
3279: done
3280: done
3281: IFS=$as_save_IFS
3282:
3283: fi
3284: fi
3285: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3286: if test -n "$ac_ct_CC"; then
3287: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3288: $as_echo "$ac_ct_CC" >&6; }
3289: else
3290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291: $as_echo "no" >&6; }
3292: fi
3293:
3294:
3295: test -n "$ac_ct_CC" && break
3296: done
3297:
3298: if test "x$ac_ct_CC" = x; then
3299: CC=""
3300: else
3301: case $cross_compiling:$ac_tool_warned in
3302: yes:)
3303: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3304: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3305: ac_tool_warned=yes ;;
3306: esac
3307: CC=$ac_ct_CC
3308: fi
3309: fi
3310:
3311:
3312: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314: as_fn_error "no acceptable C compiler found in \$PATH
3315: See \`config.log' for more details." "$LINENO" 5; }
3316:
3317: # Provide some information about the compiler.
3318: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3319: set X $ac_compile
3320: ac_compiler=$2
3321: for ac_option in --version -v -V -qversion; do
3322: { { ac_try="$ac_compiler $ac_option >&5"
3323: case "(($ac_try" in
3324: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325: *) ac_try_echo=$ac_try;;
3326: esac
3327: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328: $as_echo "$ac_try_echo"; } >&5
3329: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3330: ac_status=$?
3331: if test -s conftest.err; then
3332: sed '10a\
3333: ... rest of stderr output deleted ...
3334: 10q' conftest.err >conftest.er1
3335: cat conftest.er1 >&5
3336: fi
3337: rm -f conftest.er1 conftest.err
3338: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339: test $ac_status = 0; }
3340: done
3341:
3342: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343: /* end confdefs.h. */
3344:
3345: int
3346: main ()
3347: {
3348:
3349: ;
3350: return 0;
3351: }
3352: _ACEOF
3353: ac_clean_files_save=$ac_clean_files
3354: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3355: # Try to create an executable without -o first, disregard a.out.
3356: # It will help us diagnose broken compilers, and finding out an intuition
3357: # of exeext.
3358: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3359: $as_echo_n "checking whether the C compiler works... " >&6; }
3360: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3361:
3362: # The possible output files:
3363: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3364:
3365: ac_rmfiles=
3366: for ac_file in $ac_files
3367: do
3368: case $ac_file in
3369: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3370: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3371: esac
3372: done
3373: rm -f $ac_rmfiles
3374:
3375: if { { ac_try="$ac_link_default"
3376: case "(($ac_try" in
3377: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378: *) ac_try_echo=$ac_try;;
3379: esac
3380: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381: $as_echo "$ac_try_echo"; } >&5
3382: (eval "$ac_link_default") 2>&5
3383: ac_status=$?
3384: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385: test $ac_status = 0; }; then :
3386: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3387: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3388: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3389: # so that the user can short-circuit this test for compilers unknown to
3390: # Autoconf.
3391: for ac_file in $ac_files ''
3392: do
3393: test -f "$ac_file" || continue
3394: case $ac_file in
3395: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3396: ;;
3397: [ab].out )
3398: # We found the default executable, but exeext='' is most
3399: # certainly right.
3400: break;;
3401: *.* )
3402: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3403: then :; else
3404: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3405: fi
3406: # We set ac_cv_exeext here because the later test for it is not
3407: # safe: cross compilers may not add the suffix if given an `-o'
3408: # argument, so we may need to know it at that point already.
3409: # Even if this section looks crufty: it has the advantage of
3410: # actually working.
3411: break;;
3412: * )
3413: break;;
3414: esac
3415: done
3416: test "$ac_cv_exeext" = no && ac_cv_exeext=
3417:
3418: else
3419: ac_file=''
3420: fi
3421: if test -z "$ac_file"; then :
3422: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423: $as_echo "no" >&6; }
3424: $as_echo "$as_me: failed program was:" >&5
3425: sed 's/^/| /' conftest.$ac_ext >&5
3426:
3427: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429: { as_fn_set_status 77
3430: as_fn_error "C compiler cannot create executables
3431: See \`config.log' for more details." "$LINENO" 5; }; }
3432: else
3433: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434: $as_echo "yes" >&6; }
3435: fi
3436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3437: $as_echo_n "checking for C compiler default output file name... " >&6; }
3438: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3439: $as_echo "$ac_file" >&6; }
3440: ac_exeext=$ac_cv_exeext
3441:
3442: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3443: ac_clean_files=$ac_clean_files_save
3444: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3445: $as_echo_n "checking for suffix of executables... " >&6; }
3446: if { { ac_try="$ac_link"
3447: case "(($ac_try" in
3448: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449: *) ac_try_echo=$ac_try;;
3450: esac
3451: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452: $as_echo "$ac_try_echo"; } >&5
3453: (eval "$ac_link") 2>&5
3454: ac_status=$?
3455: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456: test $ac_status = 0; }; then :
3457: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3458: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3459: # work properly (i.e., refer to `conftest.exe'), while it won't with
3460: # `rm'.
3461: for ac_file in conftest.exe conftest conftest.*; do
3462: test -f "$ac_file" || continue
3463: case $ac_file in
3464: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3465: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466: break;;
3467: * ) break;;
3468: esac
3469: done
3470: else
3471: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473: as_fn_error "cannot compute suffix of executables: cannot compile and link
3474: See \`config.log' for more details." "$LINENO" 5; }
3475: fi
3476: rm -f conftest conftest$ac_cv_exeext
3477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3478: $as_echo "$ac_cv_exeext" >&6; }
3479:
3480: rm -f conftest.$ac_ext
3481: EXEEXT=$ac_cv_exeext
3482: ac_exeext=$EXEEXT
3483: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484: /* end confdefs.h. */
3485: #include <stdio.h>
3486: int
3487: main ()
3488: {
3489: FILE *f = fopen ("conftest.out", "w");
3490: return ferror (f) || fclose (f) != 0;
3491:
3492: ;
3493: return 0;
3494: }
3495: _ACEOF
3496: ac_clean_files="$ac_clean_files conftest.out"
3497: # Check that the compiler produces executables we can run. If not, either
3498: # the compiler is broken, or we cross compile.
3499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3500: $as_echo_n "checking whether we are cross compiling... " >&6; }
3501: if test "$cross_compiling" != yes; then
3502: { { ac_try="$ac_link"
3503: case "(($ac_try" in
3504: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505: *) ac_try_echo=$ac_try;;
3506: esac
3507: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508: $as_echo "$ac_try_echo"; } >&5
3509: (eval "$ac_link") 2>&5
3510: ac_status=$?
3511: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512: test $ac_status = 0; }
3513: if { ac_try='./conftest$ac_cv_exeext'
3514: { { case "(($ac_try" in
3515: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516: *) ac_try_echo=$ac_try;;
3517: esac
3518: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519: $as_echo "$ac_try_echo"; } >&5
3520: (eval "$ac_try") 2>&5
3521: ac_status=$?
3522: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523: test $ac_status = 0; }; }; then
3524: cross_compiling=no
3525: else
3526: if test "$cross_compiling" = maybe; then
3527: cross_compiling=yes
3528: else
3529: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531: as_fn_error "cannot run C compiled programs.
3532: If you meant to cross compile, use \`--host'.
3533: See \`config.log' for more details." "$LINENO" 5; }
3534: fi
3535: fi
3536: fi
3537: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3538: $as_echo "$cross_compiling" >&6; }
3539:
3540: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3541: ac_clean_files=$ac_clean_files_save
3542: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3543: $as_echo_n "checking for suffix of object files... " >&6; }
3544: if test "${ac_cv_objext+set}" = set; then :
3545: $as_echo_n "(cached) " >&6
3546: else
3547: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548: /* end confdefs.h. */
3549:
3550: int
3551: main ()
3552: {
3553:
3554: ;
3555: return 0;
3556: }
3557: _ACEOF
3558: rm -f conftest.o conftest.obj
3559: if { { ac_try="$ac_compile"
3560: case "(($ac_try" in
3561: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562: *) ac_try_echo=$ac_try;;
3563: esac
3564: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565: $as_echo "$ac_try_echo"; } >&5
3566: (eval "$ac_compile") 2>&5
3567: ac_status=$?
3568: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569: test $ac_status = 0; }; then :
3570: for ac_file in conftest.o conftest.obj conftest.*; do
3571: test -f "$ac_file" || continue;
3572: case $ac_file in
3573: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3574: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3575: break;;
3576: esac
3577: done
3578: else
3579: $as_echo "$as_me: failed program was:" >&5
3580: sed 's/^/| /' conftest.$ac_ext >&5
3581:
3582: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584: as_fn_error "cannot compute suffix of object files: cannot compile
3585: See \`config.log' for more details." "$LINENO" 5; }
3586: fi
3587: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3588: fi
3589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3590: $as_echo "$ac_cv_objext" >&6; }
3591: OBJEXT=$ac_cv_objext
3592: ac_objext=$OBJEXT
3593: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3594: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3595: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3596: $as_echo_n "(cached) " >&6
3597: else
3598: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599: /* end confdefs.h. */
3600:
3601: int
3602: main ()
3603: {
3604: #ifndef __GNUC__
3605: choke me
3606: #endif
3607:
3608: ;
3609: return 0;
3610: }
3611: _ACEOF
3612: if ac_fn_c_try_compile "$LINENO"; then :
3613: ac_compiler_gnu=yes
3614: else
3615: ac_compiler_gnu=no
3616: fi
3617: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3619:
3620: fi
3621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3622: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3623: if test $ac_compiler_gnu = yes; then
3624: GCC=yes
3625: else
3626: GCC=
3627: fi
3628: ac_test_CFLAGS=${CFLAGS+set}
3629: ac_save_CFLAGS=$CFLAGS
3630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3631: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3632: if test "${ac_cv_prog_cc_g+set}" = set; then :
3633: $as_echo_n "(cached) " >&6
3634: else
3635: ac_save_c_werror_flag=$ac_c_werror_flag
3636: ac_c_werror_flag=yes
3637: ac_cv_prog_cc_g=no
3638: CFLAGS="-g"
3639: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640: /* end confdefs.h. */
3641:
3642: int
3643: main ()
3644: {
3645:
3646: ;
3647: return 0;
3648: }
3649: _ACEOF
3650: if ac_fn_c_try_compile "$LINENO"; then :
3651: ac_cv_prog_cc_g=yes
3652: else
3653: CFLAGS=""
3654: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655: /* end confdefs.h. */
3656:
3657: int
3658: main ()
3659: {
3660:
3661: ;
3662: return 0;
3663: }
3664: _ACEOF
3665: if ac_fn_c_try_compile "$LINENO"; then :
3666:
3667: else
3668: ac_c_werror_flag=$ac_save_c_werror_flag
3669: CFLAGS="-g"
3670: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671: /* end confdefs.h. */
3672:
3673: int
3674: main ()
3675: {
3676:
3677: ;
3678: return 0;
3679: }
3680: _ACEOF
3681: if ac_fn_c_try_compile "$LINENO"; then :
3682: ac_cv_prog_cc_g=yes
3683: fi
3684: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685: fi
3686: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687: fi
3688: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689: ac_c_werror_flag=$ac_save_c_werror_flag
3690: fi
3691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3692: $as_echo "$ac_cv_prog_cc_g" >&6; }
3693: if test "$ac_test_CFLAGS" = set; then
3694: CFLAGS=$ac_save_CFLAGS
3695: elif test $ac_cv_prog_cc_g = yes; then
3696: if test "$GCC" = yes; then
3697: CFLAGS="-g -O2"
3698: else
3699: CFLAGS="-g"
3700: fi
3701: else
3702: if test "$GCC" = yes; then
3703: CFLAGS="-O2"
3704: else
3705: CFLAGS=
3706: fi
3707: fi
3708: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3709: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3710: if test "${ac_cv_prog_cc_c89+set}" = set; then :
3711: $as_echo_n "(cached) " >&6
3712: else
3713: ac_cv_prog_cc_c89=no
3714: ac_save_CC=$CC
3715: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716: /* end confdefs.h. */
3717: #include <stdarg.h>
3718: #include <stdio.h>
3719: #include <sys/types.h>
3720: #include <sys/stat.h>
3721: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3722: struct buf { int x; };
3723: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3724: static char *e (p, i)
3725: char **p;
3726: int i;
3727: {
3728: return p[i];
3729: }
3730: static char *f (char * (*g) (char **, int), char **p, ...)
3731: {
3732: char *s;
3733: va_list v;
3734: va_start (v,p);
3735: s = g (p, va_arg (v,int));
3736: va_end (v);
3737: return s;
3738: }
3739:
3740: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3741: function prototypes and stuff, but not '\xHH' hex character constants.
3742: These don't provoke an error unfortunately, instead are silently treated
3743: as 'x'. The following induces an error, until -std is added to get
3744: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3745: array size at least. It's necessary to write '\x00'==0 to get something
3746: that's true only with -std. */
3747: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3748:
3749: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3750: inside strings and character constants. */
3751: #define FOO(x) 'x'
3752: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3753:
3754: int test (int i, double x);
3755: struct s1 {int (*f) (int a);};
3756: struct s2 {int (*f) (double a);};
3757: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3758: int argc;
3759: char **argv;
3760: int
3761: main ()
3762: {
3763: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3764: ;
3765: return 0;
3766: }
3767: _ACEOF
3768: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3769: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3770: do
3771: CC="$ac_save_CC $ac_arg"
3772: if ac_fn_c_try_compile "$LINENO"; then :
3773: ac_cv_prog_cc_c89=$ac_arg
3774: fi
3775: rm -f core conftest.err conftest.$ac_objext
3776: test "x$ac_cv_prog_cc_c89" != "xno" && break
3777: done
3778: rm -f conftest.$ac_ext
3779: CC=$ac_save_CC
3780:
3781: fi
3782: # AC_CACHE_VAL
3783: case "x$ac_cv_prog_cc_c89" in
3784: x)
3785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3786: $as_echo "none needed" >&6; } ;;
3787: xno)
3788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3789: $as_echo "unsupported" >&6; } ;;
3790: *)
3791: CC="$CC $ac_cv_prog_cc_c89"
3792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3793: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3794: esac
3795: if test "x$ac_cv_prog_cc_c89" != xno; then :
3796:
3797: fi
3798:
3799: ac_ext=c
3800: ac_cpp='$CPP $CPPFLAGS'
3801: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804: DEPDIR="${am__leading_dot}deps"
3805:
3806: ac_config_commands="$ac_config_commands depfiles"
3807:
3808:
3809: am_make=${MAKE-make}
3810: cat > confinc << 'END'
3811: am__doit:
3812: @echo this is the am__doit target
3813: .PHONY: am__doit
3814: END
3815: # If we don't find an include directive, just comment out the code.
3816: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3817: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3818: am__include="#"
3819: am__quote=
3820: _am_result=none
3821: # First try GNU make style include.
3822: echo "include confinc" > confmf
3823: # Ignore all kinds of additional output from `make'.
3824: case `$am_make -s -f confmf 2> /dev/null` in #(
3825: *the\ am__doit\ target*)
3826: am__include=include
3827: am__quote=
3828: _am_result=GNU
3829: ;;
3830: esac
3831: # Now try BSD make style include.
3832: if test "$am__include" = "#"; then
3833: echo '.include "confinc"' > confmf
3834: case `$am_make -s -f confmf 2> /dev/null` in #(
3835: *the\ am__doit\ target*)
3836: am__include=.include
3837: am__quote="\""
3838: _am_result=BSD
3839: ;;
3840: esac
3841: fi
3842:
3843:
3844: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3845: $as_echo "$_am_result" >&6; }
3846: rm -f confinc confmf
3847:
3848: # Check whether --enable-dependency-tracking was given.
3849: if test "${enable_dependency_tracking+set}" = set; then :
3850: enableval=$enable_dependency_tracking;
3851: fi
3852:
3853: if test "x$enable_dependency_tracking" != xno; then
3854: am_depcomp="$ac_aux_dir/depcomp"
3855: AMDEPBACKSLASH='\'
3856: fi
3857: if test "x$enable_dependency_tracking" != xno; then
3858: AMDEP_TRUE=
3859: AMDEP_FALSE='#'
3860: else
3861: AMDEP_TRUE='#'
3862: AMDEP_FALSE=
3863: fi
3864:
3865:
3866:
3867: depcc="$CC" am_compiler_list=
3868:
3869: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3870: $as_echo_n "checking dependency style of $depcc... " >&6; }
3871: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3872: $as_echo_n "(cached) " >&6
3873: else
3874: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3875: # We make a subdir and do the tests there. Otherwise we can end up
3876: # making bogus files that we don't know about and never remove. For
3877: # instance it was reported that on HP-UX the gcc test will end up
3878: # making a dummy file named `D' -- because `-MD' means `put the output
3879: # in D'.
3880: mkdir conftest.dir
3881: # Copy depcomp to subdir because otherwise we won't find it if we're
3882: # using a relative directory.
3883: cp "$am_depcomp" conftest.dir
3884: cd conftest.dir
3885: # We will build objects and dependencies in a subdirectory because
3886: # it helps to detect inapplicable dependency modes. For instance
3887: # both Tru64's cc and ICC support -MD to output dependencies as a
3888: # side effect of compilation, but ICC will put the dependencies in
3889: # the current directory while Tru64 will put them in the object
3890: # directory.
3891: mkdir sub
3892:
3893: am_cv_CC_dependencies_compiler_type=none
3894: if test "$am_compiler_list" = ""; then
3895: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3896: fi
3897: am__universal=false
3898: case " $depcc " in #(
3899: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3900: esac
3901:
3902: for depmode in $am_compiler_list; do
3903: # Setup a source with many dependencies, because some compilers
3904: # like to wrap large dependency lists on column 80 (with \), and
3905: # we should not choose a depcomp mode which is confused by this.
3906: #
3907: # We need to recreate these files for each test, as the compiler may
3908: # overwrite some of them when testing with obscure command lines.
3909: # This happens at least with the AIX C compiler.
3910: : > sub/conftest.c
3911: for i in 1 2 3 4 5 6; do
3912: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3913: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3914: # Solaris 8's {/usr,}/bin/sh.
3915: touch sub/conftst$i.h
3916: done
3917: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3918:
3919: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3920: # mode. It turns out that the SunPro C++ compiler does not properly
3921: # handle `-M -o', and we need to detect this. Also, some Intel
3922: # versions had trouble with output in subdirs
3923: am__obj=sub/conftest.${OBJEXT-o}
3924: am__minus_obj="-o $am__obj"
3925: case $depmode in
3926: gcc)
3927: # This depmode causes a compiler race in universal mode.
3928: test "$am__universal" = false || continue
3929: ;;
3930: nosideeffect)
3931: # after this tag, mechanisms are not by side-effect, so they'll
3932: # only be used when explicitly requested
3933: if test "x$enable_dependency_tracking" = xyes; then
3934: continue
3935: else
3936: break
3937: fi
3938: ;;
3939: msvisualcpp | msvcmsys)
3940: # This compiler won't grok `-c -o', but also, the minuso test has
3941: # not run yet. These depmodes are late enough in the game, and
3942: # so weak that their functioning should not be impacted.
3943: am__obj=conftest.${OBJEXT-o}
3944: am__minus_obj=
3945: ;;
3946: none) break ;;
3947: esac
3948: if depmode=$depmode \
3949: source=sub/conftest.c object=$am__obj \
3950: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3951: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3952: >/dev/null 2>conftest.err &&
3953: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3954: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3955: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3956: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3957: # icc doesn't choke on unknown options, it will just issue warnings
3958: # or remarks (even with -Werror). So we grep stderr for any message
3959: # that says an option was ignored or not supported.
3960: # When given -MP, icc 7.0 and 7.1 complain thusly:
3961: # icc: Command line warning: ignoring option '-M'; no argument required
3962: # The diagnosis changed in icc 8.0:
3963: # icc: Command line remark: option '-MP' not supported
3964: if (grep 'ignoring option' conftest.err ||
3965: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3966: am_cv_CC_dependencies_compiler_type=$depmode
3967: break
3968: fi
3969: fi
3970: done
3971:
3972: cd ..
3973: rm -rf conftest.dir
3974: else
3975: am_cv_CC_dependencies_compiler_type=none
3976: fi
3977:
3978: fi
3979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3980: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3981: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3982:
3983: if
3984: test "x$enable_dependency_tracking" != xno \
3985: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3986: am__fastdepCC_TRUE=
3987: am__fastdepCC_FALSE='#'
3988: else
3989: am__fastdepCC_TRUE='#'
3990: am__fastdepCC_FALSE=
3991: fi
3992:
3993:
3994:
3995: if test x"$CC" != x""; then
3996: GCC_VERSION_MAJEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
3997: awk -F. '{ printf("%s", $1);}'`
3998: GCC_VERSION_MINEURE=`$CC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
3999: awk -F. '{ printf("%s", $2);}'`
4000: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4001: OPTIMISATION_C=-O3
4002: else
4003: if test $GCC_VERSION_MAJEURE -ge 5; then
4004: OPTIMISATION_C=-O3
4005: else
4006: OPTIMISATION_C=-O2
4007: fi
4008: fi
4009: fi
4010:
4011: if test "x$CC" != xcc; then
4012: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4013: $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4014: else
4015: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4016: $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4017: fi
4018: set dummy $CC; ac_cc=`$as_echo "$2" |
4019: sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4020: if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4021: $as_echo_n "(cached) " >&6
4022: else
4023: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024: /* end confdefs.h. */
4025:
4026: int
4027: main ()
4028: {
4029:
4030: ;
4031: return 0;
4032: }
4033: _ACEOF
4034: # Make sure it works both with $CC and with simple cc.
4035: # We do the test twice because some compilers refuse to overwrite an
4036: # existing .o file with -o, though they will create one.
4037: ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4038: rm -f conftest2.*
4039: if { { case "(($ac_try" in
4040: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041: *) ac_try_echo=$ac_try;;
4042: esac
4043: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4044: $as_echo "$ac_try_echo"; } >&5
4045: (eval "$ac_try") 2>&5
4046: ac_status=$?
4047: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4048: test $ac_status = 0; } &&
4049: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4050: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051: *) ac_try_echo=$ac_try;;
4052: esac
4053: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4054: $as_echo "$ac_try_echo"; } >&5
4055: (eval "$ac_try") 2>&5
4056: ac_status=$?
4057: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058: test $ac_status = 0; };
4059: then
4060: eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4061: if test "x$CC" != xcc; then
4062: # Test first that cc exists at all.
4063: if { ac_try='cc -c conftest.$ac_ext >&5'
4064: { { case "(($ac_try" in
4065: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066: *) ac_try_echo=$ac_try;;
4067: esac
4068: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4069: $as_echo "$ac_try_echo"; } >&5
4070: (eval "$ac_try") 2>&5
4071: ac_status=$?
4072: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4073: test $ac_status = 0; }; }; then
4074: ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4075: rm -f conftest2.*
4076: if { { case "(($ac_try" in
4077: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078: *) ac_try_echo=$ac_try;;
4079: esac
4080: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081: $as_echo "$ac_try_echo"; } >&5
4082: (eval "$ac_try") 2>&5
4083: ac_status=$?
4084: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085: test $ac_status = 0; } &&
4086: test -f conftest2.$ac_objext && { { case "(($ac_try" in
4087: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4088: *) ac_try_echo=$ac_try;;
4089: esac
4090: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4091: $as_echo "$ac_try_echo"; } >&5
4092: (eval "$ac_try") 2>&5
4093: ac_status=$?
4094: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4095: test $ac_status = 0; };
4096: then
4097: # cc works too.
4098: :
4099: else
4100: # cc exists but doesn't like -o.
4101: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4102: fi
4103: fi
4104: fi
4105: else
4106: eval ac_cv_prog_cc_${ac_cc}_c_o=no
4107: fi
4108: rm -f core conftest*
4109:
4110: fi
4111: if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4113: $as_echo "yes" >&6; }
4114: else
4115: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116: $as_echo "no" >&6; }
4117:
4118: $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4119:
4120: fi
4121:
4122: # FIXME: we rely on the cache variable name because
4123: # there is no other way.
4124: set dummy $CC
4125: am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4126: eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4127: if test "$am_t" != yes; then
4128: # Losing compiler, so override with the script.
4129: # FIXME: It is wrong to rewrite CC.
4130: # But if we don't then we get into trouble of one sort or another.
4131: # A longer-term fix would be to have automake use am__CC in this case,
4132: # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4133: CC="$am_aux_dir/compile $CC"
4134: fi
4135:
4136:
4137:
4138: if test "$GCC" != yes; then
4139: as_fn_error "Cannot find gcc! You have to install it." "$LINENO" 5
4140: fi
4141:
4142: ac_ext=cpp
4143: ac_cpp='$CXXCPP $CPPFLAGS'
4144: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4145: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4146: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4147: if test -z "$CXX"; then
4148: if test -n "$CCC"; then
4149: CXX=$CCC
4150: else
4151: if test -n "$ac_tool_prefix"; then
4152: for ac_prog in g++-4.4 g++
4153: do
4154: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4155: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4156: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4157: $as_echo_n "checking for $ac_word... " >&6; }
4158: if test "${ac_cv_prog_CXX+set}" = set; then :
4159: $as_echo_n "(cached) " >&6
4160: else
4161: if test -n "$CXX"; then
4162: ac_cv_prog_CXX="$CXX" # Let the user override the test.
4163: else
4164: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165: for as_dir in $PATH
4166: do
4167: IFS=$as_save_IFS
4168: test -z "$as_dir" && as_dir=.
4169: for ac_exec_ext in '' $ac_executable_extensions; do
4170: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4172: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4173: break 2
4174: fi
4175: done
4176: done
4177: IFS=$as_save_IFS
4178:
4179: fi
4180: fi
4181: CXX=$ac_cv_prog_CXX
4182: if test -n "$CXX"; then
4183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4184: $as_echo "$CXX" >&6; }
4185: else
4186: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187: $as_echo "no" >&6; }
4188: fi
4189:
4190:
4191: test -n "$CXX" && break
4192: done
4193: fi
4194: if test -z "$CXX"; then
4195: ac_ct_CXX=$CXX
4196: for ac_prog in g++-4.4 g++
4197: do
4198: # Extract the first word of "$ac_prog", so it can be a program name with args.
4199: set dummy $ac_prog; ac_word=$2
4200: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4201: $as_echo_n "checking for $ac_word... " >&6; }
4202: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4203: $as_echo_n "(cached) " >&6
4204: else
4205: if test -n "$ac_ct_CXX"; then
4206: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4207: else
4208: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209: for as_dir in $PATH
4210: do
4211: IFS=$as_save_IFS
4212: test -z "$as_dir" && as_dir=.
4213: for ac_exec_ext in '' $ac_executable_extensions; do
4214: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4215: ac_cv_prog_ac_ct_CXX="$ac_prog"
4216: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217: break 2
4218: fi
4219: done
4220: done
4221: IFS=$as_save_IFS
4222:
4223: fi
4224: fi
4225: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4226: if test -n "$ac_ct_CXX"; then
4227: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4228: $as_echo "$ac_ct_CXX" >&6; }
4229: else
4230: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231: $as_echo "no" >&6; }
4232: fi
4233:
4234:
4235: test -n "$ac_ct_CXX" && break
4236: done
4237:
4238: if test "x$ac_ct_CXX" = x; then
4239: CXX="g++"
4240: else
4241: case $cross_compiling:$ac_tool_warned in
4242: yes:)
4243: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4244: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4245: ac_tool_warned=yes ;;
4246: esac
4247: CXX=$ac_ct_CXX
4248: fi
4249: fi
4250:
4251: fi
4252: fi
4253: # Provide some information about the compiler.
4254: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4255: set X $ac_compile
4256: ac_compiler=$2
4257: for ac_option in --version -v -V -qversion; do
4258: { { ac_try="$ac_compiler $ac_option >&5"
4259: case "(($ac_try" in
4260: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261: *) ac_try_echo=$ac_try;;
4262: esac
4263: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4264: $as_echo "$ac_try_echo"; } >&5
4265: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4266: ac_status=$?
4267: if test -s conftest.err; then
4268: sed '10a\
4269: ... rest of stderr output deleted ...
4270: 10q' conftest.err >conftest.er1
4271: cat conftest.er1 >&5
4272: fi
4273: rm -f conftest.er1 conftest.err
4274: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4275: test $ac_status = 0; }
4276: done
4277:
4278: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4279: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4280: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4281: $as_echo_n "(cached) " >&6
4282: else
4283: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284: /* end confdefs.h. */
4285:
4286: int
4287: main ()
4288: {
4289: #ifndef __GNUC__
4290: choke me
4291: #endif
4292:
4293: ;
4294: return 0;
4295: }
4296: _ACEOF
4297: if ac_fn_cxx_try_compile "$LINENO"; then :
4298: ac_compiler_gnu=yes
4299: else
4300: ac_compiler_gnu=no
4301: fi
4302: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4304:
4305: fi
4306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4307: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4308: if test $ac_compiler_gnu = yes; then
4309: GXX=yes
4310: else
4311: GXX=
4312: fi
4313: ac_test_CXXFLAGS=${CXXFLAGS+set}
4314: ac_save_CXXFLAGS=$CXXFLAGS
4315: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4316: $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4317: if test "${ac_cv_prog_cxx_g+set}" = set; then :
4318: $as_echo_n "(cached) " >&6
4319: else
4320: ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4321: ac_cxx_werror_flag=yes
4322: ac_cv_prog_cxx_g=no
4323: CXXFLAGS="-g"
4324: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325: /* end confdefs.h. */
4326:
4327: int
4328: main ()
4329: {
4330:
4331: ;
4332: return 0;
4333: }
4334: _ACEOF
4335: if ac_fn_cxx_try_compile "$LINENO"; then :
4336: ac_cv_prog_cxx_g=yes
4337: else
4338: CXXFLAGS=""
4339: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4340: /* end confdefs.h. */
4341:
4342: int
4343: main ()
4344: {
4345:
4346: ;
4347: return 0;
4348: }
4349: _ACEOF
4350: if ac_fn_cxx_try_compile "$LINENO"; then :
4351:
4352: else
4353: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4354: CXXFLAGS="-g"
4355: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356: /* end confdefs.h. */
4357:
4358: int
4359: main ()
4360: {
4361:
4362: ;
4363: return 0;
4364: }
4365: _ACEOF
4366: if ac_fn_cxx_try_compile "$LINENO"; then :
4367: ac_cv_prog_cxx_g=yes
4368: fi
4369: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370: fi
4371: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4372: fi
4373: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4374: ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4375: fi
4376: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4377: $as_echo "$ac_cv_prog_cxx_g" >&6; }
4378: if test "$ac_test_CXXFLAGS" = set; then
4379: CXXFLAGS=$ac_save_CXXFLAGS
4380: elif test $ac_cv_prog_cxx_g = yes; then
4381: if test "$GXX" = yes; then
4382: CXXFLAGS="-g -O2"
4383: else
4384: CXXFLAGS="-g"
4385: fi
4386: else
4387: if test "$GXX" = yes; then
4388: CXXFLAGS="-O2"
4389: else
4390: CXXFLAGS=
4391: fi
4392: fi
4393: ac_ext=c
4394: ac_cpp='$CPP $CPPFLAGS'
4395: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4396: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4397: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4398:
4399: depcc="$CXX" am_compiler_list=
4400:
4401: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4402: $as_echo_n "checking dependency style of $depcc... " >&6; }
4403: if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4404: $as_echo_n "(cached) " >&6
4405: else
4406: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4407: # We make a subdir and do the tests there. Otherwise we can end up
4408: # making bogus files that we don't know about and never remove. For
4409: # instance it was reported that on HP-UX the gcc test will end up
4410: # making a dummy file named `D' -- because `-MD' means `put the output
4411: # in D'.
4412: mkdir conftest.dir
4413: # Copy depcomp to subdir because otherwise we won't find it if we're
4414: # using a relative directory.
4415: cp "$am_depcomp" conftest.dir
4416: cd conftest.dir
4417: # We will build objects and dependencies in a subdirectory because
4418: # it helps to detect inapplicable dependency modes. For instance
4419: # both Tru64's cc and ICC support -MD to output dependencies as a
4420: # side effect of compilation, but ICC will put the dependencies in
4421: # the current directory while Tru64 will put them in the object
4422: # directory.
4423: mkdir sub
4424:
4425: am_cv_CXX_dependencies_compiler_type=none
4426: if test "$am_compiler_list" = ""; then
4427: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4428: fi
4429: am__universal=false
4430: case " $depcc " in #(
4431: *\ -arch\ *\ -arch\ *) am__universal=true ;;
4432: esac
4433:
4434: for depmode in $am_compiler_list; do
4435: # Setup a source with many dependencies, because some compilers
4436: # like to wrap large dependency lists on column 80 (with \), and
4437: # we should not choose a depcomp mode which is confused by this.
4438: #
4439: # We need to recreate these files for each test, as the compiler may
4440: # overwrite some of them when testing with obscure command lines.
4441: # This happens at least with the AIX C compiler.
4442: : > sub/conftest.c
4443: for i in 1 2 3 4 5 6; do
4444: echo '#include "conftst'$i'.h"' >> sub/conftest.c
4445: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4446: # Solaris 8's {/usr,}/bin/sh.
4447: touch sub/conftst$i.h
4448: done
4449: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4450:
4451: # We check with `-c' and `-o' for the sake of the "dashmstdout"
4452: # mode. It turns out that the SunPro C++ compiler does not properly
4453: # handle `-M -o', and we need to detect this. Also, some Intel
4454: # versions had trouble with output in subdirs
4455: am__obj=sub/conftest.${OBJEXT-o}
4456: am__minus_obj="-o $am__obj"
4457: case $depmode in
4458: gcc)
4459: # This depmode causes a compiler race in universal mode.
4460: test "$am__universal" = false || continue
4461: ;;
4462: nosideeffect)
4463: # after this tag, mechanisms are not by side-effect, so they'll
4464: # only be used when explicitly requested
4465: if test "x$enable_dependency_tracking" = xyes; then
4466: continue
4467: else
4468: break
4469: fi
4470: ;;
4471: msvisualcpp | msvcmsys)
4472: # This compiler won't grok `-c -o', but also, the minuso test has
4473: # not run yet. These depmodes are late enough in the game, and
4474: # so weak that their functioning should not be impacted.
4475: am__obj=conftest.${OBJEXT-o}
4476: am__minus_obj=
4477: ;;
4478: none) break ;;
4479: esac
4480: if depmode=$depmode \
4481: source=sub/conftest.c object=$am__obj \
4482: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4483: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4484: >/dev/null 2>conftest.err &&
4485: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4486: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4487: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4488: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4489: # icc doesn't choke on unknown options, it will just issue warnings
4490: # or remarks (even with -Werror). So we grep stderr for any message
4491: # that says an option was ignored or not supported.
4492: # When given -MP, icc 7.0 and 7.1 complain thusly:
4493: # icc: Command line warning: ignoring option '-M'; no argument required
4494: # The diagnosis changed in icc 8.0:
4495: # icc: Command line remark: option '-MP' not supported
4496: if (grep 'ignoring option' conftest.err ||
4497: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4498: am_cv_CXX_dependencies_compiler_type=$depmode
4499: break
4500: fi
4501: fi
4502: done
4503:
4504: cd ..
4505: rm -rf conftest.dir
4506: else
4507: am_cv_CXX_dependencies_compiler_type=none
4508: fi
4509:
4510: fi
4511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4512: $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4513: CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4514:
4515: if
4516: test "x$enable_dependency_tracking" != xno \
4517: && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4518: am__fastdepCXX_TRUE=
4519: am__fastdepCXX_FALSE='#'
4520: else
4521: am__fastdepCXX_TRUE='#'
4522: am__fastdepCXX_FALSE=
4523: fi
4524:
4525:
4526:
4527: if test "$GXX" != yes; then
4528: as_fn_error "Cannot find g++! You have to install it." "$LINENO" 5
4529: fi
4530:
4531: ac_ext=f
4532: ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4533: ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4534: ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4535: if test -n "$ac_tool_prefix"; then
4536: for ac_prog in gfortran-4.4 gfortran
4537: do
4538: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4539: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4540: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4541: $as_echo_n "checking for $ac_word... " >&6; }
4542: if test "${ac_cv_prog_F77+set}" = set; then :
4543: $as_echo_n "(cached) " >&6
4544: else
4545: if test -n "$F77"; then
4546: ac_cv_prog_F77="$F77" # Let the user override the test.
4547: else
4548: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549: for as_dir in $PATH
4550: do
4551: IFS=$as_save_IFS
4552: test -z "$as_dir" && as_dir=.
4553: for ac_exec_ext in '' $ac_executable_extensions; do
4554: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4555: ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4556: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4557: break 2
4558: fi
4559: done
4560: done
4561: IFS=$as_save_IFS
4562:
4563: fi
4564: fi
4565: F77=$ac_cv_prog_F77
4566: if test -n "$F77"; then
4567: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
4568: $as_echo "$F77" >&6; }
4569: else
4570: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4571: $as_echo "no" >&6; }
4572: fi
4573:
4574:
4575: test -n "$F77" && break
4576: done
4577: fi
4578: if test -z "$F77"; then
4579: ac_ct_F77=$F77
4580: for ac_prog in gfortran-4.4 gfortran
4581: do
4582: # Extract the first word of "$ac_prog", so it can be a program name with args.
4583: set dummy $ac_prog; ac_word=$2
4584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585: $as_echo_n "checking for $ac_word... " >&6; }
4586: if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
4587: $as_echo_n "(cached) " >&6
4588: else
4589: if test -n "$ac_ct_F77"; then
4590: ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4591: else
4592: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593: for as_dir in $PATH
4594: do
4595: IFS=$as_save_IFS
4596: test -z "$as_dir" && as_dir=.
4597: for ac_exec_ext in '' $ac_executable_extensions; do
4598: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599: ac_cv_prog_ac_ct_F77="$ac_prog"
4600: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601: break 2
4602: fi
4603: done
4604: done
4605: IFS=$as_save_IFS
4606:
4607: fi
4608: fi
4609: ac_ct_F77=$ac_cv_prog_ac_ct_F77
4610: if test -n "$ac_ct_F77"; then
4611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
4612: $as_echo "$ac_ct_F77" >&6; }
4613: else
4614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615: $as_echo "no" >&6; }
4616: fi
4617:
4618:
4619: test -n "$ac_ct_F77" && break
4620: done
4621:
4622: if test "x$ac_ct_F77" = x; then
4623: F77=""
4624: else
4625: case $cross_compiling:$ac_tool_warned in
4626: yes:)
4627: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4628: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4629: ac_tool_warned=yes ;;
4630: esac
4631: F77=$ac_ct_F77
4632: fi
4633: fi
4634:
4635:
4636: # Provide some information about the compiler.
4637: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
4638: set X $ac_compile
4639: ac_compiler=$2
4640: for ac_option in --version -v -V -qversion; do
4641: { { ac_try="$ac_compiler $ac_option >&5"
4642: case "(($ac_try" in
4643: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644: *) ac_try_echo=$ac_try;;
4645: esac
4646: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4647: $as_echo "$ac_try_echo"; } >&5
4648: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4649: ac_status=$?
4650: if test -s conftest.err; then
4651: sed '10a\
4652: ... rest of stderr output deleted ...
4653: 10q' conftest.err >conftest.er1
4654: cat conftest.er1 >&5
4655: fi
4656: rm -f conftest.er1 conftest.err
4657: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658: test $ac_status = 0; }
4659: done
4660: rm -f a.out
4661:
4662: # If we don't use `.F' as extension, the preprocessor is not run on the
4663: # input file. (Note that this only needs to work for GNU compilers.)
4664: ac_save_ext=$ac_ext
4665: ac_ext=F
4666: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
4667: $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
4668: if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
4669: $as_echo_n "(cached) " >&6
4670: else
4671: cat > conftest.$ac_ext <<_ACEOF
4672: program main
4673: #ifndef __GNUC__
4674: choke me
4675: #endif
4676:
4677: end
4678: _ACEOF
4679: if ac_fn_f77_try_compile "$LINENO"; then :
4680: ac_compiler_gnu=yes
4681: else
4682: ac_compiler_gnu=no
4683: fi
4684: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4685: ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4686:
4687: fi
4688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
4689: $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
4690: ac_ext=$ac_save_ext
4691: ac_test_FFLAGS=${FFLAGS+set}
4692: ac_save_FFLAGS=$FFLAGS
4693: FFLAGS=
4694: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
4695: $as_echo_n "checking whether $F77 accepts -g... " >&6; }
4696: if test "${ac_cv_prog_f77_g+set}" = set; then :
4697: $as_echo_n "(cached) " >&6
4698: else
4699: FFLAGS=-g
4700: cat > conftest.$ac_ext <<_ACEOF
4701: program main
4702:
4703: end
4704: _ACEOF
4705: if ac_fn_f77_try_compile "$LINENO"; then :
4706: ac_cv_prog_f77_g=yes
4707: else
4708: ac_cv_prog_f77_g=no
4709: fi
4710: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711:
4712: fi
4713: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
4714: $as_echo "$ac_cv_prog_f77_g" >&6; }
4715: if test "$ac_test_FFLAGS" = set; then
4716: FFLAGS=$ac_save_FFLAGS
4717: elif test $ac_cv_prog_f77_g = yes; then
4718: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4719: FFLAGS="-g -O2"
4720: else
4721: FFLAGS="-g"
4722: fi
4723: else
4724: if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4725: FFLAGS="-O2"
4726: else
4727: FFLAGS=
4728: fi
4729: fi
4730:
4731: if test $ac_compiler_gnu = yes; then
4732: G77=yes
4733: else
4734: G77=
4735: fi
4736: ac_ext=c
4737: ac_cpp='$CPP $CPPFLAGS'
4738: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4739: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4740: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4741:
4742:
4743: if test "$F77" != gfortran -a "$F77" != gfortran-4.4; then
4744: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4745: fi
4746:
4747: ac_ext=${ac_fc_srcext-f}
4748: ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
4749: ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
4750: ac_compiler_gnu=$ac_cv_fc_compiler_gnu
4751: if test -n "$ac_tool_prefix"; then
4752: for ac_prog in gfortran-4.4 gfortran
4753: do
4754: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4755: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4756: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757: $as_echo_n "checking for $ac_word... " >&6; }
4758: if test "${ac_cv_prog_FC+set}" = set; then :
4759: $as_echo_n "(cached) " >&6
4760: else
4761: if test -n "$FC"; then
4762: ac_cv_prog_FC="$FC" # Let the user override the test.
4763: else
4764: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765: for as_dir in $PATH
4766: do
4767: IFS=$as_save_IFS
4768: test -z "$as_dir" && as_dir=.
4769: for ac_exec_ext in '' $ac_executable_extensions; do
4770: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771: ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
4772: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4773: break 2
4774: fi
4775: done
4776: done
4777: IFS=$as_save_IFS
4778:
4779: fi
4780: fi
4781: FC=$ac_cv_prog_FC
4782: if test -n "$FC"; then
4783: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
4784: $as_echo "$FC" >&6; }
4785: else
4786: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787: $as_echo "no" >&6; }
4788: fi
4789:
4790:
4791: test -n "$FC" && break
4792: done
4793: fi
4794: if test -z "$FC"; then
4795: ac_ct_FC=$FC
4796: for ac_prog in gfortran-4.4 gfortran
4797: do
4798: # Extract the first word of "$ac_prog", so it can be a program name with args.
4799: set dummy $ac_prog; ac_word=$2
4800: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801: $as_echo_n "checking for $ac_word... " >&6; }
4802: if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
4803: $as_echo_n "(cached) " >&6
4804: else
4805: if test -n "$ac_ct_FC"; then
4806: ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
4807: else
4808: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809: for as_dir in $PATH
4810: do
4811: IFS=$as_save_IFS
4812: test -z "$as_dir" && as_dir=.
4813: for ac_exec_ext in '' $ac_executable_extensions; do
4814: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4815: ac_cv_prog_ac_ct_FC="$ac_prog"
4816: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817: break 2
4818: fi
4819: done
4820: done
4821: IFS=$as_save_IFS
4822:
4823: fi
4824: fi
4825: ac_ct_FC=$ac_cv_prog_ac_ct_FC
4826: if test -n "$ac_ct_FC"; then
4827: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
4828: $as_echo "$ac_ct_FC" >&6; }
4829: else
4830: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831: $as_echo "no" >&6; }
4832: fi
4833:
4834:
4835: test -n "$ac_ct_FC" && break
4836: done
4837:
4838: if test "x$ac_ct_FC" = x; then
4839: FC=""
4840: else
4841: case $cross_compiling:$ac_tool_warned in
4842: yes:)
4843: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4844: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4845: ac_tool_warned=yes ;;
4846: esac
4847: FC=$ac_ct_FC
4848: fi
4849: fi
4850:
4851:
4852: # Provide some information about the compiler.
4853: $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
4854: set X $ac_compile
4855: ac_compiler=$2
4856: for ac_option in --version -v -V -qversion; do
4857: { { ac_try="$ac_compiler $ac_option >&5"
4858: case "(($ac_try" in
4859: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860: *) ac_try_echo=$ac_try;;
4861: esac
4862: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4863: $as_echo "$ac_try_echo"; } >&5
4864: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4865: ac_status=$?
4866: if test -s conftest.err; then
4867: sed '10a\
4868: ... rest of stderr output deleted ...
4869: 10q' conftest.err >conftest.er1
4870: cat conftest.er1 >&5
4871: fi
4872: rm -f conftest.er1 conftest.err
4873: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4874: test $ac_status = 0; }
4875: done
4876: rm -f a.out
4877:
4878: # If we don't use `.F' as extension, the preprocessor is not run on the
4879: # input file. (Note that this only needs to work for GNU compilers.)
4880: ac_save_ext=$ac_ext
4881: ac_ext=F
4882: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
4883: $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
4884: if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
4885: $as_echo_n "(cached) " >&6
4886: else
4887: cat > conftest.$ac_ext <<_ACEOF
4888: program main
4889: #ifndef __GNUC__
4890: choke me
4891: #endif
4892:
4893: end
4894: _ACEOF
4895: if ac_fn_fc_try_compile "$LINENO"; then :
4896: ac_compiler_gnu=yes
4897: else
4898: ac_compiler_gnu=no
4899: fi
4900: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901: ac_cv_fc_compiler_gnu=$ac_compiler_gnu
4902:
4903: fi
4904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
4905: $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
4906: ac_ext=$ac_save_ext
4907: ac_test_FCFLAGS=${FCFLAGS+set}
4908: ac_save_FCFLAGS=$FCFLAGS
4909: FCFLAGS=
4910: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
4911: $as_echo_n "checking whether $FC accepts -g... " >&6; }
4912: if test "${ac_cv_prog_fc_g+set}" = set; then :
4913: $as_echo_n "(cached) " >&6
4914: else
4915: FCFLAGS=-g
4916: cat > conftest.$ac_ext <<_ACEOF
4917: program main
4918:
4919: end
4920: _ACEOF
4921: if ac_fn_fc_try_compile "$LINENO"; then :
4922: ac_cv_prog_fc_g=yes
4923: else
4924: ac_cv_prog_fc_g=no
4925: fi
4926: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927:
4928: fi
4929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
4930: $as_echo "$ac_cv_prog_fc_g" >&6; }
4931: if test "$ac_test_FCFLAGS" = set; then
4932: FCFLAGS=$ac_save_FCFLAGS
4933: elif test $ac_cv_prog_fc_g = yes; then
4934: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4935: FCFLAGS="-g -O2"
4936: else
4937: FCFLAGS="-g"
4938: fi
4939: else
4940: if test "x$ac_cv_fc_compiler_gnu" = xyes; then
4941: FCFLAGS="-O2"
4942: else
4943: FCFLAGS=
4944: fi
4945: fi
4946:
4947: ac_ext=c
4948: ac_cpp='$CPP $CPPFLAGS'
4949: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4950: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4951: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4952:
4953:
4954: if test "$FC" != gfortran -a "$FC" != gfortran-4.4; then
4955: as_fn_error "Cannot find gfortran! You have to install it." "$LINENO" 5
4956: fi
4957:
4958: if test x"$FC" != x""; then
4959: GCC_VERSION_MAJEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4960: awk -F. '{ printf("%s", $1);}'`
4961: GCC_VERSION_MINEURE=`$FC -v 2>&1 | awk '/^gcc/ { print $3; }' | \
4962: awk -F. '{ printf("%s", $2);}'`
4963: if test $GCC_VERSION_MAJEURE -ge 4 -a $GCC_VERSION_MINEURE -ge 4; then
4964: OPTIMISATION_F=-O3
4965: else
4966: if test $GCC_VERSION_MAJEURE -ge 5; then
4967: OPTIMISATION_F=-O3
4968: else
4969: OPTIMISATION_F=-O2
4970: fi
4971: fi
4972: fi
4973:
4974:
4975: ac_ext=c
4976: ac_cpp='$CPP $CPPFLAGS'
4977: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4981: $as_echo_n "checking how to run the C preprocessor... " >&6; }
4982: # On Suns, sometimes $CPP names a directory.
4983: if test -n "$CPP" && test -d "$CPP"; then
4984: CPP=
4985: fi
4986: if test -z "$CPP"; then
4987: if test "${ac_cv_prog_CPP+set}" = set; then :
4988: $as_echo_n "(cached) " >&6
4989: else
4990: # Double quotes because CPP needs to be expanded
4991: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4992: do
4993: ac_preproc_ok=false
4994: for ac_c_preproc_warn_flag in '' yes
4995: do
4996: # Use a header file that comes with gcc, so configuring glibc
4997: # with a fresh cross-compiler works.
4998: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4999: # <limits.h> exists even on freestanding compilers.
5000: # On the NeXT, cc -E runs the code through the compiler's parser,
5001: # not just through cpp. "Syntax error" is here to catch this case.
5002: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003: /* end confdefs.h. */
5004: #ifdef __STDC__
5005: # include <limits.h>
5006: #else
5007: # include <assert.h>
5008: #endif
5009: Syntax error
5010: _ACEOF
5011: if ac_fn_c_try_cpp "$LINENO"; then :
5012:
5013: else
5014: # Broken: fails on valid input.
5015: continue
5016: fi
5017: rm -f conftest.err conftest.$ac_ext
5018:
5019: # OK, works on sane cases. Now check whether nonexistent headers
5020: # can be detected and how.
5021: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022: /* end confdefs.h. */
5023: #include <ac_nonexistent.h>
5024: _ACEOF
5025: if ac_fn_c_try_cpp "$LINENO"; then :
5026: # Broken: success on invalid input.
5027: continue
5028: else
5029: # Passes both tests.
5030: ac_preproc_ok=:
5031: break
5032: fi
5033: rm -f conftest.err conftest.$ac_ext
5034:
5035: done
5036: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5037: rm -f conftest.err conftest.$ac_ext
5038: if $ac_preproc_ok; then :
5039: break
5040: fi
5041:
5042: done
5043: ac_cv_prog_CPP=$CPP
5044:
5045: fi
5046: CPP=$ac_cv_prog_CPP
5047: else
5048: ac_cv_prog_CPP=$CPP
5049: fi
5050: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5051: $as_echo "$CPP" >&6; }
5052: ac_preproc_ok=false
5053: for ac_c_preproc_warn_flag in '' yes
5054: do
5055: # Use a header file that comes with gcc, so configuring glibc
5056: # with a fresh cross-compiler works.
5057: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5058: # <limits.h> exists even on freestanding compilers.
5059: # On the NeXT, cc -E runs the code through the compiler's parser,
5060: # not just through cpp. "Syntax error" is here to catch this case.
5061: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062: /* end confdefs.h. */
5063: #ifdef __STDC__
5064: # include <limits.h>
5065: #else
5066: # include <assert.h>
5067: #endif
5068: Syntax error
5069: _ACEOF
5070: if ac_fn_c_try_cpp "$LINENO"; then :
5071:
5072: else
5073: # Broken: fails on valid input.
5074: continue
5075: fi
5076: rm -f conftest.err conftest.$ac_ext
5077:
5078: # OK, works on sane cases. Now check whether nonexistent headers
5079: # can be detected and how.
5080: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081: /* end confdefs.h. */
5082: #include <ac_nonexistent.h>
5083: _ACEOF
5084: if ac_fn_c_try_cpp "$LINENO"; then :
5085: # Broken: success on invalid input.
5086: continue
5087: else
5088: # Passes both tests.
5089: ac_preproc_ok=:
5090: break
5091: fi
5092: rm -f conftest.err conftest.$ac_ext
5093:
5094: done
5095: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5096: rm -f conftest.err conftest.$ac_ext
5097: if $ac_preproc_ok; then :
5098:
5099: else
5100: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5101: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5102: as_fn_error "C preprocessor \"$CPP\" fails sanity check
5103: See \`config.log' for more details." "$LINENO" 5; }
5104: fi
5105:
5106: ac_ext=c
5107: ac_cpp='$CPP $CPPFLAGS'
5108: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111:
5112:
5113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5114: $as_echo_n "checking for X... " >&6; }
5115:
5116:
5117: # Check whether --with-x was given.
5118: if test "${with_x+set}" = set; then :
5119: withval=$with_x;
5120: fi
5121:
5122: # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5123: if test "x$with_x" = xno; then
5124: # The user explicitly disabled X.
5125: have_x=disabled
5126: else
5127: case $x_includes,$x_libraries in #(
5128: *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
5129: *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5130: $as_echo_n "(cached) " >&6
5131: else
5132: # One or both of the vars are not set, and there is no cached value.
5133: ac_x_includes=no ac_x_libraries=no
5134: rm -f -r conftest.dir
5135: if mkdir conftest.dir; then
5136: cd conftest.dir
5137: cat >Imakefile <<'_ACEOF'
5138: incroot:
5139: @echo incroot='${INCROOT}'
5140: usrlibdir:
5141: @echo usrlibdir='${USRLIBDIR}'
5142: libdir:
5143: @echo libdir='${LIBDIR}'
5144: _ACEOF
5145: if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5146: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5147: for ac_var in incroot usrlibdir libdir; do
5148: eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5149: done
5150: # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5151: for ac_extension in a so sl dylib la dll; do
5152: if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5153: test -f "$ac_im_libdir/libX11.$ac_extension"; then
5154: ac_im_usrlibdir=$ac_im_libdir; break
5155: fi
5156: done
5157: # Screen out bogus values from the imake configuration. They are
5158: # bogus both because they are the default anyway, and because
5159: # using them would break gcc on systems where it needs fixed includes.
5160: case $ac_im_incroot in
5161: /usr/include) ac_x_includes= ;;
5162: *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5163: esac
5164: case $ac_im_usrlibdir in
5165: /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5166: *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5167: esac
5168: fi
5169: cd ..
5170: rm -f -r conftest.dir
5171: fi
5172:
5173: # Standard set of common directories for X headers.
5174: # Check X11 before X11Rn because it is often a symlink to the current release.
5175: ac_x_header_dirs='
5176: /usr/X11/include
5177: /usr/X11R7/include
5178: /usr/X11R6/include
5179: /usr/X11R5/include
5180: /usr/X11R4/include
5181:
5182: /usr/include/X11
5183: /usr/include/X11R7
5184: /usr/include/X11R6
5185: /usr/include/X11R5
5186: /usr/include/X11R4
5187:
5188: /usr/local/X11/include
5189: /usr/local/X11R7/include
5190: /usr/local/X11R6/include
5191: /usr/local/X11R5/include
5192: /usr/local/X11R4/include
5193:
5194: /usr/local/include/X11
5195: /usr/local/include/X11R7
5196: /usr/local/include/X11R6
5197: /usr/local/include/X11R5
5198: /usr/local/include/X11R4
5199:
5200: /usr/X386/include
5201: /usr/x386/include
5202: /usr/XFree86/include/X11
5203:
5204: /usr/include
5205: /usr/local/include
5206: /usr/unsupported/include
5207: /usr/athena/include
5208: /usr/local/x11r5/include
5209: /usr/lpp/Xamples/include
5210:
5211: /usr/openwin/include
5212: /usr/openwin/share/include'
5213:
5214: if test "$ac_x_includes" = no; then
5215: # Guess where to find include files, by looking for Xlib.h.
5216: # First, try using that file with no special directory specified.
5217: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218: /* end confdefs.h. */
5219: #include <X11/Xlib.h>
5220: _ACEOF
5221: if ac_fn_c_try_cpp "$LINENO"; then :
5222: # We can compile using X headers with no special include directory.
5223: ac_x_includes=
5224: else
5225: for ac_dir in $ac_x_header_dirs; do
5226: if test -r "$ac_dir/X11/Xlib.h"; then
5227: ac_x_includes=$ac_dir
5228: break
5229: fi
5230: done
5231: fi
5232: rm -f conftest.err conftest.$ac_ext
5233: fi # $ac_x_includes = no
5234:
5235: if test "$ac_x_libraries" = no; then
5236: # Check for the libraries.
5237: # See if we find them without any special options.
5238: # Don't add to $LIBS permanently.
5239: ac_save_LIBS=$LIBS
5240: LIBS="-lX11 $LIBS"
5241: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242: /* end confdefs.h. */
5243: #include <X11/Xlib.h>
5244: int
5245: main ()
5246: {
5247: XrmInitialize ()
5248: ;
5249: return 0;
5250: }
5251: _ACEOF
5252: if ac_fn_c_try_link "$LINENO"; then :
5253: LIBS=$ac_save_LIBS
5254: # We can link X programs with no special library path.
5255: ac_x_libraries=
5256: else
5257: LIBS=$ac_save_LIBS
5258: for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5259: do
5260: # Don't even attempt the hair of trying to link an X program!
5261: for ac_extension in a so sl dylib la dll; do
5262: if test -r "$ac_dir/libX11.$ac_extension"; then
5263: ac_x_libraries=$ac_dir
5264: break 2
5265: fi
5266: done
5267: done
5268: fi
5269: rm -f core conftest.err conftest.$ac_objext \
5270: conftest$ac_exeext conftest.$ac_ext
5271: fi # $ac_x_libraries = no
5272:
5273: case $ac_x_includes,$ac_x_libraries in #(
5274: no,* | *,no | *\'*)
5275: # Didn't find X, or a directory has "'" in its name.
5276: ac_cv_have_x="have_x=no";; #(
5277: *)
5278: # Record where we found X for the cache.
5279: ac_cv_have_x="have_x=yes\
5280: ac_x_includes='$ac_x_includes'\
5281: ac_x_libraries='$ac_x_libraries'"
5282: esac
5283: fi
5284: ;; #(
5285: *) have_x=yes;;
5286: esac
5287: eval "$ac_cv_have_x"
5288: fi # $with_x != no
5289:
5290: if test "$have_x" != yes; then
5291: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5292: $as_echo "$have_x" >&6; }
5293: no_x=yes
5294: else
5295: # If each of the values was on the command line, it overrides each guess.
5296: test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5297: test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5298: # Update the cache value to reflect the command line values.
5299: ac_cv_have_x="have_x=yes\
5300: ac_x_includes='$x_includes'\
5301: ac_x_libraries='$x_libraries'"
5302: { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5303: $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5304: fi
5305:
5306: if test "$no_x" = yes; then
5307: # Not all programs may use this symbol, but it does not hurt to define it.
5308:
5309: $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5310:
5311: X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5312: else
5313: if test -n "$x_includes"; then
5314: X_CFLAGS="$X_CFLAGS -I$x_includes"
5315: fi
5316:
5317: # It would also be nice to do this for all -L options, not just this one.
5318: if test -n "$x_libraries"; then
5319: X_LIBS="$X_LIBS -L$x_libraries"
5320: # For Solaris; some versions of Sun CC require a space after -R and
5321: # others require no space. Words are not sufficient . . . .
5322: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5323: $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5324: ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5325: ac_xsave_c_werror_flag=$ac_c_werror_flag
5326: ac_c_werror_flag=yes
5327: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328: /* end confdefs.h. */
5329:
5330: int
5331: main ()
5332: {
5333:
5334: ;
5335: return 0;
5336: }
5337: _ACEOF
5338: if ac_fn_c_try_link "$LINENO"; then :
5339: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340: $as_echo "no" >&6; }
5341: X_LIBS="$X_LIBS -R$x_libraries"
5342: else
5343: LIBS="$ac_xsave_LIBS -R $x_libraries"
5344: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345: /* end confdefs.h. */
5346:
5347: int
5348: main ()
5349: {
5350:
5351: ;
5352: return 0;
5353: }
5354: _ACEOF
5355: if ac_fn_c_try_link "$LINENO"; then :
5356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5357: $as_echo "yes" >&6; }
5358: X_LIBS="$X_LIBS -R $x_libraries"
5359: else
5360: { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5361: $as_echo "neither works" >&6; }
5362: fi
5363: rm -f core conftest.err conftest.$ac_objext \
5364: conftest$ac_exeext conftest.$ac_ext
5365: fi
5366: rm -f core conftest.err conftest.$ac_objext \
5367: conftest$ac_exeext conftest.$ac_ext
5368: ac_c_werror_flag=$ac_xsave_c_werror_flag
5369: LIBS=$ac_xsave_LIBS
5370: fi
5371:
5372: # Check for system-dependent libraries X programs must link with.
5373: # Do this before checking for the system-independent R6 libraries
5374: # (-lICE), since we may need -lsocket or whatever for X linking.
5375:
5376: if test "$ISC" = yes; then
5377: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5378: else
5379: # Martyn Johnson says this is needed for Ultrix, if the X
5380: # libraries were built with DECnet support. And Karl Berry says
5381: # the Alpha needs dnet_stub (dnet does not exist).
5382: ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5383: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384: /* end confdefs.h. */
5385:
5386: /* Override any GCC internal prototype to avoid an error.
5387: Use char because int might match the return type of a GCC
5388: builtin and then its argument prototype would still apply. */
5389: #ifdef __cplusplus
5390: extern "C"
5391: #endif
5392: char XOpenDisplay ();
5393: int
5394: main ()
5395: {
5396: return XOpenDisplay ();
5397: ;
5398: return 0;
5399: }
5400: _ACEOF
5401: if ac_fn_c_try_link "$LINENO"; then :
5402:
5403: else
5404: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5405: $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5406: if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5407: $as_echo_n "(cached) " >&6
5408: else
5409: ac_check_lib_save_LIBS=$LIBS
5410: LIBS="-ldnet $LIBS"
5411: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5412: /* end confdefs.h. */
5413:
5414: /* Override any GCC internal prototype to avoid an error.
5415: Use char because int might match the return type of a GCC
5416: builtin and then its argument prototype would still apply. */
5417: #ifdef __cplusplus
5418: extern "C"
5419: #endif
5420: char dnet_ntoa ();
5421: int
5422: main ()
5423: {
5424: return dnet_ntoa ();
5425: ;
5426: return 0;
5427: }
5428: _ACEOF
5429: if ac_fn_c_try_link "$LINENO"; then :
5430: ac_cv_lib_dnet_dnet_ntoa=yes
5431: else
5432: ac_cv_lib_dnet_dnet_ntoa=no
5433: fi
5434: rm -f core conftest.err conftest.$ac_objext \
5435: conftest$ac_exeext conftest.$ac_ext
5436: LIBS=$ac_check_lib_save_LIBS
5437: fi
5438: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5439: $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5440: if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5441: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5442: fi
5443:
5444: if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5445: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5446: $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5447: if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5448: $as_echo_n "(cached) " >&6
5449: else
5450: ac_check_lib_save_LIBS=$LIBS
5451: LIBS="-ldnet_stub $LIBS"
5452: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453: /* end confdefs.h. */
5454:
5455: /* Override any GCC internal prototype to avoid an error.
5456: Use char because int might match the return type of a GCC
5457: builtin and then its argument prototype would still apply. */
5458: #ifdef __cplusplus
5459: extern "C"
5460: #endif
5461: char dnet_ntoa ();
5462: int
5463: main ()
5464: {
5465: return dnet_ntoa ();
5466: ;
5467: return 0;
5468: }
5469: _ACEOF
5470: if ac_fn_c_try_link "$LINENO"; then :
5471: ac_cv_lib_dnet_stub_dnet_ntoa=yes
5472: else
5473: ac_cv_lib_dnet_stub_dnet_ntoa=no
5474: fi
5475: rm -f core conftest.err conftest.$ac_objext \
5476: conftest$ac_exeext conftest.$ac_ext
5477: LIBS=$ac_check_lib_save_LIBS
5478: fi
5479: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5480: $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5481: if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5482: X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5483: fi
5484:
5485: fi
5486: fi
5487: rm -f core conftest.err conftest.$ac_objext \
5488: conftest$ac_exeext conftest.$ac_ext
5489: LIBS="$ac_xsave_LIBS"
5490:
5491: # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5492: # to get the SysV transport functions.
5493: # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5494: # needs -lnsl.
5495: # The nsl library prevents programs from opening the X display
5496: # on Irix 5.2, according to T.E. Dickey.
5497: # The functions gethostbyname, getservbyname, and inet_addr are
5498: # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5499: ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5500: if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5501:
5502: fi
5503:
5504: if test $ac_cv_func_gethostbyname = no; then
5505: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5506: $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5507: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
5508: $as_echo_n "(cached) " >&6
5509: else
5510: ac_check_lib_save_LIBS=$LIBS
5511: LIBS="-lnsl $LIBS"
5512: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513: /* end confdefs.h. */
5514:
5515: /* Override any GCC internal prototype to avoid an error.
5516: Use char because int might match the return type of a GCC
5517: builtin and then its argument prototype would still apply. */
5518: #ifdef __cplusplus
5519: extern "C"
5520: #endif
5521: char gethostbyname ();
5522: int
5523: main ()
5524: {
5525: return gethostbyname ();
5526: ;
5527: return 0;
5528: }
5529: _ACEOF
5530: if ac_fn_c_try_link "$LINENO"; then :
5531: ac_cv_lib_nsl_gethostbyname=yes
5532: else
5533: ac_cv_lib_nsl_gethostbyname=no
5534: fi
5535: rm -f core conftest.err conftest.$ac_objext \
5536: conftest$ac_exeext conftest.$ac_ext
5537: LIBS=$ac_check_lib_save_LIBS
5538: fi
5539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5540: $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5541: if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
5542: X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5543: fi
5544:
5545: if test $ac_cv_lib_nsl_gethostbyname = no; then
5546: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5547: $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5548: if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
5549: $as_echo_n "(cached) " >&6
5550: else
5551: ac_check_lib_save_LIBS=$LIBS
5552: LIBS="-lbsd $LIBS"
5553: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5554: /* end confdefs.h. */
5555:
5556: /* Override any GCC internal prototype to avoid an error.
5557: Use char because int might match the return type of a GCC
5558: builtin and then its argument prototype would still apply. */
5559: #ifdef __cplusplus
5560: extern "C"
5561: #endif
5562: char gethostbyname ();
5563: int
5564: main ()
5565: {
5566: return gethostbyname ();
5567: ;
5568: return 0;
5569: }
5570: _ACEOF
5571: if ac_fn_c_try_link "$LINENO"; then :
5572: ac_cv_lib_bsd_gethostbyname=yes
5573: else
5574: ac_cv_lib_bsd_gethostbyname=no
5575: fi
5576: rm -f core conftest.err conftest.$ac_objext \
5577: conftest$ac_exeext conftest.$ac_ext
5578: LIBS=$ac_check_lib_save_LIBS
5579: fi
5580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5581: $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5582: if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
5583: X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5584: fi
5585:
5586: fi
5587: fi
5588:
5589: # lieder@skyler.mavd.honeywell.com says without -lsocket,
5590: # socket/setsockopt and other routines are undefined under SCO ODT
5591: # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5592: # on later versions), says Simon Leinen: it contains gethostby*
5593: # variants that don't use the name server (or something). -lsocket
5594: # must be given before -lnsl if both are needed. We assume that
5595: # if connect needs -lnsl, so does gethostbyname.
5596: ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
5597: if test "x$ac_cv_func_connect" = x""yes; then :
5598:
5599: fi
5600:
5601: if test $ac_cv_func_connect = no; then
5602: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
5603: $as_echo_n "checking for connect in -lsocket... " >&6; }
5604: if test "${ac_cv_lib_socket_connect+set}" = set; then :
5605: $as_echo_n "(cached) " >&6
5606: else
5607: ac_check_lib_save_LIBS=$LIBS
5608: LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
5609: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5610: /* end confdefs.h. */
5611:
5612: /* Override any GCC internal prototype to avoid an error.
5613: Use char because int might match the return type of a GCC
5614: builtin and then its argument prototype would still apply. */
5615: #ifdef __cplusplus
5616: extern "C"
5617: #endif
5618: char connect ();
5619: int
5620: main ()
5621: {
5622: return connect ();
5623: ;
5624: return 0;
5625: }
5626: _ACEOF
5627: if ac_fn_c_try_link "$LINENO"; then :
5628: ac_cv_lib_socket_connect=yes
5629: else
5630: ac_cv_lib_socket_connect=no
5631: fi
5632: rm -f core conftest.err conftest.$ac_objext \
5633: conftest$ac_exeext conftest.$ac_ext
5634: LIBS=$ac_check_lib_save_LIBS
5635: fi
5636: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
5637: $as_echo "$ac_cv_lib_socket_connect" >&6; }
5638: if test "x$ac_cv_lib_socket_connect" = x""yes; then :
5639: X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
5640: fi
5641:
5642: fi
5643:
5644: # Guillermo Gomez says -lposix is necessary on A/UX.
5645: ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
5646: if test "x$ac_cv_func_remove" = x""yes; then :
5647:
5648: fi
5649:
5650: if test $ac_cv_func_remove = no; then
5651: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
5652: $as_echo_n "checking for remove in -lposix... " >&6; }
5653: if test "${ac_cv_lib_posix_remove+set}" = set; then :
5654: $as_echo_n "(cached) " >&6
5655: else
5656: ac_check_lib_save_LIBS=$LIBS
5657: LIBS="-lposix $LIBS"
5658: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659: /* end confdefs.h. */
5660:
5661: /* Override any GCC internal prototype to avoid an error.
5662: Use char because int might match the return type of a GCC
5663: builtin and then its argument prototype would still apply. */
5664: #ifdef __cplusplus
5665: extern "C"
5666: #endif
5667: char remove ();
5668: int
5669: main ()
5670: {
5671: return remove ();
5672: ;
5673: return 0;
5674: }
5675: _ACEOF
5676: if ac_fn_c_try_link "$LINENO"; then :
5677: ac_cv_lib_posix_remove=yes
5678: else
5679: ac_cv_lib_posix_remove=no
5680: fi
5681: rm -f core conftest.err conftest.$ac_objext \
5682: conftest$ac_exeext conftest.$ac_ext
5683: LIBS=$ac_check_lib_save_LIBS
5684: fi
5685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
5686: $as_echo "$ac_cv_lib_posix_remove" >&6; }
5687: if test "x$ac_cv_lib_posix_remove" = x""yes; then :
5688: X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
5689: fi
5690:
5691: fi
5692:
5693: # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
5694: ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
5695: if test "x$ac_cv_func_shmat" = x""yes; then :
5696:
5697: fi
5698:
5699: if test $ac_cv_func_shmat = no; then
5700: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
5701: $as_echo_n "checking for shmat in -lipc... " >&6; }
5702: if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
5703: $as_echo_n "(cached) " >&6
5704: else
5705: ac_check_lib_save_LIBS=$LIBS
5706: LIBS="-lipc $LIBS"
5707: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708: /* end confdefs.h. */
5709:
5710: /* Override any GCC internal prototype to avoid an error.
5711: Use char because int might match the return type of a GCC
5712: builtin and then its argument prototype would still apply. */
5713: #ifdef __cplusplus
5714: extern "C"
5715: #endif
5716: char shmat ();
5717: int
5718: main ()
5719: {
5720: return shmat ();
5721: ;
5722: return 0;
5723: }
5724: _ACEOF
5725: if ac_fn_c_try_link "$LINENO"; then :
5726: ac_cv_lib_ipc_shmat=yes
5727: else
5728: ac_cv_lib_ipc_shmat=no
5729: fi
5730: rm -f core conftest.err conftest.$ac_objext \
5731: conftest$ac_exeext conftest.$ac_ext
5732: LIBS=$ac_check_lib_save_LIBS
5733: fi
5734: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
5735: $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
5736: if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
5737: X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
5738: fi
5739:
5740: fi
5741: fi
5742:
5743: # Check for libraries that X11R6 Xt/Xaw programs need.
5744: ac_save_LDFLAGS=$LDFLAGS
5745: test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
5746: # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
5747: # check for ICE first), but we must link in the order -lSM -lICE or
5748: # we get undefined symbols. So assume we have SM if we have ICE.
5749: # These have to be linked with before -lX11, unlike the other
5750: # libraries we check for below, so use a different variable.
5751: # John Interrante, Karl Berry
5752: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
5753: $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
5754: if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
5755: $as_echo_n "(cached) " >&6
5756: else
5757: ac_check_lib_save_LIBS=$LIBS
5758: LIBS="-lICE $X_EXTRA_LIBS $LIBS"
5759: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5760: /* end confdefs.h. */
5761:
5762: /* Override any GCC internal prototype to avoid an error.
5763: Use char because int might match the return type of a GCC
5764: builtin and then its argument prototype would still apply. */
5765: #ifdef __cplusplus
5766: extern "C"
5767: #endif
5768: char IceConnectionNumber ();
5769: int
5770: main ()
5771: {
5772: return IceConnectionNumber ();
5773: ;
5774: return 0;
5775: }
5776: _ACEOF
5777: if ac_fn_c_try_link "$LINENO"; then :
5778: ac_cv_lib_ICE_IceConnectionNumber=yes
5779: else
5780: ac_cv_lib_ICE_IceConnectionNumber=no
5781: fi
5782: rm -f core conftest.err conftest.$ac_objext \
5783: conftest$ac_exeext conftest.$ac_ext
5784: LIBS=$ac_check_lib_save_LIBS
5785: fi
5786: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5787: $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5788: if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
5789: X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5790: fi
5791:
5792: LDFLAGS=$ac_save_LDFLAGS
5793:
5794: fi
5795:
5796:
5797: if test "$ac_x_includes" != "no"; then
5798: if test x"$ac_x_includes" != x; then
5799: X_CFLAGS="$X_CFLAGS -I$ac_x_includes"
5800: includeX="-I$ac_x_includes"
5801: fi
5802: fi
5803: if test "$ac_x_libraries" != "no"; then
5804: if test x"$ac_x_libraries" != x; then
5805: X_LIBS="$X_LIBS -L$ac_x_libraries"
5806: fi
5807: fi
5808:
5809: # Check whether --enable-optimization was given.
5810: if test "${enable_optimization+set}" = set; then :
5811: enableval=$enable_optimization;
5812: if test "$enableval" = "no"; then
5813: CFLAGS=
5814: FFLAGS=
5815: CXXFLAGS=
5816: FCFLAGS=
5817: else
5818: CFLAGS="$CFLAGS $enable_optimization"
5819: FFLAGS="$FFLAGS $enable_optimization"
5820: FCFLAGS="$FCFLAGS $enable_optimization"
5821: fi
5822: else
5823:
5824: CFLAGS="$CFLAGS $OPTIMISATION_C"
5825: FFLAGS="$FFLAGS $OPTIMISATION_F"
5826: FCFLAGS="$FCFLAGS $OPTIMISATION_F"
5827:
5828:
5829: fi
5830:
5831:
5832: # Check whether --enable-final-encoding was given.
5833: if test "${enable_final_encoding+set}" = set; then :
5834: enableval=$enable_final_encoding;
5835: if test "$enableval" = "no"; then
5836: FINAL_ENCODING="\$(shell locale charmap | \
5837: awk '/=/ { print \$\$3;} !/=/ { print \$\$1;}')"
5838: else
5839: FINAL_ENCODING="$enable_final_encoding"
5840: fi
5841: else
5842: FINAL_ENCODING="\$(shell locale charmap | \
5843: awk '/=/ { print \$\$3;} !/=/ { print \$\$1;}')"
5844: fi
5845:
5846:
5847: # Check whether --enable-tex was given.
5848: if test "${enable_tex+set}" = set; then :
5849: enableval=$enable_tex;
5850: if test "$enableval" = "no"; then
5851: TEX_SUPPORT=no
5852: else
5853: TEX_SUPPORT=yes
5854: fi
5855: else
5856: TEX_SUPPORT=guessed
5857: fi
5858:
5859:
5860: # Check whether --enable-vim was given.
5861: if test "${enable_vim+set}" = set; then :
5862: enableval=$enable_vim;
5863: if test "$enableval" = "no"; then
5864: VIM_SUPPORT=no
5865: else
5866: VIM_SUPPORT=yes
5867: fi
5868: else
5869: VIM_SUPPORT=guessed
5870: fi
5871:
5872:
5873: # Check whether --enable-embedded-gnuplot was given.
5874: if test "${enable_embedded_gnuplot+set}" = set; then :
5875: enableval=$enable_embedded_gnuplot;
5876: if test "$enableval" = "no"; then
5877: MYGNUPLOT=no
5878: else
5879: MYGNUPLOT=yes
5880: fi
5881: else
5882:
5883: MYGNUPLOT=yes
5884: fi
5885:
5886:
5887: # Check whether --enable-gnuplot was given.
5888: if test "${enable_gnuplot+set}" = set; then :
5889: enableval=$enable_gnuplot;
5890: if test "$enableval" = "no"; then
5891: GNUPLOT_SUPPORT=no
5892: MYGNUPLOT=no
5893: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5894: else
5895: GNUPLOT_SUPPORT=yes
5896: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5897: fi
5898: else
5899:
5900: if test "$MYGNUPLOT" = "yes"; then
5901: GNUPLOT_SUPPORT=yes
5902: FORCE_GNUPLOT_PATH=-DFORCE_GNUPLOT_PATH
5903: else
5904: GNUPLOT_SUPPORT=guessed
5905: FORCE_GNUPLOT_PATH=-UFORCE_GNUPLOT_PATH
5906: fi
5907: fi
5908:
5909:
5910: # Check whether --enable-motif was given.
5911: if test "${enable_motif+set}" = set; then :
5912: enableval=$enable_motif;
5913: if test "$enableval" = "no"; then
5914: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5915: else
5916: CFLAGS_ORIG=$CFLAGS
5917: LIBS_ORIG=$LIBS
5918: CFLAGS="$CFLAGS $X_CFLAGS"
5919: LIBS="$LIB $X_LIBS"
5920: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
5921: $as_echo_n "checking for main in -lXm... " >&6; }
5922: if test "${ac_cv_lib_Xm_main+set}" = set; then :
5923: $as_echo_n "(cached) " >&6
5924: else
5925: ac_check_lib_save_LIBS=$LIBS
5926: LIBS="-lXm $LIBS"
5927: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928: /* end confdefs.h. */
5929:
5930:
5931: int
5932: main ()
5933: {
5934: return main ();
5935: ;
5936: return 0;
5937: }
5938: _ACEOF
5939: if ac_fn_c_try_link "$LINENO"; then :
5940: ac_cv_lib_Xm_main=yes
5941: else
5942: ac_cv_lib_Xm_main=no
5943: fi
5944: rm -f core conftest.err conftest.$ac_objext \
5945: conftest$ac_exeext conftest.$ac_ext
5946: LIBS=$ac_check_lib_save_LIBS
5947: fi
5948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
5949: $as_echo "$ac_cv_lib_Xm_main" >&6; }
5950: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
5951: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
5952: else
5953: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
5954: fi
5955:
5956: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
5957: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find Motif! You may install it.
5958: Motif flag is disabled.
5959: " >&5
5960: $as_echo "$as_me: WARNING: Can not find Motif! You may install it.
5961: Motif flag is disabled.
5962: " >&2;}
5963: fi
5964: LIBS=$LIBS_ORIG
5965: CFLAGS=$CFLAGS_ORIG
5966: fi
5967: else
5968: MOTIF_SUPPORT=guessed
5969: fi
5970:
5971:
5972: # Check whether --enable-experimental was given.
5973: if test "${enable_experimental+set}" = set; then :
5974: enableval=$enable_experimental;
5975: if test "$enableval" = "no"; then
5976: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
5977: else
5978: EXPERIMENTAL_CODE="-DEXPERIMENTAL_CODE"
5979: fi
5980: else
5981: EXPERIMENTAL_CODE="-UEXPERIMENTAL_CODE"
5982: fi
5983:
5984:
5985: # Check whether --enable-debug was given.
5986: if test "${enable_debug+set}" = set; then :
5987: enableval=$enable_debug;
5988: if test "$enableval" = "no"; then
5989: DEBUG=""
5990: else
5991: DEBUG="-DDEBUG_MEMOIRE"
5992: fi
5993: else
5994: DEBUG=""
5995: fi
5996:
5997:
5998: # Check whether --enable-profile was given.
5999: if test "${enable_profile+set}" = set; then :
6000: enableval=$enable_profile;
6001: if test "$enableval" = "no"; then
6002: PROFILAGE=""
6003: else
6004: PROFILAGE="-pg"
6005: fi
6006: else
6007: PROFILAGE=""
6008: fi
6009:
6010:
6011:
6012:
6013: if test ! -d tools; then
6014: mkdir tools
6015: fi
6016: if test ! -d "$srcdir"/tools/$NCURSES; then
6017: gunzip -c "$srcdir"/tools/$NCURSES.tar.gz | \
6018: (cd "$srcdir/tools" && tar -xf -)
6019: fi
6020: if test ! -d "$srcdir"/tools/$READLINE; then
6021: gunzip -c "$srcdir"/tools/$READLINE.tar.gz | \
6022: (cd "$srcdir/tools" && tar -xf -)
6023: fi
6024: if test ! -d "$srcdir"/tools/$UNITS; then
6025: gunzip -c "$srcdir"/tools/$UNITS.tar.gz | \
6026: (cd "$srcdir/tools" && tar -xf -)
6027: fi
6028: if test ! -d "$srcdir"/tools/$GSL; then
6029: gunzip -c "$srcdir"/tools/$GSL.tar.gz | \
6030: (cd "$srcdir/tools" && tar -xf -)
6031: fi
6032: if test ! -d "$srcdir"/tools/$GPP; then
6033: gunzip -c "$srcdir"/tools/$GPP.tar.gz | \
6034: (cd "$srcdir/tools" && tar -xf -)
6035: fi
6036: if test ! -d "$srcdir"/tools/$FILE; then
6037: gunzip -c "$srcdir"/tools/$FILE.tar.gz | \
6038: (cd "$srcdir/tools" && tar -xf - )
6039: TMP=$(mktemp)
6040: (cd "$srcdir/tools"/$FILE && gunzip -c ../$FILE.diff.gz | patch -p1)
6041: sed 's/libmagic/librplfile/g' "$srcdir"/tools/$FILE/src/Makefile.am > $TMP
6042: sed 's/^bin_PROGRAMS = file/bin_PROGRAMS = rplfile/g' $TMP | \
6043: sed 's/^file_/rplfile_/g' > \
6044: "$srcdir"/tools/$FILE/src/Makefile.am
6045: sed 's/file$/rplfile/g' "$srcdir"/tools/$FILE/magic/Makefile.am > $TMP
6046: \mv -f $TMP "$srcdir"/tools/$FILE/magic/Makefile.am
6047: (cd "$srcdir"/tools/$FILE && libtoolize --copy --force \
6048: && aclocal && automake -af && autoconf);
6049: fi
6050: if test ! -d "$srcdir"/tools/$ICONV; then
6051: gunzip -c "$srcdir"/tools/$ICONV.tar.gz | \
6052: (cd "$srcdir/tools" && tar -xf -)
6053: fi
6054:
6055: # Extract the first word of "libtoolize", so it can be a program name with args.
6056: set dummy libtoolize; ac_word=$2
6057: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6058: $as_echo_n "checking for $ac_word... " >&6; }
6059: if test "${ac_cv_prog_LIBTOOLIZE+set}" = set; then :
6060: $as_echo_n "(cached) " >&6
6061: else
6062: if test -n "$LIBTOOLIZE"; then
6063: ac_cv_prog_LIBTOOLIZE="$LIBTOOLIZE" # Let the user override the test.
6064: else
6065: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6066: for as_dir in $PATH
6067: do
6068: IFS=$as_save_IFS
6069: test -z "$as_dir" && as_dir=.
6070: for ac_exec_ext in '' $ac_executable_extensions; do
6071: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6072: ac_cv_prog_LIBTOOLIZE="yes"
6073: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6074: break 2
6075: fi
6076: done
6077: done
6078: IFS=$as_save_IFS
6079:
6080: test -z "$ac_cv_prog_LIBTOOLIZE" && ac_cv_prog_LIBTOOLIZE="no"
6081: fi
6082: fi
6083: LIBTOOLIZE=$ac_cv_prog_LIBTOOLIZE
6084: if test -n "$LIBTOOLIZE"; then
6085: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBTOOLIZE" >&5
6086: $as_echo "$LIBTOOLIZE" >&6; }
6087: else
6088: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089: $as_echo "no" >&6; }
6090: fi
6091:
6092:
6093: if test "$LIBTOOLIZE" = "no"; then
6094: as_fn_error "Cannot find libtoolize! You have to install it." "$LINENO" 5
6095: fi
6096:
6097: # Extract the first word of "aclocal", so it can be a program name with args.
6098: set dummy aclocal; ac_word=$2
6099: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100: $as_echo_n "checking for $ac_word... " >&6; }
6101: if test "${ac_cv_prog_ACLOCAL+set}" = set; then :
6102: $as_echo_n "(cached) " >&6
6103: else
6104: if test -n "$ACLOCAL"; then
6105: ac_cv_prog_ACLOCAL="$ACLOCAL" # Let the user override the test.
6106: else
6107: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108: for as_dir in $PATH
6109: do
6110: IFS=$as_save_IFS
6111: test -z "$as_dir" && as_dir=.
6112: for ac_exec_ext in '' $ac_executable_extensions; do
6113: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114: ac_cv_prog_ACLOCAL="yes"
6115: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116: break 2
6117: fi
6118: done
6119: done
6120: IFS=$as_save_IFS
6121:
6122: test -z "$ac_cv_prog_ACLOCAL" && ac_cv_prog_ACLOCAL="no"
6123: fi
6124: fi
6125: ACLOCAL=$ac_cv_prog_ACLOCAL
6126: if test -n "$ACLOCAL"; then
6127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
6128: $as_echo "$ACLOCAL" >&6; }
6129: else
6130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6131: $as_echo "no" >&6; }
6132: fi
6133:
6134:
6135: if test "$ACLOCAL" = "no"; then
6136: as_fn_error "Cannot find aclocal! You have to install it." "$LINENO" 5
6137: fi
6138:
6139: # Extract the first word of "automake", so it can be a program name with args.
6140: set dummy automake; ac_word=$2
6141: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142: $as_echo_n "checking for $ac_word... " >&6; }
6143: if test "${ac_cv_prog_AUTOMAKE+set}" = set; then :
6144: $as_echo_n "(cached) " >&6
6145: else
6146: if test -n "$AUTOMAKE"; then
6147: ac_cv_prog_AUTOMAKE="$AUTOMAKE" # Let the user override the test.
6148: else
6149: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150: for as_dir in $PATH
6151: do
6152: IFS=$as_save_IFS
6153: test -z "$as_dir" && as_dir=.
6154: for ac_exec_ext in '' $ac_executable_extensions; do
6155: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6156: ac_cv_prog_AUTOMAKE="yes"
6157: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158: break 2
6159: fi
6160: done
6161: done
6162: IFS=$as_save_IFS
6163:
6164: test -z "$ac_cv_prog_AUTOMAKE" && ac_cv_prog_AUTOMAKE="no"
6165: fi
6166: fi
6167: AUTOMAKE=$ac_cv_prog_AUTOMAKE
6168: if test -n "$AUTOMAKE"; then
6169: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
6170: $as_echo "$AUTOMAKE" >&6; }
6171: else
6172: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173: $as_echo "no" >&6; }
6174: fi
6175:
6176:
6177: if test "$AUTOMAKE" = "no"; then
6178: as_fn_error "Cannot find automake! You have to install it." "$LINENO" 5
6179: fi
6180:
6181: # Extract the first word of "autoconf", so it can be a program name with args.
6182: set dummy autoconf; ac_word=$2
6183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184: $as_echo_n "checking for $ac_word... " >&6; }
6185: if test "${ac_cv_prog_AUTOCONF+set}" = set; then :
6186: $as_echo_n "(cached) " >&6
6187: else
6188: if test -n "$AUTOCONF"; then
6189: ac_cv_prog_AUTOCONF="$AUTOCONF" # Let the user override the test.
6190: else
6191: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192: for as_dir in $PATH
6193: do
6194: IFS=$as_save_IFS
6195: test -z "$as_dir" && as_dir=.
6196: for ac_exec_ext in '' $ac_executable_extensions; do
6197: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198: ac_cv_prog_AUTOCONF="yes"
6199: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200: break 2
6201: fi
6202: done
6203: done
6204: IFS=$as_save_IFS
6205:
6206: test -z "$ac_cv_prog_AUTOCONF" && ac_cv_prog_AUTOCONF="no"
6207: fi
6208: fi
6209: AUTOCONF=$ac_cv_prog_AUTOCONF
6210: if test -n "$AUTOCONF"; then
6211: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOCONF" >&5
6212: $as_echo "$AUTOCONF" >&6; }
6213: else
6214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6215: $as_echo "no" >&6; }
6216: fi
6217:
6218:
6219: if test "$AUTOCONF" = "no"; then
6220: as_fn_error "Cannot find autoconf! You have to install it." "$LINENO" 5
6221: fi
6222:
6223:
6224:
6225: # Check whether --enable-final-run-path was given.
6226: if test "${enable_final_run_path+set}" = set; then :
6227: enableval=$enable_final_run_path;
6228: if test "x$enable_final_run_path" = "x"; then
6229: { $as_echo "$as_me:${as_lineno-$LINENO}: \"No path with --enable-final-run-path.\"" >&5
6230: $as_echo "$as_me: \"No path with --enable-final-run-path.\"" >&6;}
6231: as_fn_error "\"You should specify final path !\"" "$LINENO" 5
6232: else
6233: RUNPATH="$enable_final_run_path"
6234: fi
6235:
6236: else
6237: RUNPATH="\${prefix}"
6238:
6239: fi
6240:
6241:
6242:
6243:
6244: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6245: $as_echo_n "checking whether ln -s works... " >&6; }
6246: LN_S=$as_ln_s
6247: if test "$LN_S" = "ln -s"; then
6248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6249: $as_echo "yes" >&6; }
6250: else
6251: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6252: $as_echo "no, using $LN_S" >&6; }
6253: fi
6254:
6255: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6256: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6257: set x ${MAKE-make}
6258: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6259: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6260: $as_echo_n "(cached) " >&6
6261: else
6262: cat >conftest.make <<\_ACEOF
6263: SHELL = /bin/sh
6264: all:
6265: @echo '@@@%%%=$(MAKE)=@@@%%%'
6266: _ACEOF
6267: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6268: case `${MAKE-make} -f conftest.make 2>/dev/null` in
6269: *@@@%%%=?*=@@@%%%*)
6270: eval ac_cv_prog_make_${ac_make}_set=yes;;
6271: *)
6272: eval ac_cv_prog_make_${ac_make}_set=no;;
6273: esac
6274: rm -f conftest.make
6275: fi
6276: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6278: $as_echo "yes" >&6; }
6279: SET_MAKE=
6280: else
6281: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282: $as_echo "no" >&6; }
6283: SET_MAKE="MAKE=${MAKE-make}"
6284: fi
6285:
6286: if test -n "$ac_tool_prefix"; then
6287: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6288: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6289: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290: $as_echo_n "checking for $ac_word... " >&6; }
6291: if test "${ac_cv_prog_RANLIB+set}" = set; then :
6292: $as_echo_n "(cached) " >&6
6293: else
6294: if test -n "$RANLIB"; then
6295: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6296: else
6297: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298: for as_dir in $PATH
6299: do
6300: IFS=$as_save_IFS
6301: test -z "$as_dir" && as_dir=.
6302: for ac_exec_ext in '' $ac_executable_extensions; do
6303: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6304: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6305: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306: break 2
6307: fi
6308: done
6309: done
6310: IFS=$as_save_IFS
6311:
6312: fi
6313: fi
6314: RANLIB=$ac_cv_prog_RANLIB
6315: if test -n "$RANLIB"; then
6316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6317: $as_echo "$RANLIB" >&6; }
6318: else
6319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320: $as_echo "no" >&6; }
6321: fi
6322:
6323:
6324: fi
6325: if test -z "$ac_cv_prog_RANLIB"; then
6326: ac_ct_RANLIB=$RANLIB
6327: # Extract the first word of "ranlib", so it can be a program name with args.
6328: set dummy ranlib; ac_word=$2
6329: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6330: $as_echo_n "checking for $ac_word... " >&6; }
6331: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6332: $as_echo_n "(cached) " >&6
6333: else
6334: if test -n "$ac_ct_RANLIB"; then
6335: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6336: else
6337: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338: for as_dir in $PATH
6339: do
6340: IFS=$as_save_IFS
6341: test -z "$as_dir" && as_dir=.
6342: for ac_exec_ext in '' $ac_executable_extensions; do
6343: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344: ac_cv_prog_ac_ct_RANLIB="ranlib"
6345: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6346: break 2
6347: fi
6348: done
6349: done
6350: IFS=$as_save_IFS
6351:
6352: fi
6353: fi
6354: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6355: if test -n "$ac_ct_RANLIB"; then
6356: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6357: $as_echo "$ac_ct_RANLIB" >&6; }
6358: else
6359: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360: $as_echo "no" >&6; }
6361: fi
6362:
6363: if test "x$ac_ct_RANLIB" = x; then
6364: RANLIB=":"
6365: else
6366: case $cross_compiling:$ac_tool_warned in
6367: yes:)
6368: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370: ac_tool_warned=yes ;;
6371: esac
6372: RANLIB=$ac_ct_RANLIB
6373: fi
6374: else
6375: RANLIB="$ac_cv_prog_RANLIB"
6376: fi
6377:
6378:
6379: # Extract the first word of "awk", so it can be a program name with args.
6380: set dummy awk; ac_word=$2
6381: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382: $as_echo_n "checking for $ac_word... " >&6; }
6383: if test "${ac_cv_prog_AWK+set}" = set; then :
6384: $as_echo_n "(cached) " >&6
6385: else
6386: if test -n "$AWK"; then
6387: ac_cv_prog_AWK="$AWK" # Let the user override the test.
6388: else
6389: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390: for as_dir in $PATH
6391: do
6392: IFS=$as_save_IFS
6393: test -z "$as_dir" && as_dir=.
6394: for ac_exec_ext in '' $ac_executable_extensions; do
6395: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396: ac_cv_prog_AWK="yes"
6397: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398: break 2
6399: fi
6400: done
6401: done
6402: IFS=$as_save_IFS
6403:
6404: test -z "$ac_cv_prog_AWK" && ac_cv_prog_AWK="no"
6405: fi
6406: fi
6407: AWK=$ac_cv_prog_AWK
6408: if test -n "$AWK"; then
6409: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6410: $as_echo "$AWK" >&6; }
6411: else
6412: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6413: $as_echo "no" >&6; }
6414: fi
6415:
6416:
6417: if test "$AWK" = no; then
6418: as_fn_error "Can not find awk !" "$LINENO" 5
6419: fi
6420:
6421: # Extract the first word of "sed", so it can be a program name with args.
6422: set dummy sed; ac_word=$2
6423: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424: $as_echo_n "checking for $ac_word... " >&6; }
6425: if test "${ac_cv_prog_SED+set}" = set; then :
6426: $as_echo_n "(cached) " >&6
6427: else
6428: if test -n "$SED"; then
6429: ac_cv_prog_SED="$SED" # Let the user override the test.
6430: else
6431: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432: for as_dir in $PATH
6433: do
6434: IFS=$as_save_IFS
6435: test -z "$as_dir" && as_dir=.
6436: for ac_exec_ext in '' $ac_executable_extensions; do
6437: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6438: ac_cv_prog_SED="yes"
6439: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440: break 2
6441: fi
6442: done
6443: done
6444: IFS=$as_save_IFS
6445:
6446: test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="no"
6447: fi
6448: fi
6449: SED=$ac_cv_prog_SED
6450: if test -n "$SED"; then
6451: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6452: $as_echo "$SED" >&6; }
6453: else
6454: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455: $as_echo "no" >&6; }
6456: fi
6457:
6458:
6459: if test "$SED" = no; then
6460: as_fn_error "Can not find sed !" "$LINENO" 5
6461: fi
6462:
6463: if test "$TEX_SUPPORT" = guessed; then
6464: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6465:
6466: # Extract the first word of "tex", so it can be a program name with args.
6467: set dummy tex; ac_word=$2
6468: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6469: $as_echo_n "checking for $ac_word... " >&6; }
6470: if test "${ac_cv_prog_TEX+set}" = set; then :
6471: $as_echo_n "(cached) " >&6
6472: else
6473: if test -n "$TEX"; then
6474: ac_cv_prog_TEX="$TEX" # Let the user override the test.
6475: else
6476: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477: for as_dir in $PATH
6478: do
6479: IFS=$as_save_IFS
6480: test -z "$as_dir" && as_dir=.
6481: for ac_exec_ext in '' $ac_executable_extensions; do
6482: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6483: ac_cv_prog_TEX="yes"
6484: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6485: break 2
6486: fi
6487: done
6488: done
6489: IFS=$as_save_IFS
6490:
6491: test -z "$ac_cv_prog_TEX" && ac_cv_prog_TEX="no"
6492: fi
6493: fi
6494: TEX=$ac_cv_prog_TEX
6495: if test -n "$TEX"; then
6496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
6497: $as_echo "$TEX" >&6; }
6498: else
6499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500: $as_echo "no" >&6; }
6501: fi
6502:
6503:
6504: if test "$TEX" = no; then
6505: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find TeX! You may install it.
6506: Download at http://tex.loria.fr/
6507: " >&5
6508: $as_echo "$as_me: WARNING: Cannot find TeX! You may install it.
6509: Download at http://tex.loria.fr/
6510: " >&2;}
6511: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6512: fi
6513:
6514: # Extract the first word of "latex", so it can be a program name with args.
6515: set dummy latex; ac_word=$2
6516: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517: $as_echo_n "checking for $ac_word... " >&6; }
6518: if test "${ac_cv_prog_LATEX+set}" = set; then :
6519: $as_echo_n "(cached) " >&6
6520: else
6521: if test -n "$LATEX"; then
6522: ac_cv_prog_LATEX="$LATEX" # Let the user override the test.
6523: else
6524: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525: for as_dir in $PATH
6526: do
6527: IFS=$as_save_IFS
6528: test -z "$as_dir" && as_dir=.
6529: for ac_exec_ext in '' $ac_executable_extensions; do
6530: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6531: ac_cv_prog_LATEX="yes"
6532: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6533: break 2
6534: fi
6535: done
6536: done
6537: IFS=$as_save_IFS
6538:
6539: test -z "$ac_cv_prog_LATEX" && ac_cv_prog_LATEX="no"
6540: fi
6541: fi
6542: LATEX=$ac_cv_prog_LATEX
6543: if test -n "$LATEX"; then
6544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
6545: $as_echo "$LATEX" >&6; }
6546: else
6547: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548: $as_echo "no" >&6; }
6549: fi
6550:
6551:
6552: if test "$LATEX" = no; then
6553: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find LaTeX! You may install it.
6554: Download at http://tex.loria.fr/
6555: " >&5
6556: $as_echo "$as_me: WARNING: Cannot find LaTeX! You may install it.
6557: Download at http://tex.loria.fr/
6558: " >&2;}
6559: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6560: fi
6561:
6562: # Extract the first word of "dvips", so it can be a program name with args.
6563: set dummy dvips; ac_word=$2
6564: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565: $as_echo_n "checking for $ac_word... " >&6; }
6566: if test "${ac_cv_prog_DVIPS+set}" = set; then :
6567: $as_echo_n "(cached) " >&6
6568: else
6569: if test -n "$DVIPS"; then
6570: ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
6571: else
6572: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573: for as_dir in $PATH
6574: do
6575: IFS=$as_save_IFS
6576: test -z "$as_dir" && as_dir=.
6577: for ac_exec_ext in '' $ac_executable_extensions; do
6578: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579: ac_cv_prog_DVIPS="yes"
6580: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581: break 2
6582: fi
6583: done
6584: done
6585: IFS=$as_save_IFS
6586:
6587: test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
6588: fi
6589: fi
6590: DVIPS=$ac_cv_prog_DVIPS
6591: if test -n "$DVIPS"; then
6592: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
6593: $as_echo "$DVIPS" >&6; }
6594: else
6595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6596: $as_echo "no" >&6; }
6597: fi
6598:
6599:
6600: if test "$DVIPS" = no; then
6601: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find dvips! You may install it.
6602: Download at http://tex.loria.fr/
6603: " >&5
6604: $as_echo "$as_me: WARNING: Cannot find dvips! You may install it.
6605: Download at http://tex.loria.fr/
6606: " >&2;}
6607: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6608: fi
6609:
6610: # Extract the first word of "gs", so it can be a program name with args.
6611: set dummy gs; ac_word=$2
6612: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613: $as_echo_n "checking for $ac_word... " >&6; }
6614: if test "${ac_cv_prog_GS+set}" = set; then :
6615: $as_echo_n "(cached) " >&6
6616: else
6617: if test -n "$GS"; then
6618: ac_cv_prog_GS="$GS" # Let the user override the test.
6619: else
6620: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621: for as_dir in $PATH
6622: do
6623: IFS=$as_save_IFS
6624: test -z "$as_dir" && as_dir=.
6625: for ac_exec_ext in '' $ac_executable_extensions; do
6626: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6627: ac_cv_prog_GS="yes"
6628: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629: break 2
6630: fi
6631: done
6632: done
6633: IFS=$as_save_IFS
6634:
6635: test -z "$ac_cv_prog_GS" && ac_cv_prog_GS="no"
6636: fi
6637: fi
6638: GS=$ac_cv_prog_GS
6639: if test -n "$GS"; then
6640: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
6641: $as_echo "$GS" >&6; }
6642: else
6643: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644: $as_echo "no" >&6; }
6645: fi
6646:
6647:
6648: if test "$GS" = no; then
6649: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gs! You may install it.
6650: Download at http://ftp.lip6.fr/
6651: " >&5
6652: $as_echo "$as_me: WARNING: Cannot find gs! You may install it.
6653: Download at http://ftp.lip6.fr/
6654: " >&2;}
6655: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6656: fi
6657:
6658: # Extract the first word of "gv", so it can be a program name with args.
6659: set dummy gv; ac_word=$2
6660: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661: $as_echo_n "checking for $ac_word... " >&6; }
6662: if test "${ac_cv_prog_GV+set}" = set; then :
6663: $as_echo_n "(cached) " >&6
6664: else
6665: if test -n "$GV"; then
6666: ac_cv_prog_GV="$GV" # Let the user override the test.
6667: else
6668: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6669: for as_dir in $PATH
6670: do
6671: IFS=$as_save_IFS
6672: test -z "$as_dir" && as_dir=.
6673: for ac_exec_ext in '' $ac_executable_extensions; do
6674: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6675: ac_cv_prog_GV="yes"
6676: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6677: break 2
6678: fi
6679: done
6680: done
6681: IFS=$as_save_IFS
6682:
6683: test -z "$ac_cv_prog_GV" && ac_cv_prog_GV="no"
6684: fi
6685: fi
6686: GV=$ac_cv_prog_GV
6687: if test -n "$GV"; then
6688: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
6689: $as_echo "$GV" >&6; }
6690: else
6691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6692: $as_echo "no" >&6; }
6693: fi
6694:
6695:
6696: if test "$GV" = no; then
6697: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gv! You may install it.
6698: Download at http://ftp.lip6.fr/
6699: " >&5
6700: $as_echo "$as_me: WARNING: Cannot find gv! You may install it.
6701: Download at http://ftp.lip6.fr/
6702: " >&2;}
6703: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6704: fi
6705: else
6706: if test "$TEX_SUPPORT" = no; then
6707: POSTSCRIPT_SUPPORT="-UPOSTSCRIPT_SUPPORT"
6708: else
6709: POSTSCRIPT_SUPPORT="-DPOSTSCRIPT_SUPPORT"
6710: fi
6711: fi
6712:
6713: if test "$GNUPLOT_SUPPORT" = guessed; then
6714: # Extract the first word of "gnuplot", so it can be a program name with args.
6715: set dummy gnuplot; ac_word=$2
6716: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717: $as_echo_n "checking for $ac_word... " >&6; }
6718: if test "${ac_cv_prog_GNUPLOT_P+set}" = set; then :
6719: $as_echo_n "(cached) " >&6
6720: else
6721: if test -n "$GNUPLOT_P"; then
6722: ac_cv_prog_GNUPLOT_P="$GNUPLOT_P" # Let the user override the test.
6723: else
6724: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725: for as_dir in $PATH
6726: do
6727: IFS=$as_save_IFS
6728: test -z "$as_dir" && as_dir=.
6729: for ac_exec_ext in '' $ac_executable_extensions; do
6730: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731: ac_cv_prog_GNUPLOT_P="yes"
6732: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733: break 2
6734: fi
6735: done
6736: done
6737: IFS=$as_save_IFS
6738:
6739: test -z "$ac_cv_prog_GNUPLOT_P" && ac_cv_prog_GNUPLOT_P="no"
6740: fi
6741: fi
6742: GNUPLOT_P=$ac_cv_prog_GNUPLOT_P
6743: if test -n "$GNUPLOT_P"; then
6744: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUPLOT_P" >&5
6745: $as_echo "$GNUPLOT_P" >&6; }
6746: else
6747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748: $as_echo "no" >&6; }
6749: fi
6750:
6751:
6752: if test "$GNUPLOT_P" = no; then
6753: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find gnuplot! You may install it.
6754: Download at http://www.gnuplot.vt.edu/
6755: " >&5
6756: $as_echo "$as_me: WARNING: Cannot find gnuplot! You may install it.
6757: Download at http://www.gnuplot.vt.edu/
6758: " >&2;}
6759: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6760: else
6761: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6762: fi
6763: else
6764: if test "$GNUPLOT_SUPPORT" = no; then
6765: GNUPLOT_SUPPORT="-UGNUPLOT_SUPPORT"
6766: else
6767: GNUPLOT_SUPPORT="-DGNUPLOT_SUPPORT"
6768: fi
6769: fi
6770:
6771: if test "$VIM_SUPPORT" = guessed; then
6772: # Extract the first word of "vim", so it can be a program name with args.
6773: set dummy vim; ac_word=$2
6774: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775: $as_echo_n "checking for $ac_word... " >&6; }
6776: if test "${ac_cv_prog_VIM+set}" = set; then :
6777: $as_echo_n "(cached) " >&6
6778: else
6779: if test -n "$VIM"; then
6780: ac_cv_prog_VIM="$VIM" # Let the user override the test.
6781: else
6782: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783: for as_dir in $PATH
6784: do
6785: IFS=$as_save_IFS
6786: test -z "$as_dir" && as_dir=.
6787: for ac_exec_ext in '' $ac_executable_extensions; do
6788: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789: ac_cv_prog_VIM="yes"
6790: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791: break 2
6792: fi
6793: done
6794: done
6795: IFS=$as_save_IFS
6796:
6797: test -z "$ac_cv_prog_VIM" && ac_cv_prog_VIM="no"
6798: fi
6799: fi
6800: VIM=$ac_cv_prog_VIM
6801: if test -n "$VIM"; then
6802: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VIM" >&5
6803: $as_echo "$VIM" >&6; }
6804: else
6805: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806: $as_echo "no" >&6; }
6807: fi
6808:
6809:
6810: if test "$VIM" = no; then
6811: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find vim! You may install it.
6812: Download at http://www.vim.org/
6813: " >&5
6814: $as_echo "$as_me: WARNING: Cannot find vim! You may install it.
6815: Download at http://www.vim.org/
6816: " >&2;}
6817: VIM_SUPPORT="-UVIM_SUPPORT"
6818: else
6819: VIM_SUPPORT="-DVIM_SUPPORT"
6820: fi
6821: else
6822: if test "$VIM_SUPPORT" = no; then
6823: VIM_SUPPORT="-UVIM_SUPPORT"
6824: else
6825: VIM_SUPPORT="-DVIM_SUPPORT"
6826: fi
6827: fi
6828:
6829: if test "$MOTIF_SUPPORT" = guessed; then
6830: CFLAGS_ORIG=$CFLAGS
6831: LIBS_ORIG=$LIBS
6832: CFLAGS="$CFLAGS $X_CFLAGS"
6833: LIBS="$LIB $X_LIBS"
6834: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXm" >&5
6835: $as_echo_n "checking for main in -lXm... " >&6; }
6836: if test "${ac_cv_lib_Xm_main+set}" = set; then :
6837: $as_echo_n "(cached) " >&6
6838: else
6839: ac_check_lib_save_LIBS=$LIBS
6840: LIBS="-lXm $LIBS"
6841: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842: /* end confdefs.h. */
6843:
6844:
6845: int
6846: main ()
6847: {
6848: return main ();
6849: ;
6850: return 0;
6851: }
6852: _ACEOF
6853: if ac_fn_c_try_link "$LINENO"; then :
6854: ac_cv_lib_Xm_main=yes
6855: else
6856: ac_cv_lib_Xm_main=no
6857: fi
6858: rm -f core conftest.err conftest.$ac_objext \
6859: conftest$ac_exeext conftest.$ac_ext
6860: LIBS=$ac_check_lib_save_LIBS
6861: fi
6862: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xm_main" >&5
6863: $as_echo "$ac_cv_lib_Xm_main" >&6; }
6864: if test "x$ac_cv_lib_Xm_main" = x""yes; then :
6865: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6866: else
6867: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6868: fi
6869:
6870: if test "$MOTIF_SUPPORT" = "-UMOTIF_SUPPORT"; then
6871: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find Motif! You may install it.
6872: Motif flag is disabled.
6873: " >&5
6874: $as_echo "$as_me: WARNING: Cannot find Motif! You may install it.
6875: Motif flag is disabled.
6876: " >&2;}
6877: fi
6878: LIBS=$LIBS_ORIG
6879: CFLAGS=$CFLAGS_ORIG
6880: fi
6881:
6882: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6883: CFLAGS_ORIG=$CFLAGS
6884: LIBS_ORIG=$LIBS
6885: CFLAGS="$CFLAGS $X_CFLAGS"
6886: LIBS="$LIB $X_LIBS"
6887: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXpm" >&5
6888: $as_echo_n "checking for main in -lXpm... " >&6; }
6889: if test "${ac_cv_lib_Xpm_main+set}" = set; then :
6890: $as_echo_n "(cached) " >&6
6891: else
6892: ac_check_lib_save_LIBS=$LIBS
6893: LIBS="-lXpm $LIBS"
6894: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895: /* end confdefs.h. */
6896:
6897:
6898: int
6899: main ()
6900: {
6901: return main ();
6902: ;
6903: return 0;
6904: }
6905: _ACEOF
6906: if ac_fn_c_try_link "$LINENO"; then :
6907: ac_cv_lib_Xpm_main=yes
6908: else
6909: ac_cv_lib_Xpm_main=no
6910: fi
6911: rm -f core conftest.err conftest.$ac_objext \
6912: conftest$ac_exeext conftest.$ac_ext
6913: LIBS=$ac_check_lib_save_LIBS
6914: fi
6915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_main" >&5
6916: $as_echo "$ac_cv_lib_Xpm_main" >&6; }
6917: if test "x$ac_cv_lib_Xpm_main" = x""yes; then :
6918: MOTIF_SUPPORT="-DMOTIF_SUPPORT"
6919: else
6920: MOTIF_SUPPORT="-UMOTIF_SUPPORT"
6921: fi
6922:
6923: if test "$MOTIF_SUPPORT" = "-DMOTIF_SUPPORT"; then
6924: libX="$X_LIBS -lXm -lXpm -lXt -lX11"
6925: else
6926: libX=""
6927: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libXpm! You may install it.
6928: Motif flag is disabled.
6929: " >&5
6930: $as_echo "$as_me: WARNING: Cannot find libXpm! You may install it.
6931: Motif flag is disabled.
6932: " >&2;}
6933: fi
6934: LIBS=$LIBS_ORIG
6935: CFLAGS=$CFLAGS_ORIG
6936: else
6937: libX=""
6938: fi
6939:
6940:
6941:
6942:
6943:
6944:
6945:
6946:
6947:
6948:
6949:
6950: DATE=$(LANG=C date +"%A, %e %B %Y %T %z")
6951:
6952:
6953: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
6954: $as_echo_n "checking for main in -lm... " >&6; }
6955: if test "${ac_cv_lib_m_main+set}" = set; then :
6956: $as_echo_n "(cached) " >&6
6957: else
6958: ac_check_lib_save_LIBS=$LIBS
6959: LIBS="-lm $LIBS"
6960: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961: /* end confdefs.h. */
6962:
6963:
6964: int
6965: main ()
6966: {
6967: return main ();
6968: ;
6969: return 0;
6970: }
6971: _ACEOF
6972: if ac_fn_c_try_link "$LINENO"; then :
6973: ac_cv_lib_m_main=yes
6974: else
6975: ac_cv_lib_m_main=no
6976: fi
6977: rm -f core conftest.err conftest.$ac_objext \
6978: conftest$ac_exeext conftest.$ac_ext
6979: LIBS=$ac_check_lib_save_LIBS
6980: fi
6981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
6982: $as_echo "$ac_cv_lib_m_main" >&6; }
6983: if test "x$ac_cv_lib_m_main" = x""yes; then :
6984: cat >>confdefs.h <<_ACEOF
6985: #define HAVE_LIBM 1
6986: _ACEOF
6987:
6988: LIBS="-lm $LIBS"
6989:
6990: else
6991: as_fn_error "Can not find libm !" "$LINENO" 5
6992: fi
6993:
6994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
6995: $as_echo_n "checking for main in -lpthread... " >&6; }
6996: if test "${ac_cv_lib_pthread_main+set}" = set; then :
6997: $as_echo_n "(cached) " >&6
6998: else
6999: ac_check_lib_save_LIBS=$LIBS
7000: LIBS="-lpthread $LIBS"
7001: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002: /* end confdefs.h. */
7003:
7004:
7005: int
7006: main ()
7007: {
7008: return main ();
7009: ;
7010: return 0;
7011: }
7012: _ACEOF
7013: if ac_fn_c_try_link "$LINENO"; then :
7014: ac_cv_lib_pthread_main=yes
7015: else
7016: ac_cv_lib_pthread_main=no
7017: fi
7018: rm -f core conftest.err conftest.$ac_objext \
7019: conftest$ac_exeext conftest.$ac_ext
7020: LIBS=$ac_check_lib_save_LIBS
7021: fi
7022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
7023: $as_echo "$ac_cv_lib_pthread_main" >&6; }
7024: if test "x$ac_cv_lib_pthread_main" = x""yes; then :
7025: cat >>confdefs.h <<_ACEOF
7026: #define HAVE_LIBPTHREAD 1
7027: _ACEOF
7028:
7029: LIBS="-lpthread $LIBS"
7030:
7031: else
7032: as_fn_error "Can not find libpthread !" "$LINENO" 5
7033: fi
7034:
7035:
7036: if test "$CYGWIN" != yes; then
7037: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
7038: $as_echo_n "checking for dlopen in -ldl... " >&6; }
7039: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
7040: $as_echo_n "(cached) " >&6
7041: else
7042: ac_check_lib_save_LIBS=$LIBS
7043: LIBS="-ldl $LIBS"
7044: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045: /* end confdefs.h. */
7046:
7047: /* Override any GCC internal prototype to avoid an error.
7048: Use char because int might match the return type of a GCC
7049: builtin and then its argument prototype would still apply. */
7050: #ifdef __cplusplus
7051: extern "C"
7052: #endif
7053: char dlopen ();
7054: int
7055: main ()
7056: {
7057: return dlopen ();
7058: ;
7059: return 0;
7060: }
7061: _ACEOF
7062: if ac_fn_c_try_link "$LINENO"; then :
7063: ac_cv_lib_dl_dlopen=yes
7064: else
7065: ac_cv_lib_dl_dlopen=no
7066: fi
7067: rm -f core conftest.err conftest.$ac_objext \
7068: conftest$ac_exeext conftest.$ac_ext
7069: LIBS=$ac_check_lib_save_LIBS
7070: fi
7071: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
7072: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7073: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
7074: LIBS="$LIBS -ldl"
7075: else
7076: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libdl doesn't seem to be needed on this system." >&5
7077: $as_echo "$as_me: WARNING: libdl doesn't seem to be needed on this system." >&2;}
7078: fi
7079:
7080: fi
7081:
7082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
7083: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
7084: if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
7085: $as_echo_n "(cached) " >&6
7086: else
7087: ac_check_lib_save_LIBS=$LIBS
7088: LIBS="-lrt $LIBS"
7089: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090: /* end confdefs.h. */
7091:
7092: /* Override any GCC internal prototype to avoid an error.
7093: Use char because int might match the return type of a GCC
7094: builtin and then its argument prototype would still apply. */
7095: #ifdef __cplusplus
7096: extern "C"
7097: #endif
7098: char nanosleep ();
7099: int
7100: main ()
7101: {
7102: return nanosleep ();
7103: ;
7104: return 0;
7105: }
7106: _ACEOF
7107: if ac_fn_c_try_link "$LINENO"; then :
7108: ac_cv_lib_rt_nanosleep=yes
7109: else
7110: ac_cv_lib_rt_nanosleep=no
7111: fi
7112: rm -f core conftest.err conftest.$ac_objext \
7113: conftest$ac_exeext conftest.$ac_ext
7114: LIBS=$ac_check_lib_save_LIBS
7115: fi
7116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
7117: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
7118: if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
7119: LIBS="$LIBS -lrt"
7120: else
7121: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: librt doesn't seem to be needed on this system." >&5
7122: $as_echo "$as_me: WARNING: librt doesn't seem to be needed on this system." >&2;}
7123: fi
7124:
7125:
7126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7127: $as_echo_n "checking for bind in -lsocket... " >&6; }
7128: if test "${ac_cv_lib_socket_bind+set}" = set; then :
7129: $as_echo_n "(cached) " >&6
7130: else
7131: ac_check_lib_save_LIBS=$LIBS
7132: LIBS="-lsocket $LIBS"
7133: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7134: /* end confdefs.h. */
7135:
7136: /* Override any GCC internal prototype to avoid an error.
7137: Use char because int might match the return type of a GCC
7138: builtin and then its argument prototype would still apply. */
7139: #ifdef __cplusplus
7140: extern "C"
7141: #endif
7142: char bind ();
7143: int
7144: main ()
7145: {
7146: return bind ();
7147: ;
7148: return 0;
7149: }
7150: _ACEOF
7151: if ac_fn_c_try_link "$LINENO"; then :
7152: ac_cv_lib_socket_bind=yes
7153: else
7154: ac_cv_lib_socket_bind=no
7155: fi
7156: rm -f core conftest.err conftest.$ac_objext \
7157: conftest$ac_exeext conftest.$ac_ext
7158: LIBS=$ac_check_lib_save_LIBS
7159: fi
7160: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7161: $as_echo "$ac_cv_lib_socket_bind" >&6; }
7162: if test "x$ac_cv_lib_socket_bind" = x""yes; then :
7163: LIBS="$LIBS -lsocket"
7164: else
7165: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libsocket doesn't seem to be needed on this system." >&5
7166: $as_echo "$as_me: WARNING: libsocket doesn't seem to be needed on this system." >&2;}
7167: fi
7168:
7169:
7170: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7171:
7172: # Check whether --with-mysql was given.
7173: if test "${with_mysql+set}" = set; then :
7174: withval=$with_mysql;
7175: else
7176: with_mysql=check
7177: fi
7178:
7179:
7180: if test "x$with_mysql" = xcheck -o "x$with_mysql" = yes; then
7181: libMySQLinc="-I/usr/include"
7182: libMySQLlib="-L/usr/lib"
7183:
7184: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include" >&5
7185: $as_echo_n "checking for libmysql includes in /usr/include... " >&6; }
7186: saved_CFLAGS="$CFLAGS"
7187: CFLAGS="$CFLAGS $libMySQLinc"
7188: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7189: /* end confdefs.h. */
7190: #include "mysql.h"
7191: int
7192: main ()
7193: {
7194:
7195: ;
7196: return 0;
7197: }
7198: _ACEOF
7199: if ac_fn_c_try_compile "$LINENO"; then :
7200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7201: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7202: libMySQLinc=$libMySQLinc/mysql
7203: else
7204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7205: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7206: fi
7207: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208: CFLAGS=$saved_CFLAGS
7209:
7210: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7211: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/include/mysql" >&5
7212: $as_echo_n "checking for libmysql includes in /usr/include/mysql... " >&6; }
7213: saved_CFLAGS="$CFLAGS"
7214: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7215: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216: /* end confdefs.h. */
7217: #include "mysql.h"
7218: int
7219: main ()
7220: {
7221:
7222: ;
7223: return 0;
7224: }
7225: _ACEOF
7226: if ac_fn_c_try_compile "$LINENO"; then :
7227: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7228: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7229: libMySQLinc=$libMySQLinc
7230: else
7231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7233: fi
7234: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7235: CFLAGS=$saved_CFLAGS
7236: libMySQLinc=$libMySQLinc/mysql
7237: fi
7238:
7239: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7240: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include" >&5
7241: $as_echo_n "checking for libmysql includes in /usr/local/include... " >&6; }
7242: saved_CFLAGS="$CFLAGS"
7243: CFLAGS="$CFLAGS $libMySQLinc/../local/include"
7244: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245: /* end confdefs.h. */
7246: #include "mysql.h"
7247: int
7248: main ()
7249: {
7250:
7251: ;
7252: return 0;
7253: }
7254: _ACEOF
7255: if ac_fn_c_try_compile "$LINENO"; then :
7256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7257: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7258: libMySQLinc=$libMySQLinc/mysql
7259: else
7260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7262: fi
7263: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264: CFLAGS=$saved_CFLAGS
7265: libMySQLinc=$libMySQLinc/../local/include
7266: libMySQLlib=$libMySQLlib/../local/lib
7267: fi
7268:
7269: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in /usr/local/include/mysql" >&5
7271: $as_echo_n "checking for libmysql includes in /usr/local/include/mysql... " >&6; }
7272: saved_CFLAGS="$CFLAGS"
7273: CFLAGS="$CFLAGS $libMySQLinc/../local/include/mysql"
7274: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275: /* end confdefs.h. */
7276: #include "mysql.h"
7277: int
7278: main ()
7279: {
7280:
7281: ;
7282: return 0;
7283: }
7284: _ACEOF
7285: if ac_fn_c_try_compile "$LINENO"; then :
7286: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7287: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7288: libMySQLinc=$libMySQLinc/mysql
7289: else
7290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7291: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7292: fi
7293: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294: CFLAGS=$saved_CFLAGS
7295: libMySQLinc=$libMySQLinc/../local/include/mysql
7296: libMySQLlib=$libMySQLlib/../local/lib
7297: fi
7298: else
7299: if test "x$with_mysql" != xno; then
7300: libMySQLinc="-I$with_mysql/include"
7301: libMySQLlib="-L$with_mysql/lib"
7302:
7303: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql" >&5
7304: $as_echo_n "checking for libmysql includes in $with_mysql... " >&6; }
7305: saved_CFLAGS="$CFLAGS"
7306: CFLAGS="$CFLAGS $libMySQLinc"
7307: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308: /* end confdefs.h. */
7309: #include "mysql.h"
7310: int
7311: main ()
7312: {
7313:
7314: ;
7315: return 0;
7316: }
7317: _ACEOF
7318: if ac_fn_c_try_compile "$LINENO"; then :
7319: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7320: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7321: libMySQLinc=$libMySQLinc/mysql
7322: else
7323: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7325: fi
7326: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327: CFLAGS=$saved_CFLAGS
7328:
7329: if test "$MYSQL_SUPPORT" = "-UMYSQL_SUPPORT"; then
7330: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql includes in $with_mysql/mysql" >&5
7331: $as_echo_n "checking for libmysql includes in $with_mysql/mysql... " >&6; }
7332: saved_CFLAGS="$CFLAGS"
7333: CFLAGS="$CFLAGS $libMySQLinc/mysql"
7334: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335: /* end confdefs.h. */
7336: #include "mysql.h"
7337: int
7338: main ()
7339: {
7340:
7341: ;
7342: return 0;
7343: }
7344: _ACEOF
7345: if ac_fn_c_try_compile "$LINENO"; then :
7346: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7347: $as_echo "yes" >&6; }; MYSQL_SUPPORT="-DMYSQL_SUPPORT";
7348: libMySQLinc=$libMySQLinc
7349: else
7350: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351: $as_echo "no" >&6; }; MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7352: fi
7353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7354: CFLAGS=$saved_CFLAGS
7355: libMySQLinc=$libMySQLinc/mysql
7356: fi
7357: else
7358: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7359: fi
7360: fi
7361:
7362: if test "$MYSQL_SUPPORT" = "-DMYSQL_SUPPORT"; then
7363: MYSQL_LIB=no
7364:
7365: if test $MYSQL_LIB = no; then
7366: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmysql libraries in $libMySQLlib" >&5
7367: $as_echo_n "checking for libmysql libraries in $libMySQLlib... " >&6; }
7368: saved_LIBS="$LIBS"
7369: LIBS="$LIBS $libMySQLlib $libMySQLinc -lmysqlclient_r"
7370: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7371: /* end confdefs.h. */
7372: #include "mysql.h"
7373: int
7374: main ()
7375: {
7376: MYSQL mysql; mysql_init(&mysql);
7377: ;
7378: return 0;
7379: }
7380: _ACEOF
7381: if ac_fn_c_try_link "$LINENO"; then :
7382: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7383: $as_echo "yes" >&6; }; MYSQL_LIB="yes"
7384: else
7385: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386: $as_echo "no" >&6; }; MYSQL_LIB="no"
7387: fi
7388: rm -f core conftest.err conftest.$ac_objext \
7389: conftest$ac_exeext conftest.$ac_ext
7390: LIBS=$saved_LIBS;
7391: libMySQLlib="$libMySQLlib -lmysqlclient_r"
7392: fi
7393:
7394: if test $MYSQL_LIB = no; then
7395: MYSQL_SUPPORT="-UMYSQL_SUPPORT"
7396: fi
7397: fi
7398:
7399: if test "$MYSQL_SUPPORT" != "-DMYSQL_SUPPORT"; then
7400: libMySQLinc=
7401: libMySQLlib=
7402: fi
7403:
7404:
7405:
7406:
7407:
7408: POSTGRESQL_SUPPORT=-UPOSTGRESQL_SUPPORT
7409:
7410: # Check whether --with-postgresql was given.
7411: if test "${with_postgresql+set}" = set; then :
7412: withval=$with_postgresql;
7413: else
7414: with_postgresql=check
7415: fi
7416:
7417:
7418: # with_postgresql : check [pas défini], yes [uniquement --with],
7419: # no [--without], valeur [--with=valeur].
7420:
7421: if test "x$with_postgresql" = xcheck -o "x$with_postgresql" = xyes; then
7422: libPgSQLinc="-I/usr/include"
7423: libPgSQLlib="-L/usr/lib"
7424:
7425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include" >&5
7426: $as_echo_n "checking for libpq includes in /usr/include... " >&6; }
7427: saved_CFLAGS="$CFLAGS"
7428: CFLAGS="$CFLAGS $libPgSQLinc"
7429: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430: /* end confdefs.h. */
7431: #include "libpq-fe.h"
7432: int
7433: main ()
7434: {
7435:
7436: ;
7437: return 0;
7438: }
7439: _ACEOF
7440: if ac_fn_c_try_compile "$LINENO"; then :
7441: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7442: $as_echo "yes" >&6; }; POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7443: else
7444: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445: $as_echo "no" >&6; }; POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7446: fi
7447: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7448: CFLAGS=$saved_CFLAGS
7449:
7450: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7451: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/postgresql" >&5
7452: $as_echo_n "checking for libpq includes in /usr/include/postgresql... " >&6; }
7453: saved_CFLAGS="$CFLAGS"
7454: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7455: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7456: /* end confdefs.h. */
7457: #include "libpq-fe.h"
7458: int
7459: main ()
7460: {
7461:
7462: ;
7463: return 0;
7464: }
7465: _ACEOF
7466: if ac_fn_c_try_compile "$LINENO"; then :
7467: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7468: $as_echo "yes" >&6; };
7469: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7470: else
7471: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472: $as_echo "no" >&6; };
7473: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7474: fi
7475: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7476: CFLAGS=$saved_CFLAGS
7477: libPgSQLinc=$libPgSQLinc/postgresql
7478: fi
7479:
7480: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/include/pgsql" >&5
7482: $as_echo_n "checking for libpq includes in /usr/include/pgsql... " >&6; }
7483: saved_CFLAGS="$CFLAGS"
7484: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7485: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486: /* end confdefs.h. */
7487: #include "libpq-fe.h"
7488: int
7489: main ()
7490: {
7491:
7492: ;
7493: return 0;
7494: }
7495: _ACEOF
7496: if ac_fn_c_try_compile "$LINENO"; then :
7497: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7498: $as_echo "yes" >&6; };
7499: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7500: else
7501: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502: $as_echo "no" >&6; };
7503: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7504: fi
7505: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506: CFLAGS=$saved_CFLAGS
7507: libPgSQLinc=$libPgSQLinc/pgsql
7508: fi
7509:
7510: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7511: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include" >&5
7512: $as_echo_n "checking for libpq includes in /usr/local/include... " >&6; }
7513: saved_CFLAGS="$CFLAGS"
7514: CFLAGS="$CFLAGS $libPgSQLinc/../local/include"
7515: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516: /* end confdefs.h. */
7517: #include "libpq-fe.h"
7518: int
7519: main ()
7520: {
7521:
7522: ;
7523: return 0;
7524: }
7525: _ACEOF
7526: if ac_fn_c_try_compile "$LINENO"; then :
7527: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7528: $as_echo "yes" >&6; };
7529: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7530: else
7531: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532: $as_echo "no" >&6; };
7533: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7534: fi
7535: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536: CFLAGS=$saved_CFLAGS
7537: libPgSQLinc=$libPgSQLinc/../local/include
7538: libPgSQLlib=$libPgSQLlib/../local/lib
7539: fi
7540:
7541: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7542: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/postgresql" >&5
7543: $as_echo_n "checking for libpq includes in /usr/local/include/postgresql... " >&6; }
7544: saved_CFLAGS="$CFLAGS"
7545: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/postgresql"
7546: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547: /* end confdefs.h. */
7548: #include "libpq-fe.h"
7549: int
7550: main ()
7551: {
7552:
7553: ;
7554: return 0;
7555: }
7556: _ACEOF
7557: if ac_fn_c_try_compile "$LINENO"; then :
7558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7559: $as_echo "yes" >&6; };
7560: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7561: else
7562: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563: $as_echo "no" >&6; };
7564: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7565: fi
7566: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7567: CFLAGS=$saved_CFLAGS
7568: libPgSQLinc=$libPgSQLinc/../local/include/postgresql
7569: libPgSQLlib=$libPgSQLlib/../local/lib
7570: fi
7571:
7572: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7573: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in /usr/local/include/pgsql" >&5
7574: $as_echo_n "checking for libpq includes in /usr/local/include/pgsql... " >&6; }
7575: saved_CFLAGS="$CFLAGS"
7576: CFLAGS="$CFLAGS $libPgSQLinc/../local/include/pgsql"
7577: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578: /* end confdefs.h. */
7579: #include "libpq-fe.h"
7580: int
7581: main ()
7582: {
7583:
7584: ;
7585: return 0;
7586: }
7587: _ACEOF
7588: if ac_fn_c_try_compile "$LINENO"; then :
7589: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7590: $as_echo "yes" >&6; };
7591: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7592: else
7593: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594: $as_echo "no" >&6; };
7595: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7596: fi
7597: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598: CFLAGS=$saved_CFLAGS
7599: libPgSQLinc=$libPgSQLinc/local/include/pgsql
7600: libPgSQLlib=$libPgSQLlib/../local/lib
7601: fi
7602: else
7603: if test "x$with_postgresql" != xno; then
7604: libPgSQLinc="-I$with_postgresql/include"
7605: libPgSQLlib="-L$with_postgresql/lib"
7606:
7607: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc" >&5
7608: $as_echo_n "checking for libpq includes in $libPgSQLinc... " >&6; }
7609: saved_CFLAGS="$CFLAGS"
7610: CFLAGS="$CFLAGS $libPgSQLinc"
7611: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612: /* end confdefs.h. */
7613: #include "libpq-fe.h"
7614: int
7615: main ()
7616: {
7617:
7618: ;
7619: return 0;
7620: }
7621: _ACEOF
7622: if ac_fn_c_try_compile "$LINENO"; then :
7623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7624: $as_echo "yes" >&6; };
7625: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7626: else
7627: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628: $as_echo "no" >&6; };
7629: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7630: fi
7631: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7632: CFLAGS=$saved_CFLAGS
7633:
7634: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7635: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/postgresql" >&5
7636: $as_echo_n "checking for libpq includes in $libPgSQLinc/postgresql... " >&6; }
7637: saved_CFLAGS="$CFLAGS"
7638: CFLAGS="$CFLAGS $libPgSQLinc/postgresql"
7639: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640: /* end confdefs.h. */
7641: #include "libpq-fe.h"
7642: int
7643: main ()
7644: {
7645:
7646: ;
7647: return 0;
7648: }
7649: _ACEOF
7650: if ac_fn_c_try_compile "$LINENO"; then :
7651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7652: $as_echo "yes" >&6; };
7653: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7654: else
7655: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656: $as_echo "no" >&6; };
7657: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7658: fi
7659: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660: CFLAGS=$saved_CFLAGS
7661: libPgSQLinc=$libPgSQLinc/postgresql
7662: fi
7663:
7664: if test "$POSTGRESQL_SUPPORT" = "-UPOSTGRESQL_SUPPORT"; then
7665: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq includes in $libPgSQLinc/pgsql" >&5
7666: $as_echo_n "checking for libpq includes in $libPgSQLinc/pgsql... " >&6; }
7667: saved_CFLAGS="$CFLAGS"
7668: CFLAGS="$CFLAGS $libPgSQLinc/pgsql"
7669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670: /* end confdefs.h. */
7671: #include "libpq-fe.h"
7672: int
7673: main ()
7674: {
7675:
7676: ;
7677: return 0;
7678: }
7679: _ACEOF
7680: if ac_fn_c_try_compile "$LINENO"; then :
7681: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7682: $as_echo "yes" >&6; };
7683: POSTGRESQL_SUPPORT="-DPOSTGRESQL_SUPPORT"
7684: else
7685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686: $as_echo "no" >&6; };
7687: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7688: fi
7689: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690: CFLAGS=$saved_CFLAGS
7691: libPgSQLinc=$libPgSQLinc/pgsql
7692: fi
7693: else
7694: POSTGRESQL_SUPPORT="-UPOSTGRESQL_SUPPORT"
7695: fi
7696: fi
7697:
7698: if test "$POSTGRESQL_SUPPORT" = "-DPOSTGRESQL_SUPPORT"; then
7699: POSTGRESQL_LIB=no
7700:
7701: if test $POSTGRESQL_LIB = no; then
7702: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpq libraries in $libPgSQLlib" >&5
7703: $as_echo_n "checking for libpq libraries in $libPgSQLlib... " >&6; }
7704: saved_LIBS="$LIBS"
7705: LIBS="$LIBS $libPgSQLlib $libPgSQLinc -lpq"
7706: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707: /* end confdefs.h. */
7708: #include "libpq-fe.h"
7709: int
7710: main ()
7711: {
7712: PGconn *conn; const char *conninfo="dbname=postgres"; conn =
7713: PQconnectdb(conninfo);
7714: ;
7715: return 0;
7716: }
7717: _ACEOF
7718: if ac_fn_c_try_link "$LINENO"; then :
7719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7720: $as_echo "yes" >&6; }; POSTGRESQL_LIB="yes"
7721: else
7722: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723: $as_echo "no" >&6; }; POSTGRESQL_LIB="no"
7724: fi
7725: rm -f core conftest.err conftest.$ac_objext \
7726: conftest$ac_exeext conftest.$ac_ext
7727: LIBS=$saved_LIBS;
7728: libPgSQLlib="$libPgSQLlib -lpq"
7729: fi
7730: fi
7731:
7732: if test "$POSTGRESQL_SUPPORT" != "-DPOSTGRESQL_SUPPORT"; then
7733: libPgSQLinc=
7734: libPgSQLlib=
7735: fi
7736:
7737:
7738:
7739:
7740:
7741: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7742: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7743: if test "${ac_cv_path_GREP+set}" = set; then :
7744: $as_echo_n "(cached) " >&6
7745: else
7746: if test -z "$GREP"; then
7747: ac_path_GREP_found=false
7748: # Loop through the user's path and test for each of PROGNAME-LIST
7749: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7751: do
7752: IFS=$as_save_IFS
7753: test -z "$as_dir" && as_dir=.
7754: for ac_prog in grep ggrep; do
7755: for ac_exec_ext in '' $ac_executable_extensions; do
7756: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7757: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7758: # Check for GNU ac_path_GREP and select it if it is found.
7759: # Check for GNU $ac_path_GREP
7760: case `"$ac_path_GREP" --version 2>&1` in
7761: *GNU*)
7762: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7763: *)
7764: ac_count=0
7765: $as_echo_n 0123456789 >"conftest.in"
7766: while :
7767: do
7768: cat "conftest.in" "conftest.in" >"conftest.tmp"
7769: mv "conftest.tmp" "conftest.in"
7770: cp "conftest.in" "conftest.nl"
7771: $as_echo 'GREP' >> "conftest.nl"
7772: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7773: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7774: as_fn_arith $ac_count + 1 && ac_count=$as_val
7775: if test $ac_count -gt ${ac_path_GREP_max-0}; then
7776: # Best one so far, save it but keep looking for a better one
7777: ac_cv_path_GREP="$ac_path_GREP"
7778: ac_path_GREP_max=$ac_count
7779: fi
7780: # 10*(2^10) chars as input seems more than enough
7781: test $ac_count -gt 10 && break
7782: done
7783: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7784: esac
7785:
7786: $ac_path_GREP_found && break 3
7787: done
7788: done
7789: done
7790: IFS=$as_save_IFS
7791: if test -z "$ac_cv_path_GREP"; then
7792: as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7793: fi
7794: else
7795: ac_cv_path_GREP=$GREP
7796: fi
7797:
7798: fi
7799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7800: $as_echo "$ac_cv_path_GREP" >&6; }
7801: GREP="$ac_cv_path_GREP"
7802:
7803:
7804: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7805: $as_echo_n "checking for egrep... " >&6; }
7806: if test "${ac_cv_path_EGREP+set}" = set; then :
7807: $as_echo_n "(cached) " >&6
7808: else
7809: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7810: then ac_cv_path_EGREP="$GREP -E"
7811: else
7812: if test -z "$EGREP"; then
7813: ac_path_EGREP_found=false
7814: # Loop through the user's path and test for each of PROGNAME-LIST
7815: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7817: do
7818: IFS=$as_save_IFS
7819: test -z "$as_dir" && as_dir=.
7820: for ac_prog in egrep; do
7821: for ac_exec_ext in '' $ac_executable_extensions; do
7822: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7823: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7824: # Check for GNU ac_path_EGREP and select it if it is found.
7825: # Check for GNU $ac_path_EGREP
7826: case `"$ac_path_EGREP" --version 2>&1` in
7827: *GNU*)
7828: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7829: *)
7830: ac_count=0
7831: $as_echo_n 0123456789 >"conftest.in"
7832: while :
7833: do
7834: cat "conftest.in" "conftest.in" >"conftest.tmp"
7835: mv "conftest.tmp" "conftest.in"
7836: cp "conftest.in" "conftest.nl"
7837: $as_echo 'EGREP' >> "conftest.nl"
7838: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7839: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7840: as_fn_arith $ac_count + 1 && ac_count=$as_val
7841: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7842: # Best one so far, save it but keep looking for a better one
7843: ac_cv_path_EGREP="$ac_path_EGREP"
7844: ac_path_EGREP_max=$ac_count
7845: fi
7846: # 10*(2^10) chars as input seems more than enough
7847: test $ac_count -gt 10 && break
7848: done
7849: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7850: esac
7851:
7852: $ac_path_EGREP_found && break 3
7853: done
7854: done
7855: done
7856: IFS=$as_save_IFS
7857: if test -z "$ac_cv_path_EGREP"; then
7858: as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7859: fi
7860: else
7861: ac_cv_path_EGREP=$EGREP
7862: fi
7863:
7864: fi
7865: fi
7866: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7867: $as_echo "$ac_cv_path_EGREP" >&6; }
7868: EGREP="$ac_cv_path_EGREP"
7869:
7870:
7871: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7872: $as_echo_n "checking for ANSI C header files... " >&6; }
7873: if test "${ac_cv_header_stdc+set}" = set; then :
7874: $as_echo_n "(cached) " >&6
7875: else
7876: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877: /* end confdefs.h. */
7878: #include <stdlib.h>
7879: #include <stdarg.h>
7880: #include <string.h>
7881: #include <float.h>
7882:
7883: int
7884: main ()
7885: {
7886:
7887: ;
7888: return 0;
7889: }
7890: _ACEOF
7891: if ac_fn_c_try_compile "$LINENO"; then :
7892: ac_cv_header_stdc=yes
7893: else
7894: ac_cv_header_stdc=no
7895: fi
7896: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897:
7898: if test $ac_cv_header_stdc = yes; then
7899: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7900: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901: /* end confdefs.h. */
7902: #include <string.h>
7903:
7904: _ACEOF
7905: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7906: $EGREP "memchr" >/dev/null 2>&1; then :
7907:
7908: else
7909: ac_cv_header_stdc=no
7910: fi
7911: rm -f conftest*
7912:
7913: fi
7914:
7915: if test $ac_cv_header_stdc = yes; then
7916: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7917: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918: /* end confdefs.h. */
7919: #include <stdlib.h>
7920:
7921: _ACEOF
7922: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7923: $EGREP "free" >/dev/null 2>&1; then :
7924:
7925: else
7926: ac_cv_header_stdc=no
7927: fi
7928: rm -f conftest*
7929:
7930: fi
7931:
7932: if test $ac_cv_header_stdc = yes; then
7933: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7934: if test "$cross_compiling" = yes; then :
7935: :
7936: else
7937: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938: /* end confdefs.h. */
7939: #include <ctype.h>
7940: #include <stdlib.h>
7941: #if ((' ' & 0x0FF) == 0x020)
7942: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7943: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7944: #else
7945: # define ISLOWER(c) \
7946: (('a' <= (c) && (c) <= 'i') \
7947: || ('j' <= (c) && (c) <= 'r') \
7948: || ('s' <= (c) && (c) <= 'z'))
7949: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7950: #endif
7951:
7952: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7953: int
7954: main ()
7955: {
7956: int i;
7957: for (i = 0; i < 256; i++)
7958: if (XOR (islower (i), ISLOWER (i))
7959: || toupper (i) != TOUPPER (i))
7960: return 2;
7961: return 0;
7962: }
7963: _ACEOF
7964: if ac_fn_c_try_run "$LINENO"; then :
7965:
7966: else
7967: ac_cv_header_stdc=no
7968: fi
7969: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7970: conftest.$ac_objext conftest.beam conftest.$ac_ext
7971: fi
7972:
7973: fi
7974: fi
7975: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7976: $as_echo "$ac_cv_header_stdc" >&6; }
7977: if test $ac_cv_header_stdc = yes; then
7978:
7979: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7980:
7981: fi
7982:
7983: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7984: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7985: inttypes.h stdint.h unistd.h
7986: do :
7987: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7988: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7989: "
7990: eval as_val=\$$as_ac_Header
7991: if test "x$as_val" = x""yes; then :
7992: cat >>confdefs.h <<_ACEOF
7993: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7994: _ACEOF
7995:
7996: fi
7997:
7998: done
7999:
8000:
8001: # The cast to long int works around a bug in the HP C Compiler
8002: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8003: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8004: # This bug is HP SR number 8606223364.
8005: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
8006: $as_echo_n "checking size of void *... " >&6; }
8007: if test "${ac_cv_sizeof_void_p+set}" = set; then :
8008: $as_echo_n "(cached) " >&6
8009: else
8010: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
8011:
8012: else
8013: if test "$ac_cv_type_void_p" = yes; then
8014: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8015: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8016: { as_fn_set_status 77
8017: as_fn_error "cannot compute sizeof (void *)
8018: See \`config.log' for more details." "$LINENO" 5; }; }
8019: else
8020: ac_cv_sizeof_void_p=0
8021: fi
8022: fi
8023:
8024: fi
8025: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
8026: $as_echo "$ac_cv_sizeof_void_p" >&6; }
8027:
8028:
8029:
8030: cat >>confdefs.h <<_ACEOF
8031: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
8032: _ACEOF
8033:
8034:
8035: # The cast to long int works around a bug in the HP C Compiler
8036: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8037: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8038: # This bug is HP SR number 8606223364.
8039: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
8040: $as_echo_n "checking size of char... " >&6; }
8041: if test "${ac_cv_sizeof_char+set}" = set; then :
8042: $as_echo_n "(cached) " >&6
8043: else
8044: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
8045:
8046: else
8047: if test "$ac_cv_type_char" = yes; then
8048: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8049: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8050: { as_fn_set_status 77
8051: as_fn_error "cannot compute sizeof (char)
8052: See \`config.log' for more details." "$LINENO" 5; }; }
8053: else
8054: ac_cv_sizeof_char=0
8055: fi
8056: fi
8057:
8058: fi
8059: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
8060: $as_echo "$ac_cv_sizeof_char" >&6; }
8061:
8062:
8063:
8064: cat >>confdefs.h <<_ACEOF
8065: #define SIZEOF_CHAR $ac_cv_sizeof_char
8066: _ACEOF
8067:
8068:
8069: # The cast to long int works around a bug in the HP C Compiler
8070: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8071: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8072: # This bug is HP SR number 8606223364.
8073: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
8074: $as_echo_n "checking size of short int... " >&6; }
8075: if test "${ac_cv_sizeof_short_int+set}" = set; then :
8076: $as_echo_n "(cached) " >&6
8077: else
8078: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then :
8079:
8080: else
8081: if test "$ac_cv_type_short_int" = yes; then
8082: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8083: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8084: { as_fn_set_status 77
8085: as_fn_error "cannot compute sizeof (short int)
8086: See \`config.log' for more details." "$LINENO" 5; }; }
8087: else
8088: ac_cv_sizeof_short_int=0
8089: fi
8090: fi
8091:
8092: fi
8093: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
8094: $as_echo "$ac_cv_sizeof_short_int" >&6; }
8095:
8096:
8097:
8098: cat >>confdefs.h <<_ACEOF
8099: #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
8100: _ACEOF
8101:
8102:
8103: # The cast to long int works around a bug in the HP C Compiler
8104: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8105: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8106: # This bug is HP SR number 8606223364.
8107: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
8108: $as_echo_n "checking size of int... " >&6; }
8109: if test "${ac_cv_sizeof_int+set}" = set; then :
8110: $as_echo_n "(cached) " >&6
8111: else
8112: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
8113:
8114: else
8115: if test "$ac_cv_type_int" = yes; then
8116: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8117: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8118: { as_fn_set_status 77
8119: as_fn_error "cannot compute sizeof (int)
8120: See \`config.log' for more details." "$LINENO" 5; }; }
8121: else
8122: ac_cv_sizeof_int=0
8123: fi
8124: fi
8125:
8126: fi
8127: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
8128: $as_echo "$ac_cv_sizeof_int" >&6; }
8129:
8130:
8131:
8132: cat >>confdefs.h <<_ACEOF
8133: #define SIZEOF_INT $ac_cv_sizeof_int
8134: _ACEOF
8135:
8136:
8137: # The cast to long int works around a bug in the HP C Compiler
8138: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8139: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8140: # This bug is HP SR number 8606223364.
8141: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
8142: $as_echo_n "checking size of long int... " >&6; }
8143: if test "${ac_cv_sizeof_long_int+set}" = set; then :
8144: $as_echo_n "(cached) " >&6
8145: else
8146: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
8147:
8148: else
8149: if test "$ac_cv_type_long_int" = yes; then
8150: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8151: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8152: { as_fn_set_status 77
8153: as_fn_error "cannot compute sizeof (long int)
8154: See \`config.log' for more details." "$LINENO" 5; }; }
8155: else
8156: ac_cv_sizeof_long_int=0
8157: fi
8158: fi
8159:
8160: fi
8161: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
8162: $as_echo "$ac_cv_sizeof_long_int" >&6; }
8163:
8164:
8165:
8166: cat >>confdefs.h <<_ACEOF
8167: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
8168: _ACEOF
8169:
8170:
8171: # The cast to long int works around a bug in the HP C Compiler
8172: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8173: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8174: # This bug is HP SR number 8606223364.
8175: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
8176: $as_echo_n "checking size of long long int... " >&6; }
8177: if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
8178: $as_echo_n "(cached) " >&6
8179: else
8180: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int" "$ac_includes_default"; then :
8181:
8182: else
8183: if test "$ac_cv_type_long_long_int" = yes; then
8184: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8185: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8186: { as_fn_set_status 77
8187: as_fn_error "cannot compute sizeof (long long int)
8188: See \`config.log' for more details." "$LINENO" 5; }; }
8189: else
8190: ac_cv_sizeof_long_long_int=0
8191: fi
8192: fi
8193:
8194: fi
8195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
8196: $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
8197:
8198:
8199:
8200: cat >>confdefs.h <<_ACEOF
8201: #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
8202: _ACEOF
8203:
8204:
8205: # The cast to long int works around a bug in the HP C Compiler
8206: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8207: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8208: # This bug is HP SR number 8606223364.
8209: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
8210: $as_echo_n "checking size of float... " >&6; }
8211: if test "${ac_cv_sizeof_float+set}" = set; then :
8212: $as_echo_n "(cached) " >&6
8213: else
8214: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
8215:
8216: else
8217: if test "$ac_cv_type_float" = yes; then
8218: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8219: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8220: { as_fn_set_status 77
8221: as_fn_error "cannot compute sizeof (float)
8222: See \`config.log' for more details." "$LINENO" 5; }; }
8223: else
8224: ac_cv_sizeof_float=0
8225: fi
8226: fi
8227:
8228: fi
8229: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
8230: $as_echo "$ac_cv_sizeof_float" >&6; }
8231:
8232:
8233:
8234: cat >>confdefs.h <<_ACEOF
8235: #define SIZEOF_FLOAT $ac_cv_sizeof_float
8236: _ACEOF
8237:
8238:
8239: # The cast to long int works around a bug in the HP C Compiler
8240: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8241: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8242: # This bug is HP SR number 8606223364.
8243: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
8244: $as_echo_n "checking size of double... " >&6; }
8245: if test "${ac_cv_sizeof_double+set}" = set; then :
8246: $as_echo_n "(cached) " >&6
8247: else
8248: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
8249:
8250: else
8251: if test "$ac_cv_type_double" = yes; then
8252: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8253: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8254: { as_fn_set_status 77
8255: as_fn_error "cannot compute sizeof (double)
8256: See \`config.log' for more details." "$LINENO" 5; }; }
8257: else
8258: ac_cv_sizeof_double=0
8259: fi
8260: fi
8261:
8262: fi
8263: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
8264: $as_echo "$ac_cv_sizeof_double" >&6; }
8265:
8266:
8267:
8268: cat >>confdefs.h <<_ACEOF
8269: #define SIZEOF_DOUBLE $ac_cv_sizeof_double
8270: _ACEOF
8271:
8272:
8273: # The cast to long int works around a bug in the HP C Compiler
8274: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8275: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8276: # This bug is HP SR number 8606223364.
8277: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
8278: $as_echo_n "checking size of long double... " >&6; }
8279: if test "${ac_cv_sizeof_long_double+set}" = set; then :
8280: $as_echo_n "(cached) " >&6
8281: else
8282: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
8283:
8284: else
8285: if test "$ac_cv_type_long_double" = yes; then
8286: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8287: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8288: { as_fn_set_status 77
8289: as_fn_error "cannot compute sizeof (long double)
8290: See \`config.log' for more details." "$LINENO" 5; }; }
8291: else
8292: ac_cv_sizeof_long_double=0
8293: fi
8294: fi
8295:
8296: fi
8297: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
8298: $as_echo "$ac_cv_sizeof_long_double" >&6; }
8299:
8300:
8301:
8302: cat >>confdefs.h <<_ACEOF
8303: #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
8304: _ACEOF
8305:
8306:
8307:
8308: ac_header_dirent=no
8309: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8310: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8311: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8312: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8313: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8314: $as_echo_n "(cached) " >&6
8315: else
8316: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317: /* end confdefs.h. */
8318: #include <sys/types.h>
8319: #include <$ac_hdr>
8320:
8321: int
8322: main ()
8323: {
8324: if ((DIR *) 0)
8325: return 0;
8326: ;
8327: return 0;
8328: }
8329: _ACEOF
8330: if ac_fn_c_try_compile "$LINENO"; then :
8331: eval "$as_ac_Header=yes"
8332: else
8333: eval "$as_ac_Header=no"
8334: fi
8335: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336: fi
8337: eval ac_res=\$$as_ac_Header
8338: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8339: $as_echo "$ac_res" >&6; }
8340: eval as_val=\$$as_ac_Header
8341: if test "x$as_val" = x""yes; then :
8342: cat >>confdefs.h <<_ACEOF
8343: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8344: _ACEOF
8345:
8346: ac_header_dirent=$ac_hdr; break
8347: fi
8348:
8349: done
8350: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8351: if test $ac_header_dirent = dirent.h; then
8352: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8353: $as_echo_n "checking for library containing opendir... " >&6; }
8354: if test "${ac_cv_search_opendir+set}" = set; then :
8355: $as_echo_n "(cached) " >&6
8356: else
8357: ac_func_search_save_LIBS=$LIBS
8358: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8359: /* end confdefs.h. */
8360:
8361: /* Override any GCC internal prototype to avoid an error.
8362: Use char because int might match the return type of a GCC
8363: builtin and then its argument prototype would still apply. */
8364: #ifdef __cplusplus
8365: extern "C"
8366: #endif
8367: char opendir ();
8368: int
8369: main ()
8370: {
8371: return opendir ();
8372: ;
8373: return 0;
8374: }
8375: _ACEOF
8376: for ac_lib in '' dir; do
8377: if test -z "$ac_lib"; then
8378: ac_res="none required"
8379: else
8380: ac_res=-l$ac_lib
8381: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8382: fi
8383: if ac_fn_c_try_link "$LINENO"; then :
8384: ac_cv_search_opendir=$ac_res
8385: fi
8386: rm -f core conftest.err conftest.$ac_objext \
8387: conftest$ac_exeext
8388: if test "${ac_cv_search_opendir+set}" = set; then :
8389: break
8390: fi
8391: done
8392: if test "${ac_cv_search_opendir+set}" = set; then :
8393:
8394: else
8395: ac_cv_search_opendir=no
8396: fi
8397: rm conftest.$ac_ext
8398: LIBS=$ac_func_search_save_LIBS
8399: fi
8400: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8401: $as_echo "$ac_cv_search_opendir" >&6; }
8402: ac_res=$ac_cv_search_opendir
8403: if test "$ac_res" != no; then :
8404: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8405:
8406: fi
8407:
8408: else
8409: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8410: $as_echo_n "checking for library containing opendir... " >&6; }
8411: if test "${ac_cv_search_opendir+set}" = set; then :
8412: $as_echo_n "(cached) " >&6
8413: else
8414: ac_func_search_save_LIBS=$LIBS
8415: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416: /* end confdefs.h. */
8417:
8418: /* Override any GCC internal prototype to avoid an error.
8419: Use char because int might match the return type of a GCC
8420: builtin and then its argument prototype would still apply. */
8421: #ifdef __cplusplus
8422: extern "C"
8423: #endif
8424: char opendir ();
8425: int
8426: main ()
8427: {
8428: return opendir ();
8429: ;
8430: return 0;
8431: }
8432: _ACEOF
8433: for ac_lib in '' x; do
8434: if test -z "$ac_lib"; then
8435: ac_res="none required"
8436: else
8437: ac_res=-l$ac_lib
8438: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8439: fi
8440: if ac_fn_c_try_link "$LINENO"; then :
8441: ac_cv_search_opendir=$ac_res
8442: fi
8443: rm -f core conftest.err conftest.$ac_objext \
8444: conftest$ac_exeext
8445: if test "${ac_cv_search_opendir+set}" = set; then :
8446: break
8447: fi
8448: done
8449: if test "${ac_cv_search_opendir+set}" = set; then :
8450:
8451: else
8452: ac_cv_search_opendir=no
8453: fi
8454: rm conftest.$ac_ext
8455: LIBS=$ac_func_search_save_LIBS
8456: fi
8457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8458: $as_echo "$ac_cv_search_opendir" >&6; }
8459: ac_res=$ac_cv_search_opendir
8460: if test "$ac_res" != no; then :
8461: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8462:
8463: fi
8464:
8465: fi
8466:
8467: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8468: $as_echo_n "checking for ANSI C header files... " >&6; }
8469: if test "${ac_cv_header_stdc+set}" = set; then :
8470: $as_echo_n "(cached) " >&6
8471: else
8472: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8473: /* end confdefs.h. */
8474: #include <stdlib.h>
8475: #include <stdarg.h>
8476: #include <string.h>
8477: #include <float.h>
8478:
8479: int
8480: main ()
8481: {
8482:
8483: ;
8484: return 0;
8485: }
8486: _ACEOF
8487: if ac_fn_c_try_compile "$LINENO"; then :
8488: ac_cv_header_stdc=yes
8489: else
8490: ac_cv_header_stdc=no
8491: fi
8492: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8493:
8494: if test $ac_cv_header_stdc = yes; then
8495: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8496: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8497: /* end confdefs.h. */
8498: #include <string.h>
8499:
8500: _ACEOF
8501: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8502: $EGREP "memchr" >/dev/null 2>&1; then :
8503:
8504: else
8505: ac_cv_header_stdc=no
8506: fi
8507: rm -f conftest*
8508:
8509: fi
8510:
8511: if test $ac_cv_header_stdc = yes; then
8512: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8513: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514: /* end confdefs.h. */
8515: #include <stdlib.h>
8516:
8517: _ACEOF
8518: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8519: $EGREP "free" >/dev/null 2>&1; then :
8520:
8521: else
8522: ac_cv_header_stdc=no
8523: fi
8524: rm -f conftest*
8525:
8526: fi
8527:
8528: if test $ac_cv_header_stdc = yes; then
8529: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8530: if test "$cross_compiling" = yes; then :
8531: :
8532: else
8533: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534: /* end confdefs.h. */
8535: #include <ctype.h>
8536: #include <stdlib.h>
8537: #if ((' ' & 0x0FF) == 0x020)
8538: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8539: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8540: #else
8541: # define ISLOWER(c) \
8542: (('a' <= (c) && (c) <= 'i') \
8543: || ('j' <= (c) && (c) <= 'r') \
8544: || ('s' <= (c) && (c) <= 'z'))
8545: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8546: #endif
8547:
8548: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8549: int
8550: main ()
8551: {
8552: int i;
8553: for (i = 0; i < 256; i++)
8554: if (XOR (islower (i), ISLOWER (i))
8555: || toupper (i) != TOUPPER (i))
8556: return 2;
8557: return 0;
8558: }
8559: _ACEOF
8560: if ac_fn_c_try_run "$LINENO"; then :
8561:
8562: else
8563: ac_cv_header_stdc=no
8564: fi
8565: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8566: conftest.$ac_objext conftest.beam conftest.$ac_ext
8567: fi
8568:
8569: fi
8570: fi
8571: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8572: $as_echo "$ac_cv_header_stdc" >&6; }
8573: if test $ac_cv_header_stdc = yes; then
8574:
8575: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8576:
8577: fi
8578:
8579: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
8580: $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
8581: if test "${ac_cv_header_sys_wait_h+set}" = set; then :
8582: $as_echo_n "(cached) " >&6
8583: else
8584: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585: /* end confdefs.h. */
8586: #include <sys/types.h>
8587: #include <sys/wait.h>
8588: #ifndef WEXITSTATUS
8589: # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
8590: #endif
8591: #ifndef WIFEXITED
8592: # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8593: #endif
8594:
8595: int
8596: main ()
8597: {
8598: int s;
8599: wait (&s);
8600: s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8601: ;
8602: return 0;
8603: }
8604: _ACEOF
8605: if ac_fn_c_try_compile "$LINENO"; then :
8606: ac_cv_header_sys_wait_h=yes
8607: else
8608: ac_cv_header_sys_wait_h=no
8609: fi
8610: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8611: fi
8612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
8613: $as_echo "$ac_cv_header_sys_wait_h" >&6; }
8614: if test $ac_cv_header_sys_wait_h = yes; then
8615:
8616: $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
8617:
8618: fi
8619:
8620: for ac_header in dlfcn.h fcntl.h math.h pwd.h signal.h string.h termios.h \
8621: time.h unistd.h sys/resource.h sys/stat.h sys/time.h sys/timeb.h \
8622: sys/types.h sys/select.h sys/wait.h stdio.h stdlib.h pthread.h
8623: do :
8624: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8625: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8626: eval as_val=\$$as_ac_Header
8627: if test "x$as_val" = x""yes; then :
8628: cat >>confdefs.h <<_ACEOF
8629: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8630: _ACEOF
8631:
8632: fi
8633:
8634: done
8635:
8636:
8637: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8638: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8639: if test "${ac_cv_c_const+set}" = set; then :
8640: $as_echo_n "(cached) " >&6
8641: else
8642: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8643: /* end confdefs.h. */
8644:
8645: int
8646: main ()
8647: {
8648: /* FIXME: Include the comments suggested by Paul. */
8649: #ifndef __cplusplus
8650: /* Ultrix mips cc rejects this. */
8651: typedef int charset[2];
8652: const charset cs;
8653: /* SunOS 4.1.1 cc rejects this. */
8654: char const *const *pcpcc;
8655: char **ppc;
8656: /* NEC SVR4.0.2 mips cc rejects this. */
8657: struct point {int x, y;};
8658: static struct point const zero = {0,0};
8659: /* AIX XL C 1.02.0.0 rejects this.
8660: It does not let you subtract one const X* pointer from another in
8661: an arm of an if-expression whose if-part is not a constant
8662: expression */
8663: const char *g = "string";
8664: pcpcc = &g + (g ? g-g : 0);
8665: /* HPUX 7.0 cc rejects these. */
8666: ++pcpcc;
8667: ppc = (char**) pcpcc;
8668: pcpcc = (char const *const *) ppc;
8669: { /* SCO 3.2v4 cc rejects this. */
8670: char *t;
8671: char const *s = 0 ? (char *) 0 : (char const *) 0;
8672:
8673: *t++ = 0;
8674: if (s) return 0;
8675: }
8676: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8677: int x[] = {25, 17};
8678: const int *foo = &x[0];
8679: ++foo;
8680: }
8681: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8682: typedef const int *iptr;
8683: iptr p = 0;
8684: ++p;
8685: }
8686: { /* AIX XL C 1.02.0.0 rejects this saying
8687: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8688: struct s { int j; const int *ap[3]; };
8689: struct s *b; b->j = 5;
8690: }
8691: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8692: const int foo = 10;
8693: if (!foo) return 0;
8694: }
8695: return !cs[0] && !zero.x;
8696: #endif
8697:
8698: ;
8699: return 0;
8700: }
8701: _ACEOF
8702: if ac_fn_c_try_compile "$LINENO"; then :
8703: ac_cv_c_const=yes
8704: else
8705: ac_cv_c_const=no
8706: fi
8707: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708: fi
8709: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8710: $as_echo "$ac_cv_c_const" >&6; }
8711: if test $ac_cv_c_const = no; then
8712:
8713: $as_echo "#define const /**/" >>confdefs.h
8714:
8715: fi
8716:
8717: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
8718: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8719: if test "${ac_cv_type_uid_t+set}" = set; then :
8720: $as_echo_n "(cached) " >&6
8721: else
8722: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723: /* end confdefs.h. */
8724: #include <sys/types.h>
8725:
8726: _ACEOF
8727: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8728: $EGREP "uid_t" >/dev/null 2>&1; then :
8729: ac_cv_type_uid_t=yes
8730: else
8731: ac_cv_type_uid_t=no
8732: fi
8733: rm -f conftest*
8734:
8735: fi
8736: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
8737: $as_echo "$ac_cv_type_uid_t" >&6; }
8738: if test $ac_cv_type_uid_t = no; then
8739:
8740: $as_echo "#define uid_t int" >>confdefs.h
8741:
8742:
8743: $as_echo "#define gid_t int" >>confdefs.h
8744:
8745: fi
8746:
8747: ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
8748: if test "x$ac_cv_type_pid_t" = x""yes; then :
8749:
8750: else
8751:
8752: cat >>confdefs.h <<_ACEOF
8753: #define pid_t int
8754: _ACEOF
8755:
8756: fi
8757:
8758: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8759: if test "x$ac_cv_type_size_t" = x""yes; then :
8760:
8761: else
8762:
8763: cat >>confdefs.h <<_ACEOF
8764: #define size_t unsigned int
8765: _ACEOF
8766:
8767: fi
8768:
8769: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
8770: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
8771: if test "${ac_cv_header_time+set}" = set; then :
8772: $as_echo_n "(cached) " >&6
8773: else
8774: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775: /* end confdefs.h. */
8776: #include <sys/types.h>
8777: #include <sys/time.h>
8778: #include <time.h>
8779:
8780: int
8781: main ()
8782: {
8783: if ((struct tm *) 0)
8784: return 0;
8785: ;
8786: return 0;
8787: }
8788: _ACEOF
8789: if ac_fn_c_try_compile "$LINENO"; then :
8790: ac_cv_header_time=yes
8791: else
8792: ac_cv_header_time=no
8793: fi
8794: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795: fi
8796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
8797: $as_echo "$ac_cv_header_time" >&6; }
8798: if test $ac_cv_header_time = yes; then
8799:
8800: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8801:
8802: fi
8803:
8804: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
8805: $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8806: if test "${ac_cv_struct_tm+set}" = set; then :
8807: $as_echo_n "(cached) " >&6
8808: else
8809: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8810: /* end confdefs.h. */
8811: #include <sys/types.h>
8812: #include <time.h>
8813:
8814: int
8815: main ()
8816: {
8817: struct tm tm;
8818: int *p = &tm.tm_sec;
8819: return !p;
8820: ;
8821: return 0;
8822: }
8823: _ACEOF
8824: if ac_fn_c_try_compile "$LINENO"; then :
8825: ac_cv_struct_tm=time.h
8826: else
8827: ac_cv_struct_tm=sys/time.h
8828: fi
8829: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8830: fi
8831: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8832: $as_echo "$ac_cv_struct_tm" >&6; }
8833: if test $ac_cv_struct_tm = sys/time.h; then
8834:
8835: $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8836:
8837: fi
8838:
8839:
8840: { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
8841: $as_echo_n "checking return type of signal handlers... " >&6; }
8842: if test "${ac_cv_type_signal+set}" = set; then :
8843: $as_echo_n "(cached) " >&6
8844: else
8845: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846: /* end confdefs.h. */
8847: #include <sys/types.h>
8848: #include <signal.h>
8849:
8850: int
8851: main ()
8852: {
8853: return *(signal (0, 0)) (0) == 1;
8854: ;
8855: return 0;
8856: }
8857: _ACEOF
8858: if ac_fn_c_try_compile "$LINENO"; then :
8859: ac_cv_type_signal=int
8860: else
8861: ac_cv_type_signal=void
8862: fi
8863: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8864: fi
8865: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
8866: $as_echo "$ac_cv_type_signal" >&6; }
8867:
8868: cat >>confdefs.h <<_ACEOF
8869: #define RETSIGTYPE $ac_cv_type_signal
8870: _ACEOF
8871:
8872:
8873: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strcoll" >&5
8874: $as_echo_n "checking for working strcoll... " >&6; }
8875: if test "${ac_cv_func_strcoll_works+set}" = set; then :
8876: $as_echo_n "(cached) " >&6
8877: else
8878: if test "$cross_compiling" = yes; then :
8879: ac_cv_func_strcoll_works=no
8880: else
8881: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882: /* end confdefs.h. */
8883: $ac_includes_default
8884: int
8885: main ()
8886: {
8887: return (strcoll ("abc", "def") >= 0 ||
8888: strcoll ("ABC", "DEF") >= 0 ||
8889: strcoll ("123", "456") >= 0)
8890: ;
8891: return 0;
8892: }
8893: _ACEOF
8894: if ac_fn_c_try_run "$LINENO"; then :
8895: ac_cv_func_strcoll_works=yes
8896: else
8897: ac_cv_func_strcoll_works=no
8898: fi
8899: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8900: conftest.$ac_objext conftest.beam conftest.$ac_ext
8901: fi
8902:
8903: fi
8904: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strcoll_works" >&5
8905: $as_echo "$ac_cv_func_strcoll_works" >&6; }
8906: if test $ac_cv_func_strcoll_works = yes; then
8907:
8908: $as_echo "#define HAVE_STRCOLL 1" >>confdefs.h
8909:
8910: fi
8911:
8912: for ac_func in strftime
8913: do :
8914: ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
8915: if test "x$ac_cv_func_strftime" = x""yes; then :
8916: cat >>confdefs.h <<_ACEOF
8917: #define HAVE_STRFTIME 1
8918: _ACEOF
8919:
8920: else
8921: # strftime is in -lintl on SCO UNIX.
8922: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
8923: $as_echo_n "checking for strftime in -lintl... " >&6; }
8924: if test "${ac_cv_lib_intl_strftime+set}" = set; then :
8925: $as_echo_n "(cached) " >&6
8926: else
8927: ac_check_lib_save_LIBS=$LIBS
8928: LIBS="-lintl $LIBS"
8929: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930: /* end confdefs.h. */
8931:
8932: /* Override any GCC internal prototype to avoid an error.
8933: Use char because int might match the return type of a GCC
8934: builtin and then its argument prototype would still apply. */
8935: #ifdef __cplusplus
8936: extern "C"
8937: #endif
8938: char strftime ();
8939: int
8940: main ()
8941: {
8942: return strftime ();
8943: ;
8944: return 0;
8945: }
8946: _ACEOF
8947: if ac_fn_c_try_link "$LINENO"; then :
8948: ac_cv_lib_intl_strftime=yes
8949: else
8950: ac_cv_lib_intl_strftime=no
8951: fi
8952: rm -f core conftest.err conftest.$ac_objext \
8953: conftest$ac_exeext conftest.$ac_ext
8954: LIBS=$ac_check_lib_save_LIBS
8955: fi
8956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
8957: $as_echo "$ac_cv_lib_intl_strftime" >&6; }
8958: if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
8959: $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
8960:
8961: LIBS="-lintl $LIBS"
8962: fi
8963:
8964: fi
8965: done
8966:
8967: for ac_func in vprintf
8968: do :
8969: ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
8970: if test "x$ac_cv_func_vprintf" = x""yes; then :
8971: cat >>confdefs.h <<_ACEOF
8972: #define HAVE_VPRINTF 1
8973: _ACEOF
8974:
8975: ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
8976: if test "x$ac_cv_func__doprnt" = x""yes; then :
8977:
8978: $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
8979:
8980: fi
8981:
8982: fi
8983: done
8984:
8985:
8986: for ac_func in ftime getcwd putenv select strcspn strdup \
8987: strerror strspn strstr strtod
8988: do :
8989: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8990: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8991: eval as_val=\$$as_ac_var
8992: if test "x$as_val" = x""yes; then :
8993: cat >>confdefs.h <<_ACEOF
8994: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8995: _ACEOF
8996:
8997: fi
8998: done
8999:
9000:
9001:
9002:
9003: subdirs="$subdirs tools/$NCURSES"
9004:
9005: subdirs="$subdirs tools/$READLINE"
9006:
9007: subdirs="$subdirs tools/$UNITS"
9008:
9009: subdirs="$subdirs tools/$GSL"
9010:
9011: subdirs="$subdirs tools/$GPP"
9012:
9013: subdirs="$subdirs tools/$FILE"
9014:
9015: subdirs="$subdirs tools/$ICONV"
9016:
9017:
9018: if test "$MYGNUPLOT" = "yes"; then
9019: if test ! -d "$srcdir"/tools/$GNUPLOT; then
9020: gunzip -c "$srcdir"/tools/$GNUPLOT.tar.gz | \
9021: (cd "$srcdir/tools" && tar -xf -)
9022: fi
9023: subdirs="$subdirs tools/$GNUPLOT"
9024:
9025: GNUPLOT_COMPILATION=$GNUPLOT
9026: else
9027: GNUPLOT_COMPILATION=
9028: fi
9029:
9030:
9031:
9032: case $host_cpu in
9033:
9034: i?86)
9035: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9036: -Wno-pointer-sign"
9037: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9038: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9039: break ;;
9040:
9041: x86_64*)
9042: CFLAGS="$CFLAGS -malign-double -mieee-fp -Wall -funsigned-char \
9043: -Wno-pointer-sign"
9044: FFLAGS="$FFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9045: FCFLAGS="$FCFLAGS -malign-double -mieee-fp -Wall -fno-f2c"
9046: break ;;
9047:
9048: alpha*)
9049: CFLAGS="$CFLAGS -mieee -funsigned-char -Wall \
9050: -Wno-pointer-sign"
9051: FFLAGS="$FFLAGS -mieee -Wall"
9052: FCFLAGS="$FCFLAGS -mieee -Wall"
9053: break ;;
9054:
9055: sparc*)
9056: CFLAGS="$CFLAGS -Wall -funsigned-char \
9057: -Wno-pointer-sign"
9058: FFLAGS="$FFLAGS -Wall"
9059: FCFLAGS="$FCFLAGS -Wall"
9060: break ;;
9061:
9062: esac
9063:
9064: case $host_os in
9065:
9066: cygwin*)
9067: LIBICONV=libiconv.dll.a
9068: OS=Cygwin
9069: break ;;
9070:
9071: interix*)
9072: LIBICONV=libiconv.dll.a
9073: OS=Interix
9074: break ;;
9075:
9076: *)
9077: LIBICONV=libiconv.a
9078: OS=$(uname)
9079: break ;;
9080:
9081: esac
9082:
9083:
9084:
9085:
9086: DATE_FR=$(env LC_ALL=fr_FR date +'%A %x, %X %Z')
9087: DATE=$(env LC_ALL=C date +'%A %x, %X %Z')
9088:
9089: if test $(uname) = "SunOS"; then
9090: LIBMTMALLOC=-lmtmalloc
9091: else
9092: LIBMTMALLOC=
9093: fi
9094:
9095:
9096:
9097:
9098:
9099:
9100:
9101:
9102:
9103:
9104:
9105:
9106:
9107:
9108:
9109:
9110:
9111:
9112:
9113:
9114: ac_config_files="$ac_config_files Makefile"
9115:
9116: ac_config_files="$ac_config_files COPYING"
9117:
9118: ac_config_files="$ac_config_files tools/Makefile"
9119:
9120: ac_config_files="$ac_config_files src/Makefile"
9121:
9122: ac_config_files="$ac_config_files man/Makefile"
9123:
9124: ac_config_files="$ac_config_files man/fr_FR/Makefile"
9125:
9126: ac_config_files="$ac_config_files doc/Makefile"
9127:
9128: ac_config_files="$ac_config_files scripts/Makefile"
9129:
9130: ac_config_files="$ac_config_files scripts/mkrplso"
9131:
9132: ac_config_files="$ac_config_files scripts/rplcc"
9133:
9134: ac_config_files="$ac_config_files scripts/rpllink"
9135:
9136: ac_config_files="$ac_config_files rpltags/Makefile"
9137:
9138: ac_config_files="$ac_config_files rpliconv/Makefile"
9139:
9140: ac_config_files="$ac_config_files lapack/lapack/Makefile"
9141:
9142: ac_config_files="$ac_config_files lapack/blas/Makefile"
9143:
9144:
9145: ac_config_files="$ac_config_files man/rpl.1"
9146:
9147: ac_config_files="$ac_config_files man/rplcc.1"
9148:
9149: ac_config_files="$ac_config_files man/rpllink.1"
9150:
9151: ac_config_files="$ac_config_files man/rpltags.1"
9152:
9153: ac_config_files="$ac_config_files man/mkrplso.1"
9154:
9155: ac_config_files="$ac_config_files man/fr_FR/rpl.1"
9156:
9157: ac_config_files="$ac_config_files man/fr_FR/rplcc.1"
9158:
9159: ac_config_files="$ac_config_files man/fr_FR/rpllink.1"
9160:
9161: ac_config_files="$ac_config_files man/fr_FR/rpltags.1"
9162:
9163: ac_config_files="$ac_config_files man/fr_FR/mkrplso.1"
9164:
9165:
9166: cat >confcache <<\_ACEOF
9167: # This file is a shell script that caches the results of configure
9168: # tests run on this system so they can be shared between configure
9169: # scripts and configure runs, see configure's option --config-cache.
9170: # It is not useful on other systems. If it contains results you don't
9171: # want to keep, you may remove or edit it.
9172: #
9173: # config.status only pays attention to the cache file if you give it
9174: # the --recheck option to rerun configure.
9175: #
9176: # `ac_cv_env_foo' variables (set or unset) will be overridden when
9177: # loading this file, other *unset* `ac_cv_foo' will be assigned the
9178: # following values.
9179:
9180: _ACEOF
9181:
9182: # The following way of writing the cache mishandles newlines in values,
9183: # but we know of no workaround that is simple, portable, and efficient.
9184: # So, we kill variables containing newlines.
9185: # Ultrix sh set writes to stderr and can't be redirected directly,
9186: # and sets the high bit in the cache file unless we assign to the vars.
9187: (
9188: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9189: eval ac_val=\$$ac_var
9190: case $ac_val in #(
9191: *${as_nl}*)
9192: case $ac_var in #(
9193: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9194: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9195: esac
9196: case $ac_var in #(
9197: _ | IFS | as_nl) ;; #(
9198: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9199: *) { eval $ac_var=; unset $ac_var;} ;;
9200: esac ;;
9201: esac
9202: done
9203:
9204: (set) 2>&1 |
9205: case $as_nl`(ac_space=' '; set) 2>&1` in #(
9206: *${as_nl}ac_space=\ *)
9207: # `set' does not quote correctly, so add quotes: double-quote
9208: # substitution turns \\\\ into \\, and sed turns \\ into \.
9209: sed -n \
9210: "s/'/'\\\\''/g;
9211: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9212: ;; #(
9213: *)
9214: # `set' quotes correctly as required by POSIX, so do not add quotes.
9215: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9216: ;;
9217: esac |
9218: sort
9219: ) |
9220: sed '
9221: /^ac_cv_env_/b end
9222: t clear
9223: :clear
9224: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9225: t end
9226: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9227: :end' >>confcache
9228: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9229: if test -w "$cache_file"; then
9230: test "x$cache_file" != "x/dev/null" &&
9231: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9232: $as_echo "$as_me: updating cache $cache_file" >&6;}
9233: cat confcache >$cache_file
9234: else
9235: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9236: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9237: fi
9238: fi
9239: rm -f confcache
9240:
9241: test "x$prefix" = xNONE && prefix=$ac_default_prefix
9242: # Let make expand exec_prefix.
9243: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9244:
9245: DEFS=-DHAVE_CONFIG_H
9246:
9247: ac_libobjs=
9248: ac_ltlibobjs=
9249: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9250: # 1. Remove the extension, and $U if already installed.
9251: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9252: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
9253: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9254: # will be set to the directory where LIBOBJS objects are built.
9255: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9256: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
9257: done
9258: LIBOBJS=$ac_libobjs
9259:
9260: LTLIBOBJS=$ac_ltlibobjs
9261:
9262:
9263: if test -n "$EXEEXT"; then
9264: am__EXEEXT_TRUE=
9265: am__EXEEXT_FALSE='#'
9266: else
9267: am__EXEEXT_TRUE='#'
9268: am__EXEEXT_FALSE=
9269: fi
9270:
9271: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9272: as_fn_error "conditional \"AMDEP\" was never defined.
9273: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9274: fi
9275: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9276: as_fn_error "conditional \"am__fastdepCC\" was never defined.
9277: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9278: fi
9279: if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9280: as_fn_error "conditional \"am__fastdepCXX\" was never defined.
9281: Usually this means the macro was only invoked conditionally." "$LINENO" 5
9282: fi
9283:
9284: : ${CONFIG_STATUS=./config.status}
9285: ac_write_fail=0
9286: ac_clean_files_save=$ac_clean_files
9287: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9288: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9289: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9290: as_write_fail=0
9291: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9292: #! $SHELL
9293: # Generated by $as_me.
9294: # Run this file to recreate the current configuration.
9295: # Compiler output produced by configure, useful for debugging
9296: # configure, is in config.log if it exists.
9297:
9298: debug=false
9299: ac_cs_recheck=false
9300: ac_cs_silent=false
9301:
9302: SHELL=\${CONFIG_SHELL-$SHELL}
9303: export SHELL
9304: _ASEOF
9305: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
9306: ## -------------------- ##
9307: ## M4sh Initialization. ##
9308: ## -------------------- ##
9309:
9310: # Be more Bourne compatible
9311: DUALCASE=1; export DUALCASE # for MKS sh
9312: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
9313: emulate sh
9314: NULLCMD=:
9315: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
9316: # is contrary to our usage. Disable this feature.
9317: alias -g '${1+"$@"}'='"$@"'
9318: setopt NO_GLOB_SUBST
9319: else
9320: case `(set -o) 2>/dev/null` in #(
9321: *posix*) :
9322: set -o posix ;; #(
9323: *) :
9324: ;;
9325: esac
9326: fi
9327:
9328:
9329: as_nl='
9330: '
9331: export as_nl
9332: # Printing a long string crashes Solaris 7 /usr/bin/printf.
9333: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9334: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
9335: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
9336: # Prefer a ksh shell builtin over an external printf program on Solaris,
9337: # but without wasting forks for bash or zsh.
9338: if test -z "$BASH_VERSION$ZSH_VERSION" \
9339: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
9340: as_echo='print -r --'
9341: as_echo_n='print -rn --'
9342: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
9343: as_echo='printf %s\n'
9344: as_echo_n='printf %s'
9345: else
9346: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
9347: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
9348: as_echo_n='/usr/ucb/echo -n'
9349: else
9350: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9351: as_echo_n_body='eval
9352: arg=$1;
9353: case $arg in #(
9354: *"$as_nl"*)
9355: expr "X$arg" : "X\\(.*\\)$as_nl";
9356: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9357: esac;
9358: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9359: '
9360: export as_echo_n_body
9361: as_echo_n='sh -c $as_echo_n_body as_echo'
9362: fi
9363: export as_echo_body
9364: as_echo='sh -c $as_echo_body as_echo'
9365: fi
9366:
9367: # The user is always right.
9368: if test "${PATH_SEPARATOR+set}" != set; then
9369: PATH_SEPARATOR=:
9370: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9371: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9372: PATH_SEPARATOR=';'
9373: }
9374: fi
9375:
9376:
9377: # IFS
9378: # We need space, tab and new line, in precisely that order. Quoting is
9379: # there to prevent editors from complaining about space-tab.
9380: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9381: # splitting by setting IFS to empty value.)
9382: IFS=" "" $as_nl"
9383:
9384: # Find who we are. Look in the path if we contain no directory separator.
9385: case $0 in #((
9386: *[\\/]* ) as_myself=$0 ;;
9387: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9388: for as_dir in $PATH
9389: do
9390: IFS=$as_save_IFS
9391: test -z "$as_dir" && as_dir=.
9392: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9393: done
9394: IFS=$as_save_IFS
9395:
9396: ;;
9397: esac
9398: # We did not find ourselves, most probably we were run as `sh COMMAND'
9399: # in which case we are not to be found in the path.
9400: if test "x$as_myself" = x; then
9401: as_myself=$0
9402: fi
9403: if test ! -f "$as_myself"; then
9404: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9405: exit 1
9406: fi
9407:
9408: # Unset variables that we do not need and which cause bugs (e.g. in
9409: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9410: # suppresses any "Segmentation fault" message there. '((' could
9411: # trigger a bug in pdksh 5.2.14.
9412: for as_var in BASH_ENV ENV MAIL MAILPATH
9413: do eval test x\${$as_var+set} = xset \
9414: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9415: done
9416: PS1='$ '
9417: PS2='> '
9418: PS4='+ '
9419:
9420: # NLS nuisances.
9421: LC_ALL=C
9422: export LC_ALL
9423: LANGUAGE=C
9424: export LANGUAGE
9425:
9426: # CDPATH.
9427: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9428:
9429:
9430: # as_fn_error ERROR [LINENO LOG_FD]
9431: # ---------------------------------
9432: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9433: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9434: # script with status $?, using 1 if that was 0.
9435: as_fn_error ()
9436: {
9437: as_status=$?; test $as_status -eq 0 && as_status=1
9438: if test "$3"; then
9439: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9440: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
9441: fi
9442: $as_echo "$as_me: error: $1" >&2
9443: as_fn_exit $as_status
9444: } # as_fn_error
9445:
9446:
9447: # as_fn_set_status STATUS
9448: # -----------------------
9449: # Set $? to STATUS, without forking.
9450: as_fn_set_status ()
9451: {
9452: return $1
9453: } # as_fn_set_status
9454:
9455: # as_fn_exit STATUS
9456: # -----------------
9457: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9458: as_fn_exit ()
9459: {
9460: set +e
9461: as_fn_set_status $1
9462: exit $1
9463: } # as_fn_exit
9464:
9465: # as_fn_unset VAR
9466: # ---------------
9467: # Portably unset VAR.
9468: as_fn_unset ()
9469: {
9470: { eval $1=; unset $1;}
9471: }
9472: as_unset=as_fn_unset
9473: # as_fn_append VAR VALUE
9474: # ----------------------
9475: # Append the text in VALUE to the end of the definition contained in VAR. Take
9476: # advantage of any shell optimizations that allow amortized linear growth over
9477: # repeated appends, instead of the typical quadratic growth present in naive
9478: # implementations.
9479: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9480: eval 'as_fn_append ()
9481: {
9482: eval $1+=\$2
9483: }'
9484: else
9485: as_fn_append ()
9486: {
9487: eval $1=\$$1\$2
9488: }
9489: fi # as_fn_append
9490:
9491: # as_fn_arith ARG...
9492: # ------------------
9493: # Perform arithmetic evaluation on the ARGs, and store the result in the
9494: # global $as_val. Take advantage of shells that can avoid forks. The arguments
9495: # must be portable across $(()) and expr.
9496: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9497: eval 'as_fn_arith ()
9498: {
9499: as_val=$(( $* ))
9500: }'
9501: else
9502: as_fn_arith ()
9503: {
9504: as_val=`expr "$@" || test $? -eq 1`
9505: }
9506: fi # as_fn_arith
9507:
9508:
9509: if expr a : '\(a\)' >/dev/null 2>&1 &&
9510: test "X`expr 00001 : '.*\(...\)'`" = X001; then
9511: as_expr=expr
9512: else
9513: as_expr=false
9514: fi
9515:
9516: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9517: as_basename=basename
9518: else
9519: as_basename=false
9520: fi
9521:
9522: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9523: as_dirname=dirname
9524: else
9525: as_dirname=false
9526: fi
9527:
9528: as_me=`$as_basename -- "$0" ||
9529: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9530: X"$0" : 'X\(//\)$' \| \
9531: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9532: $as_echo X/"$0" |
9533: sed '/^.*\/\([^/][^/]*\)\/*$/{
9534: s//\1/
9535: q
9536: }
9537: /^X\/\(\/\/\)$/{
9538: s//\1/
9539: q
9540: }
9541: /^X\/\(\/\).*/{
9542: s//\1/
9543: q
9544: }
9545: s/.*/./; q'`
9546:
9547: # Avoid depending upon Character Ranges.
9548: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9549: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9550: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9551: as_cr_digits='0123456789'
9552: as_cr_alnum=$as_cr_Letters$as_cr_digits
9553:
9554: ECHO_C= ECHO_N= ECHO_T=
9555: case `echo -n x` in #(((((
9556: -n*)
9557: case `echo 'xy\c'` in
9558: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9559: xy) ECHO_C='\c';;
9560: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9561: ECHO_T=' ';;
9562: esac;;
9563: *)
9564: ECHO_N='-n';;
9565: esac
9566:
9567: rm -f conf$$ conf$$.exe conf$$.file
9568: if test -d conf$$.dir; then
9569: rm -f conf$$.dir/conf$$.file
9570: else
9571: rm -f conf$$.dir
9572: mkdir conf$$.dir 2>/dev/null
9573: fi
9574: if (echo >conf$$.file) 2>/dev/null; then
9575: if ln -s conf$$.file conf$$ 2>/dev/null; then
9576: as_ln_s='ln -s'
9577: # ... but there are two gotchas:
9578: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9579: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9580: # In both cases, we have to default to `cp -p'.
9581: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9582: as_ln_s='cp -p'
9583: elif ln conf$$.file conf$$ 2>/dev/null; then
9584: as_ln_s=ln
9585: else
9586: as_ln_s='cp -p'
9587: fi
9588: else
9589: as_ln_s='cp -p'
9590: fi
9591: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9592: rmdir conf$$.dir 2>/dev/null
9593:
9594:
9595: # as_fn_mkdir_p
9596: # -------------
9597: # Create "$as_dir" as a directory, including parents if necessary.
9598: as_fn_mkdir_p ()
9599: {
9600:
9601: case $as_dir in #(
9602: -*) as_dir=./$as_dir;;
9603: esac
9604: test -d "$as_dir" || eval $as_mkdir_p || {
9605: as_dirs=
9606: while :; do
9607: case $as_dir in #(
9608: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9609: *) as_qdir=$as_dir;;
9610: esac
9611: as_dirs="'$as_qdir' $as_dirs"
9612: as_dir=`$as_dirname -- "$as_dir" ||
9613: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9614: X"$as_dir" : 'X\(//\)[^/]' \| \
9615: X"$as_dir" : 'X\(//\)$' \| \
9616: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9617: $as_echo X"$as_dir" |
9618: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9619: s//\1/
9620: q
9621: }
9622: /^X\(\/\/\)[^/].*/{
9623: s//\1/
9624: q
9625: }
9626: /^X\(\/\/\)$/{
9627: s//\1/
9628: q
9629: }
9630: /^X\(\/\).*/{
9631: s//\1/
9632: q
9633: }
9634: s/.*/./; q'`
9635: test -d "$as_dir" && break
9636: done
9637: test -z "$as_dirs" || eval "mkdir $as_dirs"
9638: } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
9639:
9640:
9641: } # as_fn_mkdir_p
9642: if mkdir -p . 2>/dev/null; then
9643: as_mkdir_p='mkdir -p "$as_dir"'
9644: else
9645: test -d ./-p && rmdir ./-p
9646: as_mkdir_p=false
9647: fi
9648:
9649: if test -x / >/dev/null 2>&1; then
9650: as_test_x='test -x'
9651: else
9652: if ls -dL / >/dev/null 2>&1; then
9653: as_ls_L_option=L
9654: else
9655: as_ls_L_option=
9656: fi
9657: as_test_x='
9658: eval sh -c '\''
9659: if test -d "$1"; then
9660: test -d "$1/.";
9661: else
9662: case $1 in #(
9663: -*)set "./$1";;
9664: esac;
9665: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
9666: ???[sx]*):;;*)false;;esac;fi
9667: '\'' sh
9668: '
9669: fi
9670: as_executable_p=$as_test_x
9671:
9672: # Sed expression to map a string onto a valid CPP name.
9673: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9674:
9675: # Sed expression to map a string onto a valid variable name.
9676: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9677:
9678:
9679: exec 6>&1
9680: ## ----------------------------------- ##
9681: ## Main body of $CONFIG_STATUS script. ##
9682: ## ----------------------------------- ##
9683: _ASEOF
9684: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9685:
9686: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9687: # Save the log message, to keep $0 and so on meaningful, and to
9688: # report actual input values of CONFIG_FILES etc. instead of their
9689: # values after options handling.
9690: ac_log="
9691: This file was extended by rpl $as_me 4.0.11, which was
9692: generated by GNU Autoconf 2.65. Invocation command line was
9693:
9694: CONFIG_FILES = $CONFIG_FILES
9695: CONFIG_HEADERS = $CONFIG_HEADERS
9696: CONFIG_LINKS = $CONFIG_LINKS
9697: CONFIG_COMMANDS = $CONFIG_COMMANDS
9698: $ $0 $@
9699:
9700: on `(hostname || uname -n) 2>/dev/null | sed 1q`
9701: "
9702:
9703: _ACEOF
9704:
9705: case $ac_config_files in *"
9706: "*) set x $ac_config_files; shift; ac_config_files=$*;;
9707: esac
9708:
9709: case $ac_config_headers in *"
9710: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9711: esac
9712:
9713:
9714: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9715: # Files that config.status was made for.
9716: config_files="$ac_config_files"
9717: config_headers="$ac_config_headers"
9718: config_commands="$ac_config_commands"
9719:
9720: _ACEOF
9721:
9722: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9723: ac_cs_usage="\
9724: \`$as_me' instantiates files and other configuration actions
9725: from templates according to the current configuration. Unless the files
9726: and actions are specified as TAGs, all are instantiated by default.
9727:
9728: Usage: $0 [OPTION]... [TAG]...
9729:
9730: -h, --help print this help, then exit
9731: -V, --version print version number and configuration settings, then exit
9732: --config print configuration, then exit
9733: -q, --quiet, --silent
9734: do not print progress messages
9735: -d, --debug don't remove temporary files
9736: --recheck update $as_me by reconfiguring in the same conditions
9737: --file=FILE[:TEMPLATE]
9738: instantiate the configuration file FILE
9739: --header=FILE[:TEMPLATE]
9740: instantiate the configuration header FILE
9741:
9742: Configuration files:
9743: $config_files
9744:
9745: Configuration headers:
9746: $config_headers
9747:
9748: Configuration commands:
9749: $config_commands
9750:
9751: Report bugs to the package provider."
9752:
9753: _ACEOF
9754: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9755: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9756: ac_cs_version="\\
9757: rpl config.status 4.0.11
9758: configured by $0, generated by GNU Autoconf 2.65,
9759: with options \\"\$ac_cs_config\\"
9760:
9761: Copyright (C) 2009 Free Software Foundation, Inc.
9762: This config.status script is free software; the Free Software Foundation
9763: gives unlimited permission to copy, distribute and modify it."
9764:
9765: ac_pwd='$ac_pwd'
9766: srcdir='$srcdir'
9767: INSTALL='$INSTALL'
9768: MKDIR_P='$MKDIR_P'
9769: AWK='$AWK'
9770: test -n "\$AWK" || AWK=awk
9771: _ACEOF
9772:
9773: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9774: # The default lists apply if the user does not specify any file.
9775: ac_need_defaults=:
9776: while test $# != 0
9777: do
9778: case $1 in
9779: --*=*)
9780: ac_option=`expr "X$1" : 'X\([^=]*\)='`
9781: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9782: ac_shift=:
9783: ;;
9784: *)
9785: ac_option=$1
9786: ac_optarg=$2
9787: ac_shift=shift
9788: ;;
9789: esac
9790:
9791: case $ac_option in
9792: # Handling of the options.
9793: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9794: ac_cs_recheck=: ;;
9795: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9796: $as_echo "$ac_cs_version"; exit ;;
9797: --config | --confi | --conf | --con | --co | --c )
9798: $as_echo "$ac_cs_config"; exit ;;
9799: --debug | --debu | --deb | --de | --d | -d )
9800: debug=: ;;
9801: --file | --fil | --fi | --f )
9802: $ac_shift
9803: case $ac_optarg in
9804: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9805: esac
9806: as_fn_append CONFIG_FILES " '$ac_optarg'"
9807: ac_need_defaults=false;;
9808: --header | --heade | --head | --hea )
9809: $ac_shift
9810: case $ac_optarg in
9811: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9812: esac
9813: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9814: ac_need_defaults=false;;
9815: --he | --h)
9816: # Conflict between --help and --header
9817: as_fn_error "ambiguous option: \`$1'
9818: Try \`$0 --help' for more information.";;
9819: --help | --hel | -h )
9820: $as_echo "$ac_cs_usage"; exit ;;
9821: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9822: | -silent | --silent | --silen | --sile | --sil | --si | --s)
9823: ac_cs_silent=: ;;
9824:
9825: # This is an error.
9826: -*) as_fn_error "unrecognized option: \`$1'
9827: Try \`$0 --help' for more information." ;;
9828:
9829: *) as_fn_append ac_config_targets " $1"
9830: ac_need_defaults=false ;;
9831:
9832: esac
9833: shift
9834: done
9835:
9836: ac_configure_extra_args=
9837:
9838: if $ac_cs_silent; then
9839: exec 6>/dev/null
9840: ac_configure_extra_args="$ac_configure_extra_args --silent"
9841: fi
9842:
9843: _ACEOF
9844: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9845: if \$ac_cs_recheck; then
9846: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9847: shift
9848: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9849: CONFIG_SHELL='$SHELL'
9850: export CONFIG_SHELL
9851: exec "\$@"
9852: fi
9853:
9854: _ACEOF
9855: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9856: exec 5>>config.log
9857: {
9858: echo
9859: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9860: ## Running $as_me. ##
9861: _ASBOX
9862: $as_echo "$ac_log"
9863: } >&5
9864:
9865: _ACEOF
9866: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9867: #
9868: # INIT-COMMANDS
9869: #
9870: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9871:
9872: _ACEOF
9873:
9874: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9875:
9876: # Handling of arguments.
9877: for ac_config_target in $ac_config_targets
9878: do
9879: case $ac_config_target in
9880: "rplconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rplconfig.h" ;;
9881: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9882: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9883: "COPYING") CONFIG_FILES="$CONFIG_FILES COPYING" ;;
9884: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9885: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9886: "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
9887: "man/fr_FR/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr_FR/Makefile" ;;
9888: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9889: "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
9890: "scripts/mkrplso") CONFIG_FILES="$CONFIG_FILES scripts/mkrplso" ;;
9891: "scripts/rplcc") CONFIG_FILES="$CONFIG_FILES scripts/rplcc" ;;
9892: "scripts/rpllink") CONFIG_FILES="$CONFIG_FILES scripts/rpllink" ;;
9893: "rpltags/Makefile") CONFIG_FILES="$CONFIG_FILES rpltags/Makefile" ;;
9894: "rpliconv/Makefile") CONFIG_FILES="$CONFIG_FILES rpliconv/Makefile" ;;
9895: "lapack/lapack/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/lapack/Makefile" ;;
9896: "lapack/blas/Makefile") CONFIG_FILES="$CONFIG_FILES lapack/blas/Makefile" ;;
9897: "man/rpl.1") CONFIG_FILES="$CONFIG_FILES man/rpl.1" ;;
9898: "man/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/rplcc.1" ;;
9899: "man/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/rpllink.1" ;;
9900: "man/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/rpltags.1" ;;
9901: "man/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/mkrplso.1" ;;
9902: "man/fr_FR/rpl.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpl.1" ;;
9903: "man/fr_FR/rplcc.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rplcc.1" ;;
9904: "man/fr_FR/rpllink.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpllink.1" ;;
9905: "man/fr_FR/rpltags.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/rpltags.1" ;;
9906: "man/fr_FR/mkrplso.1") CONFIG_FILES="$CONFIG_FILES man/fr_FR/mkrplso.1" ;;
9907:
9908: *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9909: esac
9910: done
9911:
9912:
9913: # If the user did not use the arguments to specify the items to instantiate,
9914: # then the envvar interface is used. Set only those that are not.
9915: # We use the long form for the default assignment because of an extremely
9916: # bizarre bug on SunOS 4.1.3.
9917: if $ac_need_defaults; then
9918: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9919: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9920: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9921: fi
9922:
9923: # Have a temporary directory for convenience. Make it in the build tree
9924: # simply because there is no reason against having it here, and in addition,
9925: # creating and moving files from /tmp can sometimes cause problems.
9926: # Hook for its removal unless debugging.
9927: # Note that there is a small window in which the directory will not be cleaned:
9928: # after its creation but before its name has been assigned to `$tmp'.
9929: $debug ||
9930: {
9931: tmp=
9932: trap 'exit_status=$?
9933: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9934: ' 0
9935: trap 'as_fn_exit 1' 1 2 13 15
9936: }
9937: # Create a (secure) tmp directory for tmp files.
9938:
9939: {
9940: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9941: test -n "$tmp" && test -d "$tmp"
9942: } ||
9943: {
9944: tmp=./conf$$-$RANDOM
9945: (umask 077 && mkdir "$tmp")
9946: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
9947:
9948: # Set up the scripts for CONFIG_FILES section.
9949: # No need to generate them if there are no CONFIG_FILES.
9950: # This happens for instance with `./config.status config.h'.
9951: if test -n "$CONFIG_FILES"; then
9952:
9953:
9954: ac_cr=`echo X | tr X '\015'`
9955: # On cygwin, bash can eat \r inside `` if the user requested igncr.
9956: # But we know of no other shell where ac_cr would be empty at this
9957: # point, so we can use a bashism as a fallback.
9958: if test "x$ac_cr" = x; then
9959: eval ac_cr=\$\'\\r\'
9960: fi
9961: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9962: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9963: ac_cs_awk_cr='\r'
9964: else
9965: ac_cs_awk_cr=$ac_cr
9966: fi
9967:
9968: echo 'BEGIN {' >"$tmp/subs1.awk" &&
9969: _ACEOF
9970:
9971:
9972: {
9973: echo "cat >conf$$subs.awk <<_ACEOF" &&
9974: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9975: echo "_ACEOF"
9976: } >conf$$subs.sh ||
9977: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9978: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
9979: ac_delim='%!_!# '
9980: for ac_last_try in false false false false false :; do
9981: . ./conf$$subs.sh ||
9982: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9983:
9984: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9985: if test $ac_delim_n = $ac_delim_num; then
9986: break
9987: elif $ac_last_try; then
9988: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
9989: else
9990: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9991: fi
9992: done
9993: rm -f conf$$subs.sh
9994:
9995: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9996: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
9997: _ACEOF
9998: sed -n '
9999: h
10000: s/^/S["/; s/!.*/"]=/
10001: p
10002: g
10003: s/^[^!]*!//
10004: :repl
10005: t repl
10006: s/'"$ac_delim"'$//
10007: t delim
10008: :nl
10009: h
10010: s/\(.\{148\}\)..*/\1/
10011: t more1
10012: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10013: p
10014: n
10015: b repl
10016: :more1
10017: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10018: p
10019: g
10020: s/.\{148\}//
10021: t nl
10022: :delim
10023: h
10024: s/\(.\{148\}\)..*/\1/
10025: t more2
10026: s/["\\]/\\&/g; s/^/"/; s/$/"/
10027: p
10028: b
10029: :more2
10030: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10031: p
10032: g
10033: s/.\{148\}//
10034: t delim
10035: ' <conf$$subs.awk | sed '
10036: /^[^""]/{
10037: N
10038: s/\n//
10039: }
10040: ' >>$CONFIG_STATUS || ac_write_fail=1
10041: rm -f conf$$subs.awk
10042: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10043: _ACAWK
10044: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10045: for (key in S) S_is_set[key] = 1
10046: FS = ""
10047:
10048: }
10049: {
10050: line = $ 0
10051: nfields = split(line, field, "@")
10052: substed = 0
10053: len = length(field[1])
10054: for (i = 2; i < nfields; i++) {
10055: key = field[i]
10056: keylen = length(key)
10057: if (S_is_set[key]) {
10058: value = S[key]
10059: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10060: len += length(value) + length(field[++i])
10061: substed = 1
10062: } else
10063: len += 1 + keylen
10064: }
10065:
10066: print line
10067: }
10068:
10069: _ACAWK
10070: _ACEOF
10071: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10072: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10073: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10074: else
10075: cat
10076: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10077: || as_fn_error "could not setup config files machinery" "$LINENO" 5
10078: _ACEOF
10079:
10080: # VPATH may cause trouble with some makes, so we remove $(srcdir),
10081: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10082: # trailing colons and then remove the whole line if VPATH becomes empty
10083: # (actually we leave an empty line to preserve line numbers).
10084: if test "x$srcdir" = x.; then
10085: ac_vpsub='/^[ ]*VPATH[ ]*=/{
10086: s/:*\$(srcdir):*/:/
10087: s/:*\${srcdir}:*/:/
10088: s/:*@srcdir@:*/:/
10089: s/^\([^=]*=[ ]*\):*/\1/
10090: s/:*$//
10091: s/^[^=]*=[ ]*$//
10092: }'
10093: fi
10094:
10095: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10096: fi # test -n "$CONFIG_FILES"
10097:
10098: # Set up the scripts for CONFIG_HEADERS section.
10099: # No need to generate them if there are no CONFIG_HEADERS.
10100: # This happens for instance with `./config.status Makefile'.
10101: if test -n "$CONFIG_HEADERS"; then
10102: cat >"$tmp/defines.awk" <<\_ACAWK ||
10103: BEGIN {
10104: _ACEOF
10105:
10106: # Transform confdefs.h into an awk script `defines.awk', embedded as
10107: # here-document in config.status, that substitutes the proper values into
10108: # config.h.in to produce config.h.
10109:
10110: # Create a delimiter string that does not exist in confdefs.h, to ease
10111: # handling of long lines.
10112: ac_delim='%!_!# '
10113: for ac_last_try in false false :; do
10114: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10115: if test -z "$ac_t"; then
10116: break
10117: elif $ac_last_try; then
10118: as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
10119: else
10120: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10121: fi
10122: done
10123:
10124: # For the awk script, D is an array of macro values keyed by name,
10125: # likewise P contains macro parameters if any. Preserve backslash
10126: # newline sequences.
10127:
10128: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10129: sed -n '
10130: s/.\{148\}/&'"$ac_delim"'/g
10131: t rset
10132: :rset
10133: s/^[ ]*#[ ]*define[ ][ ]*/ /
10134: t def
10135: d
10136: :def
10137: s/\\$//
10138: t bsnl
10139: s/["\\]/\\&/g
10140: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10141: D["\1"]=" \3"/p
10142: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10143: d
10144: :bsnl
10145: s/["\\]/\\&/g
10146: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10147: D["\1"]=" \3\\\\\\n"\\/p
10148: t cont
10149: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10150: t cont
10151: d
10152: :cont
10153: n
10154: s/.\{148\}/&'"$ac_delim"'/g
10155: t clear
10156: :clear
10157: s/\\$//
10158: t bsnlc
10159: s/["\\]/\\&/g; s/^/"/; s/$/"/p
10160: d
10161: :bsnlc
10162: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10163: b cont
10164: ' <confdefs.h | sed '
10165: s/'"$ac_delim"'/"\\\
10166: "/g' >>$CONFIG_STATUS || ac_write_fail=1
10167:
10168: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10169: for (key in D) D_is_set[key] = 1
10170: FS = ""
10171: }
10172: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10173: line = \$ 0
10174: split(line, arg, " ")
10175: if (arg[1] == "#") {
10176: defundef = arg[2]
10177: mac1 = arg[3]
10178: } else {
10179: defundef = substr(arg[1], 2)
10180: mac1 = arg[2]
10181: }
10182: split(mac1, mac2, "(") #)
10183: macro = mac2[1]
10184: prefix = substr(line, 1, index(line, defundef) - 1)
10185: if (D_is_set[macro]) {
10186: # Preserve the white space surrounding the "#".
10187: print prefix "define", macro P[macro] D[macro]
10188: next
10189: } else {
10190: # Replace #undef with comments. This is necessary, for example,
10191: # in the case of _POSIX_SOURCE, which is predefined and required
10192: # on some systems where configure will not decide to define it.
10193: if (defundef == "undef") {
10194: print "/*", prefix defundef, macro, "*/"
10195: next
10196: }
10197: }
10198: }
10199: { print }
10200: _ACAWK
10201: _ACEOF
10202: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10203: as_fn_error "could not setup config headers machinery" "$LINENO" 5
10204: fi # test -n "$CONFIG_HEADERS"
10205:
10206:
10207: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
10208: shift
10209: for ac_tag
10210: do
10211: case $ac_tag in
10212: :[FHLC]) ac_mode=$ac_tag; continue;;
10213: esac
10214: case $ac_mode$ac_tag in
10215: :[FHL]*:*);;
10216: :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
10217: :[FH]-) ac_tag=-:-;;
10218: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10219: esac
10220: ac_save_IFS=$IFS
10221: IFS=:
10222: set x $ac_tag
10223: IFS=$ac_save_IFS
10224: shift
10225: ac_file=$1
10226: shift
10227:
10228: case $ac_mode in
10229: :L) ac_source=$1;;
10230: :[FH])
10231: ac_file_inputs=
10232: for ac_f
10233: do
10234: case $ac_f in
10235: -) ac_f="$tmp/stdin";;
10236: *) # Look for the file first in the build tree, then in the source tree
10237: # (if the path is not absolute). The absolute path cannot be DOS-style,
10238: # because $ac_f cannot contain `:'.
10239: test -f "$ac_f" ||
10240: case $ac_f in
10241: [\\/$]*) false;;
10242: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10243: esac ||
10244: as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10245: esac
10246: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10247: as_fn_append ac_file_inputs " '$ac_f'"
10248: done
10249:
10250: # Let's still pretend it is `configure' which instantiates (i.e., don't
10251: # use $as_me), people would be surprised to read:
10252: # /* config.h. Generated by config.status. */
10253: configure_input='Generated from '`
10254: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10255: `' by configure.'
10256: if test x"$ac_file" != x-; then
10257: configure_input="$ac_file. $configure_input"
10258: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10259: $as_echo "$as_me: creating $ac_file" >&6;}
10260: fi
10261: # Neutralize special characters interpreted by sed in replacement strings.
10262: case $configure_input in #(
10263: *\&* | *\|* | *\\* )
10264: ac_sed_conf_input=`$as_echo "$configure_input" |
10265: sed 's/[\\\\&|]/\\\\&/g'`;; #(
10266: *) ac_sed_conf_input=$configure_input;;
10267: esac
10268:
10269: case $ac_tag in
10270: *:-:* | *:-) cat >"$tmp/stdin" \
10271: || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
10272: esac
10273: ;;
10274: esac
10275:
10276: ac_dir=`$as_dirname -- "$ac_file" ||
10277: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10278: X"$ac_file" : 'X\(//\)[^/]' \| \
10279: X"$ac_file" : 'X\(//\)$' \| \
10280: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10281: $as_echo X"$ac_file" |
10282: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10283: s//\1/
10284: q
10285: }
10286: /^X\(\/\/\)[^/].*/{
10287: s//\1/
10288: q
10289: }
10290: /^X\(\/\/\)$/{
10291: s//\1/
10292: q
10293: }
10294: /^X\(\/\).*/{
10295: s//\1/
10296: q
10297: }
10298: s/.*/./; q'`
10299: as_dir="$ac_dir"; as_fn_mkdir_p
10300: ac_builddir=.
10301:
10302: case "$ac_dir" in
10303: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10304: *)
10305: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10306: # A ".." for each directory in $ac_dir_suffix.
10307: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10308: case $ac_top_builddir_sub in
10309: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10310: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10311: esac ;;
10312: esac
10313: ac_abs_top_builddir=$ac_pwd
10314: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10315: # for backward compatibility:
10316: ac_top_builddir=$ac_top_build_prefix
10317:
10318: case $srcdir in
10319: .) # We are building in place.
10320: ac_srcdir=.
10321: ac_top_srcdir=$ac_top_builddir_sub
10322: ac_abs_top_srcdir=$ac_pwd ;;
10323: [\\/]* | ?:[\\/]* ) # Absolute name.
10324: ac_srcdir=$srcdir$ac_dir_suffix;
10325: ac_top_srcdir=$srcdir
10326: ac_abs_top_srcdir=$srcdir ;;
10327: *) # Relative name.
10328: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10329: ac_top_srcdir=$ac_top_build_prefix$srcdir
10330: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10331: esac
10332: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10333:
10334:
10335: case $ac_mode in
10336: :F)
10337: #
10338: # CONFIG_FILE
10339: #
10340:
10341: case $INSTALL in
10342: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10343: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10344: esac
10345: ac_MKDIR_P=$MKDIR_P
10346: case $MKDIR_P in
10347: [\\/$]* | ?:[\\/]* ) ;;
10348: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
10349: esac
10350: _ACEOF
10351:
10352: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10353: # If the template does not know about datarootdir, expand it.
10354: # FIXME: This hack should be removed a few years after 2.60.
10355: ac_datarootdir_hack=; ac_datarootdir_seen=
10356: ac_sed_dataroot='
10357: /datarootdir/ {
10358: p
10359: q
10360: }
10361: /@datadir@/p
10362: /@docdir@/p
10363: /@infodir@/p
10364: /@localedir@/p
10365: /@mandir@/p'
10366: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10367: *datarootdir*) ac_datarootdir_seen=yes;;
10368: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10369: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10370: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10371: _ACEOF
10372: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10373: ac_datarootdir_hack='
10374: s&@datadir@&$datadir&g
10375: s&@docdir@&$docdir&g
10376: s&@infodir@&$infodir&g
10377: s&@localedir@&$localedir&g
10378: s&@mandir@&$mandir&g
10379: s&\\\${datarootdir}&$datarootdir&g' ;;
10380: esac
10381: _ACEOF
10382:
10383: # Neutralize VPATH when `$srcdir' = `.'.
10384: # Shell code in configure.ac might set extrasub.
10385: # FIXME: do we really want to maintain this feature?
10386: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10387: ac_sed_extra="$ac_vpsub
10388: $extrasub
10389: _ACEOF
10390: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10391: :t
10392: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10393: s|@configure_input@|$ac_sed_conf_input|;t t
10394: s&@top_builddir@&$ac_top_builddir_sub&;t t
10395: s&@top_build_prefix@&$ac_top_build_prefix&;t t
10396: s&@srcdir@&$ac_srcdir&;t t
10397: s&@abs_srcdir@&$ac_abs_srcdir&;t t
10398: s&@top_srcdir@&$ac_top_srcdir&;t t
10399: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10400: s&@builddir@&$ac_builddir&;t t
10401: s&@abs_builddir@&$ac_abs_builddir&;t t
10402: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10403: s&@INSTALL@&$ac_INSTALL&;t t
10404: s&@MKDIR_P@&$ac_MKDIR_P&;t t
10405: $ac_datarootdir_hack
10406: "
10407: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
10408: || as_fn_error "could not create $ac_file" "$LINENO" 5
10409:
10410: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10411: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10412: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10413: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10414: which seems to be undefined. Please make sure it is defined." >&5
10415: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10416: which seems to be undefined. Please make sure it is defined." >&2;}
10417:
10418: rm -f "$tmp/stdin"
10419: case $ac_file in
10420: -) cat "$tmp/out" && rm -f "$tmp/out";;
10421: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
10422: esac \
10423: || as_fn_error "could not create $ac_file" "$LINENO" 5
10424: ;;
10425: :H)
10426: #
10427: # CONFIG_HEADER
10428: #
10429: if test x"$ac_file" != x-; then
10430: {
10431: $as_echo "/* $configure_input */" \
10432: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
10433: } >"$tmp/config.h" \
10434: || as_fn_error "could not create $ac_file" "$LINENO" 5
10435: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
10436: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10437: $as_echo "$as_me: $ac_file is unchanged" >&6;}
10438: else
10439: rm -f "$ac_file"
10440: mv "$tmp/config.h" "$ac_file" \
10441: || as_fn_error "could not create $ac_file" "$LINENO" 5
10442: fi
10443: else
10444: $as_echo "/* $configure_input */" \
10445: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
10446: || as_fn_error "could not create -" "$LINENO" 5
10447: fi
10448: # Compute "$ac_file"'s index in $config_headers.
10449: _am_arg="$ac_file"
10450: _am_stamp_count=1
10451: for _am_header in $config_headers :; do
10452: case $_am_header in
10453: $_am_arg | $_am_arg:* )
10454: break ;;
10455: * )
10456: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10457: esac
10458: done
10459: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10460: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10461: X"$_am_arg" : 'X\(//\)[^/]' \| \
10462: X"$_am_arg" : 'X\(//\)$' \| \
10463: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10464: $as_echo X"$_am_arg" |
10465: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10466: s//\1/
10467: q
10468: }
10469: /^X\(\/\/\)[^/].*/{
10470: s//\1/
10471: q
10472: }
10473: /^X\(\/\/\)$/{
10474: s//\1/
10475: q
10476: }
10477: /^X\(\/\).*/{
10478: s//\1/
10479: q
10480: }
10481: s/.*/./; q'`/stamp-h$_am_stamp_count
10482: ;;
10483:
10484: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10485: $as_echo "$as_me: executing $ac_file commands" >&6;}
10486: ;;
10487: esac
10488:
10489:
10490: case $ac_file$ac_mode in
10491: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10492: # Autoconf 2.62 quotes --file arguments for eval, but not when files
10493: # are listed without --file. Let's play safe and only enable the eval
10494: # if we detect the quoting.
10495: case $CONFIG_FILES in
10496: *\'*) eval set x "$CONFIG_FILES" ;;
10497: *) set x $CONFIG_FILES ;;
10498: esac
10499: shift
10500: for mf
10501: do
10502: # Strip MF so we end up with the name of the file.
10503: mf=`echo "$mf" | sed -e 's/:.*$//'`
10504: # Check whether this is an Automake generated Makefile or not.
10505: # We used to match only the files named `Makefile.in', but
10506: # some people rename them; so instead we look at the file content.
10507: # Grep'ing the first line is not enough: some people post-process
10508: # each Makefile.in and add a new line on top of each file to say so.
10509: # Grep'ing the whole file is not good either: AIX grep has a line
10510: # limit of 2048, but all sed's we know have understand at least 4000.
10511: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10512: dirpart=`$as_dirname -- "$mf" ||
10513: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10514: X"$mf" : 'X\(//\)[^/]' \| \
10515: X"$mf" : 'X\(//\)$' \| \
10516: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10517: $as_echo X"$mf" |
10518: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10519: s//\1/
10520: q
10521: }
10522: /^X\(\/\/\)[^/].*/{
10523: s//\1/
10524: q
10525: }
10526: /^X\(\/\/\)$/{
10527: s//\1/
10528: q
10529: }
10530: /^X\(\/\).*/{
10531: s//\1/
10532: q
10533: }
10534: s/.*/./; q'`
10535: else
10536: continue
10537: fi
10538: # Extract the definition of DEPDIR, am__include, and am__quote
10539: # from the Makefile without running `make'.
10540: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10541: test -z "$DEPDIR" && continue
10542: am__include=`sed -n 's/^am__include = //p' < "$mf"`
10543: test -z "am__include" && continue
10544: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10545: # When using ansi2knr, U may be empty or an underscore; expand it
10546: U=`sed -n 's/^U = //p' < "$mf"`
10547: # Find all dependency output files, they are included files with
10548: # $(DEPDIR) in their names. We invoke sed twice because it is the
10549: # simplest approach to changing $(DEPDIR) to its actual value in the
10550: # expansion.
10551: for file in `sed -n "
10552: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10553: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10554: # Make sure the directory exists.
10555: test -f "$dirpart/$file" && continue
10556: fdir=`$as_dirname -- "$file" ||
10557: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10558: X"$file" : 'X\(//\)[^/]' \| \
10559: X"$file" : 'X\(//\)$' \| \
10560: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10561: $as_echo X"$file" |
10562: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10563: s//\1/
10564: q
10565: }
10566: /^X\(\/\/\)[^/].*/{
10567: s//\1/
10568: q
10569: }
10570: /^X\(\/\/\)$/{
10571: s//\1/
10572: q
10573: }
10574: /^X\(\/\).*/{
10575: s//\1/
10576: q
10577: }
10578: s/.*/./; q'`
10579: as_dir=$dirpart/$fdir; as_fn_mkdir_p
10580: # echo "creating $dirpart/$file"
10581: echo '# dummy' > "$dirpart/$file"
10582: done
10583: done
10584: }
10585: ;;
10586:
10587: esac
10588: done # for ac_tag
10589:
10590:
10591: as_fn_exit 0
10592: _ACEOF
10593: ac_clean_files=$ac_clean_files_save
10594:
10595: test $ac_write_fail = 0 ||
10596: as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
10597:
10598:
10599: # configure is writing to config.log, and then calls config.status.
10600: # config.status does its own redirection, appending to config.log.
10601: # Unfortunately, on DOS this fails, as config.log is still kept open
10602: # by configure, so config.status won't be able to write to it; its
10603: # output is simply discarded. So we exec the FD to /dev/null,
10604: # effectively closing config.log, so it can be properly (re)opened and
10605: # appended to by config.status. When coming back to configure, we
10606: # need to make the FD available again.
10607: if test "$no_create" != yes; then
10608: ac_cs_success=:
10609: ac_config_status_args=
10610: test "$silent" = yes &&
10611: ac_config_status_args="$ac_config_status_args --quiet"
10612: exec 5>/dev/null
10613: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10614: exec 5>>config.log
10615: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10616: # would make configure fail if this is the last instruction.
10617: $ac_cs_success || as_fn_exit $?
10618: fi
10619:
10620: #
10621: # CONFIG_SUBDIRS section.
10622: #
10623: if test "$no_recursion" != yes; then
10624:
10625: # Remove --cache-file, --srcdir, and --disable-option-checking arguments
10626: # so they do not pile up.
10627: ac_sub_configure_args=
10628: ac_prev=
10629: eval "set x $ac_configure_args"
10630: shift
10631: for ac_arg
10632: do
10633: if test -n "$ac_prev"; then
10634: ac_prev=
10635: continue
10636: fi
10637: case $ac_arg in
10638: -cache-file | --cache-file | --cache-fil | --cache-fi \
10639: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
10640: ac_prev=cache_file ;;
10641: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
10642: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
10643: | --c=*)
10644: ;;
10645: --config-cache | -C)
10646: ;;
10647: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
10648: ac_prev=srcdir ;;
10649: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
10650: ;;
10651: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
10652: ac_prev=prefix ;;
10653: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
10654: ;;
10655: --disable-option-checking)
10656: ;;
10657: *)
10658: case $ac_arg in
10659: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10660: esac
10661: as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
10662: esac
10663: done
10664:
10665: # Always prepend --prefix to ensure using the same prefix
10666: # in subdir configurations.
10667: ac_arg="--prefix=$prefix"
10668: case $ac_arg in
10669: *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10670: esac
10671: ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
10672:
10673: # Pass --silent
10674: if test "$silent" = yes; then
10675: ac_sub_configure_args="--silent $ac_sub_configure_args"
10676: fi
10677:
10678: # Always prepend --disable-option-checking to silence warnings, since
10679: # different subdirs can have different --enable and --with options.
10680: ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
10681:
10682: ac_popdir=`pwd`
10683: for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
10684:
10685: # Do not complain, so a configure script can configure whichever
10686: # parts of a large source tree are present.
10687: test -d "$srcdir/$ac_dir" || continue
10688:
10689: ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
10690: $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
10691: $as_echo "$ac_msg" >&6
10692: as_dir="$ac_dir"; as_fn_mkdir_p
10693: ac_builddir=.
10694:
10695: case "$ac_dir" in
10696: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10697: *)
10698: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10699: # A ".." for each directory in $ac_dir_suffix.
10700: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10701: case $ac_top_builddir_sub in
10702: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10703: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10704: esac ;;
10705: esac
10706: ac_abs_top_builddir=$ac_pwd
10707: ac_abs_builddir=$ac_pwd$ac_dir_suffix
10708: # for backward compatibility:
10709: ac_top_builddir=$ac_top_build_prefix
10710:
10711: case $srcdir in
10712: .) # We are building in place.
10713: ac_srcdir=.
10714: ac_top_srcdir=$ac_top_builddir_sub
10715: ac_abs_top_srcdir=$ac_pwd ;;
10716: [\\/]* | ?:[\\/]* ) # Absolute name.
10717: ac_srcdir=$srcdir$ac_dir_suffix;
10718: ac_top_srcdir=$srcdir
10719: ac_abs_top_srcdir=$srcdir ;;
10720: *) # Relative name.
10721: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10722: ac_top_srcdir=$ac_top_build_prefix$srcdir
10723: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10724: esac
10725: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10726:
10727:
10728: cd "$ac_dir"
10729:
10730: # Check for guested configure; otherwise get Cygnus style configure.
10731: if test -f "$ac_srcdir/configure.gnu"; then
10732: ac_sub_configure=$ac_srcdir/configure.gnu
10733: elif test -f "$ac_srcdir/configure"; then
10734: ac_sub_configure=$ac_srcdir/configure
10735: elif test -f "$ac_srcdir/configure.in"; then
10736: # This should be Cygnus configure.
10737: ac_sub_configure=$ac_aux_dir/configure
10738: else
10739: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
10740: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
10741: ac_sub_configure=
10742: fi
10743:
10744: # The recursion is here.
10745: if test -n "$ac_sub_configure"; then
10746: # Make the cache file name correct relative to the subdirectory.
10747: case $cache_file in
10748: [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
10749: *) # Relative name.
10750: ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
10751: esac
10752:
10753: { $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
10754: $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
10755: # The eval makes quoting arguments work.
10756: eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
10757: --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
10758: as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
10759: fi
10760:
10761: cd "$ac_popdir"
10762: done
10763: fi
10764: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10765: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10766: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
10767: fi
10768:
CVSweb interface <joel.bertrand@systella.fr>