Annotation of OpenXM/src/ox_ntl/configure, Revision 1.3
1.1 iwane 1: #! /bin/sh
1.3 ! iwane 2: # From configure.in OpenXM: OpenXM/src/ox_ntl/configure.in.
1.1 iwane 3: # Guess values for system-dependent variables and create Makefiles.
4: # Generated by GNU Autoconf 2.53.
5: #
6: # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7: # Free Software Foundation, Inc.
8: # This configure script is free software; the Free Software Foundation
9: # gives unlimited permission to copy, distribute and modify it.
10:
11: if expr a : '\(a\)' >/dev/null 2>&1; then
12: as_expr=expr
13: else
14: as_expr=false
15: fi
16:
17:
18: ## --------------------- ##
19: ## M4sh Initialization. ##
20: ## --------------------- ##
21:
22: # Be Bourne compatible
23: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24: emulate sh
25: NULLCMD=:
26: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27: set -o posix
28: fi
29:
30: # NLS nuisances.
31: # Support unset when possible.
32: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33: as_unset=unset
34: else
35: as_unset=false
36: fi
37:
38: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
39: { $as_unset LANG || test "${LANG+set}" != set; } ||
40: { LANG=C; export LANG; }
41: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
42: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
43: { LC_ALL=C; export LC_ALL; }
44: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
45: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
46: { LC_TIME=C; export LC_TIME; }
47: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
48: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
49: { LC_CTYPE=C; export LC_CTYPE; }
50: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
51: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
52: { LANGUAGE=C; export LANGUAGE; }
53: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
54: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
55: { LC_COLLATE=C; export LC_COLLATE; }
56: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
57: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
58: { LC_NUMERIC=C; export LC_NUMERIC; }
59: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
60: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
61: { LC_MESSAGES=C; export LC_MESSAGES; }
62:
63:
64: # Name of the executable.
65: as_me=`(basename "$0") 2>/dev/null ||
66: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
67: X"$0" : 'X\(//\)$' \| \
68: X"$0" : 'X\(/\)$' \| \
69: . : '\(.\)' 2>/dev/null ||
70: echo X/"$0" |
71: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
72: /^X\/\(\/\/\)$/{ s//\1/; q; }
73: /^X\/\(\/\).*/{ s//\1/; q; }
74: s/.*/./; q'`
75:
76: # PATH needs CR, and LINENO needs CR and PATH.
77: # Avoid depending upon Character Ranges.
78: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
79: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
80: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
81: as_cr_digits='0123456789'
82: as_cr_alnum=$as_cr_Letters$as_cr_digits
83:
84: # The user is always right.
85: if test "${PATH_SEPARATOR+set}" != set; then
86: echo "#! /bin/sh" >conftest.sh
87: echo "exit 0" >>conftest.sh
88: chmod +x conftest.sh
89: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
90: PATH_SEPARATOR=';'
91: else
92: PATH_SEPARATOR=:
93: fi
94: rm -f conftest.sh
95: fi
96:
97:
98: as_lineno_1=$LINENO
99: as_lineno_2=$LINENO
100: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
101: test "x$as_lineno_1" != "x$as_lineno_2" &&
102: test "x$as_lineno_3" = "x$as_lineno_2" || {
103: # Find who we are. Look in the path if we contain no path at all
104: # relative or not.
105: case $0 in
106: *[\\/]* ) as_myself=$0 ;;
107: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
108: for as_dir in $PATH
109: do
110: IFS=$as_save_IFS
111: test -z "$as_dir" && as_dir=.
112: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
113: done
114:
115: ;;
116: esac
117: # We did not find ourselves, most probably we were run as `sh COMMAND'
118: # in which case we are not to be found in the path.
119: if test "x$as_myself" = x; then
120: as_myself=$0
121: fi
122: if test ! -f "$as_myself"; then
123: { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
124: { (exit 1); exit 1; }; }
125: fi
126: case $CONFIG_SHELL in
127: '')
128: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
129: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
130: do
131: IFS=$as_save_IFS
132: test -z "$as_dir" && as_dir=.
133: for as_base in sh bash ksh sh5; do
134: case $as_dir in
135: /*)
136: if ("$as_dir/$as_base" -c '
137: as_lineno_1=$LINENO
138: as_lineno_2=$LINENO
139: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
140: test "x$as_lineno_1" != "x$as_lineno_2" &&
141: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
142: CONFIG_SHELL=$as_dir/$as_base
143: export CONFIG_SHELL
144: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
145: fi;;
146: esac
147: done
148: done
149: ;;
150: esac
151:
152: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
153: # uniformly replaced by the line number. The first 'sed' inserts a
154: # line-number line before each line; the second 'sed' does the real
155: # work. The second script uses 'N' to pair each line-number line
156: # with the numbered line, and appends trailing '-' during
157: # substitution so that $LINENO is not a special case at line end.
158: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
159: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
160: sed '=' <$as_myself |
161: sed '
162: N
163: s,$,-,
164: : loop
165: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
166: t loop
167: s,-$,,
168: s,^['$as_cr_digits']*\n,,
169: ' >$as_me.lineno &&
170: chmod +x $as_me.lineno ||
171: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
172: { (exit 1); exit 1; }; }
173:
174: # Don't try to exec as it changes $[0], causing all sort of problems
175: # (the dirname of $[0] is not the place where we might find the
176: # original and so on. Autoconf is especially sensible to this).
177: . ./$as_me.lineno
178: # Exit status is that of the last command.
179: exit
180: }
181:
182:
183: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
184: *c*,-n*) ECHO_N= ECHO_C='
185: ' ECHO_T=' ' ;;
186: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
187: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
188: esac
189:
190: if expr a : '\(a\)' >/dev/null 2>&1; then
191: as_expr=expr
192: else
193: as_expr=false
194: fi
195:
196: rm -f conf$$ conf$$.exe conf$$.file
197: echo >conf$$.file
198: if ln -s conf$$.file conf$$ 2>/dev/null; then
199: # We could just check for DJGPP; but this test a) works b) is more generic
200: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201: if test -f conf$$.exe; then
202: # Don't use ln at all; we don't have any links
203: as_ln_s='cp -p'
204: else
205: as_ln_s='ln -s'
206: fi
207: elif ln conf$$.file conf$$ 2>/dev/null; then
208: as_ln_s=ln
209: else
210: as_ln_s='cp -p'
211: fi
212: rm -f conf$$ conf$$.exe conf$$.file
213:
214: as_executable_p="test -f"
215:
216: # Sed expression to map a string onto a valid CPP name.
217: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218:
219: # Sed expression to map a string onto a valid variable name.
220: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
221:
222:
223: # IFS
224: # We need space, tab and new line, in precisely that order.
225: as_nl='
226: '
227: IFS=" $as_nl"
228:
229: # CDPATH.
230: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
231:
232:
233: # Name of the host.
234: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
235: # so uname gets run too.
236: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
237:
238: exec 6>&1
239:
240: #
241: # Initializations.
242: #
243: ac_default_prefix=/usr/local
244: cross_compiling=no
245: subdirs=
246: MFLAGS=
247: MAKEFLAGS=
248: SHELL=${CONFIG_SHELL-/bin/sh}
249:
250: # Maximum number of lines to put in a shell here document.
251: # This variable seems obsolete. It should probably be removed, and
252: # only ac_max_sed_lines should be used.
253: : ${ac_max_here_lines=38}
254:
255: # Identity of this package.
256: PACKAGE_NAME=
257: PACKAGE_TARNAME=
258: PACKAGE_VERSION=
259: PACKAGE_STRING=
260: PACKAGE_BUGREPORT=
261:
262: ac_unique_file="main.cpp"
263:
264: # Initialize some variables set by options.
265: ac_init_help=
266: ac_init_version=false
267: # The variables have the same names as the options, with
268: # dashes changed to underlines.
269: cache_file=/dev/null
270: exec_prefix=NONE
271: no_create=
272: no_recursion=
273: prefix=NONE
274: program_prefix=NONE
275: program_suffix=NONE
276: program_transform_name=s,x,x,
277: silent=
278: site=
279: srcdir=
280: verbose=
281: x_includes=NONE
282: x_libraries=NONE
283:
284: # Installation directory options.
285: # These are left unexpanded so users can "make install exec_prefix=/foo"
286: # and all the variables that are supposed to be based on exec_prefix
287: # by default will actually change.
288: # Use braces instead of parens because sh, perl, etc. also accept them.
289: bindir='${exec_prefix}/bin'
290: sbindir='${exec_prefix}/sbin'
291: libexecdir='${exec_prefix}/libexec'
292: datadir='${prefix}/share'
293: sysconfdir='${prefix}/etc'
294: sharedstatedir='${prefix}/com'
295: localstatedir='${prefix}/var'
296: libdir='${exec_prefix}/lib'
297: includedir='${prefix}/include'
298: oldincludedir='/usr/include'
299: infodir='${prefix}/info'
300: mandir='${prefix}/man'
301:
302: ac_prev=
303: for ac_option
304: do
305: # If the previous option needs an argument, assign it.
306: if test -n "$ac_prev"; then
307: eval "$ac_prev=\$ac_option"
308: ac_prev=
309: continue
310: fi
311:
312: ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
313:
314: # Accept the important Cygnus configure options, so we can diagnose typos.
315:
316: case $ac_option in
317:
318: -bindir | --bindir | --bindi | --bind | --bin | --bi)
319: ac_prev=bindir ;;
320: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
321: bindir=$ac_optarg ;;
322:
323: -build | --build | --buil | --bui | --bu)
324: ac_prev=build_alias ;;
325: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
326: build_alias=$ac_optarg ;;
327:
328: -cache-file | --cache-file | --cache-fil | --cache-fi \
329: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
330: ac_prev=cache_file ;;
331: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
332: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
333: cache_file=$ac_optarg ;;
334:
335: --config-cache | -C)
336: cache_file=config.cache ;;
337:
338: -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
339: ac_prev=datadir ;;
340: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
341: | --da=*)
342: datadir=$ac_optarg ;;
343:
344: -disable-* | --disable-*)
345: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
346: # Reject names that are not valid shell variable names.
347: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
348: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
349: { (exit 1); exit 1; }; }
350: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
351: eval "enable_$ac_feature=no" ;;
352:
353: -enable-* | --enable-*)
354: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
355: # Reject names that are not valid shell variable names.
356: expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
357: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
358: { (exit 1); exit 1; }; }
359: ac_feature=`echo $ac_feature | sed 's/-/_/g'`
360: case $ac_option in
361: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
362: *) ac_optarg=yes ;;
363: esac
364: eval "enable_$ac_feature='$ac_optarg'" ;;
365:
366: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
367: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
368: | --exec | --exe | --ex)
369: ac_prev=exec_prefix ;;
370: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
371: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
372: | --exec=* | --exe=* | --ex=*)
373: exec_prefix=$ac_optarg ;;
374:
375: -gas | --gas | --ga | --g)
376: # Obsolete; use --with-gas.
377: with_gas=yes ;;
378:
379: -help | --help | --hel | --he | -h)
380: ac_init_help=long ;;
381: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
382: ac_init_help=recursive ;;
383: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
384: ac_init_help=short ;;
385:
386: -host | --host | --hos | --ho)
387: ac_prev=host_alias ;;
388: -host=* | --host=* | --hos=* | --ho=*)
389: host_alias=$ac_optarg ;;
390:
391: -includedir | --includedir | --includedi | --included | --include \
392: | --includ | --inclu | --incl | --inc)
393: ac_prev=includedir ;;
394: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
395: | --includ=* | --inclu=* | --incl=* | --inc=*)
396: includedir=$ac_optarg ;;
397:
398: -infodir | --infodir | --infodi | --infod | --info | --inf)
399: ac_prev=infodir ;;
400: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
401: infodir=$ac_optarg ;;
402:
403: -libdir | --libdir | --libdi | --libd)
404: ac_prev=libdir ;;
405: -libdir=* | --libdir=* | --libdi=* | --libd=*)
406: libdir=$ac_optarg ;;
407:
408: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
409: | --libexe | --libex | --libe)
410: ac_prev=libexecdir ;;
411: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
412: | --libexe=* | --libex=* | --libe=*)
413: libexecdir=$ac_optarg ;;
414:
415: -localstatedir | --localstatedir | --localstatedi | --localstated \
416: | --localstate | --localstat | --localsta | --localst \
417: | --locals | --local | --loca | --loc | --lo)
418: ac_prev=localstatedir ;;
419: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
420: | --localstate=* | --localstat=* | --localsta=* | --localst=* \
421: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
422: localstatedir=$ac_optarg ;;
423:
424: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
425: ac_prev=mandir ;;
426: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
427: mandir=$ac_optarg ;;
428:
429: -nfp | --nfp | --nf)
430: # Obsolete; use --without-fp.
431: with_fp=no ;;
432:
433: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434: | --no-cr | --no-c | -n)
435: no_create=yes ;;
436:
437: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
439: no_recursion=yes ;;
440:
441: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
442: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
443: | --oldin | --oldi | --old | --ol | --o)
444: ac_prev=oldincludedir ;;
445: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
446: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
447: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
448: oldincludedir=$ac_optarg ;;
449:
450: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
451: ac_prev=prefix ;;
452: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
453: prefix=$ac_optarg ;;
454:
455: -program-prefix | --program-prefix | --program-prefi | --program-pref \
456: | --program-pre | --program-pr | --program-p)
457: ac_prev=program_prefix ;;
458: -program-prefix=* | --program-prefix=* | --program-prefi=* \
459: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
460: program_prefix=$ac_optarg ;;
461:
462: -program-suffix | --program-suffix | --program-suffi | --program-suff \
463: | --program-suf | --program-su | --program-s)
464: ac_prev=program_suffix ;;
465: -program-suffix=* | --program-suffix=* | --program-suffi=* \
466: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
467: program_suffix=$ac_optarg ;;
468:
469: -program-transform-name | --program-transform-name \
470: | --program-transform-nam | --program-transform-na \
471: | --program-transform-n | --program-transform- \
472: | --program-transform | --program-transfor \
473: | --program-transfo | --program-transf \
474: | --program-trans | --program-tran \
475: | --progr-tra | --program-tr | --program-t)
476: ac_prev=program_transform_name ;;
477: -program-transform-name=* | --program-transform-name=* \
478: | --program-transform-nam=* | --program-transform-na=* \
479: | --program-transform-n=* | --program-transform-=* \
480: | --program-transform=* | --program-transfor=* \
481: | --program-transfo=* | --program-transf=* \
482: | --program-trans=* | --program-tran=* \
483: | --progr-tra=* | --program-tr=* | --program-t=*)
484: program_transform_name=$ac_optarg ;;
485:
486: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
487: | -silent | --silent | --silen | --sile | --sil)
488: silent=yes ;;
489:
490: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
491: ac_prev=sbindir ;;
492: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
493: | --sbi=* | --sb=*)
494: sbindir=$ac_optarg ;;
495:
496: -sharedstatedir | --sharedstatedir | --sharedstatedi \
497: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
498: | --sharedst | --shareds | --shared | --share | --shar \
499: | --sha | --sh)
500: ac_prev=sharedstatedir ;;
501: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
502: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
503: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
504: | --sha=* | --sh=*)
505: sharedstatedir=$ac_optarg ;;
506:
507: -site | --site | --sit)
508: ac_prev=site ;;
509: -site=* | --site=* | --sit=*)
510: site=$ac_optarg ;;
511:
512: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
513: ac_prev=srcdir ;;
514: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
515: srcdir=$ac_optarg ;;
516:
517: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
518: | --syscon | --sysco | --sysc | --sys | --sy)
519: ac_prev=sysconfdir ;;
520: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
521: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
522: sysconfdir=$ac_optarg ;;
523:
524: -target | --target | --targe | --targ | --tar | --ta | --t)
525: ac_prev=target_alias ;;
526: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
527: target_alias=$ac_optarg ;;
528:
529: -v | -verbose | --verbose | --verbos | --verbo | --verb)
530: verbose=yes ;;
531:
532: -version | --version | --versio | --versi | --vers | -V)
533: ac_init_version=: ;;
534:
535: -with-* | --with-*)
536: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
537: # Reject names that are not valid shell variable names.
538: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
539: { echo "$as_me: error: invalid package name: $ac_package" >&2
540: { (exit 1); exit 1; }; }
541: ac_package=`echo $ac_package| sed 's/-/_/g'`
542: case $ac_option in
543: *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
544: *) ac_optarg=yes ;;
545: esac
546: eval "with_$ac_package='$ac_optarg'" ;;
547:
548: -without-* | --without-*)
549: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
550: # Reject names that are not valid shell variable names.
551: expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552: { echo "$as_me: error: invalid package name: $ac_package" >&2
553: { (exit 1); exit 1; }; }
554: ac_package=`echo $ac_package | sed 's/-/_/g'`
555: eval "with_$ac_package=no" ;;
556:
557: --x)
558: # Obsolete; use --with-x.
559: with_x=yes ;;
560:
561: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
562: | --x-incl | --x-inc | --x-in | --x-i)
563: ac_prev=x_includes ;;
564: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
565: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
566: x_includes=$ac_optarg ;;
567:
568: -x-libraries | --x-libraries | --x-librarie | --x-librari \
569: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
570: ac_prev=x_libraries ;;
571: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
572: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
573: x_libraries=$ac_optarg ;;
574:
575: -*) { echo "$as_me: error: unrecognized option: $ac_option
576: Try \`$0 --help' for more information." >&2
577: { (exit 1); exit 1; }; }
578: ;;
579:
580: *=*)
581: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
582: # Reject names that are not valid shell variable names.
583: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
584: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
585: { (exit 1); exit 1; }; }
586: ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
587: eval "$ac_envvar='$ac_optarg'"
588: export $ac_envvar ;;
589:
590: *)
591: # FIXME: should be removed in autoconf 3.0.
592: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
593: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
594: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
595: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
596: ;;
597:
598: esac
599: done
600:
601: if test -n "$ac_prev"; then
602: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
603: { echo "$as_me: error: missing argument to $ac_option" >&2
604: { (exit 1); exit 1; }; }
605: fi
606:
607: # Be sure to have absolute paths.
608: for ac_var in exec_prefix prefix
609: do
610: eval ac_val=$`echo $ac_var`
611: case $ac_val in
612: [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
613: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
614: { (exit 1); exit 1; }; };;
615: esac
616: done
617:
618: # Be sure to have absolute paths.
619: for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
620: localstatedir libdir includedir oldincludedir infodir mandir
621: do
622: eval ac_val=$`echo $ac_var`
623: case $ac_val in
624: [\\/$]* | ?:[\\/]* ) ;;
625: *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
626: { (exit 1); exit 1; }; };;
627: esac
628: done
629:
630: # There might be people who depend on the old broken behavior: `$host'
631: # used to hold the argument of --host etc.
632: # FIXME: To remove some day.
633: build=$build_alias
634: host=$host_alias
635: target=$target_alias
636:
637: # FIXME: To remove some day.
638: if test "x$host_alias" != x; then
639: if test "x$build_alias" = x; then
640: cross_compiling=maybe
641: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
642: If a cross compiler is detected then cross compile mode will be used." >&2
643: elif test "x$build_alias" != "x$host_alias"; then
644: cross_compiling=yes
645: fi
646: fi
647:
648: ac_tool_prefix=
649: test -n "$host_alias" && ac_tool_prefix=$host_alias-
650:
651: test "$silent" = yes && exec 6>/dev/null
652:
653:
654: # Find the source files, if location was not specified.
655: if test -z "$srcdir"; then
656: ac_srcdir_defaulted=yes
657: # Try the directory containing this script, then its parent.
658: ac_confdir=`(dirname "$0") 2>/dev/null ||
659: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
660: X"$0" : 'X\(//\)[^/]' \| \
661: X"$0" : 'X\(//\)$' \| \
662: X"$0" : 'X\(/\)' \| \
663: . : '\(.\)' 2>/dev/null ||
664: echo X"$0" |
665: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
666: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
667: /^X\(\/\/\)$/{ s//\1/; q; }
668: /^X\(\/\).*/{ s//\1/; q; }
669: s/.*/./; q'`
670: srcdir=$ac_confdir
671: if test ! -r $srcdir/$ac_unique_file; then
672: srcdir=..
673: fi
674: else
675: ac_srcdir_defaulted=no
676: fi
677: if test ! -r $srcdir/$ac_unique_file; then
678: if test "$ac_srcdir_defaulted" = yes; then
679: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
680: { (exit 1); exit 1; }; }
681: else
682: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
683: { (exit 1); exit 1; }; }
684: fi
685: fi
686: srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
687: ac_env_build_alias_set=${build_alias+set}
688: ac_env_build_alias_value=$build_alias
689: ac_cv_env_build_alias_set=${build_alias+set}
690: ac_cv_env_build_alias_value=$build_alias
691: ac_env_host_alias_set=${host_alias+set}
692: ac_env_host_alias_value=$host_alias
693: ac_cv_env_host_alias_set=${host_alias+set}
694: ac_cv_env_host_alias_value=$host_alias
695: ac_env_target_alias_set=${target_alias+set}
696: ac_env_target_alias_value=$target_alias
697: ac_cv_env_target_alias_set=${target_alias+set}
698: ac_cv_env_target_alias_value=$target_alias
699: ac_env_CC_set=${CC+set}
700: ac_env_CC_value=$CC
701: ac_cv_env_CC_set=${CC+set}
702: ac_cv_env_CC_value=$CC
703: ac_env_CFLAGS_set=${CFLAGS+set}
704: ac_env_CFLAGS_value=$CFLAGS
705: ac_cv_env_CFLAGS_set=${CFLAGS+set}
706: ac_cv_env_CFLAGS_value=$CFLAGS
707: ac_env_LDFLAGS_set=${LDFLAGS+set}
708: ac_env_LDFLAGS_value=$LDFLAGS
709: ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
710: ac_cv_env_LDFLAGS_value=$LDFLAGS
711: ac_env_CPPFLAGS_set=${CPPFLAGS+set}
712: ac_env_CPPFLAGS_value=$CPPFLAGS
713: ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
714: ac_cv_env_CPPFLAGS_value=$CPPFLAGS
715: ac_env_CXX_set=${CXX+set}
716: ac_env_CXX_value=$CXX
717: ac_cv_env_CXX_set=${CXX+set}
718: ac_cv_env_CXX_value=$CXX
719: ac_env_CXXFLAGS_set=${CXXFLAGS+set}
720: ac_env_CXXFLAGS_value=$CXXFLAGS
721: ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
722: ac_cv_env_CXXFLAGS_value=$CXXFLAGS
723: ac_env_CPP_set=${CPP+set}
724: ac_env_CPP_value=$CPP
725: ac_cv_env_CPP_set=${CPP+set}
726: ac_cv_env_CPP_value=$CPP
727:
728: #
729: # Report the --help message.
730: #
731: if test "$ac_init_help" = "long"; then
732: # Omit some internal or obsolete options to make the list less imposing.
733: # This message is too long to be a string in the A/UX 3.1 sh.
734: cat <<_ACEOF
735: \`configure' configures this package to adapt to many kinds of systems.
736:
737: Usage: $0 [OPTION]... [VAR=VALUE]...
738:
739: To assign environment variables (e.g., CC, CFLAGS...), specify them as
740: VAR=VALUE. See below for descriptions of some of the useful variables.
741:
742: Defaults for the options are specified in brackets.
743:
744: Configuration:
745: -h, --help display this help and exit
746: --help=short display options specific to this package
747: --help=recursive display the short help of all the included packages
748: -V, --version display version information and exit
749: -q, --quiet, --silent do not print \`checking...' messages
750: --cache-file=FILE cache test results in FILE [disabled]
751: -C, --config-cache alias for \`--cache-file=config.cache'
752: -n, --no-create do not create output files
753: --srcdir=DIR find the sources in DIR [configure dir or \`..']
754:
755: _ACEOF
756:
757: cat <<_ACEOF
758: Installation directories:
759: --prefix=PREFIX install architecture-independent files in PREFIX
760: [$ac_default_prefix]
761: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
762: [PREFIX]
763:
764: By default, \`make install' will install all the files in
765: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
766: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
767: for instance \`--prefix=\$HOME'.
768:
769: For better control, use the options below.
770:
771: Fine tuning of the installation directories:
772: --bindir=DIR user executables [EPREFIX/bin]
773: --sbindir=DIR system admin executables [EPREFIX/sbin]
774: --libexecdir=DIR program executables [EPREFIX/libexec]
775: --datadir=DIR read-only architecture-independent data [PREFIX/share]
776: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
777: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
778: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
779: --libdir=DIR object code libraries [EPREFIX/lib]
780: --includedir=DIR C header files [PREFIX/include]
781: --oldincludedir=DIR C header files for non-gcc [/usr/include]
782: --infodir=DIR info documentation [PREFIX/info]
783: --mandir=DIR man documentation [PREFIX/man]
784: _ACEOF
785:
786: cat <<\_ACEOF
787: _ACEOF
788: fi
789:
790: if test -n "$ac_init_help"; then
791:
792: cat <<\_ACEOF
793:
794: Optional Features:
795: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
796: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
797: --enable-debug Build a debugging version
798:
799: Some influential environment variables:
800: CC C compiler command
801: CFLAGS C compiler flags
802: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
803: nonstandard directory <lib dir>
804: CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
805: headers in a nonstandard directory <include dir>
806: CXX C++ compiler command
807: CXXFLAGS C++ compiler flags
808: CPP C preprocessor
809:
810: Use these variables to override the choices made by `configure' or to help
811: it to find libraries and programs with nonstandard names/locations.
812:
813: _ACEOF
814: fi
815:
816: if test "$ac_init_help" = "recursive"; then
817: # If there are subdirs, report their specific --help.
818: ac_popdir=`pwd`
819: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
820: test -d $ac_dir || continue
821: ac_builddir=.
822:
823: if test "$ac_dir" != .; then
824: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
825: # A "../" for each directory in $ac_dir_suffix.
826: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
827: else
828: ac_dir_suffix= ac_top_builddir=
829: fi
830:
831: case $srcdir in
832: .) # No --srcdir option. We are building in place.
833: ac_srcdir=.
834: if test -z "$ac_top_builddir"; then
835: ac_top_srcdir=.
836: else
837: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
838: fi ;;
839: [\\/]* | ?:[\\/]* ) # Absolute path.
840: ac_srcdir=$srcdir$ac_dir_suffix;
841: ac_top_srcdir=$srcdir ;;
842: *) # Relative path.
843: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
844: ac_top_srcdir=$ac_top_builddir$srcdir ;;
845: esac
846: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
847: # absolute.
848: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
849: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
850: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
851: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
852:
853: cd $ac_dir
854: # Check for guested configure; otherwise get Cygnus style configure.
855: if test -f $ac_srcdir/configure.gnu; then
856: echo
857: $SHELL $ac_srcdir/configure.gnu --help=recursive
858: elif test -f $ac_srcdir/configure; then
859: echo
860: $SHELL $ac_srcdir/configure --help=recursive
861: elif test -f $ac_srcdir/configure.ac ||
862: test -f $ac_srcdir/configure.in; then
863: echo
864: $ac_configure --help
865: else
866: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
867: fi
868: cd $ac_popdir
869: done
870: fi
871:
872: test -n "$ac_init_help" && exit 0
873: if $ac_init_version; then
874: cat <<\_ACEOF
875:
876: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
877: Free Software Foundation, Inc.
878: This configure script is free software; the Free Software Foundation
879: gives unlimited permission to copy, distribute and modify it.
880: _ACEOF
881: exit 0
882: fi
883: exec 5>config.log
884: cat >&5 <<_ACEOF
885: This file contains any messages produced by compilers while
886: running configure, to aid debugging if configure makes a mistake.
887:
888: It was created by $as_me, which was
889: generated by GNU Autoconf 2.53. Invocation command line was
890:
891: $ $0 $@
892:
893: _ACEOF
894: {
895: cat <<_ASUNAME
896: ## --------- ##
897: ## Platform. ##
898: ## --------- ##
899:
900: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
901: uname -m = `(uname -m) 2>/dev/null || echo unknown`
902: uname -r = `(uname -r) 2>/dev/null || echo unknown`
903: uname -s = `(uname -s) 2>/dev/null || echo unknown`
904: uname -v = `(uname -v) 2>/dev/null || echo unknown`
905:
906: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
907: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
908:
909: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
910: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
911: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
912: hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
913: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
914: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
915: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
916:
917: _ASUNAME
918:
919: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
920: for as_dir in $PATH
921: do
922: IFS=$as_save_IFS
923: test -z "$as_dir" && as_dir=.
924: echo "PATH: $as_dir"
925: done
926:
927: } >&5
928:
929: cat >&5 <<_ACEOF
930:
931:
932: ## ----------- ##
933: ## Core tests. ##
934: ## ----------- ##
935:
936: _ACEOF
937:
938:
939: # Keep a trace of the command line.
940: # Strip out --no-create and --no-recursion so they do not pile up.
941: # Also quote any args containing shell meta-characters.
942: ac_configure_args=
943: ac_sep=
944: for ac_arg
945: do
946: case $ac_arg in
947: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948: | --no-cr | --no-c | -n ) continue ;;
949: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
950: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
951: continue ;;
952: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
953: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
954: esac
955: case " $ac_configure_args " in
956: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
957: *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
958: ac_sep=" " ;;
959: esac
960: # Get rid of the leading space.
961: done
962:
963: # When interrupted or exit'd, cleanup temporary files, and complete
964: # config.log. We remove comments because anyway the quotes in there
965: # would cause problems or look ugly.
966: # WARNING: Be sure not to use single quotes in there, as some shells,
967: # such as our DU 5.0 friend, will then `close' the trap.
968: trap 'exit_status=$?
969: # Save into config.log some information that might help in debugging.
970: {
971: echo
972: cat <<\_ASBOX
973: ## ---------------- ##
974: ## Cache variables. ##
975: ## ---------------- ##
976: _ASBOX
977: echo
978: # The following way of writing the cache mishandles newlines in values,
979: {
980: (set) 2>&1 |
981: case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
982: *ac_space=\ *)
983: sed -n \
984: "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
985: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
986: ;;
987: *)
988: sed -n \
989: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
990: ;;
991: esac;
992: }
993: echo
994: if test -s confdefs.h; then
995: cat <<\_ASBOX
996: ## ----------- ##
997: ## confdefs.h. ##
998: ## ----------- ##
999: _ASBOX
1000: echo
1001: sed "/^$/d" confdefs.h
1002: echo
1003: fi
1004: test "$ac_signal" != 0 &&
1005: echo "$as_me: caught signal $ac_signal"
1006: echo "$as_me: exit $exit_status"
1007: } >&5
1008: rm -f core core.* *.core &&
1009: rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1010: exit $exit_status
1011: ' 0
1012: for ac_signal in 1 2 13 15; do
1013: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1014: done
1015: ac_signal=0
1016:
1017: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1018: rm -rf conftest* confdefs.h
1019: # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1020: echo >confdefs.h
1021:
1022: # Predefined preprocessor variables.
1023:
1024: cat >>confdefs.h <<_ACEOF
1025: #define PACKAGE_NAME "$PACKAGE_NAME"
1026: _ACEOF
1027:
1028:
1029: cat >>confdefs.h <<_ACEOF
1030: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1031: _ACEOF
1032:
1033:
1034: cat >>confdefs.h <<_ACEOF
1035: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1036: _ACEOF
1037:
1038:
1039: cat >>confdefs.h <<_ACEOF
1040: #define PACKAGE_STRING "$PACKAGE_STRING"
1041: _ACEOF
1042:
1043:
1044: cat >>confdefs.h <<_ACEOF
1045: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1046: _ACEOF
1047:
1048:
1049: # Let the site file select an alternate cache file if it wants to.
1050: # Prefer explicitly selected file to automatically selected ones.
1051: if test -z "$CONFIG_SITE"; then
1052: if test "x$prefix" != xNONE; then
1053: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1054: else
1055: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1056: fi
1057: fi
1058: for ac_site_file in $CONFIG_SITE; do
1059: if test -r "$ac_site_file"; then
1060: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1061: echo "$as_me: loading site script $ac_site_file" >&6;}
1062: sed 's/^/| /' "$ac_site_file" >&5
1063: . "$ac_site_file"
1064: fi
1065: done
1066:
1067: if test -r "$cache_file"; then
1068: # Some versions of bash will fail to source /dev/null (special
1069: # files actually), so we avoid doing that.
1070: if test -f "$cache_file"; then
1071: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1072: echo "$as_me: loading cache $cache_file" >&6;}
1073: case $cache_file in
1074: [\\/]* | ?:[\\/]* ) . $cache_file;;
1075: *) . ./$cache_file;;
1076: esac
1077: fi
1078: else
1079: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1080: echo "$as_me: creating cache $cache_file" >&6;}
1081: >$cache_file
1082: fi
1083:
1084: # Check that the precious variables saved in the cache have kept the same
1085: # value.
1086: ac_cache_corrupted=false
1087: for ac_var in `(set) 2>&1 |
1088: sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1089: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1090: eval ac_new_set=\$ac_env_${ac_var}_set
1091: eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1092: eval ac_new_val="\$ac_env_${ac_var}_value"
1093: case $ac_old_set,$ac_new_set in
1094: set,)
1095: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1096: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1097: ac_cache_corrupted=: ;;
1098: ,set)
1099: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1100: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1101: ac_cache_corrupted=: ;;
1102: ,);;
1103: *)
1104: if test "x$ac_old_val" != "x$ac_new_val"; then
1105: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1106: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1107: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1108: echo "$as_me: former value: $ac_old_val" >&2;}
1109: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1110: echo "$as_me: current value: $ac_new_val" >&2;}
1111: ac_cache_corrupted=:
1112: fi;;
1113: esac
1114: # Pass precious variables to config.status.
1115: if test "$ac_new_set" = set; then
1116: case $ac_new_val in
1117: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1118: ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1119: *) ac_arg=$ac_var=$ac_new_val ;;
1120: esac
1121: case " $ac_configure_args " in
1122: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1123: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1124: esac
1125: fi
1126: done
1127: if $ac_cache_corrupted; then
1128: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1129: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1130: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1131: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1132: { (exit 1); exit 1; }; }
1133: fi
1134:
1135: ac_ext=c
1136: ac_cpp='$CPP $CPPFLAGS'
1137: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1138: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1139: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1140:
1141:
1142:
1143:
1144:
1145:
1146:
1147:
1148:
1149:
1150:
1151:
1152:
1153:
1154:
1155:
1156:
1157:
1158: ac_config_headers="$ac_config_headers config.h"
1159:
1160:
1161:
1162:
1163:
1164:
1165:
1.2 iwane 1166:
1167:
1.1 iwane 1168: echo "$as_me:$LINENO: checking if --enable-debug option secified" >&5
1169: echo $ECHO_N "checking if --enable-debug option secified... $ECHO_C" >&6
1170: # Check whether --enable-debug or --disable-debug was given.
1171: if test "${enable_debug+set}" = set; then
1172: enableval="$enable_debug"
1173:
1174: echo "$as_me:$LINENO: result: yes" >&5
1175: echo "${ECHO_T}yes" >&6
1176:
1177: cat >>confdefs.h <<\_ACEOF
1178: #define DEBUG 1
1179: _ACEOF
1180:
1181: OPTFLAG=${OPTFLAG-"-g"}
1182:
1183: else
1184:
1185: echo "$as_me:$LINENO: result: no" >&5
1186: echo "${ECHO_T}no" >&6
1187:
1188: fi;
1189:
1190:
1191:
1192: ac_ext=c
1193: ac_cpp='$CPP $CPPFLAGS'
1194: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1195: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1196: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1197: if test -n "$ac_tool_prefix"; then
1198: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1199: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1200: echo "$as_me:$LINENO: checking for $ac_word" >&5
1201: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1202: if test "${ac_cv_prog_CC+set}" = set; then
1203: echo $ECHO_N "(cached) $ECHO_C" >&6
1204: else
1205: if test -n "$CC"; then
1206: ac_cv_prog_CC="$CC" # Let the user override the test.
1207: else
1208: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209: for as_dir in $PATH
1210: do
1211: IFS=$as_save_IFS
1212: test -z "$as_dir" && as_dir=.
1213: for ac_exec_ext in '' $ac_executable_extensions; do
1214: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1215: ac_cv_prog_CC="${ac_tool_prefix}gcc"
1216: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1217: break 2
1218: fi
1219: done
1220: done
1221:
1222: fi
1223: fi
1224: CC=$ac_cv_prog_CC
1225: if test -n "$CC"; then
1226: echo "$as_me:$LINENO: result: $CC" >&5
1227: echo "${ECHO_T}$CC" >&6
1228: else
1229: echo "$as_me:$LINENO: result: no" >&5
1230: echo "${ECHO_T}no" >&6
1231: fi
1232:
1233: fi
1234: if test -z "$ac_cv_prog_CC"; then
1235: ac_ct_CC=$CC
1236: # Extract the first word of "gcc", so it can be a program name with args.
1237: set dummy gcc; ac_word=$2
1238: echo "$as_me:$LINENO: checking for $ac_word" >&5
1239: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1240: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1241: echo $ECHO_N "(cached) $ECHO_C" >&6
1242: else
1243: if test -n "$ac_ct_CC"; then
1244: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1245: else
1246: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1247: for as_dir in $PATH
1248: do
1249: IFS=$as_save_IFS
1250: test -z "$as_dir" && as_dir=.
1251: for ac_exec_ext in '' $ac_executable_extensions; do
1252: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1253: ac_cv_prog_ac_ct_CC="gcc"
1254: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1255: break 2
1256: fi
1257: done
1258: done
1259:
1260: fi
1261: fi
1262: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1263: if test -n "$ac_ct_CC"; then
1264: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1265: echo "${ECHO_T}$ac_ct_CC" >&6
1266: else
1267: echo "$as_me:$LINENO: result: no" >&5
1268: echo "${ECHO_T}no" >&6
1269: fi
1270:
1271: CC=$ac_ct_CC
1272: else
1273: CC="$ac_cv_prog_CC"
1274: fi
1275:
1276: if test -z "$CC"; then
1277: if test -n "$ac_tool_prefix"; then
1278: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1279: set dummy ${ac_tool_prefix}cc; ac_word=$2
1280: echo "$as_me:$LINENO: checking for $ac_word" >&5
1281: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1282: if test "${ac_cv_prog_CC+set}" = set; then
1283: echo $ECHO_N "(cached) $ECHO_C" >&6
1284: else
1285: if test -n "$CC"; then
1286: ac_cv_prog_CC="$CC" # Let the user override the test.
1287: else
1288: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1289: for as_dir in $PATH
1290: do
1291: IFS=$as_save_IFS
1292: test -z "$as_dir" && as_dir=.
1293: for ac_exec_ext in '' $ac_executable_extensions; do
1294: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1295: ac_cv_prog_CC="${ac_tool_prefix}cc"
1296: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1297: break 2
1298: fi
1299: done
1300: done
1301:
1302: fi
1303: fi
1304: CC=$ac_cv_prog_CC
1305: if test -n "$CC"; then
1306: echo "$as_me:$LINENO: result: $CC" >&5
1307: echo "${ECHO_T}$CC" >&6
1308: else
1309: echo "$as_me:$LINENO: result: no" >&5
1310: echo "${ECHO_T}no" >&6
1311: fi
1312:
1313: fi
1314: if test -z "$ac_cv_prog_CC"; then
1315: ac_ct_CC=$CC
1316: # Extract the first word of "cc", so it can be a program name with args.
1317: set dummy cc; ac_word=$2
1318: echo "$as_me:$LINENO: checking for $ac_word" >&5
1319: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1320: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1321: echo $ECHO_N "(cached) $ECHO_C" >&6
1322: else
1323: if test -n "$ac_ct_CC"; then
1324: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1325: else
1326: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1327: for as_dir in $PATH
1328: do
1329: IFS=$as_save_IFS
1330: test -z "$as_dir" && as_dir=.
1331: for ac_exec_ext in '' $ac_executable_extensions; do
1332: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1333: ac_cv_prog_ac_ct_CC="cc"
1334: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1335: break 2
1336: fi
1337: done
1338: done
1339:
1340: fi
1341: fi
1342: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1343: if test -n "$ac_ct_CC"; then
1344: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1345: echo "${ECHO_T}$ac_ct_CC" >&6
1346: else
1347: echo "$as_me:$LINENO: result: no" >&5
1348: echo "${ECHO_T}no" >&6
1349: fi
1350:
1351: CC=$ac_ct_CC
1352: else
1353: CC="$ac_cv_prog_CC"
1354: fi
1355:
1356: fi
1357: if test -z "$CC"; then
1358: # Extract the first word of "cc", so it can be a program name with args.
1359: set dummy cc; ac_word=$2
1360: echo "$as_me:$LINENO: checking for $ac_word" >&5
1361: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1362: if test "${ac_cv_prog_CC+set}" = set; then
1363: echo $ECHO_N "(cached) $ECHO_C" >&6
1364: else
1365: if test -n "$CC"; then
1366: ac_cv_prog_CC="$CC" # Let the user override the test.
1367: else
1368: ac_prog_rejected=no
1369: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370: for as_dir in $PATH
1371: do
1372: IFS=$as_save_IFS
1373: test -z "$as_dir" && as_dir=.
1374: for ac_exec_ext in '' $ac_executable_extensions; do
1375: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1376: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1377: ac_prog_rejected=yes
1378: continue
1379: fi
1380: ac_cv_prog_CC="cc"
1381: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382: break 2
1383: fi
1384: done
1385: done
1386:
1387: if test $ac_prog_rejected = yes; then
1388: # We found a bogon in the path, so make sure we never use it.
1389: set dummy $ac_cv_prog_CC
1390: shift
1391: if test $# != 0; then
1392: # We chose a different compiler from the bogus one.
1393: # However, it has the same basename, so the bogon will be chosen
1394: # first if we set CC to just the basename; use the full file name.
1395: shift
1396: set dummy "$as_dir/$ac_word" ${1+"$@"}
1397: shift
1398: ac_cv_prog_CC="$@"
1399: fi
1400: fi
1401: fi
1402: fi
1403: CC=$ac_cv_prog_CC
1404: if test -n "$CC"; then
1405: echo "$as_me:$LINENO: result: $CC" >&5
1406: echo "${ECHO_T}$CC" >&6
1407: else
1408: echo "$as_me:$LINENO: result: no" >&5
1409: echo "${ECHO_T}no" >&6
1410: fi
1411:
1412: fi
1413: if test -z "$CC"; then
1414: if test -n "$ac_tool_prefix"; then
1415: for ac_prog in cl
1416: do
1417: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1418: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1419: echo "$as_me:$LINENO: checking for $ac_word" >&5
1420: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1421: if test "${ac_cv_prog_CC+set}" = set; then
1422: echo $ECHO_N "(cached) $ECHO_C" >&6
1423: else
1424: if test -n "$CC"; then
1425: ac_cv_prog_CC="$CC" # Let the user override the test.
1426: else
1427: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428: for as_dir in $PATH
1429: do
1430: IFS=$as_save_IFS
1431: test -z "$as_dir" && as_dir=.
1432: for ac_exec_ext in '' $ac_executable_extensions; do
1433: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1434: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1435: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1436: break 2
1437: fi
1438: done
1439: done
1440:
1441: fi
1442: fi
1443: CC=$ac_cv_prog_CC
1444: if test -n "$CC"; then
1445: echo "$as_me:$LINENO: result: $CC" >&5
1446: echo "${ECHO_T}$CC" >&6
1447: else
1448: echo "$as_me:$LINENO: result: no" >&5
1449: echo "${ECHO_T}no" >&6
1450: fi
1451:
1452: test -n "$CC" && break
1453: done
1454: fi
1455: if test -z "$CC"; then
1456: ac_ct_CC=$CC
1457: for ac_prog in cl
1458: do
1459: # Extract the first word of "$ac_prog", so it can be a program name with args.
1460: set dummy $ac_prog; ac_word=$2
1461: echo "$as_me:$LINENO: checking for $ac_word" >&5
1462: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1463: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1464: echo $ECHO_N "(cached) $ECHO_C" >&6
1465: else
1466: if test -n "$ac_ct_CC"; then
1467: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1468: else
1469: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1470: for as_dir in $PATH
1471: do
1472: IFS=$as_save_IFS
1473: test -z "$as_dir" && as_dir=.
1474: for ac_exec_ext in '' $ac_executable_extensions; do
1475: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1476: ac_cv_prog_ac_ct_CC="$ac_prog"
1477: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1478: break 2
1479: fi
1480: done
1481: done
1482:
1483: fi
1484: fi
1485: ac_ct_CC=$ac_cv_prog_ac_ct_CC
1486: if test -n "$ac_ct_CC"; then
1487: echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1488: echo "${ECHO_T}$ac_ct_CC" >&6
1489: else
1490: echo "$as_me:$LINENO: result: no" >&5
1491: echo "${ECHO_T}no" >&6
1492: fi
1493:
1494: test -n "$ac_ct_CC" && break
1495: done
1496:
1497: CC=$ac_ct_CC
1498: fi
1499:
1500: fi
1501:
1502:
1503: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1504: echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1505: { (exit 1); exit 1; }; }
1506:
1507: # Provide some information about the compiler.
1508: echo "$as_me:$LINENO:" \
1509: "checking for C compiler version" >&5
1510: ac_compiler=`set X $ac_compile; echo $2`
1511: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1512: (eval $ac_compiler --version </dev/null >&5) 2>&5
1513: ac_status=$?
1514: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1515: (exit $ac_status); }
1516: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1517: (eval $ac_compiler -v </dev/null >&5) 2>&5
1518: ac_status=$?
1519: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1520: (exit $ac_status); }
1521: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1522: (eval $ac_compiler -V </dev/null >&5) 2>&5
1523: ac_status=$?
1524: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1525: (exit $ac_status); }
1526:
1527: cat >conftest.$ac_ext <<_ACEOF
1528: #line $LINENO "configure"
1529: #include "confdefs.h"
1530:
1531: #ifdef F77_DUMMY_MAIN
1532: # ifdef __cplusplus
1533: extern "C"
1534: # endif
1535: int F77_DUMMY_MAIN() { return 1; }
1536: #endif
1537: int
1538: main ()
1539: {
1540:
1541: ;
1542: return 0;
1543: }
1544: _ACEOF
1545: ac_clean_files_save=$ac_clean_files
1546: ac_clean_files="$ac_clean_files a.out a.exe"
1547: # Try to create an executable without -o first, disregard a.out.
1548: # It will help us diagnose broken compilers, and finding out an intuition
1549: # of exeext.
1550: echo "$as_me:$LINENO: checking for C compiler default output" >&5
1551: echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1552: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1553: if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1554: (eval $ac_link_default) 2>&5
1555: ac_status=$?
1556: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1557: (exit $ac_status); }; then
1558: # Find the output, starting from the most likely. This scheme is
1559: # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1560: # resort.
1561:
1562: # Be careful to initialize this variable, since it used to be cached.
1563: # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1564: ac_cv_exeext=
1565: for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1566: ls a.out conftest 2>/dev/null;
1567: ls a.* conftest.* 2>/dev/null`; do
1568: case $ac_file in
1569: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1570: a.out ) # We found the default executable, but exeext='' is most
1571: # certainly right.
1572: break;;
1573: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1574: # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1575: export ac_cv_exeext
1576: break;;
1577: * ) break;;
1578: esac
1579: done
1580: else
1581: echo "$as_me: failed program was:" >&5
1582: cat conftest.$ac_ext >&5
1583: { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1584: echo "$as_me: error: C compiler cannot create executables" >&2;}
1585: { (exit 77); exit 77; }; }
1586: fi
1587:
1588: ac_exeext=$ac_cv_exeext
1589: echo "$as_me:$LINENO: result: $ac_file" >&5
1590: echo "${ECHO_T}$ac_file" >&6
1591:
1592: # Check the compiler produces executables we can run. If not, either
1593: # the compiler is broken, or we cross compile.
1594: echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1595: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1596: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1597: # If not cross compiling, check that we can run a simple program.
1598: if test "$cross_compiling" != yes; then
1599: if { ac_try='./$ac_file'
1600: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1601: (eval $ac_try) 2>&5
1602: ac_status=$?
1603: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1604: (exit $ac_status); }; }; then
1605: cross_compiling=no
1606: else
1607: if test "$cross_compiling" = maybe; then
1608: cross_compiling=yes
1609: else
1610: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1611: If you meant to cross compile, use \`--host'." >&5
1612: echo "$as_me: error: cannot run C compiled programs.
1613: If you meant to cross compile, use \`--host'." >&2;}
1614: { (exit 1); exit 1; }; }
1615: fi
1616: fi
1617: fi
1618: echo "$as_me:$LINENO: result: yes" >&5
1619: echo "${ECHO_T}yes" >&6
1620:
1621: rm -f a.out a.exe conftest$ac_cv_exeext
1622: ac_clean_files=$ac_clean_files_save
1623: # Check the compiler produces executables we can run. If not, either
1624: # the compiler is broken, or we cross compile.
1625: echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1626: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1627: echo "$as_me:$LINENO: result: $cross_compiling" >&5
1628: echo "${ECHO_T}$cross_compiling" >&6
1629:
1630: echo "$as_me:$LINENO: checking for suffix of executables" >&5
1631: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1632: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1633: (eval $ac_link) 2>&5
1634: ac_status=$?
1635: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1636: (exit $ac_status); }; then
1637: # If both `conftest.exe' and `conftest' are `present' (well, observable)
1638: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1639: # work properly (i.e., refer to `conftest.exe'), while it won't with
1640: # `rm'.
1641: for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1642: case $ac_file in
1643: *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1644: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1645: export ac_cv_exeext
1646: break;;
1647: * ) break;;
1648: esac
1649: done
1650: else
1651: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1652: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1653: { (exit 1); exit 1; }; }
1654: fi
1655:
1656: rm -f conftest$ac_cv_exeext
1657: echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1658: echo "${ECHO_T}$ac_cv_exeext" >&6
1659:
1660: rm -f conftest.$ac_ext
1661: EXEEXT=$ac_cv_exeext
1662: ac_exeext=$EXEEXT
1663: echo "$as_me:$LINENO: checking for suffix of object files" >&5
1664: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1665: if test "${ac_cv_objext+set}" = set; then
1666: echo $ECHO_N "(cached) $ECHO_C" >&6
1667: else
1668: cat >conftest.$ac_ext <<_ACEOF
1669: #line $LINENO "configure"
1670: #include "confdefs.h"
1671:
1672: #ifdef F77_DUMMY_MAIN
1673: # ifdef __cplusplus
1674: extern "C"
1675: # endif
1676: int F77_DUMMY_MAIN() { return 1; }
1677: #endif
1678: int
1679: main ()
1680: {
1681:
1682: ;
1683: return 0;
1684: }
1685: _ACEOF
1686: rm -f conftest.o conftest.obj
1687: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1688: (eval $ac_compile) 2>&5
1689: ac_status=$?
1690: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1691: (exit $ac_status); }; then
1692: for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1693: case $ac_file in
1694: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1695: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1696: break;;
1697: esac
1698: done
1699: else
1700: echo "$as_me: failed program was:" >&5
1701: cat conftest.$ac_ext >&5
1702: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1703: echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1704: { (exit 1); exit 1; }; }
1705: fi
1706:
1707: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1708: fi
1709: echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1710: echo "${ECHO_T}$ac_cv_objext" >&6
1711: OBJEXT=$ac_cv_objext
1712: ac_objext=$OBJEXT
1713: echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1714: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1715: if test "${ac_cv_c_compiler_gnu+set}" = set; then
1716: echo $ECHO_N "(cached) $ECHO_C" >&6
1717: else
1718: cat >conftest.$ac_ext <<_ACEOF
1719: #line $LINENO "configure"
1720: #include "confdefs.h"
1721:
1722: #ifdef F77_DUMMY_MAIN
1723: # ifdef __cplusplus
1724: extern "C"
1725: # endif
1726: int F77_DUMMY_MAIN() { return 1; }
1727: #endif
1728: int
1729: main ()
1730: {
1731: #ifndef __GNUC__
1732: choke me
1733: #endif
1734:
1735: ;
1736: return 0;
1737: }
1738: _ACEOF
1739: rm -f conftest.$ac_objext
1740: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1741: (eval $ac_compile) 2>&5
1742: ac_status=$?
1743: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1744: (exit $ac_status); } &&
1745: { ac_try='test -s conftest.$ac_objext'
1746: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1747: (eval $ac_try) 2>&5
1748: ac_status=$?
1749: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1750: (exit $ac_status); }; }; then
1751: ac_compiler_gnu=yes
1752: else
1753: echo "$as_me: failed program was:" >&5
1754: cat conftest.$ac_ext >&5
1755: ac_compiler_gnu=no
1756: fi
1757: rm -f conftest.$ac_objext conftest.$ac_ext
1758: ac_cv_c_compiler_gnu=$ac_compiler_gnu
1759:
1760: fi
1761: echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1762: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1763: GCC=`test $ac_compiler_gnu = yes && echo yes`
1764: ac_test_CFLAGS=${CFLAGS+set}
1765: ac_save_CFLAGS=$CFLAGS
1766: CFLAGS="-g"
1767: echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1768: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1769: if test "${ac_cv_prog_cc_g+set}" = set; then
1770: echo $ECHO_N "(cached) $ECHO_C" >&6
1771: else
1772: cat >conftest.$ac_ext <<_ACEOF
1773: #line $LINENO "configure"
1774: #include "confdefs.h"
1775:
1776: #ifdef F77_DUMMY_MAIN
1777: # ifdef __cplusplus
1778: extern "C"
1779: # endif
1780: int F77_DUMMY_MAIN() { return 1; }
1781: #endif
1782: int
1783: main ()
1784: {
1785:
1786: ;
1787: return 0;
1788: }
1789: _ACEOF
1790: rm -f conftest.$ac_objext
1791: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1792: (eval $ac_compile) 2>&5
1793: ac_status=$?
1794: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795: (exit $ac_status); } &&
1796: { ac_try='test -s conftest.$ac_objext'
1797: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1798: (eval $ac_try) 2>&5
1799: ac_status=$?
1800: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801: (exit $ac_status); }; }; then
1802: ac_cv_prog_cc_g=yes
1803: else
1804: echo "$as_me: failed program was:" >&5
1805: cat conftest.$ac_ext >&5
1806: ac_cv_prog_cc_g=no
1807: fi
1808: rm -f conftest.$ac_objext conftest.$ac_ext
1809: fi
1810: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1811: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1812: if test "$ac_test_CFLAGS" = set; then
1813: CFLAGS=$ac_save_CFLAGS
1814: elif test $ac_cv_prog_cc_g = yes; then
1815: if test "$GCC" = yes; then
1816: CFLAGS="-g -O2"
1817: else
1818: CFLAGS="-g"
1819: fi
1820: else
1821: if test "$GCC" = yes; then
1822: CFLAGS="-O2"
1823: else
1824: CFLAGS=
1825: fi
1826: fi
1827: # Some people use a C++ compiler to compile C. Since we use `exit',
1828: # in C++ we need to declare it. In case someone uses the same compiler
1829: # for both compiling C and C++ we need to have the C++ compiler decide
1830: # the declaration of exit, since it's the most demanding environment.
1831: cat >conftest.$ac_ext <<_ACEOF
1832: #ifndef __cplusplus
1833: choke me
1834: #endif
1835: _ACEOF
1836: rm -f conftest.$ac_objext
1837: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1838: (eval $ac_compile) 2>&5
1839: ac_status=$?
1840: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841: (exit $ac_status); } &&
1842: { ac_try='test -s conftest.$ac_objext'
1843: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1844: (eval $ac_try) 2>&5
1845: ac_status=$?
1846: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847: (exit $ac_status); }; }; then
1848: for ac_declaration in \
1849: ''\
1850: '#include <stdlib.h>' \
1851: 'extern "C" void std::exit (int) throw (); using std::exit;' \
1852: 'extern "C" void std::exit (int); using std::exit;' \
1853: 'extern "C" void exit (int) throw ();' \
1854: 'extern "C" void exit (int);' \
1855: 'void exit (int);'
1856: do
1857: cat >conftest.$ac_ext <<_ACEOF
1858: #line $LINENO "configure"
1859: #include "confdefs.h"
1860: #include <stdlib.h>
1861: $ac_declaration
1862: #ifdef F77_DUMMY_MAIN
1863: # ifdef __cplusplus
1864: extern "C"
1865: # endif
1866: int F77_DUMMY_MAIN() { return 1; }
1867: #endif
1868: int
1869: main ()
1870: {
1871: exit (42);
1872: ;
1873: return 0;
1874: }
1875: _ACEOF
1876: rm -f conftest.$ac_objext
1877: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878: (eval $ac_compile) 2>&5
1879: ac_status=$?
1880: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881: (exit $ac_status); } &&
1882: { ac_try='test -s conftest.$ac_objext'
1883: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1884: (eval $ac_try) 2>&5
1885: ac_status=$?
1886: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887: (exit $ac_status); }; }; then
1888: :
1889: else
1890: echo "$as_me: failed program was:" >&5
1891: cat conftest.$ac_ext >&5
1892: continue
1893: fi
1894: rm -f conftest.$ac_objext conftest.$ac_ext
1895: cat >conftest.$ac_ext <<_ACEOF
1896: #line $LINENO "configure"
1897: #include "confdefs.h"
1898: $ac_declaration
1899: #ifdef F77_DUMMY_MAIN
1900: # ifdef __cplusplus
1901: extern "C"
1902: # endif
1903: int F77_DUMMY_MAIN() { return 1; }
1904: #endif
1905: int
1906: main ()
1907: {
1908: exit (42);
1909: ;
1910: return 0;
1911: }
1912: _ACEOF
1913: rm -f conftest.$ac_objext
1914: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1915: (eval $ac_compile) 2>&5
1916: ac_status=$?
1917: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918: (exit $ac_status); } &&
1919: { ac_try='test -s conftest.$ac_objext'
1920: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1921: (eval $ac_try) 2>&5
1922: ac_status=$?
1923: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1924: (exit $ac_status); }; }; then
1925: break
1926: else
1927: echo "$as_me: failed program was:" >&5
1928: cat conftest.$ac_ext >&5
1929: fi
1930: rm -f conftest.$ac_objext conftest.$ac_ext
1931: done
1932: rm -f conftest*
1933: if test -n "$ac_declaration"; then
1934: echo '#ifdef __cplusplus' >>confdefs.h
1935: echo $ac_declaration >>confdefs.h
1936: echo '#endif' >>confdefs.h
1937: fi
1938:
1939: else
1940: echo "$as_me: failed program was:" >&5
1941: cat conftest.$ac_ext >&5
1942: fi
1943: rm -f conftest.$ac_objext conftest.$ac_ext
1944: ac_ext=c
1945: ac_cpp='$CPP $CPPFLAGS'
1946: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949:
1950: ac_ext=cc
1951: ac_cpp='$CXXCPP $CPPFLAGS'
1952: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1953: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1954: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1955: if test -n "$ac_tool_prefix"; then
1956: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1957: do
1958: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1959: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1960: echo "$as_me:$LINENO: checking for $ac_word" >&5
1961: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1962: if test "${ac_cv_prog_CXX+set}" = set; then
1963: echo $ECHO_N "(cached) $ECHO_C" >&6
1964: else
1965: if test -n "$CXX"; then
1966: ac_cv_prog_CXX="$CXX" # Let the user override the test.
1967: else
1968: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969: for as_dir in $PATH
1970: do
1971: IFS=$as_save_IFS
1972: test -z "$as_dir" && as_dir=.
1973: for ac_exec_ext in '' $ac_executable_extensions; do
1974: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1975: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1976: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977: break 2
1978: fi
1979: done
1980: done
1981:
1982: fi
1983: fi
1984: CXX=$ac_cv_prog_CXX
1985: if test -n "$CXX"; then
1986: echo "$as_me:$LINENO: result: $CXX" >&5
1987: echo "${ECHO_T}$CXX" >&6
1988: else
1989: echo "$as_me:$LINENO: result: no" >&5
1990: echo "${ECHO_T}no" >&6
1991: fi
1992:
1993: test -n "$CXX" && break
1994: done
1995: fi
1996: if test -z "$CXX"; then
1997: ac_ct_CXX=$CXX
1998: for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1999: do
2000: # Extract the first word of "$ac_prog", so it can be a program name with args.
2001: set dummy $ac_prog; ac_word=$2
2002: echo "$as_me:$LINENO: checking for $ac_word" >&5
2003: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004: if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2005: echo $ECHO_N "(cached) $ECHO_C" >&6
2006: else
2007: if test -n "$ac_ct_CXX"; then
2008: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2009: else
2010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2011: for as_dir in $PATH
2012: do
2013: IFS=$as_save_IFS
2014: test -z "$as_dir" && as_dir=.
2015: for ac_exec_ext in '' $ac_executable_extensions; do
2016: if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017: ac_cv_prog_ac_ct_CXX="$ac_prog"
2018: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019: break 2
2020: fi
2021: done
2022: done
2023:
2024: fi
2025: fi
2026: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2027: if test -n "$ac_ct_CXX"; then
2028: echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2029: echo "${ECHO_T}$ac_ct_CXX" >&6
2030: else
2031: echo "$as_me:$LINENO: result: no" >&5
2032: echo "${ECHO_T}no" >&6
2033: fi
2034:
2035: test -n "$ac_ct_CXX" && break
2036: done
2037: test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2038:
2039: CXX=$ac_ct_CXX
2040: fi
2041:
2042:
2043: # Provide some information about the compiler.
2044: echo "$as_me:$LINENO:" \
2045: "checking for C++ compiler version" >&5
2046: ac_compiler=`set X $ac_compile; echo $2`
2047: { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2048: (eval $ac_compiler --version </dev/null >&5) 2>&5
2049: ac_status=$?
2050: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051: (exit $ac_status); }
2052: { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2053: (eval $ac_compiler -v </dev/null >&5) 2>&5
2054: ac_status=$?
2055: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056: (exit $ac_status); }
2057: { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2058: (eval $ac_compiler -V </dev/null >&5) 2>&5
2059: ac_status=$?
2060: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061: (exit $ac_status); }
2062:
2063: echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2064: echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2065: if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2066: echo $ECHO_N "(cached) $ECHO_C" >&6
2067: else
2068: cat >conftest.$ac_ext <<_ACEOF
2069: #line $LINENO "configure"
2070: #include "confdefs.h"
2071:
2072: #ifdef F77_DUMMY_MAIN
2073: # ifdef __cplusplus
2074: extern "C"
2075: # endif
2076: int F77_DUMMY_MAIN() { return 1; }
2077: #endif
2078: int
2079: main ()
2080: {
2081: #ifndef __GNUC__
2082: choke me
2083: #endif
2084:
2085: ;
2086: return 0;
2087: }
2088: _ACEOF
2089: rm -f conftest.$ac_objext
2090: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091: (eval $ac_compile) 2>&5
2092: ac_status=$?
2093: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094: (exit $ac_status); } &&
2095: { ac_try='test -s conftest.$ac_objext'
2096: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097: (eval $ac_try) 2>&5
2098: ac_status=$?
2099: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100: (exit $ac_status); }; }; then
2101: ac_compiler_gnu=yes
2102: else
2103: echo "$as_me: failed program was:" >&5
2104: cat conftest.$ac_ext >&5
2105: ac_compiler_gnu=no
2106: fi
2107: rm -f conftest.$ac_objext conftest.$ac_ext
2108: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2109:
2110: fi
2111: echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2112: echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2113: GXX=`test $ac_compiler_gnu = yes && echo yes`
2114: ac_test_CXXFLAGS=${CXXFLAGS+set}
2115: ac_save_CXXFLAGS=$CXXFLAGS
2116: CXXFLAGS="-g"
2117: echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2118: echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2119: if test "${ac_cv_prog_cxx_g+set}" = set; then
2120: echo $ECHO_N "(cached) $ECHO_C" >&6
2121: else
2122: cat >conftest.$ac_ext <<_ACEOF
2123: #line $LINENO "configure"
2124: #include "confdefs.h"
2125:
2126: #ifdef F77_DUMMY_MAIN
2127: # ifdef __cplusplus
2128: extern "C"
2129: # endif
2130: int F77_DUMMY_MAIN() { return 1; }
2131: #endif
2132: int
2133: main ()
2134: {
2135:
2136: ;
2137: return 0;
2138: }
2139: _ACEOF
2140: rm -f conftest.$ac_objext
2141: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142: (eval $ac_compile) 2>&5
2143: ac_status=$?
2144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145: (exit $ac_status); } &&
2146: { ac_try='test -s conftest.$ac_objext'
2147: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148: (eval $ac_try) 2>&5
2149: ac_status=$?
2150: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151: (exit $ac_status); }; }; then
2152: ac_cv_prog_cxx_g=yes
2153: else
2154: echo "$as_me: failed program was:" >&5
2155: cat conftest.$ac_ext >&5
2156: ac_cv_prog_cxx_g=no
2157: fi
2158: rm -f conftest.$ac_objext conftest.$ac_ext
2159: fi
2160: echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2161: echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2162: if test "$ac_test_CXXFLAGS" = set; then
2163: CXXFLAGS=$ac_save_CXXFLAGS
2164: elif test $ac_cv_prog_cxx_g = yes; then
2165: if test "$GXX" = yes; then
2166: CXXFLAGS="-g -O2"
2167: else
2168: CXXFLAGS="-g"
2169: fi
2170: else
2171: if test "$GXX" = yes; then
2172: CXXFLAGS="-O2"
2173: else
2174: CXXFLAGS=
2175: fi
2176: fi
2177: for ac_declaration in \
2178: ''\
2179: '#include <stdlib.h>' \
2180: 'extern "C" void std::exit (int) throw (); using std::exit;' \
2181: 'extern "C" void std::exit (int); using std::exit;' \
2182: 'extern "C" void exit (int) throw ();' \
2183: 'extern "C" void exit (int);' \
2184: 'void exit (int);'
2185: do
2186: cat >conftest.$ac_ext <<_ACEOF
2187: #line $LINENO "configure"
2188: #include "confdefs.h"
2189: #include <stdlib.h>
2190: $ac_declaration
2191: #ifdef F77_DUMMY_MAIN
2192: # ifdef __cplusplus
2193: extern "C"
2194: # endif
2195: int F77_DUMMY_MAIN() { return 1; }
2196: #endif
2197: int
2198: main ()
2199: {
2200: exit (42);
2201: ;
2202: return 0;
2203: }
2204: _ACEOF
2205: rm -f conftest.$ac_objext
2206: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207: (eval $ac_compile) 2>&5
2208: ac_status=$?
2209: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210: (exit $ac_status); } &&
2211: { ac_try='test -s conftest.$ac_objext'
2212: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213: (eval $ac_try) 2>&5
2214: ac_status=$?
2215: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216: (exit $ac_status); }; }; then
2217: :
2218: else
2219: echo "$as_me: failed program was:" >&5
2220: cat conftest.$ac_ext >&5
2221: continue
2222: fi
2223: rm -f conftest.$ac_objext conftest.$ac_ext
2224: cat >conftest.$ac_ext <<_ACEOF
2225: #line $LINENO "configure"
2226: #include "confdefs.h"
2227: $ac_declaration
2228: #ifdef F77_DUMMY_MAIN
2229: # ifdef __cplusplus
2230: extern "C"
2231: # endif
2232: int F77_DUMMY_MAIN() { return 1; }
2233: #endif
2234: int
2235: main ()
2236: {
2237: exit (42);
2238: ;
2239: return 0;
2240: }
2241: _ACEOF
2242: rm -f conftest.$ac_objext
2243: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2244: (eval $ac_compile) 2>&5
2245: ac_status=$?
2246: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247: (exit $ac_status); } &&
2248: { ac_try='test -s conftest.$ac_objext'
2249: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250: (eval $ac_try) 2>&5
2251: ac_status=$?
2252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253: (exit $ac_status); }; }; then
2254: break
2255: else
2256: echo "$as_me: failed program was:" >&5
2257: cat conftest.$ac_ext >&5
2258: fi
2259: rm -f conftest.$ac_objext conftest.$ac_ext
2260: done
2261: rm -f conftest*
2262: if test -n "$ac_declaration"; then
2263: echo '#ifdef __cplusplus' >>confdefs.h
2264: echo $ac_declaration >>confdefs.h
2265: echo '#endif' >>confdefs.h
2266: fi
2267:
2268: ac_ext=c
2269: ac_cpp='$CPP $CPPFLAGS'
2270: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2271: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2272: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2273:
2274: if test x$CC = xgcc; then
2275: CFLAGS="-Wall $CFLAGS"
2276: fi
2277: if test x$CXX = xg++; then
2278: CXXFLAGS="-Wall $CXXFLAGS"
2279: fi
2280:
2281:
2282:
2283:
2284:
2285:
2286: ac_ext=c
2287: ac_cpp='$CPP $CPPFLAGS'
2288: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2291: echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2292: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2293: # On Suns, sometimes $CPP names a directory.
2294: if test -n "$CPP" && test -d "$CPP"; then
2295: CPP=
2296: fi
2297: if test -z "$CPP"; then
2298: if test "${ac_cv_prog_CPP+set}" = set; then
2299: echo $ECHO_N "(cached) $ECHO_C" >&6
2300: else
2301: # Double quotes because CPP needs to be expanded
2302: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2303: do
2304: ac_preproc_ok=false
2305: for ac_c_preproc_warn_flag in '' yes
2306: do
2307: # Use a header file that comes with gcc, so configuring glibc
2308: # with a fresh cross-compiler works.
2309: # On the NeXT, cc -E runs the code through the compiler's parser,
2310: # not just through cpp. "Syntax error" is here to catch this case.
2311: cat >conftest.$ac_ext <<_ACEOF
2312: #line $LINENO "configure"
2313: #include "confdefs.h"
2314: #include <assert.h>
2315: Syntax error
2316: _ACEOF
2317: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2318: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2319: ac_status=$?
2320: egrep -v '^ *\+' conftest.er1 >conftest.err
2321: rm -f conftest.er1
2322: cat conftest.err >&5
2323: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324: (exit $ac_status); } >/dev/null; then
2325: if test -s conftest.err; then
2326: ac_cpp_err=$ac_c_preproc_warn_flag
2327: else
2328: ac_cpp_err=
2329: fi
2330: else
2331: ac_cpp_err=yes
2332: fi
2333: if test -z "$ac_cpp_err"; then
2334: :
2335: else
2336: echo "$as_me: failed program was:" >&5
2337: cat conftest.$ac_ext >&5
2338: # Broken: fails on valid input.
2339: continue
2340: fi
2341: rm -f conftest.err conftest.$ac_ext
2342:
2343: # OK, works on sane cases. Now check whether non-existent headers
2344: # can be detected and how.
2345: cat >conftest.$ac_ext <<_ACEOF
2346: #line $LINENO "configure"
2347: #include "confdefs.h"
2348: #include <ac_nonexistent.h>
2349: _ACEOF
2350: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2351: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2352: ac_status=$?
2353: egrep -v '^ *\+' conftest.er1 >conftest.err
2354: rm -f conftest.er1
2355: cat conftest.err >&5
2356: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357: (exit $ac_status); } >/dev/null; then
2358: if test -s conftest.err; then
2359: ac_cpp_err=$ac_c_preproc_warn_flag
2360: else
2361: ac_cpp_err=
2362: fi
2363: else
2364: ac_cpp_err=yes
2365: fi
2366: if test -z "$ac_cpp_err"; then
2367: # Broken: success on invalid input.
2368: continue
2369: else
2370: echo "$as_me: failed program was:" >&5
2371: cat conftest.$ac_ext >&5
2372: # Passes both tests.
2373: ac_preproc_ok=:
2374: break
2375: fi
2376: rm -f conftest.err conftest.$ac_ext
2377:
2378: done
2379: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2380: rm -f conftest.err conftest.$ac_ext
2381: if $ac_preproc_ok; then
2382: break
2383: fi
2384:
2385: done
2386: ac_cv_prog_CPP=$CPP
2387:
2388: fi
2389: CPP=$ac_cv_prog_CPP
2390: else
2391: ac_cv_prog_CPP=$CPP
2392: fi
2393: echo "$as_me:$LINENO: result: $CPP" >&5
2394: echo "${ECHO_T}$CPP" >&6
2395: ac_preproc_ok=false
2396: for ac_c_preproc_warn_flag in '' yes
2397: do
2398: # Use a header file that comes with gcc, so configuring glibc
2399: # with a fresh cross-compiler works.
2400: # On the NeXT, cc -E runs the code through the compiler's parser,
2401: # not just through cpp. "Syntax error" is here to catch this case.
2402: cat >conftest.$ac_ext <<_ACEOF
2403: #line $LINENO "configure"
2404: #include "confdefs.h"
2405: #include <assert.h>
2406: Syntax error
2407: _ACEOF
2408: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2409: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2410: ac_status=$?
2411: egrep -v '^ *\+' conftest.er1 >conftest.err
2412: rm -f conftest.er1
2413: cat conftest.err >&5
2414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415: (exit $ac_status); } >/dev/null; then
2416: if test -s conftest.err; then
2417: ac_cpp_err=$ac_c_preproc_warn_flag
2418: else
2419: ac_cpp_err=
2420: fi
2421: else
2422: ac_cpp_err=yes
2423: fi
2424: if test -z "$ac_cpp_err"; then
2425: :
2426: else
2427: echo "$as_me: failed program was:" >&5
2428: cat conftest.$ac_ext >&5
2429: # Broken: fails on valid input.
2430: continue
2431: fi
2432: rm -f conftest.err conftest.$ac_ext
2433:
2434: # OK, works on sane cases. Now check whether non-existent headers
2435: # can be detected and how.
2436: cat >conftest.$ac_ext <<_ACEOF
2437: #line $LINENO "configure"
2438: #include "confdefs.h"
2439: #include <ac_nonexistent.h>
2440: _ACEOF
2441: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2442: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2443: ac_status=$?
2444: egrep -v '^ *\+' conftest.er1 >conftest.err
2445: rm -f conftest.er1
2446: cat conftest.err >&5
2447: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448: (exit $ac_status); } >/dev/null; then
2449: if test -s conftest.err; then
2450: ac_cpp_err=$ac_c_preproc_warn_flag
2451: else
2452: ac_cpp_err=
2453: fi
2454: else
2455: ac_cpp_err=yes
2456: fi
2457: if test -z "$ac_cpp_err"; then
2458: # Broken: success on invalid input.
2459: continue
2460: else
2461: echo "$as_me: failed program was:" >&5
2462: cat conftest.$ac_ext >&5
2463: # Passes both tests.
2464: ac_preproc_ok=:
2465: break
2466: fi
2467: rm -f conftest.err conftest.$ac_ext
2468:
2469: done
2470: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2471: rm -f conftest.err conftest.$ac_ext
2472: if $ac_preproc_ok; then
2473: :
2474: else
2475: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2476: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2477: { (exit 1); exit 1; }; }
2478: fi
2479:
2480: ac_ext=c
2481: ac_cpp='$CPP $CPPFLAGS'
2482: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485:
2486:
2487: echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2488: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2489: if test "${ac_cv_header_stdc+set}" = set; then
2490: echo $ECHO_N "(cached) $ECHO_C" >&6
2491: else
2492: cat >conftest.$ac_ext <<_ACEOF
2493: #line $LINENO "configure"
2494: #include "confdefs.h"
2495: #include <stdlib.h>
2496: #include <stdarg.h>
2497: #include <string.h>
2498: #include <float.h>
2499:
2500: _ACEOF
2501: if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2502: (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2503: ac_status=$?
2504: egrep -v '^ *\+' conftest.er1 >conftest.err
2505: rm -f conftest.er1
2506: cat conftest.err >&5
2507: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508: (exit $ac_status); } >/dev/null; then
2509: if test -s conftest.err; then
2510: ac_cpp_err=$ac_c_preproc_warn_flag
2511: else
2512: ac_cpp_err=
2513: fi
2514: else
2515: ac_cpp_err=yes
2516: fi
2517: if test -z "$ac_cpp_err"; then
2518: ac_cv_header_stdc=yes
2519: else
2520: echo "$as_me: failed program was:" >&5
2521: cat conftest.$ac_ext >&5
2522: ac_cv_header_stdc=no
2523: fi
2524: rm -f conftest.err conftest.$ac_ext
2525:
2526: if test $ac_cv_header_stdc = yes; then
2527: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2528: cat >conftest.$ac_ext <<_ACEOF
2529: #line $LINENO "configure"
2530: #include "confdefs.h"
2531: #include <string.h>
2532:
2533: _ACEOF
2534: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2535: egrep "memchr" >/dev/null 2>&1; then
2536: :
2537: else
2538: ac_cv_header_stdc=no
2539: fi
2540: rm -f conftest*
2541:
2542: fi
2543:
2544: if test $ac_cv_header_stdc = yes; then
2545: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2546: cat >conftest.$ac_ext <<_ACEOF
2547: #line $LINENO "configure"
2548: #include "confdefs.h"
2549: #include <stdlib.h>
2550:
2551: _ACEOF
2552: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2553: egrep "free" >/dev/null 2>&1; then
2554: :
2555: else
2556: ac_cv_header_stdc=no
2557: fi
2558: rm -f conftest*
2559:
2560: fi
2561:
2562: if test $ac_cv_header_stdc = yes; then
2563: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2564: if test "$cross_compiling" = yes; then
2565: :
2566: else
2567: cat >conftest.$ac_ext <<_ACEOF
2568: #line $LINENO "configure"
2569: #include "confdefs.h"
2570: #include <ctype.h>
2571: #if ((' ' & 0x0FF) == 0x020)
2572: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2573: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2574: #else
2575: # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2576: || ('j' <= (c) && (c) <= 'r') \
2577: || ('s' <= (c) && (c) <= 'z'))
2578: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2579: #endif
2580:
2581: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2582: int
2583: main ()
2584: {
2585: int i;
2586: for (i = 0; i < 256; i++)
2587: if (XOR (islower (i), ISLOWER (i))
2588: || toupper (i) != TOUPPER (i))
2589: exit(2);
2590: exit (0);
2591: }
2592: _ACEOF
2593: rm -f conftest$ac_exeext
2594: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2595: (eval $ac_link) 2>&5
2596: ac_status=$?
2597: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2599: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600: (eval $ac_try) 2>&5
2601: ac_status=$?
2602: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603: (exit $ac_status); }; }; then
2604: :
2605: else
2606: echo "$as_me: program exited with status $ac_status" >&5
2607: echo "$as_me: failed program was:" >&5
2608: cat conftest.$ac_ext >&5
2609: ( exit $ac_status )
2610: ac_cv_header_stdc=no
2611: fi
2612: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2613: fi
2614: fi
2615: fi
2616: echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2617: echo "${ECHO_T}$ac_cv_header_stdc" >&6
2618: if test $ac_cv_header_stdc = yes; then
2619:
2620: cat >>confdefs.h <<\_ACEOF
2621: #define STDC_HEADERS 1
2622: _ACEOF
2623:
2624: fi
2625:
2626:
2627:
2628: echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2629: echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2630: if test "${ac_cv_prog_cc_stdc+set}" = set; then
2631: echo $ECHO_N "(cached) $ECHO_C" >&6
2632: else
2633: ac_cv_prog_cc_stdc=no
2634: ac_save_CC=$CC
2635: cat >conftest.$ac_ext <<_ACEOF
2636: #line $LINENO "configure"
2637: #include "confdefs.h"
2638: #include <stdarg.h>
2639: #include <stdio.h>
2640: #include <sys/types.h>
2641: #include <sys/stat.h>
2642: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2643: struct buf { int x; };
2644: FILE * (*rcsopen) (struct buf *, struct stat *, int);
2645: static char *e (p, i)
2646: char **p;
2647: int i;
2648: {
2649: return p[i];
2650: }
2651: static char *f (char * (*g) (char **, int), char **p, ...)
2652: {
2653: char *s;
2654: va_list v;
2655: va_start (v,p);
2656: s = g (p, va_arg (v,int));
2657: va_end (v);
2658: return s;
2659: }
2660: int test (int i, double x);
2661: struct s1 {int (*f) (int a);};
2662: struct s2 {int (*f) (double a);};
2663: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2664: int argc;
2665: char **argv;
2666: #ifdef F77_DUMMY_MAIN
2667: # ifdef __cplusplus
2668: extern "C"
2669: # endif
2670: int F77_DUMMY_MAIN() { return 1; }
2671: #endif
2672: int
2673: main ()
2674: {
2675: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2676: ;
2677: return 0;
2678: }
2679: _ACEOF
2680: # Don't try gcc -ansi; that turns off useful extensions and
2681: # breaks some systems' header files.
2682: # AIX -qlanglvl=ansi
2683: # Ultrix and OSF/1 -std1
2684: # HP-UX 10.20 and later -Ae
2685: # HP-UX older versions -Aa -D_HPUX_SOURCE
2686: # SVR4 -Xc -D__EXTENSIONS__
2687: for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2688: do
2689: CC="$ac_save_CC $ac_arg"
2690: rm -f conftest.$ac_objext
2691: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692: (eval $ac_compile) 2>&5
2693: ac_status=$?
2694: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695: (exit $ac_status); } &&
2696: { ac_try='test -s conftest.$ac_objext'
2697: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698: (eval $ac_try) 2>&5
2699: ac_status=$?
2700: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701: (exit $ac_status); }; }; then
2702: ac_cv_prog_cc_stdc=$ac_arg
2703: break
2704: else
2705: echo "$as_me: failed program was:" >&5
2706: cat conftest.$ac_ext >&5
2707: fi
2708: rm -f conftest.$ac_objext
2709: done
2710: rm -f conftest.$ac_ext conftest.$ac_objext
2711: CC=$ac_save_CC
2712:
2713: fi
2714:
2715: case "x$ac_cv_prog_cc_stdc" in
2716: x|xno)
2717: echo "$as_me:$LINENO: result: none needed" >&5
2718: echo "${ECHO_T}none needed" >&6 ;;
2719: *)
2720: echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2721: echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2722: CC="$CC $ac_cv_prog_cc_stdc" ;;
2723: esac
2724:
2725: echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2726: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2727: if test "${ac_cv_c_const+set}" = set; then
2728: echo $ECHO_N "(cached) $ECHO_C" >&6
2729: else
2730: cat >conftest.$ac_ext <<_ACEOF
2731: #line $LINENO "configure"
2732: #include "confdefs.h"
2733:
2734: #ifdef F77_DUMMY_MAIN
2735: # ifdef __cplusplus
2736: extern "C"
2737: # endif
2738: int F77_DUMMY_MAIN() { return 1; }
2739: #endif
2740: int
2741: main ()
2742: {
2743: /* FIXME: Include the comments suggested by Paul. */
2744: #ifndef __cplusplus
2745: /* Ultrix mips cc rejects this. */
2746: typedef int charset[2];
2747: const charset x;
2748: /* SunOS 4.1.1 cc rejects this. */
2749: char const *const *ccp;
2750: char **p;
2751: /* NEC SVR4.0.2 mips cc rejects this. */
2752: struct point {int x, y;};
2753: static struct point const zero = {0,0};
2754: /* AIX XL C 1.02.0.0 rejects this.
2755: It does not let you subtract one const X* pointer from another in
2756: an arm of an if-expression whose if-part is not a constant
2757: expression */
2758: const char *g = "string";
2759: ccp = &g + (g ? g-g : 0);
2760: /* HPUX 7.0 cc rejects these. */
2761: ++ccp;
2762: p = (char**) ccp;
2763: ccp = (char const *const *) p;
2764: { /* SCO 3.2v4 cc rejects this. */
2765: char *t;
2766: char const *s = 0 ? (char *) 0 : (char const *) 0;
2767:
2768: *t++ = 0;
2769: }
2770: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2771: int x[] = {25, 17};
2772: const int *foo = &x[0];
2773: ++foo;
2774: }
2775: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2776: typedef const int *iptr;
2777: iptr p = 0;
2778: ++p;
2779: }
2780: { /* AIX XL C 1.02.0.0 rejects this saying
2781: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2782: struct s { int j; const int *ap[3]; };
2783: struct s *b; b->j = 5;
2784: }
2785: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2786: const int foo = 10;
2787: }
2788: #endif
2789:
2790: ;
2791: return 0;
2792: }
2793: _ACEOF
2794: rm -f conftest.$ac_objext
2795: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796: (eval $ac_compile) 2>&5
2797: ac_status=$?
2798: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799: (exit $ac_status); } &&
2800: { ac_try='test -s conftest.$ac_objext'
2801: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802: (eval $ac_try) 2>&5
2803: ac_status=$?
2804: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805: (exit $ac_status); }; }; then
2806: ac_cv_c_const=yes
2807: else
2808: echo "$as_me: failed program was:" >&5
2809: cat conftest.$ac_ext >&5
2810: ac_cv_c_const=no
2811: fi
2812: rm -f conftest.$ac_objext conftest.$ac_ext
2813: fi
2814: echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2815: echo "${ECHO_T}$ac_cv_c_const" >&6
2816: if test $ac_cv_c_const = no; then
2817:
2818: cat >>confdefs.h <<\_ACEOF
2819: #define const
2820: _ACEOF
2821:
2822: fi
1.2 iwane 2823:
2824: echo "$as_me:$LINENO: checking for inline" >&5
2825: echo $ECHO_N "checking for inline... $ECHO_C" >&6
2826: if test "${ac_cv_c_inline+set}" = set; then
2827: echo $ECHO_N "(cached) $ECHO_C" >&6
2828: else
2829: ac_cv_c_inline=no
2830: for ac_kw in inline __inline__ __inline; do
2831: cat >conftest.$ac_ext <<_ACEOF
2832: #line $LINENO "configure"
2833: #include "confdefs.h"
2834: #ifndef __cplusplus
2835: static $ac_kw int static_foo () {return 0; }
2836: $ac_kw int foo () {return 0; }
2837: #endif
2838:
2839: _ACEOF
2840: rm -f conftest.$ac_objext
2841: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2842: (eval $ac_compile) 2>&5
2843: ac_status=$?
2844: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845: (exit $ac_status); } &&
2846: { ac_try='test -s conftest.$ac_objext'
2847: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2848: (eval $ac_try) 2>&5
2849: ac_status=$?
2850: echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851: (exit $ac_status); }; }; then
2852: ac_cv_c_inline=$ac_kw; break
2853: else
2854: echo "$as_me: failed program was:" >&5
2855: cat conftest.$ac_ext >&5
2856: fi
2857: rm -f conftest.$ac_objext conftest.$ac_ext
2858: done
2859:
2860: fi
2861: echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
2862: echo "${ECHO_T}$ac_cv_c_inline" >&6
2863: case $ac_cv_c_inline in
2864: inline | yes) ;;
2865: no)
2866: cat >>confdefs.h <<\_ACEOF
2867: #define inline
2868: _ACEOF
2869: ;;
2870: *) cat >>confdefs.h <<_ACEOF
2871: #define inline $ac_cv_c_inline
2872: _ACEOF
2873: ;;
1.3 ! iwane 2874: esac
! 2875:
! 2876: echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
! 2877: echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
! 2878: if test "${ac_cv_c_bigendian+set}" = set; then
! 2879: echo $ECHO_N "(cached) $ECHO_C" >&6
! 2880: else
! 2881: # See if sys/param.h defines the BYTE_ORDER macro.
! 2882: cat >conftest.$ac_ext <<_ACEOF
! 2883: #line $LINENO "configure"
! 2884: #include "confdefs.h"
! 2885: #include <sys/types.h>
! 2886: #include <sys/param.h>
! 2887:
! 2888: #ifdef F77_DUMMY_MAIN
! 2889: # ifdef __cplusplus
! 2890: extern "C"
! 2891: # endif
! 2892: int F77_DUMMY_MAIN() { return 1; }
! 2893: #endif
! 2894: int
! 2895: main ()
! 2896: {
! 2897: #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
! 2898: bogus endian macros
! 2899: #endif
! 2900:
! 2901: ;
! 2902: return 0;
! 2903: }
! 2904: _ACEOF
! 2905: rm -f conftest.$ac_objext
! 2906: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2907: (eval $ac_compile) 2>&5
! 2908: ac_status=$?
! 2909: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2910: (exit $ac_status); } &&
! 2911: { ac_try='test -s conftest.$ac_objext'
! 2912: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2913: (eval $ac_try) 2>&5
! 2914: ac_status=$?
! 2915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2916: (exit $ac_status); }; }; then
! 2917: # It does; now see whether it defined to BIG_ENDIAN or not.
! 2918: cat >conftest.$ac_ext <<_ACEOF
! 2919: #line $LINENO "configure"
! 2920: #include "confdefs.h"
! 2921: #include <sys/types.h>
! 2922: #include <sys/param.h>
! 2923:
! 2924: #ifdef F77_DUMMY_MAIN
! 2925: # ifdef __cplusplus
! 2926: extern "C"
! 2927: # endif
! 2928: int F77_DUMMY_MAIN() { return 1; }
! 2929: #endif
! 2930: int
! 2931: main ()
! 2932: {
! 2933: #if BYTE_ORDER != BIG_ENDIAN
! 2934: not big endian
! 2935: #endif
! 2936:
! 2937: ;
! 2938: return 0;
! 2939: }
! 2940: _ACEOF
! 2941: rm -f conftest.$ac_objext
! 2942: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2943: (eval $ac_compile) 2>&5
! 2944: ac_status=$?
! 2945: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2946: (exit $ac_status); } &&
! 2947: { ac_try='test -s conftest.$ac_objext'
! 2948: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2949: (eval $ac_try) 2>&5
! 2950: ac_status=$?
! 2951: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2952: (exit $ac_status); }; }; then
! 2953: ac_cv_c_bigendian=yes
! 2954: else
! 2955: echo "$as_me: failed program was:" >&5
! 2956: cat conftest.$ac_ext >&5
! 2957: ac_cv_c_bigendian=no
! 2958: fi
! 2959: rm -f conftest.$ac_objext conftest.$ac_ext
! 2960: else
! 2961: echo "$as_me: failed program was:" >&5
! 2962: cat conftest.$ac_ext >&5
! 2963: # It does not; compile a test program.
! 2964: if test "$cross_compiling" = yes; then
! 2965: # try to guess the endianess by grep'ing values into an object file
! 2966: ac_cv_c_bigendian=unknown
! 2967: cat >conftest.$ac_ext <<_ACEOF
! 2968: #line $LINENO "configure"
! 2969: #include "confdefs.h"
! 2970: short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
! 2971: short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
! 2972: void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
! 2973: short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
! 2974: short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
! 2975: void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
! 2976: #ifdef F77_DUMMY_MAIN
! 2977: # ifdef __cplusplus
! 2978: extern "C"
! 2979: # endif
! 2980: int F77_DUMMY_MAIN() { return 1; }
! 2981: #endif
! 2982: int
! 2983: main ()
! 2984: {
! 2985: _ascii (); _ebcdic ();
! 2986: ;
! 2987: return 0;
! 2988: }
! 2989: _ACEOF
! 2990: rm -f conftest.$ac_objext
! 2991: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
! 2992: (eval $ac_compile) 2>&5
! 2993: ac_status=$?
! 2994: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 2995: (exit $ac_status); } &&
! 2996: { ac_try='test -s conftest.$ac_objext'
! 2997: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 2998: (eval $ac_try) 2>&5
! 2999: ac_status=$?
! 3000: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3001: (exit $ac_status); }; }; then
! 3002: if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
! 3003: ac_cv_c_bigendian=yes
! 3004: fi
! 3005: if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
! 3006: if test "$ac_cv_c_bigendian" = unknown; then
! 3007: ac_cv_c_bigendian=no
! 3008: else
! 3009: # finding both strings is unlikely to happen, but who knows?
! 3010: ac_cv_c_bigendian=unknown
! 3011: fi
! 3012: fi
! 3013: else
! 3014: echo "$as_me: failed program was:" >&5
! 3015: cat conftest.$ac_ext >&5
! 3016: fi
! 3017: rm -f conftest.$ac_objext conftest.$ac_ext
! 3018: else
! 3019: cat >conftest.$ac_ext <<_ACEOF
! 3020: #line $LINENO "configure"
! 3021: #include "confdefs.h"
! 3022: int
! 3023: main ()
! 3024: {
! 3025: /* Are we little or big endian? From Harbison&Steele. */
! 3026: union
! 3027: {
! 3028: long l;
! 3029: char c[sizeof (long)];
! 3030: } u;
! 3031: u.l = 1;
! 3032: exit (u.c[sizeof (long) - 1] == 1);
! 3033: }
! 3034: _ACEOF
! 3035: rm -f conftest$ac_exeext
! 3036: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
! 3037: (eval $ac_link) 2>&5
! 3038: ac_status=$?
! 3039: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3040: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 3041: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
! 3042: (eval $ac_try) 2>&5
! 3043: ac_status=$?
! 3044: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 3045: (exit $ac_status); }; }; then
! 3046: ac_cv_c_bigendian=no
! 3047: else
! 3048: echo "$as_me: program exited with status $ac_status" >&5
! 3049: echo "$as_me: failed program was:" >&5
! 3050: cat conftest.$ac_ext >&5
! 3051: ( exit $ac_status )
! 3052: ac_cv_c_bigendian=yes
! 3053: fi
! 3054: rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 3055: fi
! 3056: fi
! 3057: rm -f conftest.$ac_objext conftest.$ac_ext
! 3058: fi
! 3059: echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
! 3060: echo "${ECHO_T}$ac_cv_c_bigendian" >&6
! 3061: case $ac_cv_c_bigendian in
! 3062: yes)
! 3063:
! 3064: cat >>confdefs.h <<\_ACEOF
! 3065: #define WORDS_BIGENDIAN 1
! 3066: _ACEOF
! 3067: ;;
! 3068: no)
! 3069: ;;
! 3070: *)
! 3071: { { echo "$as_me:$LINENO: error: unknown endianess
! 3072: presetting ac_cv_c_bigendian=no (or yes) will help" >&5
! 3073: echo "$as_me: error: unknown endianess
! 3074: presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
! 3075: { (exit 1); exit 1; }; } ;;
1.2 iwane 3076: esac
1.1 iwane 3077:
3078:
3079:
3080:
3081: echo "$as_me:$LINENO: checking return type of signal handlers" >&5
3082: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
3083: if test "${ac_cv_type_signal+set}" = set; then
3084: echo $ECHO_N "(cached) $ECHO_C" >&6
3085: else
3086: cat >conftest.$ac_ext <<_ACEOF
3087: #line $LINENO "configure"
3088: #include "confdefs.h"
3089: #include <sys/types.h>
3090: #include <signal.h>
3091: #ifdef signal
3092: # undef signal
3093: #endif
3094: #ifdef __cplusplus
3095: extern "C" void (*signal (int, void (*)(int)))(int);
3096: #else
3097: void (*signal ()) ();
3098: #endif
3099:
3100: #ifdef F77_DUMMY_MAIN
3101: # ifdef __cplusplus
3102: extern "C"
3103: # endif
3104: int F77_DUMMY_MAIN() { return 1; }
3105: #endif
3106: int
3107: main ()
3108: {
3109: int i;
3110: ;
3111: return 0;
3112: }
3113: _ACEOF
3114: rm -f conftest.$ac_objext
3115: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3116: (eval $ac_compile) 2>&5
3117: ac_status=$?
3118: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119: (exit $ac_status); } &&
3120: { ac_try='test -s conftest.$ac_objext'
3121: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3122: (eval $ac_try) 2>&5
3123: ac_status=$?
3124: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125: (exit $ac_status); }; }; then
3126: ac_cv_type_signal=void
3127: else
3128: echo "$as_me: failed program was:" >&5
3129: cat conftest.$ac_ext >&5
3130: ac_cv_type_signal=int
3131: fi
3132: rm -f conftest.$ac_objext conftest.$ac_ext
3133: fi
3134: echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
3135: echo "${ECHO_T}$ac_cv_type_signal" >&6
3136:
3137: cat >>confdefs.h <<_ACEOF
3138: #define RETSIGTYPE $ac_cv_type_signal
3139: _ACEOF
3140:
3141:
3142:
3143: echo "$as_me:$LINENO: checking for socket" >&5
3144: echo $ECHO_N "checking for socket... $ECHO_C" >&6
3145: if test "${ac_cv_func_socket+set}" = set; then
3146: echo $ECHO_N "(cached) $ECHO_C" >&6
3147: else
3148: cat >conftest.$ac_ext <<_ACEOF
3149: #line $LINENO "configure"
3150: #include "confdefs.h"
3151: /* System header to define __stub macros and hopefully few prototypes,
3152: which can conflict with char socket (); below. */
3153: #include <assert.h>
3154: /* Override any gcc2 internal prototype to avoid an error. */
3155: #ifdef __cplusplus
3156: extern "C"
3157: #endif
3158: /* We use char because int might match the return type of a gcc2
3159: builtin and then its argument prototype would still apply. */
3160: char socket ();
3161: char (*f) ();
3162:
3163: #ifdef F77_DUMMY_MAIN
3164: # ifdef __cplusplus
3165: extern "C"
3166: # endif
3167: int F77_DUMMY_MAIN() { return 1; }
3168: #endif
3169: int
3170: main ()
3171: {
3172: /* The GNU C library defines this for functions which it implements
3173: to always fail with ENOSYS. Some functions are actually named
3174: something starting with __ and the normal name is an alias. */
3175: #if defined (__stub_socket) || defined (__stub___socket)
3176: choke me
3177: #else
3178: f = socket;
3179: #endif
3180:
3181: ;
3182: return 0;
3183: }
3184: _ACEOF
3185: rm -f conftest.$ac_objext conftest$ac_exeext
3186: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3187: (eval $ac_link) 2>&5
3188: ac_status=$?
3189: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190: (exit $ac_status); } &&
3191: { ac_try='test -s conftest$ac_exeext'
3192: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193: (eval $ac_try) 2>&5
3194: ac_status=$?
3195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196: (exit $ac_status); }; }; then
3197: ac_cv_func_socket=yes
3198: else
3199: echo "$as_me: failed program was:" >&5
3200: cat conftest.$ac_ext >&5
3201: ac_cv_func_socket=no
3202: fi
3203: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3204: fi
3205: echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
3206: echo "${ECHO_T}$ac_cv_func_socket" >&6
3207:
3208: if test "$ac_cv_func_socket" = no ; then
3209:
3210: echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
3211: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
3212: if test "${ac_cv_lib_socket_socket+set}" = set; then
3213: echo $ECHO_N "(cached) $ECHO_C" >&6
3214: else
3215: ac_check_lib_save_LIBS=$LIBS
3216: LIBS="-lsocket $LIBS"
3217: cat >conftest.$ac_ext <<_ACEOF
3218: #line $LINENO "configure"
3219: #include "confdefs.h"
3220:
3221: /* Override any gcc2 internal prototype to avoid an error. */
3222: #ifdef __cplusplus
3223: extern "C"
3224: #endif
3225: /* We use char because int might match the return type of a gcc2
3226: builtin and then its argument prototype would still apply. */
3227: char socket ();
3228: #ifdef F77_DUMMY_MAIN
3229: # ifdef __cplusplus
3230: extern "C"
3231: # endif
3232: int F77_DUMMY_MAIN() { return 1; }
3233: #endif
3234: int
3235: main ()
3236: {
3237: socket ();
3238: ;
3239: return 0;
3240: }
3241: _ACEOF
3242: rm -f conftest.$ac_objext conftest$ac_exeext
3243: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3244: (eval $ac_link) 2>&5
3245: ac_status=$?
3246: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247: (exit $ac_status); } &&
3248: { ac_try='test -s conftest$ac_exeext'
3249: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250: (eval $ac_try) 2>&5
3251: ac_status=$?
3252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253: (exit $ac_status); }; }; then
3254: ac_cv_lib_socket_socket=yes
3255: else
3256: echo "$as_me: failed program was:" >&5
3257: cat conftest.$ac_ext >&5
3258: ac_cv_lib_socket_socket=no
3259: fi
3260: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3261: LIBS=$ac_check_lib_save_LIBS
3262: fi
3263: echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
3264: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
3265: if test $ac_cv_lib_socket_socket = yes; then
3266: cat >>confdefs.h <<_ACEOF
3267: #define HAVE_LIBSOCKET 1
3268: _ACEOF
3269:
3270: LIBS="-lsocket $LIBS"
3271:
3272: fi
3273:
3274: fi
3275: echo "$as_me:$LINENO: checking for gethostbyname" >&5
3276: echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3277: if test "${ac_cv_func_gethostbyname+set}" = set; then
3278: echo $ECHO_N "(cached) $ECHO_C" >&6
3279: else
3280: cat >conftest.$ac_ext <<_ACEOF
3281: #line $LINENO "configure"
3282: #include "confdefs.h"
3283: /* System header to define __stub macros and hopefully few prototypes,
3284: which can conflict with char gethostbyname (); below. */
3285: #include <assert.h>
3286: /* Override any gcc2 internal prototype to avoid an error. */
3287: #ifdef __cplusplus
3288: extern "C"
3289: #endif
3290: /* We use char because int might match the return type of a gcc2
3291: builtin and then its argument prototype would still apply. */
3292: char gethostbyname ();
3293: char (*f) ();
3294:
3295: #ifdef F77_DUMMY_MAIN
3296: # ifdef __cplusplus
3297: extern "C"
3298: # endif
3299: int F77_DUMMY_MAIN() { return 1; }
3300: #endif
3301: int
3302: main ()
3303: {
3304: /* The GNU C library defines this for functions which it implements
3305: to always fail with ENOSYS. Some functions are actually named
3306: something starting with __ and the normal name is an alias. */
3307: #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3308: choke me
3309: #else
3310: f = gethostbyname;
3311: #endif
3312:
3313: ;
3314: return 0;
3315: }
3316: _ACEOF
3317: rm -f conftest.$ac_objext conftest$ac_exeext
3318: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3319: (eval $ac_link) 2>&5
3320: ac_status=$?
3321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3322: (exit $ac_status); } &&
3323: { ac_try='test -s conftest$ac_exeext'
3324: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325: (eval $ac_try) 2>&5
3326: ac_status=$?
3327: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328: (exit $ac_status); }; }; then
3329: ac_cv_func_gethostbyname=yes
3330: else
3331: echo "$as_me: failed program was:" >&5
3332: cat conftest.$ac_ext >&5
3333: ac_cv_func_gethostbyname=no
3334: fi
3335: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3336: fi
3337: echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3338: echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3339:
3340: if test "$ac_cv_func_gethostbyname" = no ; then
3341:
3342: echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3343: echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3344: if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3345: echo $ECHO_N "(cached) $ECHO_C" >&6
3346: else
3347: ac_check_lib_save_LIBS=$LIBS
3348: LIBS="-lnsl $LIBS"
3349: cat >conftest.$ac_ext <<_ACEOF
3350: #line $LINENO "configure"
3351: #include "confdefs.h"
3352:
3353: /* Override any gcc2 internal prototype to avoid an error. */
3354: #ifdef __cplusplus
3355: extern "C"
3356: #endif
3357: /* We use char because int might match the return type of a gcc2
3358: builtin and then its argument prototype would still apply. */
3359: char gethostbyname ();
3360: #ifdef F77_DUMMY_MAIN
3361: # ifdef __cplusplus
3362: extern "C"
3363: # endif
3364: int F77_DUMMY_MAIN() { return 1; }
3365: #endif
3366: int
3367: main ()
3368: {
3369: gethostbyname ();
3370: ;
3371: return 0;
3372: }
3373: _ACEOF
3374: rm -f conftest.$ac_objext conftest$ac_exeext
3375: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3376: (eval $ac_link) 2>&5
3377: ac_status=$?
3378: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379: (exit $ac_status); } &&
3380: { ac_try='test -s conftest$ac_exeext'
3381: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3382: (eval $ac_try) 2>&5
3383: ac_status=$?
3384: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385: (exit $ac_status); }; }; then
3386: ac_cv_lib_nsl_gethostbyname=yes
3387: else
3388: echo "$as_me: failed program was:" >&5
3389: cat conftest.$ac_ext >&5
3390: ac_cv_lib_nsl_gethostbyname=no
3391: fi
3392: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3393: LIBS=$ac_check_lib_save_LIBS
3394: fi
3395: echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3396: echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3397: if test $ac_cv_lib_nsl_gethostbyname = yes; then
3398: cat >>confdefs.h <<_ACEOF
3399: #define HAVE_LIBNSL 1
3400: _ACEOF
3401:
3402: LIBS="-lnsl $LIBS"
3403:
3404: fi
3405:
3406: fi
3407: echo "$as_me:$LINENO: checking for dlopen" >&5
3408: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
3409: if test "${ac_cv_func_dlopen+set}" = set; then
3410: echo $ECHO_N "(cached) $ECHO_C" >&6
3411: else
3412: cat >conftest.$ac_ext <<_ACEOF
3413: #line $LINENO "configure"
3414: #include "confdefs.h"
3415: /* System header to define __stub macros and hopefully few prototypes,
3416: which can conflict with char dlopen (); below. */
3417: #include <assert.h>
3418: /* Override any gcc2 internal prototype to avoid an error. */
3419: #ifdef __cplusplus
3420: extern "C"
3421: #endif
3422: /* We use char because int might match the return type of a gcc2
3423: builtin and then its argument prototype would still apply. */
3424: char dlopen ();
3425: char (*f) ();
3426:
3427: #ifdef F77_DUMMY_MAIN
3428: # ifdef __cplusplus
3429: extern "C"
3430: # endif
3431: int F77_DUMMY_MAIN() { return 1; }
3432: #endif
3433: int
3434: main ()
3435: {
3436: /* The GNU C library defines this for functions which it implements
3437: to always fail with ENOSYS. Some functions are actually named
3438: something starting with __ and the normal name is an alias. */
3439: #if defined (__stub_dlopen) || defined (__stub___dlopen)
3440: choke me
3441: #else
3442: f = dlopen;
3443: #endif
3444:
3445: ;
3446: return 0;
3447: }
3448: _ACEOF
3449: rm -f conftest.$ac_objext conftest$ac_exeext
3450: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3451: (eval $ac_link) 2>&5
3452: ac_status=$?
3453: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454: (exit $ac_status); } &&
3455: { ac_try='test -s conftest$ac_exeext'
3456: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3457: (eval $ac_try) 2>&5
3458: ac_status=$?
3459: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460: (exit $ac_status); }; }; then
3461: ac_cv_func_dlopen=yes
3462: else
3463: echo "$as_me: failed program was:" >&5
3464: cat conftest.$ac_ext >&5
3465: ac_cv_func_dlopen=no
3466: fi
3467: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3468: fi
3469: echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
3470: echo "${ECHO_T}$ac_cv_func_dlopen" >&6
3471:
3472: if test "$ac_cv_func_dlopen" = no; then
3473:
3474: echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3475: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3476: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3477: echo $ECHO_N "(cached) $ECHO_C" >&6
3478: else
3479: ac_check_lib_save_LIBS=$LIBS
3480: LIBS="-ldl $LIBS"
3481: cat >conftest.$ac_ext <<_ACEOF
3482: #line $LINENO "configure"
3483: #include "confdefs.h"
3484:
3485: /* Override any gcc2 internal prototype to avoid an error. */
3486: #ifdef __cplusplus
3487: extern "C"
3488: #endif
3489: /* We use char because int might match the return type of a gcc2
3490: builtin and then its argument prototype would still apply. */
3491: char dlopen ();
3492: #ifdef F77_DUMMY_MAIN
3493: # ifdef __cplusplus
3494: extern "C"
3495: # endif
3496: int F77_DUMMY_MAIN() { return 1; }
3497: #endif
3498: int
3499: main ()
3500: {
3501: dlopen ();
3502: ;
3503: return 0;
3504: }
3505: _ACEOF
3506: rm -f conftest.$ac_objext conftest$ac_exeext
3507: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3508: (eval $ac_link) 2>&5
3509: ac_status=$?
3510: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511: (exit $ac_status); } &&
3512: { ac_try='test -s conftest$ac_exeext'
3513: { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514: (eval $ac_try) 2>&5
3515: ac_status=$?
3516: echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517: (exit $ac_status); }; }; then
3518: ac_cv_lib_dl_dlopen=yes
3519: else
3520: echo "$as_me: failed program was:" >&5
3521: cat conftest.$ac_ext >&5
3522: ac_cv_lib_dl_dlopen=no
3523: fi
3524: rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3525: LIBS=$ac_check_lib_save_LIBS
3526: fi
3527: echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3528: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3529: if test $ac_cv_lib_dl_dlopen = yes; then
3530: cat >>confdefs.h <<_ACEOF
3531: #define HAVE_LIBDL 1
3532: _ACEOF
3533:
3534: LIBS="-ldl $LIBS"
3535:
3536: fi
3537:
3538: fi
3539:
3540: ac_config_files="$ac_config_files Makefile"
3541: cat >confcache <<\_ACEOF
3542: # This file is a shell script that caches the results of configure
3543: # tests run on this system so they can be shared between configure
3544: # scripts and configure runs, see configure's option --config-cache.
3545: # It is not useful on other systems. If it contains results you don't
3546: # want to keep, you may remove or edit it.
3547: #
3548: # config.status only pays attention to the cache file if you give it
3549: # the --recheck option to rerun configure.
3550: #
3551: # `ac_cv_env_foo' variables (set or unset) will be overriden when
3552: # loading this file, other *unset* `ac_cv_foo' will be assigned the
3553: # following values.
3554:
3555: _ACEOF
3556:
3557: # The following way of writing the cache mishandles newlines in values,
3558: # but we know of no workaround that is simple, portable, and efficient.
3559: # So, don't put newlines in cache variables' values.
3560: # Ultrix sh set writes to stderr and can't be redirected directly,
3561: # and sets the high bit in the cache file unless we assign to the vars.
3562: {
3563: (set) 2>&1 |
3564: case `(ac_space=' '; set | grep ac_space) 2>&1` in
3565: *ac_space=\ *)
3566: # `set' does not quote correctly, so add quotes (double-quote
3567: # substitution turns \\\\ into \\, and sed turns \\ into \).
3568: sed -n \
3569: "s/'/'\\\\''/g;
3570: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3571: ;;
3572: *)
3573: # `set' quotes correctly as required by POSIX, so do not add quotes.
3574: sed -n \
3575: "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3576: ;;
3577: esac;
3578: } |
3579: sed '
3580: t clear
3581: : clear
3582: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3583: t end
3584: /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3585: : end' >>confcache
3586: if cmp -s $cache_file confcache; then :; else
3587: if test -w $cache_file; then
3588: test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3589: cat confcache >$cache_file
3590: else
3591: echo "not updating unwritable cache $cache_file"
3592: fi
3593: fi
3594: rm -f confcache
3595:
3596: test "x$prefix" = xNONE && prefix=$ac_default_prefix
3597: # Let make expand exec_prefix.
3598: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3599:
3600: # VPATH may cause trouble with some makes, so we remove $(srcdir),
3601: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3602: # trailing colons and then remove the whole line if VPATH becomes empty
3603: # (actually we leave an empty line to preserve line numbers).
3604: if test "x$srcdir" = x.; then
3605: ac_vpsub='/^[ ]*VPATH[ ]*=/{
3606: s/:*\$(srcdir):*/:/;
3607: s/:*\${srcdir}:*/:/;
3608: s/:*@srcdir@:*/:/;
3609: s/^\([^=]*=[ ]*\):*/\1/;
3610: s/:*$//;
3611: s/^[^=]*=[ ]*$//;
3612: }'
3613: fi
3614:
3615: DEFS=-DHAVE_CONFIG_H
3616:
3617:
3618: : ${CONFIG_STATUS=./config.status}
3619: ac_clean_files_save=$ac_clean_files
3620: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3621: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3622: echo "$as_me: creating $CONFIG_STATUS" >&6;}
3623: cat >$CONFIG_STATUS <<_ACEOF
3624: #! $SHELL
3625: # Generated by $as_me.
3626: # Run this file to recreate the current configuration.
3627: # Compiler output produced by configure, useful for debugging
3628: # configure, is in config.log if it exists.
3629:
3630: debug=false
3631: SHELL=\${CONFIG_SHELL-$SHELL}
3632: _ACEOF
3633:
3634: cat >>$CONFIG_STATUS <<\_ACEOF
3635:
3636: ## --------------------- ##
3637: ## M4sh Initialization. ##
3638: ## --------------------- ##
3639:
3640: # Be Bourne compatible
3641: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3642: emulate sh
3643: NULLCMD=:
3644: elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3645: set -o posix
3646: fi
3647:
3648: # NLS nuisances.
3649: # Support unset when possible.
3650: if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3651: as_unset=unset
3652: else
3653: as_unset=false
3654: fi
3655:
3656: (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
3657: { $as_unset LANG || test "${LANG+set}" != set; } ||
3658: { LANG=C; export LANG; }
3659: (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
3660: { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
3661: { LC_ALL=C; export LC_ALL; }
3662: (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
3663: { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
3664: { LC_TIME=C; export LC_TIME; }
3665: (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
3666: { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
3667: { LC_CTYPE=C; export LC_CTYPE; }
3668: (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
3669: { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
3670: { LANGUAGE=C; export LANGUAGE; }
3671: (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
3672: { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
3673: { LC_COLLATE=C; export LC_COLLATE; }
3674: (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
3675: { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
3676: { LC_NUMERIC=C; export LC_NUMERIC; }
3677: (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
3678: { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
3679: { LC_MESSAGES=C; export LC_MESSAGES; }
3680:
3681:
3682: # Name of the executable.
3683: as_me=`(basename "$0") 2>/dev/null ||
3684: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3685: X"$0" : 'X\(//\)$' \| \
3686: X"$0" : 'X\(/\)$' \| \
3687: . : '\(.\)' 2>/dev/null ||
3688: echo X/"$0" |
3689: sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3690: /^X\/\(\/\/\)$/{ s//\1/; q; }
3691: /^X\/\(\/\).*/{ s//\1/; q; }
3692: s/.*/./; q'`
3693:
3694: # PATH needs CR, and LINENO needs CR and PATH.
3695: # Avoid depending upon Character Ranges.
3696: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3697: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3698: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3699: as_cr_digits='0123456789'
3700: as_cr_alnum=$as_cr_Letters$as_cr_digits
3701:
3702: # The user is always right.
3703: if test "${PATH_SEPARATOR+set}" != set; then
3704: echo "#! /bin/sh" >conftest.sh
3705: echo "exit 0" >>conftest.sh
3706: chmod +x conftest.sh
3707: if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
3708: PATH_SEPARATOR=';'
3709: else
3710: PATH_SEPARATOR=:
3711: fi
3712: rm -f conftest.sh
3713: fi
3714:
3715:
3716: as_lineno_1=$LINENO
3717: as_lineno_2=$LINENO
3718: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3719: test "x$as_lineno_1" != "x$as_lineno_2" &&
3720: test "x$as_lineno_3" = "x$as_lineno_2" || {
3721: # Find who we are. Look in the path if we contain no path at all
3722: # relative or not.
3723: case $0 in
3724: *[\\/]* ) as_myself=$0 ;;
3725: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726: for as_dir in $PATH
3727: do
3728: IFS=$as_save_IFS
3729: test -z "$as_dir" && as_dir=.
3730: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3731: done
3732:
3733: ;;
3734: esac
3735: # We did not find ourselves, most probably we were run as `sh COMMAND'
3736: # in which case we are not to be found in the path.
3737: if test "x$as_myself" = x; then
3738: as_myself=$0
3739: fi
3740: if test ! -f "$as_myself"; then
3741: { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3742: echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3743: { (exit 1); exit 1; }; }
3744: fi
3745: case $CONFIG_SHELL in
3746: '')
3747: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3749: do
3750: IFS=$as_save_IFS
3751: test -z "$as_dir" && as_dir=.
3752: for as_base in sh bash ksh sh5; do
3753: case $as_dir in
3754: /*)
3755: if ("$as_dir/$as_base" -c '
3756: as_lineno_1=$LINENO
3757: as_lineno_2=$LINENO
3758: as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3759: test "x$as_lineno_1" != "x$as_lineno_2" &&
3760: test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3761: CONFIG_SHELL=$as_dir/$as_base
3762: export CONFIG_SHELL
3763: exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3764: fi;;
3765: esac
3766: done
3767: done
3768: ;;
3769: esac
3770:
3771: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3772: # uniformly replaced by the line number. The first 'sed' inserts a
3773: # line-number line before each line; the second 'sed' does the real
3774: # work. The second script uses 'N' to pair each line-number line
3775: # with the numbered line, and appends trailing '-' during
3776: # substitution so that $LINENO is not a special case at line end.
3777: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3778: # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3779: sed '=' <$as_myself |
3780: sed '
3781: N
3782: s,$,-,
3783: : loop
3784: s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3785: t loop
3786: s,-$,,
3787: s,^['$as_cr_digits']*\n,,
3788: ' >$as_me.lineno &&
3789: chmod +x $as_me.lineno ||
3790: { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3791: echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3792: { (exit 1); exit 1; }; }
3793:
3794: # Don't try to exec as it changes $[0], causing all sort of problems
3795: # (the dirname of $[0] is not the place where we might find the
3796: # original and so on. Autoconf is especially sensible to this).
3797: . ./$as_me.lineno
3798: # Exit status is that of the last command.
3799: exit
3800: }
3801:
3802:
3803: case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3804: *c*,-n*) ECHO_N= ECHO_C='
3805: ' ECHO_T=' ' ;;
3806: *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3807: *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3808: esac
3809:
3810: if expr a : '\(a\)' >/dev/null 2>&1; then
3811: as_expr=expr
3812: else
3813: as_expr=false
3814: fi
3815:
3816: rm -f conf$$ conf$$.exe conf$$.file
3817: echo >conf$$.file
3818: if ln -s conf$$.file conf$$ 2>/dev/null; then
3819: # We could just check for DJGPP; but this test a) works b) is more generic
3820: # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3821: if test -f conf$$.exe; then
3822: # Don't use ln at all; we don't have any links
3823: as_ln_s='cp -p'
3824: else
3825: as_ln_s='ln -s'
3826: fi
3827: elif ln conf$$.file conf$$ 2>/dev/null; then
3828: as_ln_s=ln
3829: else
3830: as_ln_s='cp -p'
3831: fi
3832: rm -f conf$$ conf$$.exe conf$$.file
3833:
3834: as_executable_p="test -f"
3835:
3836: # Sed expression to map a string onto a valid CPP name.
3837: as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3838:
3839: # Sed expression to map a string onto a valid variable name.
3840: as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3841:
3842:
3843: # IFS
3844: # We need space, tab and new line, in precisely that order.
3845: as_nl='
3846: '
3847: IFS=" $as_nl"
3848:
3849: # CDPATH.
3850: $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
3851:
3852: exec 6>&1
3853:
3854: # Open the log real soon, to keep \$[0] and so on meaningful, and to
3855: # report actual input values of CONFIG_FILES etc. instead of their
3856: # values after options handling. Logging --version etc. is OK.
3857: exec 5>>config.log
3858: {
3859: echo
3860: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3861: ## Running $as_me. ##
3862: _ASBOX
3863: } >&5
3864: cat >&5 <<_CSEOF
3865:
3866: This file was extended by $as_me, which was
3867: generated by GNU Autoconf 2.53. Invocation command line was
3868:
3869: CONFIG_FILES = $CONFIG_FILES
3870: CONFIG_HEADERS = $CONFIG_HEADERS
3871: CONFIG_LINKS = $CONFIG_LINKS
3872: CONFIG_COMMANDS = $CONFIG_COMMANDS
3873: $ $0 $@
3874:
3875: _CSEOF
3876: echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3877: echo >&5
3878: _ACEOF
3879:
3880: # Files that config.status was made for.
3881: if test -n "$ac_config_files"; then
3882: echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3883: fi
3884:
3885: if test -n "$ac_config_headers"; then
3886: echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3887: fi
3888:
3889: if test -n "$ac_config_links"; then
3890: echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3891: fi
3892:
3893: if test -n "$ac_config_commands"; then
3894: echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3895: fi
3896:
3897: cat >>$CONFIG_STATUS <<\_ACEOF
3898:
3899: ac_cs_usage="\
3900: \`$as_me' instantiates files from templates according to the
3901: current configuration.
3902:
3903: Usage: $0 [OPTIONS] [FILE]...
3904:
3905: -h, --help print this help, then exit
3906: -V, --version print version number, then exit
3907: -d, --debug don't remove temporary files
3908: --recheck update $as_me by reconfiguring in the same conditions
3909: --file=FILE[:TEMPLATE]
3910: instantiate the configuration file FILE
3911: --header=FILE[:TEMPLATE]
3912: instantiate the configuration header FILE
3913:
3914: Configuration files:
3915: $config_files
3916:
3917: Configuration headers:
3918: $config_headers
3919:
3920: Report bugs to <bug-autoconf@gnu.org>."
3921: _ACEOF
3922:
3923: cat >>$CONFIG_STATUS <<_ACEOF
3924: ac_cs_version="\\
3925: config.status
3926: configured by $0, generated by GNU Autoconf 2.53,
3927: with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3928:
3929: Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3930: Free Software Foundation, Inc.
3931: This config.status script is free software; the Free Software Foundation
3932: gives unlimited permission to copy, distribute and modify it."
3933: srcdir=$srcdir
3934: _ACEOF
3935:
3936: cat >>$CONFIG_STATUS <<\_ACEOF
3937: # If no file are specified by the user, then we need to provide default
3938: # value. By we need to know if files were specified by the user.
3939: ac_need_defaults=:
3940: while test $# != 0
3941: do
3942: case $1 in
3943: --*=*)
3944: ac_option=`expr "x$1" : 'x\([^=]*\)='`
3945: ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3946: shift
3947: set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
3948: shift
3949: ;;
3950: -*);;
3951: *) # This is not an option, so the user has probably given explicit
3952: # arguments.
3953: ac_need_defaults=false;;
3954: esac
3955:
3956: case $1 in
3957: # Handling of the options.
3958: _ACEOF
3959: cat >>$CONFIG_STATUS <<_ACEOF
3960: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3961: echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3962: exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3963: _ACEOF
3964: cat >>$CONFIG_STATUS <<\_ACEOF
3965: --version | --vers* | -V )
3966: echo "$ac_cs_version"; exit 0 ;;
3967: --he | --h)
3968: # Conflict between --help and --header
3969: { { echo "$as_me:$LINENO: error: ambiguous option: $1
3970: Try \`$0 --help' for more information." >&5
3971: echo "$as_me: error: ambiguous option: $1
3972: Try \`$0 --help' for more information." >&2;}
3973: { (exit 1); exit 1; }; };;
3974: --help | --hel | -h )
3975: echo "$ac_cs_usage"; exit 0 ;;
3976: --debug | --d* | -d )
3977: debug=: ;;
3978: --file | --fil | --fi | --f )
3979: shift
3980: CONFIG_FILES="$CONFIG_FILES $1"
3981: ac_need_defaults=false;;
3982: --header | --heade | --head | --hea )
3983: shift
3984: CONFIG_HEADERS="$CONFIG_HEADERS $1"
3985: ac_need_defaults=false;;
3986:
3987: # This is an error.
3988: -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3989: Try \`$0 --help' for more information." >&5
3990: echo "$as_me: error: unrecognized option: $1
3991: Try \`$0 --help' for more information." >&2;}
3992: { (exit 1); exit 1; }; } ;;
3993:
3994: *) ac_config_targets="$ac_config_targets $1" ;;
3995:
3996: esac
3997: shift
3998: done
3999:
4000: _ACEOF
4001:
4002:
4003:
4004:
4005:
4006: cat >>$CONFIG_STATUS <<\_ACEOF
4007: for ac_config_target in $ac_config_targets
4008: do
4009: case "$ac_config_target" in
4010: # Handling of arguments.
4011: "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4012: "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4013: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4014: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4015: { (exit 1); exit 1; }; };;
4016: esac
4017: done
4018:
4019: # If the user did not use the arguments to specify the items to instantiate,
4020: # then the envvar interface is used. Set only those that are not.
4021: # We use the long form for the default assignment because of an extremely
4022: # bizarre bug on SunOS 4.1.3.
4023: if $ac_need_defaults; then
4024: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4025: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4026: fi
4027:
4028: # Create a temporary directory, and hook for its removal unless debugging.
4029: $debug ||
4030: {
4031: trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4032: trap '{ (exit 1); exit 1; }' 1 2 13 15
4033: }
4034:
4035: # Create a (secure) tmp directory for tmp files.
4036: : ${TMPDIR=/tmp}
4037: {
4038: tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4039: test -n "$tmp" && test -d "$tmp"
4040: } ||
4041: {
4042: tmp=$TMPDIR/cs$$-$RANDOM
4043: (umask 077 && mkdir $tmp)
4044: } ||
4045: {
4046: echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4047: { (exit 1); exit 1; }
4048: }
4049:
4050: _ACEOF
4051:
4052: cat >>$CONFIG_STATUS <<_ACEOF
4053:
4054: #
4055: # CONFIG_FILES section.
4056: #
4057:
4058: # No need to generate the scripts if there are no CONFIG_FILES.
4059: # This happens for instance when ./config.status config.h
4060: if test -n "\$CONFIG_FILES"; then
4061: # Protect against being on the right side of a sed subst in config.status.
4062: sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4063: s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4064: s,@SHELL@,$SHELL,;t t
4065: s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4066: s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4067: s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4068: s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4069: s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4070: s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4071: s,@exec_prefix@,$exec_prefix,;t t
4072: s,@prefix@,$prefix,;t t
4073: s,@program_transform_name@,$program_transform_name,;t t
4074: s,@bindir@,$bindir,;t t
4075: s,@sbindir@,$sbindir,;t t
4076: s,@libexecdir@,$libexecdir,;t t
4077: s,@datadir@,$datadir,;t t
4078: s,@sysconfdir@,$sysconfdir,;t t
4079: s,@sharedstatedir@,$sharedstatedir,;t t
4080: s,@localstatedir@,$localstatedir,;t t
4081: s,@libdir@,$libdir,;t t
4082: s,@includedir@,$includedir,;t t
4083: s,@oldincludedir@,$oldincludedir,;t t
4084: s,@infodir@,$infodir,;t t
4085: s,@mandir@,$mandir,;t t
4086: s,@build_alias@,$build_alias,;t t
4087: s,@host_alias@,$host_alias,;t t
4088: s,@target_alias@,$target_alias,;t t
4089: s,@DEFS@,$DEFS,;t t
4090: s,@ECHO_C@,$ECHO_C,;t t
4091: s,@ECHO_N@,$ECHO_N,;t t
4092: s,@ECHO_T@,$ECHO_T,;t t
4093: s,@LIBS@,$LIBS,;t t
4094: s,@OPTFLAG@,$OPTFLAG,;t t
4095: s,@CC@,$CC,;t t
4096: s,@CFLAGS@,$CFLAGS,;t t
4097: s,@LDFLAGS@,$LDFLAGS,;t t
4098: s,@CPPFLAGS@,$CPPFLAGS,;t t
4099: s,@ac_ct_CC@,$ac_ct_CC,;t t
4100: s,@EXEEXT@,$EXEEXT,;t t
4101: s,@OBJEXT@,$OBJEXT,;t t
4102: s,@CXX@,$CXX,;t t
4103: s,@CXXFLAGS@,$CXXFLAGS,;t t
4104: s,@ac_ct_CXX@,$ac_ct_CXX,;t t
4105: s,@CPP@,$CPP,;t t
4106: CEOF
4107:
4108: _ACEOF
4109:
4110: cat >>$CONFIG_STATUS <<\_ACEOF
4111: # Split the substitutions into bite-sized pieces for seds with
4112: # small command number limits, like on Digital OSF/1 and HP-UX.
4113: ac_max_sed_lines=48
4114: ac_sed_frag=1 # Number of current file.
4115: ac_beg=1 # First line for current file.
4116: ac_end=$ac_max_sed_lines # Line after last line for current file.
4117: ac_more_lines=:
4118: ac_sed_cmds=
4119: while $ac_more_lines; do
4120: if test $ac_beg -gt 1; then
4121: sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4122: else
4123: sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4124: fi
4125: if test ! -s $tmp/subs.frag; then
4126: ac_more_lines=false
4127: else
4128: # The purpose of the label and of the branching condition is to
4129: # speed up the sed processing (if there are no `@' at all, there
4130: # is no need to browse any of the substitutions).
4131: # These are the two extra sed commands mentioned above.
4132: (echo ':t
4133: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4134: if test -z "$ac_sed_cmds"; then
4135: ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4136: else
4137: ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4138: fi
4139: ac_sed_frag=`expr $ac_sed_frag + 1`
4140: ac_beg=$ac_end
4141: ac_end=`expr $ac_end + $ac_max_sed_lines`
4142: fi
4143: done
4144: if test -z "$ac_sed_cmds"; then
4145: ac_sed_cmds=cat
4146: fi
4147: fi # test -n "$CONFIG_FILES"
4148:
4149: _ACEOF
4150: cat >>$CONFIG_STATUS <<\_ACEOF
4151: for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4152: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4153: case $ac_file in
4154: - | *:- | *:-:* ) # input from stdin
4155: cat >$tmp/stdin
4156: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4157: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4158: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4159: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4160: * ) ac_file_in=$ac_file.in ;;
4161: esac
4162:
4163: # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4164: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4165: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4166: X"$ac_file" : 'X\(//\)[^/]' \| \
4167: X"$ac_file" : 'X\(//\)$' \| \
4168: X"$ac_file" : 'X\(/\)' \| \
4169: . : '\(.\)' 2>/dev/null ||
4170: echo X"$ac_file" |
4171: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4172: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4173: /^X\(\/\/\)$/{ s//\1/; q; }
4174: /^X\(\/\).*/{ s//\1/; q; }
4175: s/.*/./; q'`
4176: { case "$ac_dir" in
4177: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4178: *) as_incr_dir=.;;
4179: esac
4180: as_dummy="$ac_dir"
4181: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4182: case $as_mkdir_dir in
4183: # Skip DOS drivespec
4184: ?:) as_incr_dir=$as_mkdir_dir ;;
4185: *)
4186: as_incr_dir=$as_incr_dir/$as_mkdir_dir
4187: test -d "$as_incr_dir" ||
4188: mkdir "$as_incr_dir" ||
4189: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4190: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4191: { (exit 1); exit 1; }; }
4192: ;;
4193: esac
4194: done; }
4195:
4196: ac_builddir=.
4197:
4198: if test "$ac_dir" != .; then
4199: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4200: # A "../" for each directory in $ac_dir_suffix.
4201: ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4202: else
4203: ac_dir_suffix= ac_top_builddir=
4204: fi
4205:
4206: case $srcdir in
4207: .) # No --srcdir option. We are building in place.
4208: ac_srcdir=.
4209: if test -z "$ac_top_builddir"; then
4210: ac_top_srcdir=.
4211: else
4212: ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4213: fi ;;
4214: [\\/]* | ?:[\\/]* ) # Absolute path.
4215: ac_srcdir=$srcdir$ac_dir_suffix;
4216: ac_top_srcdir=$srcdir ;;
4217: *) # Relative path.
4218: ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4219: ac_top_srcdir=$ac_top_builddir$srcdir ;;
4220: esac
4221: # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
4222: # absolute.
4223: ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
4224: ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
4225: ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
4226: ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
4227:
4228:
4229:
4230: if test x"$ac_file" != x-; then
4231: { echo "$as_me:$LINENO: creating $ac_file" >&5
4232: echo "$as_me: creating $ac_file" >&6;}
4233: rm -f "$ac_file"
4234: fi
4235: # Let's still pretend it is `configure' which instantiates (i.e., don't
4236: # use $as_me), people would be surprised to read:
4237: # /* config.h. Generated by config.status. */
4238: if test x"$ac_file" = x-; then
4239: configure_input=
4240: else
4241: configure_input="$ac_file. "
4242: fi
4243: configure_input=$configure_input"Generated from `echo $ac_file_in |
4244: sed 's,.*/,,'` by configure."
4245:
4246: # First look for the input files in the build tree, otherwise in the
4247: # src tree.
4248: ac_file_inputs=`IFS=:
4249: for f in $ac_file_in; do
4250: case $f in
4251: -) echo $tmp/stdin ;;
4252: [\\/$]*)
4253: # Absolute (can't be DOS-style, as IFS=:)
4254: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4255: echo "$as_me: error: cannot find input file: $f" >&2;}
4256: { (exit 1); exit 1; }; }
4257: echo $f;;
4258: *) # Relative
4259: if test -f "$f"; then
4260: # Build tree
4261: echo $f
4262: elif test -f "$srcdir/$f"; then
4263: # Source tree
4264: echo $srcdir/$f
4265: else
4266: # /dev/null tree
4267: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4268: echo "$as_me: error: cannot find input file: $f" >&2;}
4269: { (exit 1); exit 1; }; }
4270: fi;;
4271: esac
4272: done` || { (exit 1); exit 1; }
4273: _ACEOF
4274: cat >>$CONFIG_STATUS <<_ACEOF
4275: sed "$ac_vpsub
4276: $extrasub
4277: _ACEOF
4278: cat >>$CONFIG_STATUS <<\_ACEOF
4279: :t
4280: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4281: s,@configure_input@,$configure_input,;t t
4282: s,@srcdir@,$ac_srcdir,;t t
4283: s,@abs_srcdir@,$ac_abs_srcdir,;t t
4284: s,@top_srcdir@,$ac_top_srcdir,;t t
4285: s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4286: s,@builddir@,$ac_builddir,;t t
4287: s,@abs_builddir@,$ac_abs_builddir,;t t
4288: s,@top_builddir@,$ac_top_builddir,;t t
4289: s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4290: " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4291: rm -f $tmp/stdin
4292: if test x"$ac_file" != x-; then
4293: mv $tmp/out $ac_file
4294: else
4295: cat $tmp/out
4296: rm -f $tmp/out
4297: fi
4298:
4299: done
4300: _ACEOF
4301: cat >>$CONFIG_STATUS <<\_ACEOF
4302:
4303: #
4304: # CONFIG_HEADER section.
4305: #
4306:
4307: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4308: # NAME is the cpp macro being defined and VALUE is the value it is being given.
4309: #
4310: # ac_d sets the value in "#define NAME VALUE" lines.
4311: ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4312: ac_dB='[ ].*$,\1#\2'
4313: ac_dC=' '
4314: ac_dD=',;t'
4315: # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4316: ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4317: ac_uB='$,\1#\2define\3'
4318: ac_uC=' '
4319: ac_uD=',;t'
4320:
4321: for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4322: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4323: case $ac_file in
4324: - | *:- | *:-:* ) # input from stdin
4325: cat >$tmp/stdin
4326: ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4327: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4328: *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4329: ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4330: * ) ac_file_in=$ac_file.in ;;
4331: esac
4332:
4333: test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4334: echo "$as_me: creating $ac_file" >&6;}
4335:
4336: # First look for the input files in the build tree, otherwise in the
4337: # src tree.
4338: ac_file_inputs=`IFS=:
4339: for f in $ac_file_in; do
4340: case $f in
4341: -) echo $tmp/stdin ;;
4342: [\\/$]*)
4343: # Absolute (can't be DOS-style, as IFS=:)
4344: test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4345: echo "$as_me: error: cannot find input file: $f" >&2;}
4346: { (exit 1); exit 1; }; }
4347: echo $f;;
4348: *) # Relative
4349: if test -f "$f"; then
4350: # Build tree
4351: echo $f
4352: elif test -f "$srcdir/$f"; then
4353: # Source tree
4354: echo $srcdir/$f
4355: else
4356: # /dev/null tree
4357: { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4358: echo "$as_me: error: cannot find input file: $f" >&2;}
4359: { (exit 1); exit 1; }; }
4360: fi;;
4361: esac
4362: done` || { (exit 1); exit 1; }
4363: # Remove the trailing spaces.
4364: sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4365:
4366: _ACEOF
4367:
4368: # Transform confdefs.h into two sed scripts, `conftest.defines' and
4369: # `conftest.undefs', that substitutes the proper values into
4370: # config.h.in to produce config.h. The first handles `#define'
4371: # templates, and the second `#undef' templates.
4372: # And first: Protect against being on the right side of a sed subst in
4373: # config.status. Protect against being in an unquoted here document
4374: # in config.status.
4375: rm -f conftest.defines conftest.undefs
4376: # Using a here document instead of a string reduces the quoting nightmare.
4377: # Putting comments in sed scripts is not portable.
4378: #
4379: # `end' is used to avoid that the second main sed command (meant for
4380: # 0-ary CPP macros) applies to n-ary macro definitions.
4381: # See the Autoconf documentation for `clear'.
4382: cat >confdef2sed.sed <<\_ACEOF
4383: s/[\\&,]/\\&/g
4384: s,[\\$`],\\&,g
4385: t clear
4386: : clear
4387: s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4388: t end
4389: s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4390: : end
4391: _ACEOF
4392: # If some macros were called several times there might be several times
4393: # the same #defines, which is useless. Nevertheless, we may not want to
4394: # sort them, since we want the *last* AC-DEFINE to be honored.
4395: uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4396: sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4397: rm -f confdef2sed.sed
4398:
4399: # This sed command replaces #undef with comments. This is necessary, for
4400: # example, in the case of _POSIX_SOURCE, which is predefined and required
4401: # on some systems where configure will not decide to define it.
4402: cat >>conftest.undefs <<\_ACEOF
4403: s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4404: _ACEOF
4405:
4406: # Break up conftest.defines because some shells have a limit on the size
4407: # of here documents, and old seds have small limits too (100 cmds).
4408: echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4409: echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4410: echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4411: echo ' :' >>$CONFIG_STATUS
4412: rm -f conftest.tail
4413: while grep . conftest.defines >/dev/null
4414: do
4415: # Write a limited-size here document to $tmp/defines.sed.
4416: echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4417: # Speed up: don't consider the non `#define' lines.
4418: echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4419: # Work around the forget-to-reset-the-flag bug.
4420: echo 't clr' >>$CONFIG_STATUS
4421: echo ': clr' >>$CONFIG_STATUS
4422: sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4423: echo 'CEOF
4424: sed -f $tmp/defines.sed $tmp/in >$tmp/out
4425: rm -f $tmp/in
4426: mv $tmp/out $tmp/in
4427: ' >>$CONFIG_STATUS
4428: sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4429: rm -f conftest.defines
4430: mv conftest.tail conftest.defines
4431: done
4432: rm -f conftest.defines
4433: echo ' fi # egrep' >>$CONFIG_STATUS
4434: echo >>$CONFIG_STATUS
4435:
4436: # Break up conftest.undefs because some shells have a limit on the size
4437: # of here documents, and old seds have small limits too (100 cmds).
4438: echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4439: rm -f conftest.tail
4440: while grep . conftest.undefs >/dev/null
4441: do
4442: # Write a limited-size here document to $tmp/undefs.sed.
4443: echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4444: # Speed up: don't consider the non `#undef'
4445: echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4446: # Work around the forget-to-reset-the-flag bug.
4447: echo 't clr' >>$CONFIG_STATUS
4448: echo ': clr' >>$CONFIG_STATUS
4449: sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4450: echo 'CEOF
4451: sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4452: rm -f $tmp/in
4453: mv $tmp/out $tmp/in
4454: ' >>$CONFIG_STATUS
4455: sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4456: rm -f conftest.undefs
4457: mv conftest.tail conftest.undefs
4458: done
4459: rm -f conftest.undefs
4460:
4461: cat >>$CONFIG_STATUS <<\_ACEOF
4462: # Let's still pretend it is `configure' which instantiates (i.e., don't
4463: # use $as_me), people would be surprised to read:
4464: # /* config.h. Generated by config.status. */
4465: if test x"$ac_file" = x-; then
4466: echo "/* Generated by configure. */" >$tmp/config.h
4467: else
4468: echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4469: fi
4470: cat $tmp/in >>$tmp/config.h
4471: rm -f $tmp/in
4472: if test x"$ac_file" != x-; then
4473: if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
4474: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4475: echo "$as_me: $ac_file is unchanged" >&6;}
4476: else
4477: ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4478: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4479: X"$ac_file" : 'X\(//\)[^/]' \| \
4480: X"$ac_file" : 'X\(//\)$' \| \
4481: X"$ac_file" : 'X\(/\)' \| \
4482: . : '\(.\)' 2>/dev/null ||
4483: echo X"$ac_file" |
4484: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4485: /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4486: /^X\(\/\/\)$/{ s//\1/; q; }
4487: /^X\(\/\).*/{ s//\1/; q; }
4488: s/.*/./; q'`
4489: { case "$ac_dir" in
4490: [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4491: *) as_incr_dir=.;;
4492: esac
4493: as_dummy="$ac_dir"
4494: for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4495: case $as_mkdir_dir in
4496: # Skip DOS drivespec
4497: ?:) as_incr_dir=$as_mkdir_dir ;;
4498: *)
4499: as_incr_dir=$as_incr_dir/$as_mkdir_dir
4500: test -d "$as_incr_dir" ||
4501: mkdir "$as_incr_dir" ||
4502: { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
4503: echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
4504: { (exit 1); exit 1; }; }
4505: ;;
4506: esac
4507: done; }
4508:
4509: rm -f $ac_file
4510: mv $tmp/config.h $ac_file
4511: fi
4512: else
4513: cat $tmp/config.h
4514: rm -f $tmp/config.h
4515: fi
4516: done
4517: _ACEOF
4518:
4519: cat >>$CONFIG_STATUS <<\_ACEOF
4520:
4521: { (exit 0); exit 0; }
4522: _ACEOF
4523: chmod +x $CONFIG_STATUS
4524: ac_clean_files=$ac_clean_files_save
4525:
4526:
4527: # configure is writing to config.log, and then calls config.status.
4528: # config.status does its own redirection, appending to config.log.
4529: # Unfortunately, on DOS this fails, as config.log is still kept open
4530: # by configure, so config.status won't be able to write to it; its
4531: # output is simply discarded. So we exec the FD to /dev/null,
4532: # effectively closing config.log, so it can be properly (re)opened and
4533: # appended to by config.status. When coming back to configure, we
4534: # need to make the FD available again.
4535: if test "$no_create" != yes; then
4536: ac_cs_success=:
4537: exec 5>/dev/null
4538: $SHELL $CONFIG_STATUS || ac_cs_success=false
4539: exec 5>>config.log
4540: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4541: # would make configure fail if this is the last instruction.
4542: $ac_cs_success || { (exit 1); exit 1; }
4543: fi
4544:
4545:
4546:
4547:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>