]>
Commit | Line | Data |
---|---|---|
6de9cd9a DN |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.59 for GNU Fortran Runtime Library 0.2. | |
4 | # | |
5 | # Copyright (C) 2003 Free Software Foundation, Inc. | |
6 | # This configure script is free software; the Free Software Foundation | |
7 | # gives unlimited permission to copy, distribute and modify it. | |
8 | ## --------------------- ## | |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
248 | ||
249 | exec 6>&1 | |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
254 | ac_default_prefix=/usr/local | |
255 | ac_config_libobj_dir=. | |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME='GNU Fortran Runtime Library' | |
269 | PACKAGE_TARNAME='libgfortran' | |
270 | PACKAGE_VERSION='0.2' | |
271 | PACKAGE_STRING='GNU Fortran Runtime Library 0.2' | |
272 | PACKAGE_BUGREPORT='' | |
273 | ||
274 | # Factoring default headers for most tests. | |
275 | ac_includes_default="\ | |
276 | #include <stdio.h> | |
277 | #if HAVE_SYS_TYPES_H | |
278 | # include <sys/types.h> | |
279 | #endif | |
280 | #if HAVE_SYS_STAT_H | |
281 | # include <sys/stat.h> | |
282 | #endif | |
283 | #if STDC_HEADERS | |
284 | # include <stdlib.h> | |
285 | # include <stddef.h> | |
286 | #else | |
287 | # if HAVE_STDLIB_H | |
288 | # include <stdlib.h> | |
289 | # endif | |
290 | #endif | |
291 | #if HAVE_STRING_H | |
292 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
293 | # include <memory.h> | |
294 | # endif | |
295 | # include <string.h> | |
296 | #endif | |
297 | #if HAVE_STRINGS_H | |
298 | # include <strings.h> | |
299 | #endif | |
300 | #if HAVE_INTTYPES_H | |
301 | # include <inttypes.h> | |
302 | #else | |
303 | # if HAVE_STDINT_H | |
304 | # include <stdint.h> | |
305 | # endif | |
306 | #endif | |
307 | #if HAVE_UNISTD_H | |
308 | # include <unistd.h> | |
309 | #endif" | |
310 | ||
311 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT enable_shared enable_static CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE F77 FFLAGS ac_ct_F77 CPP EGREP MATH_OBJ AR RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S LIBTOOL LIBOBJS LTLIBOBJS' | |
312 | ac_subst_files='' | |
313 | ||
314 | # Initialize some variables set by options. | |
315 | ac_init_help= | |
316 | ac_init_version=false | |
317 | # The variables have the same names as the options, with | |
318 | # dashes changed to underlines. | |
319 | cache_file=/dev/null | |
320 | exec_prefix=NONE | |
321 | no_create= | |
322 | no_recursion= | |
323 | prefix=NONE | |
324 | program_prefix=NONE | |
325 | program_suffix=NONE | |
326 | program_transform_name=s,x,x, | |
327 | silent= | |
328 | site= | |
329 | srcdir= | |
330 | verbose= | |
331 | x_includes=NONE | |
332 | x_libraries=NONE | |
333 | ||
334 | # Installation directory options. | |
335 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
336 | # and all the variables that are supposed to be based on exec_prefix | |
337 | # by default will actually change. | |
338 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
339 | bindir='${exec_prefix}/bin' | |
340 | sbindir='${exec_prefix}/sbin' | |
341 | libexecdir='${exec_prefix}/libexec' | |
342 | datadir='${prefix}/share' | |
343 | sysconfdir='${prefix}/etc' | |
344 | sharedstatedir='${prefix}/com' | |
345 | localstatedir='${prefix}/var' | |
346 | libdir='${exec_prefix}/lib' | |
347 | includedir='${prefix}/include' | |
348 | oldincludedir='/usr/include' | |
349 | infodir='${prefix}/info' | |
350 | mandir='${prefix}/man' | |
351 | ||
352 | ac_prev= | |
353 | for ac_option | |
354 | do | |
355 | # If the previous option needs an argument, assign it. | |
356 | if test -n "$ac_prev"; then | |
357 | eval "$ac_prev=\$ac_option" | |
358 | ac_prev= | |
359 | continue | |
360 | fi | |
361 | ||
362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
363 | ||
364 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
365 | ||
366 | case $ac_option in | |
367 | ||
368 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
369 | ac_prev=bindir ;; | |
370 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
371 | bindir=$ac_optarg ;; | |
372 | ||
373 | -build | --build | --buil | --bui | --bu) | |
374 | ac_prev=build_alias ;; | |
375 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
376 | build_alias=$ac_optarg ;; | |
377 | ||
378 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
379 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
380 | ac_prev=cache_file ;; | |
381 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
382 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
383 | cache_file=$ac_optarg ;; | |
384 | ||
385 | --config-cache | -C) | |
386 | cache_file=config.cache ;; | |
387 | ||
388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
389 | ac_prev=datadir ;; | |
390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
391 | | --da=*) | |
392 | datadir=$ac_optarg ;; | |
393 | ||
394 | -disable-* | --disable-*) | |
395 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
396 | # Reject names that are not valid shell variable names. | |
397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
399 | { (exit 1); exit 1; }; } | |
400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
401 | eval "enable_$ac_feature=no" ;; | |
402 | ||
403 | -enable-* | --enable-*) | |
404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
405 | # Reject names that are not valid shell variable names. | |
406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
408 | { (exit 1); exit 1; }; } | |
409 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
410 | case $ac_option in | |
411 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
412 | *) ac_optarg=yes ;; | |
413 | esac | |
414 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
415 | ||
416 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
417 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
418 | | --exec | --exe | --ex) | |
419 | ac_prev=exec_prefix ;; | |
420 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
421 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
422 | | --exec=* | --exe=* | --ex=*) | |
423 | exec_prefix=$ac_optarg ;; | |
424 | ||
425 | -gas | --gas | --ga | --g) | |
426 | # Obsolete; use --with-gas. | |
427 | with_gas=yes ;; | |
428 | ||
429 | -help | --help | --hel | --he | -h) | |
430 | ac_init_help=long ;; | |
431 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
432 | ac_init_help=recursive ;; | |
433 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
434 | ac_init_help=short ;; | |
435 | ||
436 | -host | --host | --hos | --ho) | |
437 | ac_prev=host_alias ;; | |
438 | -host=* | --host=* | --hos=* | --ho=*) | |
439 | host_alias=$ac_optarg ;; | |
440 | ||
441 | -includedir | --includedir | --includedi | --included | --include \ | |
442 | | --includ | --inclu | --incl | --inc) | |
443 | ac_prev=includedir ;; | |
444 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
445 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
446 | includedir=$ac_optarg ;; | |
447 | ||
448 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
449 | ac_prev=infodir ;; | |
450 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
451 | infodir=$ac_optarg ;; | |
452 | ||
453 | -libdir | --libdir | --libdi | --libd) | |
454 | ac_prev=libdir ;; | |
455 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
456 | libdir=$ac_optarg ;; | |
457 | ||
458 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
459 | | --libexe | --libex | --libe) | |
460 | ac_prev=libexecdir ;; | |
461 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
462 | | --libexe=* | --libex=* | --libe=*) | |
463 | libexecdir=$ac_optarg ;; | |
464 | ||
465 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
466 | | --localstate | --localstat | --localsta | --localst \ | |
467 | | --locals | --local | --loca | --loc | --lo) | |
468 | ac_prev=localstatedir ;; | |
469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
472 | localstatedir=$ac_optarg ;; | |
473 | ||
474 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
475 | ac_prev=mandir ;; | |
476 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
477 | mandir=$ac_optarg ;; | |
478 | ||
479 | -nfp | --nfp | --nf) | |
480 | # Obsolete; use --without-fp. | |
481 | with_fp=no ;; | |
482 | ||
483 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
484 | | --no-cr | --no-c | -n) | |
485 | no_create=yes ;; | |
486 | ||
487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
489 | no_recursion=yes ;; | |
490 | ||
491 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
492 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
493 | | --oldin | --oldi | --old | --ol | --o) | |
494 | ac_prev=oldincludedir ;; | |
495 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
496 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
497 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
498 | oldincludedir=$ac_optarg ;; | |
499 | ||
500 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
501 | ac_prev=prefix ;; | |
502 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
503 | prefix=$ac_optarg ;; | |
504 | ||
505 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
506 | | --program-pre | --program-pr | --program-p) | |
507 | ac_prev=program_prefix ;; | |
508 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
509 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
510 | program_prefix=$ac_optarg ;; | |
511 | ||
512 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
513 | | --program-suf | --program-su | --program-s) | |
514 | ac_prev=program_suffix ;; | |
515 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
516 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
517 | program_suffix=$ac_optarg ;; | |
518 | ||
519 | -program-transform-name | --program-transform-name \ | |
520 | | --program-transform-nam | --program-transform-na \ | |
521 | | --program-transform-n | --program-transform- \ | |
522 | | --program-transform | --program-transfor \ | |
523 | | --program-transfo | --program-transf \ | |
524 | | --program-trans | --program-tran \ | |
525 | | --progr-tra | --program-tr | --program-t) | |
526 | ac_prev=program_transform_name ;; | |
527 | -program-transform-name=* | --program-transform-name=* \ | |
528 | | --program-transform-nam=* | --program-transform-na=* \ | |
529 | | --program-transform-n=* | --program-transform-=* \ | |
530 | | --program-transform=* | --program-transfor=* \ | |
531 | | --program-transfo=* | --program-transf=* \ | |
532 | | --program-trans=* | --program-tran=* \ | |
533 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
534 | program_transform_name=$ac_optarg ;; | |
535 | ||
536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
537 | | -silent | --silent | --silen | --sile | --sil) | |
538 | silent=yes ;; | |
539 | ||
540 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
541 | ac_prev=sbindir ;; | |
542 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
543 | | --sbi=* | --sb=*) | |
544 | sbindir=$ac_optarg ;; | |
545 | ||
546 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
547 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
548 | | --sharedst | --shareds | --shared | --share | --shar \ | |
549 | | --sha | --sh) | |
550 | ac_prev=sharedstatedir ;; | |
551 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
552 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
553 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
554 | | --sha=* | --sh=*) | |
555 | sharedstatedir=$ac_optarg ;; | |
556 | ||
557 | -site | --site | --sit) | |
558 | ac_prev=site ;; | |
559 | -site=* | --site=* | --sit=*) | |
560 | site=$ac_optarg ;; | |
561 | ||
562 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
563 | ac_prev=srcdir ;; | |
564 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
565 | srcdir=$ac_optarg ;; | |
566 | ||
567 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
568 | | --syscon | --sysco | --sysc | --sys | --sy) | |
569 | ac_prev=sysconfdir ;; | |
570 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
571 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
572 | sysconfdir=$ac_optarg ;; | |
573 | ||
574 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
575 | ac_prev=target_alias ;; | |
576 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
577 | target_alias=$ac_optarg ;; | |
578 | ||
579 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
580 | verbose=yes ;; | |
581 | ||
582 | -version | --version | --versio | --versi | --vers | -V) | |
583 | ac_init_version=: ;; | |
584 | ||
585 | -with-* | --with-*) | |
586 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
587 | # Reject names that are not valid shell variable names. | |
588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
590 | { (exit 1); exit 1; }; } | |
591 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
592 | case $ac_option in | |
593 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
594 | *) ac_optarg=yes ;; | |
595 | esac | |
596 | eval "with_$ac_package='$ac_optarg'" ;; | |
597 | ||
598 | -without-* | --without-*) | |
599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
600 | # Reject names that are not valid shell variable names. | |
601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
603 | { (exit 1); exit 1; }; } | |
604 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
605 | eval "with_$ac_package=no" ;; | |
606 | ||
607 | --x) | |
608 | # Obsolete; use --with-x. | |
609 | with_x=yes ;; | |
610 | ||
611 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
612 | | --x-incl | --x-inc | --x-in | --x-i) | |
613 | ac_prev=x_includes ;; | |
614 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
615 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
616 | x_includes=$ac_optarg ;; | |
617 | ||
618 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
619 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
620 | ac_prev=x_libraries ;; | |
621 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
622 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
623 | x_libraries=$ac_optarg ;; | |
624 | ||
625 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
626 | Try \`$0 --help' for more information." >&2 | |
627 | { (exit 1); exit 1; }; } | |
628 | ;; | |
629 | ||
630 | *=*) | |
631 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
632 | # Reject names that are not valid shell variable names. | |
633 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
634 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
635 | { (exit 1); exit 1; }; } | |
636 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
637 | eval "$ac_envvar='$ac_optarg'" | |
638 | export $ac_envvar ;; | |
639 | ||
640 | *) | |
641 | # FIXME: should be removed in autoconf 3.0. | |
642 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
643 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
644 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
645 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
646 | ;; | |
647 | ||
648 | esac | |
649 | done | |
650 | ||
651 | if test -n "$ac_prev"; then | |
652 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
653 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
654 | { (exit 1); exit 1; }; } | |
655 | fi | |
656 | ||
657 | # Be sure to have absolute paths. | |
658 | for ac_var in exec_prefix prefix | |
659 | do | |
660 | eval ac_val=$`echo $ac_var` | |
661 | case $ac_val in | |
662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
664 | { (exit 1); exit 1; }; };; | |
665 | esac | |
666 | done | |
667 | ||
668 | # Be sure to have absolute paths. | |
669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
670 | localstatedir libdir includedir oldincludedir infodir mandir | |
671 | do | |
672 | eval ac_val=$`echo $ac_var` | |
673 | case $ac_val in | |
674 | [\\/$]* | ?:[\\/]* ) ;; | |
675 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
676 | { (exit 1); exit 1; }; };; | |
677 | esac | |
678 | done | |
679 | ||
680 | # There might be people who depend on the old broken behavior: `$host' | |
681 | # used to hold the argument of --host etc. | |
682 | # FIXME: To remove some day. | |
683 | build=$build_alias | |
684 | host=$host_alias | |
685 | target=$target_alias | |
686 | ||
687 | # FIXME: To remove some day. | |
688 | if test "x$host_alias" != x; then | |
689 | if test "x$build_alias" = x; then | |
690 | cross_compiling=maybe | |
691 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
692 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
693 | elif test "x$build_alias" != "x$host_alias"; then | |
694 | cross_compiling=yes | |
695 | fi | |
696 | fi | |
697 | ||
698 | ac_tool_prefix= | |
699 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
700 | ||
701 | test "$silent" = yes && exec 6>/dev/null | |
702 | ||
703 | ||
704 | # Find the source files, if location was not specified. | |
705 | if test -z "$srcdir"; then | |
706 | ac_srcdir_defaulted=yes | |
707 | # Try the directory containing this script, then its parent. | |
708 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
710 | X"$0" : 'X\(//\)[^/]' \| \ | |
711 | X"$0" : 'X\(//\)$' \| \ | |
712 | X"$0" : 'X\(/\)' \| \ | |
713 | . : '\(.\)' 2>/dev/null || | |
714 | echo X"$0" | | |
715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
716 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
717 | /^X\(\/\/\)$/{ s//\1/; q; } | |
718 | /^X\(\/\).*/{ s//\1/; q; } | |
719 | s/.*/./; q'` | |
720 | srcdir=$ac_confdir | |
721 | if test ! -r $srcdir/$ac_unique_file; then | |
722 | srcdir=.. | |
723 | fi | |
724 | else | |
725 | ac_srcdir_defaulted=no | |
726 | fi | |
727 | if test ! -r $srcdir/$ac_unique_file; then | |
728 | if test "$ac_srcdir_defaulted" = yes; then | |
729 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
730 | { (exit 1); exit 1; }; } | |
731 | else | |
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
733 | { (exit 1); exit 1; }; } | |
734 | fi | |
735 | fi | |
736 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
737 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
738 | { (exit 1); exit 1; }; } | |
739 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
740 | ac_env_build_alias_set=${build_alias+set} | |
741 | ac_env_build_alias_value=$build_alias | |
742 | ac_cv_env_build_alias_set=${build_alias+set} | |
743 | ac_cv_env_build_alias_value=$build_alias | |
744 | ac_env_host_alias_set=${host_alias+set} | |
745 | ac_env_host_alias_value=$host_alias | |
746 | ac_cv_env_host_alias_set=${host_alias+set} | |
747 | ac_cv_env_host_alias_value=$host_alias | |
748 | ac_env_target_alias_set=${target_alias+set} | |
749 | ac_env_target_alias_value=$target_alias | |
750 | ac_cv_env_target_alias_set=${target_alias+set} | |
751 | ac_cv_env_target_alias_value=$target_alias | |
752 | ac_env_CC_set=${CC+set} | |
753 | ac_env_CC_value=$CC | |
754 | ac_cv_env_CC_set=${CC+set} | |
755 | ac_cv_env_CC_value=$CC | |
756 | ac_env_CFLAGS_set=${CFLAGS+set} | |
757 | ac_env_CFLAGS_value=$CFLAGS | |
758 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
759 | ac_cv_env_CFLAGS_value=$CFLAGS | |
760 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
761 | ac_env_LDFLAGS_value=$LDFLAGS | |
762 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
763 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
764 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
765 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
766 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
767 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
768 | ac_env_F77_set=${F77+set} | |
769 | ac_env_F77_value=$F77 | |
770 | ac_cv_env_F77_set=${F77+set} | |
771 | ac_cv_env_F77_value=$F77 | |
772 | ac_env_FFLAGS_set=${FFLAGS+set} | |
773 | ac_env_FFLAGS_value=$FFLAGS | |
774 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | |
775 | ac_cv_env_FFLAGS_value=$FFLAGS | |
776 | ac_env_CPP_set=${CPP+set} | |
777 | ac_env_CPP_value=$CPP | |
778 | ac_cv_env_CPP_set=${CPP+set} | |
779 | ac_cv_env_CPP_value=$CPP | |
780 | ||
781 | # | |
782 | # Report the --help message. | |
783 | # | |
784 | if test "$ac_init_help" = "long"; then | |
785 | # Omit some internal or obsolete options to make the list less imposing. | |
786 | # This message is too long to be a string in the A/UX 3.1 sh. | |
787 | cat <<_ACEOF | |
788 | \`configure' configures GNU Fortran Runtime Library 0.2 to adapt to many kinds of systems. | |
789 | ||
790 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
791 | ||
792 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
793 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
794 | ||
795 | Defaults for the options are specified in brackets. | |
796 | ||
797 | Configuration: | |
798 | -h, --help display this help and exit | |
799 | --help=short display options specific to this package | |
800 | --help=recursive display the short help of all the included packages | |
801 | -V, --version display version information and exit | |
802 | -q, --quiet, --silent do not print \`checking...' messages | |
803 | --cache-file=FILE cache test results in FILE [disabled] | |
804 | -C, --config-cache alias for \`--cache-file=config.cache' | |
805 | -n, --no-create do not create output files | |
806 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
807 | ||
808 | _ACEOF | |
809 | ||
810 | cat <<_ACEOF | |
811 | Installation directories: | |
812 | --prefix=PREFIX install architecture-independent files in PREFIX | |
813 | [$ac_default_prefix] | |
814 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
815 | [PREFIX] | |
816 | ||
817 | By default, \`make install' will install all the files in | |
818 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
819 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
820 | for instance \`--prefix=\$HOME'. | |
821 | ||
822 | For better control, use the options below. | |
823 | ||
824 | Fine tuning of the installation directories: | |
825 | --bindir=DIR user executables [EPREFIX/bin] | |
826 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
827 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
828 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
829 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
830 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
831 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
832 | --libdir=DIR object code libraries [EPREFIX/lib] | |
833 | --includedir=DIR C header files [PREFIX/include] | |
834 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
835 | --infodir=DIR info documentation [PREFIX/info] | |
836 | --mandir=DIR man documentation [PREFIX/man] | |
837 | _ACEOF | |
838 | ||
839 | cat <<\_ACEOF | |
840 | ||
841 | Program names: | |
842 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
843 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
844 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
845 | ||
846 | System types: | |
847 | --build=BUILD configure for building on BUILD [guessed] | |
848 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
849 | _ACEOF | |
850 | fi | |
851 | ||
852 | if test -n "$ac_init_help"; then | |
853 | case $ac_init_help in | |
854 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.2:";; | |
855 | esac | |
856 | cat <<\_ACEOF | |
857 | ||
858 | Optional Features: | |
859 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
860 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
861 | --enable-maintainer-mode enable make rules and dependencies not useful | |
862 | (and sometimes confusing) to the casual installer | |
863 | --disable-dependency-tracking speeds up one-time build | |
864 | --enable-dependency-tracking do not reject slow dependency extractors | |
865 | --enable-cmath Include complex math functions | |
866 | --enable-shared=PKGS build shared libraries default=yes | |
867 | --enable-static=PKGS build static libraries default=yes | |
868 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
869 | --disable-libtool-lock avoid locking (might break parallel builds) | |
870 | ||
871 | Optional Packages: | |
872 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
873 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
874 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
875 | --with-pic try to use only PIC/non-PIC objects default=use both | |
876 | ||
877 | Some influential environment variables: | |
878 | CC C compiler command | |
879 | CFLAGS C compiler flags | |
880 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
881 | nonstandard directory <lib dir> | |
882 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
883 | headers in a nonstandard directory <include dir> | |
884 | F77 Fortran 77 compiler command | |
885 | FFLAGS Fortran 77 compiler flags | |
886 | CPP C preprocessor | |
887 | ||
888 | Use these variables to override the choices made by `configure' or to help | |
889 | it to find libraries and programs with nonstandard names/locations. | |
890 | ||
891 | _ACEOF | |
892 | fi | |
893 | ||
894 | if test "$ac_init_help" = "recursive"; then | |
895 | # If there are subdirs, report their specific --help. | |
896 | ac_popdir=`pwd` | |
897 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
898 | test -d $ac_dir || continue | |
899 | ac_builddir=. | |
900 | ||
901 | if test "$ac_dir" != .; then | |
902 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
903 | # A "../" for each directory in $ac_dir_suffix. | |
904 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
905 | else | |
906 | ac_dir_suffix= ac_top_builddir= | |
907 | fi | |
908 | ||
909 | case $srcdir in | |
910 | .) # No --srcdir option. We are building in place. | |
911 | ac_srcdir=. | |
912 | if test -z "$ac_top_builddir"; then | |
913 | ac_top_srcdir=. | |
914 | else | |
915 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
916 | fi ;; | |
917 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
918 | ac_srcdir=$srcdir$ac_dir_suffix; | |
919 | ac_top_srcdir=$srcdir ;; | |
920 | *) # Relative path. | |
921 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
922 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
923 | esac | |
924 | ||
925 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
926 | # the directories may not exist. | |
927 | case `pwd` in | |
928 | .) ac_abs_builddir="$ac_dir";; | |
929 | *) | |
930 | case "$ac_dir" in | |
931 | .) ac_abs_builddir=`pwd`;; | |
932 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
933 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
934 | esac;; | |
935 | esac | |
936 | case $ac_abs_builddir in | |
937 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
938 | *) | |
939 | case ${ac_top_builddir}. in | |
940 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
941 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
942 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
943 | esac;; | |
944 | esac | |
945 | case $ac_abs_builddir in | |
946 | .) ac_abs_srcdir=$ac_srcdir;; | |
947 | *) | |
948 | case $ac_srcdir in | |
949 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
950 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
951 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
952 | esac;; | |
953 | esac | |
954 | case $ac_abs_builddir in | |
955 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
956 | *) | |
957 | case $ac_top_srcdir in | |
958 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
959 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
960 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
961 | esac;; | |
962 | esac | |
963 | ||
964 | cd $ac_dir | |
965 | # Check for guested configure; otherwise get Cygnus style configure. | |
966 | if test -f $ac_srcdir/configure.gnu; then | |
967 | echo | |
968 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
969 | elif test -f $ac_srcdir/configure; then | |
970 | echo | |
971 | $SHELL $ac_srcdir/configure --help=recursive | |
972 | elif test -f $ac_srcdir/configure.ac || | |
973 | test -f $ac_srcdir/configure.in; then | |
974 | echo | |
975 | $ac_configure --help | |
976 | else | |
977 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
978 | fi | |
979 | cd "$ac_popdir" | |
980 | done | |
981 | fi | |
982 | ||
983 | test -n "$ac_init_help" && exit 0 | |
984 | if $ac_init_version; then | |
985 | cat <<\_ACEOF | |
986 | GNU Fortran Runtime Library configure 0.2 | |
987 | generated by GNU Autoconf 2.59 | |
988 | ||
989 | Copyright (C) 2003 Free Software Foundation, Inc. | |
990 | This configure script is free software; the Free Software Foundation | |
991 | gives unlimited permission to copy, distribute and modify it. | |
992 | _ACEOF | |
993 | exit 0 | |
994 | fi | |
995 | exec 5>config.log | |
996 | cat >&5 <<_ACEOF | |
997 | This file contains any messages produced by compilers while | |
998 | running configure, to aid debugging if configure makes a mistake. | |
999 | ||
1000 | It was created by GNU Fortran Runtime Library $as_me 0.2, which was | |
1001 | generated by GNU Autoconf 2.59. Invocation command line was | |
1002 | ||
1003 | $ $0 $@ | |
1004 | ||
1005 | _ACEOF | |
1006 | { | |
1007 | cat <<_ASUNAME | |
1008 | ## --------- ## | |
1009 | ## Platform. ## | |
1010 | ## --------- ## | |
1011 | ||
1012 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1013 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1014 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1015 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1016 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1017 | ||
1018 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1019 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1020 | ||
1021 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1022 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1023 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1024 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1025 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1026 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1027 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1028 | ||
1029 | _ASUNAME | |
1030 | ||
1031 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1032 | for as_dir in $PATH | |
1033 | do | |
1034 | IFS=$as_save_IFS | |
1035 | test -z "$as_dir" && as_dir=. | |
1036 | echo "PATH: $as_dir" | |
1037 | done | |
1038 | ||
1039 | } >&5 | |
1040 | ||
1041 | cat >&5 <<_ACEOF | |
1042 | ||
1043 | ||
1044 | ## ----------- ## | |
1045 | ## Core tests. ## | |
1046 | ## ----------- ## | |
1047 | ||
1048 | _ACEOF | |
1049 | ||
1050 | ||
1051 | # Keep a trace of the command line. | |
1052 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1053 | # Strip out --silent because we don't want to record it for future runs. | |
1054 | # Also quote any args containing shell meta-characters. | |
1055 | # Make two passes to allow for proper duplicate-argument suppression. | |
1056 | ac_configure_args= | |
1057 | ac_configure_args0= | |
1058 | ac_configure_args1= | |
1059 | ac_sep= | |
1060 | ac_must_keep_next=false | |
1061 | for ac_pass in 1 2 | |
1062 | do | |
1063 | for ac_arg | |
1064 | do | |
1065 | case $ac_arg in | |
1066 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1067 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1068 | | -silent | --silent | --silen | --sile | --sil) | |
1069 | continue ;; | |
1070 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1071 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1072 | esac | |
1073 | case $ac_pass in | |
1074 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1075 | 2) | |
1076 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1077 | if test $ac_must_keep_next = true; then | |
1078 | ac_must_keep_next=false # Got value, back to normal. | |
1079 | else | |
1080 | case $ac_arg in | |
1081 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1082 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1083 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1084 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1085 | case "$ac_configure_args0 " in | |
1086 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1087 | esac | |
1088 | ;; | |
1089 | -* ) ac_must_keep_next=true ;; | |
1090 | esac | |
1091 | fi | |
1092 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1093 | # Get rid of the leading space. | |
1094 | ac_sep=" " | |
1095 | ;; | |
1096 | esac | |
1097 | done | |
1098 | done | |
1099 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1100 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1101 | ||
1102 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1103 | # config.log. We remove comments because anyway the quotes in there | |
1104 | # would cause problems or look ugly. | |
1105 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1106 | # such as our DU 5.0 friend, will then `close' the trap. | |
1107 | trap 'exit_status=$? | |
1108 | # Save into config.log some information that might help in debugging. | |
1109 | { | |
1110 | echo | |
1111 | ||
1112 | cat <<\_ASBOX | |
1113 | ## ---------------- ## | |
1114 | ## Cache variables. ## | |
1115 | ## ---------------- ## | |
1116 | _ASBOX | |
1117 | echo | |
1118 | # The following way of writing the cache mishandles newlines in values, | |
1119 | { | |
1120 | (set) 2>&1 | | |
1121 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1122 | *ac_space=\ *) | |
1123 | sed -n \ | |
1124 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1125 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1126 | ;; | |
1127 | *) | |
1128 | sed -n \ | |
1129 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1130 | ;; | |
1131 | esac; | |
1132 | } | |
1133 | echo | |
1134 | ||
1135 | cat <<\_ASBOX | |
1136 | ## ----------------- ## | |
1137 | ## Output variables. ## | |
1138 | ## ----------------- ## | |
1139 | _ASBOX | |
1140 | echo | |
1141 | for ac_var in $ac_subst_vars | |
1142 | do | |
1143 | eval ac_val=$`echo $ac_var` | |
1144 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1145 | done | sort | |
1146 | echo | |
1147 | ||
1148 | if test -n "$ac_subst_files"; then | |
1149 | cat <<\_ASBOX | |
1150 | ## ------------- ## | |
1151 | ## Output files. ## | |
1152 | ## ------------- ## | |
1153 | _ASBOX | |
1154 | echo | |
1155 | for ac_var in $ac_subst_files | |
1156 | do | |
1157 | eval ac_val=$`echo $ac_var` | |
1158 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1159 | done | sort | |
1160 | echo | |
1161 | fi | |
1162 | ||
1163 | if test -s confdefs.h; then | |
1164 | cat <<\_ASBOX | |
1165 | ## ----------- ## | |
1166 | ## confdefs.h. ## | |
1167 | ## ----------- ## | |
1168 | _ASBOX | |
1169 | echo | |
1170 | sed "/^$/d" confdefs.h | sort | |
1171 | echo | |
1172 | fi | |
1173 | test "$ac_signal" != 0 && | |
1174 | echo "$as_me: caught signal $ac_signal" | |
1175 | echo "$as_me: exit $exit_status" | |
1176 | } >&5 | |
1177 | rm -f core *.core && | |
1178 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1179 | exit $exit_status | |
1180 | ' 0 | |
1181 | for ac_signal in 1 2 13 15; do | |
1182 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1183 | done | |
1184 | ac_signal=0 | |
1185 | ||
1186 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1187 | rm -rf conftest* confdefs.h | |
1188 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1189 | echo >confdefs.h | |
1190 | ||
1191 | # Predefined preprocessor variables. | |
1192 | ||
1193 | cat >>confdefs.h <<_ACEOF | |
1194 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1195 | _ACEOF | |
1196 | ||
1197 | ||
1198 | cat >>confdefs.h <<_ACEOF | |
1199 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1200 | _ACEOF | |
1201 | ||
1202 | ||
1203 | cat >>confdefs.h <<_ACEOF | |
1204 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1205 | _ACEOF | |
1206 | ||
1207 | ||
1208 | cat >>confdefs.h <<_ACEOF | |
1209 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1210 | _ACEOF | |
1211 | ||
1212 | ||
1213 | cat >>confdefs.h <<_ACEOF | |
1214 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1215 | _ACEOF | |
1216 | ||
1217 | ||
1218 | # Let the site file select an alternate cache file if it wants to. | |
1219 | # Prefer explicitly selected file to automatically selected ones. | |
1220 | if test -z "$CONFIG_SITE"; then | |
1221 | if test "x$prefix" != xNONE; then | |
1222 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1223 | else | |
1224 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1225 | fi | |
1226 | fi | |
1227 | for ac_site_file in $CONFIG_SITE; do | |
1228 | if test -r "$ac_site_file"; then | |
1229 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1230 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1231 | sed 's/^/| /' "$ac_site_file" >&5 | |
1232 | . "$ac_site_file" | |
1233 | fi | |
1234 | done | |
1235 | ||
1236 | if test -r "$cache_file"; then | |
1237 | # Some versions of bash will fail to source /dev/null (special | |
1238 | # files actually), so we avoid doing that. | |
1239 | if test -f "$cache_file"; then | |
1240 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1241 | echo "$as_me: loading cache $cache_file" >&6;} | |
1242 | case $cache_file in | |
1243 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1244 | *) . ./$cache_file;; | |
1245 | esac | |
1246 | fi | |
1247 | else | |
1248 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1249 | echo "$as_me: creating cache $cache_file" >&6;} | |
1250 | >$cache_file | |
1251 | fi | |
1252 | ||
1253 | # Check that the precious variables saved in the cache have kept the same | |
1254 | # value. | |
1255 | ac_cache_corrupted=false | |
1256 | for ac_var in `(set) 2>&1 | | |
1257 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1258 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1259 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1260 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1261 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1262 | case $ac_old_set,$ac_new_set in | |
1263 | set,) | |
1264 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1265 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1266 | ac_cache_corrupted=: ;; | |
1267 | ,set) | |
1268 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1269 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1270 | ac_cache_corrupted=: ;; | |
1271 | ,);; | |
1272 | *) | |
1273 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1274 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1275 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1276 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1277 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1278 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1279 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1280 | ac_cache_corrupted=: | |
1281 | fi;; | |
1282 | esac | |
1283 | # Pass precious variables to config.status. | |
1284 | if test "$ac_new_set" = set; then | |
1285 | case $ac_new_val in | |
1286 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1287 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1288 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1289 | esac | |
1290 | case " $ac_configure_args " in | |
1291 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1292 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1293 | esac | |
1294 | fi | |
1295 | done | |
1296 | if $ac_cache_corrupted; then | |
1297 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1298 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1299 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1300 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1301 | { (exit 1); exit 1; }; } | |
1302 | fi | |
1303 | ||
1304 | ac_ext=c | |
1305 | ac_cpp='$CPP $CPPFLAGS' | |
1306 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1307 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1308 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | am__api_version="1.8" | |
1337 | ac_aux_dir= | |
1338 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1339 | if test -f $ac_dir/install-sh; then | |
1340 | ac_aux_dir=$ac_dir | |
1341 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1342 | break | |
1343 | elif test -f $ac_dir/install.sh; then | |
1344 | ac_aux_dir=$ac_dir | |
1345 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1346 | break | |
1347 | elif test -f $ac_dir/shtool; then | |
1348 | ac_aux_dir=$ac_dir | |
1349 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1350 | break | |
1351 | fi | |
1352 | done | |
1353 | if test -z "$ac_aux_dir"; then | |
1354 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1355 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1356 | { (exit 1); exit 1; }; } | |
1357 | fi | |
1358 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1359 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1360 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1361 | ||
1362 | # Find a good install program. We prefer a C program (faster), | |
1363 | # so one script is as good as another. But avoid the broken or | |
1364 | # incompatible versions: | |
1365 | # SysV /etc/install, /usr/sbin/install | |
1366 | # SunOS /usr/etc/install | |
1367 | # IRIX /sbin/install | |
1368 | # AIX /bin/install | |
1369 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1370 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1371 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1372 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1373 | # OS/2's system install, which has a completely different semantic | |
1374 | # ./install, which can be erroneously created by make from ./install.sh. | |
1375 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1376 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1377 | if test -z "$INSTALL"; then | |
1378 | if test "${ac_cv_path_install+set}" = set; then | |
1379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1380 | else | |
1381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1382 | for as_dir in $PATH | |
1383 | do | |
1384 | IFS=$as_save_IFS | |
1385 | test -z "$as_dir" && as_dir=. | |
1386 | # Account for people who put trailing slashes in PATH elements. | |
1387 | case $as_dir/ in | |
1388 | ./ | .// | /cC/* | \ | |
1389 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1390 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1391 | /usr/ucb/* ) ;; | |
1392 | *) | |
1393 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1394 | # Don't use installbsd from OSF since it installs stuff as root | |
1395 | # by default. | |
1396 | for ac_prog in ginstall scoinst install; do | |
1397 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1398 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1399 | if test $ac_prog = install && | |
1400 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1401 | # AIX install. It has an incompatible calling convention. | |
1402 | : | |
1403 | elif test $ac_prog = install && | |
1404 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1405 | # program-specific install script used by HP pwplus--don't use. | |
1406 | : | |
1407 | else | |
1408 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1409 | break 3 | |
1410 | fi | |
1411 | fi | |
1412 | done | |
1413 | done | |
1414 | ;; | |
1415 | esac | |
1416 | done | |
1417 | ||
1418 | ||
1419 | fi | |
1420 | if test "${ac_cv_path_install+set}" = set; then | |
1421 | INSTALL=$ac_cv_path_install | |
1422 | else | |
1423 | # As a last resort, use the slow shell script. We don't cache a | |
1424 | # path for INSTALL within a source directory, because that will | |
1425 | # break other packages using the cache if that directory is | |
1426 | # removed, or if the path is relative. | |
1427 | INSTALL=$ac_install_sh | |
1428 | fi | |
1429 | fi | |
1430 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1431 | echo "${ECHO_T}$INSTALL" >&6 | |
1432 | ||
1433 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1434 | # It thinks the first close brace ends the variable substitution. | |
1435 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1436 | ||
1437 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1438 | ||
1439 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1440 | ||
1441 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1442 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1443 | # Just in case | |
1444 | sleep 1 | |
1445 | echo timestamp > conftest.file | |
1446 | # Do `set' in a subshell so we don't clobber the current shell's | |
1447 | # arguments. Must try -L first in case configure is actually a | |
1448 | # symlink; some systems play weird games with the mod time of symlinks | |
1449 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1450 | # directory). | |
1451 | if ( | |
1452 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1453 | if test "$*" = "X"; then | |
1454 | # -L didn't work. | |
1455 | set X `ls -t $srcdir/configure conftest.file` | |
1456 | fi | |
1457 | rm -f conftest.file | |
1458 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1459 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1460 | ||
1461 | # If neither matched, then we have a broken ls. This can happen | |
1462 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1463 | # broken ls alias from the environment. This has actually | |
1464 | # happened. Such a system could not be considered "sane". | |
1465 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1466 | alias in your environment" >&5 | |
1467 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1468 | alias in your environment" >&2;} | |
1469 | { (exit 1); exit 1; }; } | |
1470 | fi | |
1471 | ||
1472 | test "$2" = conftest.file | |
1473 | ) | |
1474 | then | |
1475 | # Ok. | |
1476 | : | |
1477 | else | |
1478 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1479 | Check your system clock" >&5 | |
1480 | echo "$as_me: error: newly created file is older than distributed files! | |
1481 | Check your system clock" >&2;} | |
1482 | { (exit 1); exit 1; }; } | |
1483 | fi | |
1484 | echo "$as_me:$LINENO: result: yes" >&5 | |
1485 | echo "${ECHO_T}yes" >&6 | |
1486 | test "$program_prefix" != NONE && | |
1487 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1488 | # Use a double $ so make ignores it. | |
1489 | test "$program_suffix" != NONE && | |
1490 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1491 | # Double any \ or $. echo might interpret backslashes. | |
1492 | # By default was `s,x,x', remove it if useless. | |
1493 | cat <<\_ACEOF >conftest.sed | |
1494 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1495 | _ACEOF | |
1496 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1497 | rm conftest.sed | |
1498 | ||
1499 | # expand $ac_aux_dir to an absolute path | |
1500 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1501 | ||
1502 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1503 | # Use eval to expand $SHELL | |
1504 | if eval "$MISSING --run true"; then | |
1505 | am_missing_run="$MISSING --run " | |
1506 | else | |
1507 | am_missing_run= | |
1508 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1509 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1510 | fi | |
1511 | ||
c9e66eda | 1512 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
6de9cd9a DN |
1513 | # Keeping the `.' argument allows $(mkdir_p) to be used without |
1514 | # argument. Indeed, we sometimes output rules like | |
1515 | # $(mkdir_p) $(somedir) | |
1516 | # where $(somedir) is conditionally defined. | |
1517 | # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more | |
1518 | # expensive solution, as it forces Make to start a sub-shell.) | |
1519 | mkdir_p='mkdir -p -- .' | |
1520 | else | |
1521 | # On NextStep and OpenStep, the `mkdir' command does not | |
1522 | # recognize any option. It will interpret all options as | |
1523 | # directories to create, and then abort because `.' already | |
1524 | # exists. | |
c9e66eda | 1525 | for d in ./-p ./--version; |
6de9cd9a DN |
1526 | do |
1527 | test -d $d && rmdir $d | |
1528 | done | |
1529 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1530 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1531 | mkdir_p='$(mkinstalldirs)' | |
1532 | else | |
1533 | mkdir_p='$(install_sh) -d' | |
1534 | fi | |
1535 | fi | |
1536 | ||
1537 | for ac_prog in gawk mawk nawk awk | |
1538 | do | |
1539 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1540 | set dummy $ac_prog; ac_word=$2 | |
1541 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1543 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1545 | else | |
1546 | if test -n "$AWK"; then | |
1547 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1548 | else | |
1549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1550 | for as_dir in $PATH | |
1551 | do | |
1552 | IFS=$as_save_IFS | |
1553 | test -z "$as_dir" && as_dir=. | |
1554 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1555 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1556 | ac_cv_prog_AWK="$ac_prog" | |
1557 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1558 | break 2 | |
1559 | fi | |
1560 | done | |
1561 | done | |
1562 | ||
1563 | fi | |
1564 | fi | |
1565 | AWK=$ac_cv_prog_AWK | |
1566 | if test -n "$AWK"; then | |
1567 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1568 | echo "${ECHO_T}$AWK" >&6 | |
1569 | else | |
1570 | echo "$as_me:$LINENO: result: no" >&5 | |
1571 | echo "${ECHO_T}no" >&6 | |
1572 | fi | |
1573 | ||
1574 | test -n "$AWK" && break | |
1575 | done | |
1576 | ||
1577 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1578 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1579 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1580 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1582 | else | |
1583 | cat >conftest.make <<\_ACEOF | |
1584 | all: | |
1585 | @echo 'ac_maketemp="$(MAKE)"' | |
1586 | _ACEOF | |
1587 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1588 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1589 | if test -n "$ac_maketemp"; then | |
1590 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1591 | else | |
1592 | eval ac_cv_prog_make_${ac_make}_set=no | |
1593 | fi | |
1594 | rm -f conftest.make | |
1595 | fi | |
1596 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1597 | echo "$as_me:$LINENO: result: yes" >&5 | |
1598 | echo "${ECHO_T}yes" >&6 | |
1599 | SET_MAKE= | |
1600 | else | |
1601 | echo "$as_me:$LINENO: result: no" >&5 | |
1602 | echo "${ECHO_T}no" >&6 | |
1603 | SET_MAKE="MAKE=${MAKE-make}" | |
1604 | fi | |
1605 | ||
1606 | rm -rf .tst 2>/dev/null | |
1607 | mkdir .tst 2>/dev/null | |
1608 | if test -d .tst; then | |
1609 | am__leading_dot=. | |
1610 | else | |
1611 | am__leading_dot=_ | |
1612 | fi | |
1613 | rmdir .tst 2>/dev/null | |
1614 | ||
1615 | # test to see if srcdir already configured | |
1616 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1617 | test -f $srcdir/config.status; then | |
1618 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1619 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1620 | { (exit 1); exit 1; }; } | |
1621 | fi | |
1622 | ||
1623 | # test whether we have cygpath | |
1624 | if test -z "$CYGPATH_W"; then | |
1625 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1626 | CYGPATH_W='cygpath -w' | |
1627 | else | |
1628 | CYGPATH_W=echo | |
1629 | fi | |
1630 | fi | |
1631 | ||
1632 | ||
1633 | # Define the identity of the package. | |
1634 | PACKAGE='libgfortran' | |
1635 | VERSION='0.2' | |
1636 | ||
1637 | ||
1638 | cat >>confdefs.h <<_ACEOF | |
1639 | #define PACKAGE "$PACKAGE" | |
1640 | _ACEOF | |
1641 | ||
1642 | ||
1643 | cat >>confdefs.h <<_ACEOF | |
1644 | #define VERSION "$VERSION" | |
1645 | _ACEOF | |
1646 | ||
1647 | # Some tools Automake needs. | |
1648 | ||
1649 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1650 | ||
1651 | ||
1652 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1653 | ||
1654 | ||
1655 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1656 | ||
1657 | ||
1658 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1659 | ||
1660 | ||
1661 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1662 | ||
1663 | ||
1664 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1665 | ||
1666 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1667 | ||
1668 | # Installed binaries are usually stripped using `strip' when the user | |
1669 | # run `make install-strip'. However `strip' might not be the right | |
1670 | # tool to use in cross-compilation environments, therefore Automake | |
1671 | # will honor the `STRIP' environment variable to overrule this program. | |
1672 | if test "$cross_compiling" != no; then | |
1673 | if test -n "$ac_tool_prefix"; then | |
1674 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1675 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1678 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1680 | else | |
1681 | if test -n "$STRIP"; then | |
1682 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1683 | else | |
1684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1685 | for as_dir in $PATH | |
1686 | do | |
1687 | IFS=$as_save_IFS | |
1688 | test -z "$as_dir" && as_dir=. | |
1689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1690 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1691 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1693 | break 2 | |
1694 | fi | |
1695 | done | |
1696 | done | |
1697 | ||
1698 | fi | |
1699 | fi | |
1700 | STRIP=$ac_cv_prog_STRIP | |
1701 | if test -n "$STRIP"; then | |
1702 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1703 | echo "${ECHO_T}$STRIP" >&6 | |
1704 | else | |
1705 | echo "$as_me:$LINENO: result: no" >&5 | |
1706 | echo "${ECHO_T}no" >&6 | |
1707 | fi | |
1708 | ||
1709 | fi | |
1710 | if test -z "$ac_cv_prog_STRIP"; then | |
1711 | ac_ct_STRIP=$STRIP | |
1712 | # Extract the first word of "strip", so it can be a program name with args. | |
1713 | set dummy strip; ac_word=$2 | |
1714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1716 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1718 | else | |
1719 | if test -n "$ac_ct_STRIP"; then | |
1720 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1721 | else | |
1722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1723 | for as_dir in $PATH | |
1724 | do | |
1725 | IFS=$as_save_IFS | |
1726 | test -z "$as_dir" && as_dir=. | |
1727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1729 | ac_cv_prog_ac_ct_STRIP="strip" | |
1730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1731 | break 2 | |
1732 | fi | |
1733 | done | |
1734 | done | |
1735 | ||
1736 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1737 | fi | |
1738 | fi | |
1739 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1740 | if test -n "$ac_ct_STRIP"; then | |
1741 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1742 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1743 | else | |
1744 | echo "$as_me:$LINENO: result: no" >&5 | |
1745 | echo "${ECHO_T}no" >&6 | |
1746 | fi | |
1747 | ||
1748 | STRIP=$ac_ct_STRIP | |
1749 | else | |
1750 | STRIP="$ac_cv_prog_STRIP" | |
1751 | fi | |
1752 | ||
1753 | fi | |
1754 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1755 | ||
1756 | # We need awk for the "check" target. The system "awk" is bad on | |
1757 | # some platforms. | |
1758 | ||
1759 | ||
1760 | ||
1761 | ac_config_headers="$ac_config_headers config.h" | |
1762 | ||
1763 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1764 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1765 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
1766 | if test "${enable_maintainer_mode+set}" = set; then | |
1767 | enableval="$enable_maintainer_mode" | |
1768 | USE_MAINTAINER_MODE=$enableval | |
1769 | else | |
1770 | USE_MAINTAINER_MODE=no | |
1771 | fi; | |
1772 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1773 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
1774 | ||
1775 | ||
1776 | if test $USE_MAINTAINER_MODE = yes; then | |
1777 | MAINTAINER_MODE_TRUE= | |
1778 | MAINTAINER_MODE_FALSE='#' | |
1779 | else | |
1780 | MAINTAINER_MODE_TRUE='#' | |
1781 | MAINTAINER_MODE_FALSE= | |
1782 | fi | |
1783 | ||
1784 | MAINT=$MAINTAINER_MODE_TRUE | |
1785 | ||
1786 | ||
1787 | ||
1788 | ||
1789 | ||
1790 | ||
1791 | # check for compiler | |
1792 | ac_ext=c | |
1793 | ac_cpp='$CPP $CPPFLAGS' | |
1794 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1795 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1796 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1797 | if test -n "$ac_tool_prefix"; then | |
1798 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1799 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1800 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1801 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1802 | if test "${ac_cv_prog_CC+set}" = set; then | |
1803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1804 | else | |
1805 | if test -n "$CC"; then | |
1806 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1807 | else | |
1808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1809 | for as_dir in $PATH | |
1810 | do | |
1811 | IFS=$as_save_IFS | |
1812 | test -z "$as_dir" && as_dir=. | |
1813 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1814 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1815 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1816 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1817 | break 2 | |
1818 | fi | |
1819 | done | |
1820 | done | |
1821 | ||
1822 | fi | |
1823 | fi | |
1824 | CC=$ac_cv_prog_CC | |
1825 | if test -n "$CC"; then | |
1826 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1827 | echo "${ECHO_T}$CC" >&6 | |
1828 | else | |
1829 | echo "$as_me:$LINENO: result: no" >&5 | |
1830 | echo "${ECHO_T}no" >&6 | |
1831 | fi | |
1832 | ||
1833 | fi | |
1834 | if test -z "$ac_cv_prog_CC"; then | |
1835 | ac_ct_CC=$CC | |
1836 | # Extract the first word of "gcc", so it can be a program name with args. | |
1837 | set dummy gcc; ac_word=$2 | |
1838 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1839 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1840 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1842 | else | |
1843 | if test -n "$ac_ct_CC"; then | |
1844 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1845 | else | |
1846 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1847 | for as_dir in $PATH | |
1848 | do | |
1849 | IFS=$as_save_IFS | |
1850 | test -z "$as_dir" && as_dir=. | |
1851 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1852 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1853 | ac_cv_prog_ac_ct_CC="gcc" | |
1854 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1855 | break 2 | |
1856 | fi | |
1857 | done | |
1858 | done | |
1859 | ||
1860 | fi | |
1861 | fi | |
1862 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1863 | if test -n "$ac_ct_CC"; then | |
1864 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1865 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1866 | else | |
1867 | echo "$as_me:$LINENO: result: no" >&5 | |
1868 | echo "${ECHO_T}no" >&6 | |
1869 | fi | |
1870 | ||
1871 | CC=$ac_ct_CC | |
1872 | else | |
1873 | CC="$ac_cv_prog_CC" | |
1874 | fi | |
1875 | ||
1876 | if test -z "$CC"; then | |
1877 | if test -n "$ac_tool_prefix"; then | |
1878 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1879 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1880 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1881 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1882 | if test "${ac_cv_prog_CC+set}" = set; then | |
1883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1884 | else | |
1885 | if test -n "$CC"; then | |
1886 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1887 | else | |
1888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1889 | for as_dir in $PATH | |
1890 | do | |
1891 | IFS=$as_save_IFS | |
1892 | test -z "$as_dir" && as_dir=. | |
1893 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1894 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1895 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1896 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1897 | break 2 | |
1898 | fi | |
1899 | done | |
1900 | done | |
1901 | ||
1902 | fi | |
1903 | fi | |
1904 | CC=$ac_cv_prog_CC | |
1905 | if test -n "$CC"; then | |
1906 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1907 | echo "${ECHO_T}$CC" >&6 | |
1908 | else | |
1909 | echo "$as_me:$LINENO: result: no" >&5 | |
1910 | echo "${ECHO_T}no" >&6 | |
1911 | fi | |
1912 | ||
1913 | fi | |
1914 | if test -z "$ac_cv_prog_CC"; then | |
1915 | ac_ct_CC=$CC | |
1916 | # Extract the first word of "cc", so it can be a program name with args. | |
1917 | set dummy cc; ac_word=$2 | |
1918 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1919 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1920 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1922 | else | |
1923 | if test -n "$ac_ct_CC"; then | |
1924 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1925 | else | |
1926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1927 | for as_dir in $PATH | |
1928 | do | |
1929 | IFS=$as_save_IFS | |
1930 | test -z "$as_dir" && as_dir=. | |
1931 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1932 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1933 | ac_cv_prog_ac_ct_CC="cc" | |
1934 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1935 | break 2 | |
1936 | fi | |
1937 | done | |
1938 | done | |
1939 | ||
1940 | fi | |
1941 | fi | |
1942 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1943 | if test -n "$ac_ct_CC"; then | |
1944 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1945 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1946 | else | |
1947 | echo "$as_me:$LINENO: result: no" >&5 | |
1948 | echo "${ECHO_T}no" >&6 | |
1949 | fi | |
1950 | ||
1951 | CC=$ac_ct_CC | |
1952 | else | |
1953 | CC="$ac_cv_prog_CC" | |
1954 | fi | |
1955 | ||
1956 | fi | |
1957 | if test -z "$CC"; then | |
1958 | # Extract the first word of "cc", so it can be a program name with args. | |
1959 | set dummy cc; 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_CC+set}" = set; then | |
1963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1964 | else | |
1965 | if test -n "$CC"; then | |
1966 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1967 | else | |
1968 | ac_prog_rejected=no | |
1969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1970 | for as_dir in $PATH | |
1971 | do | |
1972 | IFS=$as_save_IFS | |
1973 | test -z "$as_dir" && as_dir=. | |
1974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1975 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1976 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1977 | ac_prog_rejected=yes | |
1978 | continue | |
1979 | fi | |
1980 | ac_cv_prog_CC="cc" | |
1981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1982 | break 2 | |
1983 | fi | |
1984 | done | |
1985 | done | |
1986 | ||
1987 | if test $ac_prog_rejected = yes; then | |
1988 | # We found a bogon in the path, so make sure we never use it. | |
1989 | set dummy $ac_cv_prog_CC | |
1990 | shift | |
1991 | if test $# != 0; then | |
1992 | # We chose a different compiler from the bogus one. | |
1993 | # However, it has the same basename, so the bogon will be chosen | |
1994 | # first if we set CC to just the basename; use the full file name. | |
1995 | shift | |
1996 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1997 | fi | |
1998 | fi | |
1999 | fi | |
2000 | fi | |
2001 | CC=$ac_cv_prog_CC | |
2002 | if test -n "$CC"; then | |
2003 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2004 | echo "${ECHO_T}$CC" >&6 | |
2005 | else | |
2006 | echo "$as_me:$LINENO: result: no" >&5 | |
2007 | echo "${ECHO_T}no" >&6 | |
2008 | fi | |
2009 | ||
2010 | fi | |
2011 | if test -z "$CC"; then | |
2012 | if test -n "$ac_tool_prefix"; then | |
2013 | for ac_prog in cl | |
2014 | do | |
2015 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2016 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2017 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2019 | if test "${ac_cv_prog_CC+set}" = set; then | |
2020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2021 | else | |
2022 | if test -n "$CC"; then | |
2023 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2024 | else | |
2025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2026 | for as_dir in $PATH | |
2027 | do | |
2028 | IFS=$as_save_IFS | |
2029 | test -z "$as_dir" && as_dir=. | |
2030 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2031 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2032 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2033 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2034 | break 2 | |
2035 | fi | |
2036 | done | |
2037 | done | |
2038 | ||
2039 | fi | |
2040 | fi | |
2041 | CC=$ac_cv_prog_CC | |
2042 | if test -n "$CC"; then | |
2043 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2044 | echo "${ECHO_T}$CC" >&6 | |
2045 | else | |
2046 | echo "$as_me:$LINENO: result: no" >&5 | |
2047 | echo "${ECHO_T}no" >&6 | |
2048 | fi | |
2049 | ||
2050 | test -n "$CC" && break | |
2051 | done | |
2052 | fi | |
2053 | if test -z "$CC"; then | |
2054 | ac_ct_CC=$CC | |
2055 | for ac_prog in cl | |
2056 | do | |
2057 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2058 | set dummy $ac_prog; ac_word=$2 | |
2059 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2061 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2063 | else | |
2064 | if test -n "$ac_ct_CC"; then | |
2065 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2066 | else | |
2067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2068 | for as_dir in $PATH | |
2069 | do | |
2070 | IFS=$as_save_IFS | |
2071 | test -z "$as_dir" && as_dir=. | |
2072 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2073 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2074 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2075 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2076 | break 2 | |
2077 | fi | |
2078 | done | |
2079 | done | |
2080 | ||
2081 | fi | |
2082 | fi | |
2083 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2084 | if test -n "$ac_ct_CC"; then | |
2085 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2086 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2087 | else | |
2088 | echo "$as_me:$LINENO: result: no" >&5 | |
2089 | echo "${ECHO_T}no" >&6 | |
2090 | fi | |
2091 | ||
2092 | test -n "$ac_ct_CC" && break | |
2093 | done | |
2094 | ||
2095 | CC=$ac_ct_CC | |
2096 | fi | |
2097 | ||
2098 | fi | |
2099 | ||
2100 | ||
2101 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2102 | See \`config.log' for more details." >&5 | |
2103 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2104 | See \`config.log' for more details." >&2;} | |
2105 | { (exit 1); exit 1; }; } | |
2106 | ||
2107 | # Provide some information about the compiler. | |
2108 | echo "$as_me:$LINENO:" \ | |
2109 | "checking for C compiler version" >&5 | |
2110 | ac_compiler=`set X $ac_compile; echo $2` | |
2111 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2112 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2113 | ac_status=$? | |
2114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2115 | (exit $ac_status); } | |
2116 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2117 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2118 | ac_status=$? | |
2119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2120 | (exit $ac_status); } | |
2121 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2122 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2123 | ac_status=$? | |
2124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2125 | (exit $ac_status); } | |
2126 | ||
2127 | cat >conftest.$ac_ext <<_ACEOF | |
2128 | /* confdefs.h. */ | |
2129 | _ACEOF | |
2130 | cat confdefs.h >>conftest.$ac_ext | |
2131 | cat >>conftest.$ac_ext <<_ACEOF | |
2132 | /* end confdefs.h. */ | |
2133 | ||
2134 | int | |
2135 | main () | |
2136 | { | |
2137 | ||
2138 | ; | |
2139 | return 0; | |
2140 | } | |
2141 | _ACEOF | |
2142 | ac_clean_files_save=$ac_clean_files | |
2143 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2144 | # Try to create an executable without -o first, disregard a.out. | |
2145 | # It will help us diagnose broken compilers, and finding out an intuition | |
2146 | # of exeext. | |
2147 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2148 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2149 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2150 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2151 | (eval $ac_link_default) 2>&5 | |
2152 | ac_status=$? | |
2153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2154 | (exit $ac_status); }; then | |
2155 | # Find the output, starting from the most likely. This scheme is | |
2156 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2157 | # resort. | |
2158 | ||
2159 | # Be careful to initialize this variable, since it used to be cached. | |
2160 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2161 | ac_cv_exeext= | |
2162 | # b.out is created by i960 compilers. | |
2163 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2164 | do | |
2165 | test -f "$ac_file" || continue | |
2166 | case $ac_file in | |
2167 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2168 | ;; | |
2169 | conftest.$ac_ext ) | |
2170 | # This is the source file. | |
2171 | ;; | |
2172 | [ab].out ) | |
2173 | # We found the default executable, but exeext='' is most | |
2174 | # certainly right. | |
2175 | break;; | |
2176 | *.* ) | |
2177 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2178 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2179 | # but it would be cool to find out if it's true. Does anybody | |
2180 | # maintain Libtool? --akim. | |
2181 | export ac_cv_exeext | |
2182 | break;; | |
2183 | * ) | |
2184 | break;; | |
2185 | esac | |
2186 | done | |
2187 | else | |
2188 | echo "$as_me: failed program was:" >&5 | |
2189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2190 | ||
2191 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2192 | See \`config.log' for more details." >&5 | |
2193 | echo "$as_me: error: C compiler cannot create executables | |
2194 | See \`config.log' for more details." >&2;} | |
2195 | { (exit 77); exit 77; }; } | |
2196 | fi | |
2197 | ||
2198 | ac_exeext=$ac_cv_exeext | |
2199 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2200 | echo "${ECHO_T}$ac_file" >&6 | |
2201 | ||
2202 | # Check the compiler produces executables we can run. If not, either | |
2203 | # the compiler is broken, or we cross compile. | |
2204 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2205 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2206 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2207 | # If not cross compiling, check that we can run a simple program. | |
2208 | if test "$cross_compiling" != yes; then | |
2209 | if { ac_try='./$ac_file' | |
2210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2211 | (eval $ac_try) 2>&5 | |
2212 | ac_status=$? | |
2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2214 | (exit $ac_status); }; }; then | |
2215 | cross_compiling=no | |
2216 | else | |
2217 | if test "$cross_compiling" = maybe; then | |
2218 | cross_compiling=yes | |
2219 | else | |
2220 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2221 | If you meant to cross compile, use \`--host'. | |
2222 | See \`config.log' for more details." >&5 | |
2223 | echo "$as_me: error: cannot run C compiled programs. | |
2224 | If you meant to cross compile, use \`--host'. | |
2225 | See \`config.log' for more details." >&2;} | |
2226 | { (exit 1); exit 1; }; } | |
2227 | fi | |
2228 | fi | |
2229 | fi | |
2230 | echo "$as_me:$LINENO: result: yes" >&5 | |
2231 | echo "${ECHO_T}yes" >&6 | |
2232 | ||
2233 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2234 | ac_clean_files=$ac_clean_files_save | |
2235 | # Check the compiler produces executables we can run. If not, either | |
2236 | # the compiler is broken, or we cross compile. | |
2237 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2238 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2239 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2240 | echo "${ECHO_T}$cross_compiling" >&6 | |
2241 | ||
2242 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2243 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2245 | (eval $ac_link) 2>&5 | |
2246 | ac_status=$? | |
2247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2248 | (exit $ac_status); }; then | |
2249 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2250 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2251 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2252 | # `rm'. | |
2253 | for ac_file in conftest.exe conftest conftest.*; do | |
2254 | test -f "$ac_file" || continue | |
2255 | case $ac_file in | |
2256 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2257 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2258 | export ac_cv_exeext | |
2259 | break;; | |
2260 | * ) break;; | |
2261 | esac | |
2262 | done | |
2263 | else | |
2264 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2265 | See \`config.log' for more details." >&5 | |
2266 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2267 | See \`config.log' for more details." >&2;} | |
2268 | { (exit 1); exit 1; }; } | |
2269 | fi | |
2270 | ||
2271 | rm -f conftest$ac_cv_exeext | |
2272 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2273 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2274 | ||
2275 | rm -f conftest.$ac_ext | |
2276 | EXEEXT=$ac_cv_exeext | |
2277 | ac_exeext=$EXEEXT | |
2278 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2279 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2280 | if test "${ac_cv_objext+set}" = set; then | |
2281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2282 | else | |
2283 | cat >conftest.$ac_ext <<_ACEOF | |
2284 | /* confdefs.h. */ | |
2285 | _ACEOF | |
2286 | cat confdefs.h >>conftest.$ac_ext | |
2287 | cat >>conftest.$ac_ext <<_ACEOF | |
2288 | /* end confdefs.h. */ | |
2289 | ||
2290 | int | |
2291 | main () | |
2292 | { | |
2293 | ||
2294 | ; | |
2295 | return 0; | |
2296 | } | |
2297 | _ACEOF | |
2298 | rm -f conftest.o conftest.obj | |
2299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2300 | (eval $ac_compile) 2>&5 | |
2301 | ac_status=$? | |
2302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2303 | (exit $ac_status); }; then | |
2304 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2305 | case $ac_file in | |
2306 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2307 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2308 | break;; | |
2309 | esac | |
2310 | done | |
2311 | else | |
2312 | echo "$as_me: failed program was:" >&5 | |
2313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2314 | ||
2315 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2316 | See \`config.log' for more details." >&5 | |
2317 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2318 | See \`config.log' for more details." >&2;} | |
2319 | { (exit 1); exit 1; }; } | |
2320 | fi | |
2321 | ||
2322 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2323 | fi | |
2324 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2325 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2326 | OBJEXT=$ac_cv_objext | |
2327 | ac_objext=$OBJEXT | |
2328 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2329 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2330 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2332 | else | |
2333 | cat >conftest.$ac_ext <<_ACEOF | |
2334 | /* confdefs.h. */ | |
2335 | _ACEOF | |
2336 | cat confdefs.h >>conftest.$ac_ext | |
2337 | cat >>conftest.$ac_ext <<_ACEOF | |
2338 | /* end confdefs.h. */ | |
2339 | ||
2340 | int | |
2341 | main () | |
2342 | { | |
2343 | #ifndef __GNUC__ | |
2344 | choke me | |
2345 | #endif | |
2346 | ||
2347 | ; | |
2348 | return 0; | |
2349 | } | |
2350 | _ACEOF | |
2351 | rm -f conftest.$ac_objext | |
2352 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2353 | (eval $ac_compile) 2>conftest.er1 | |
2354 | ac_status=$? | |
2355 | grep -v '^ *+' conftest.er1 >conftest.err | |
2356 | rm -f conftest.er1 | |
2357 | cat conftest.err >&5 | |
2358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2359 | (exit $ac_status); } && | |
2360 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2362 | (eval $ac_try) 2>&5 | |
2363 | ac_status=$? | |
2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2365 | (exit $ac_status); }; } && | |
2366 | { ac_try='test -s conftest.$ac_objext' | |
2367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2368 | (eval $ac_try) 2>&5 | |
2369 | ac_status=$? | |
2370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2371 | (exit $ac_status); }; }; then | |
2372 | ac_compiler_gnu=yes | |
2373 | else | |
2374 | echo "$as_me: failed program was:" >&5 | |
2375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2376 | ||
2377 | ac_compiler_gnu=no | |
2378 | fi | |
2379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2380 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2381 | ||
2382 | fi | |
2383 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2384 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2385 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2386 | ac_test_CFLAGS=${CFLAGS+set} | |
2387 | ac_save_CFLAGS=$CFLAGS | |
2388 | CFLAGS="-g" | |
2389 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2390 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2391 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2393 | else | |
2394 | cat >conftest.$ac_ext <<_ACEOF | |
2395 | /* confdefs.h. */ | |
2396 | _ACEOF | |
2397 | cat confdefs.h >>conftest.$ac_ext | |
2398 | cat >>conftest.$ac_ext <<_ACEOF | |
2399 | /* end confdefs.h. */ | |
2400 | ||
2401 | int | |
2402 | main () | |
2403 | { | |
2404 | ||
2405 | ; | |
2406 | return 0; | |
2407 | } | |
2408 | _ACEOF | |
2409 | rm -f conftest.$ac_objext | |
2410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2411 | (eval $ac_compile) 2>conftest.er1 | |
2412 | ac_status=$? | |
2413 | grep -v '^ *+' conftest.er1 >conftest.err | |
2414 | rm -f conftest.er1 | |
2415 | cat conftest.err >&5 | |
2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2417 | (exit $ac_status); } && | |
2418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2420 | (eval $ac_try) 2>&5 | |
2421 | ac_status=$? | |
2422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2423 | (exit $ac_status); }; } && | |
2424 | { ac_try='test -s conftest.$ac_objext' | |
2425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2426 | (eval $ac_try) 2>&5 | |
2427 | ac_status=$? | |
2428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2429 | (exit $ac_status); }; }; then | |
2430 | ac_cv_prog_cc_g=yes | |
2431 | else | |
2432 | echo "$as_me: failed program was:" >&5 | |
2433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2434 | ||
2435 | ac_cv_prog_cc_g=no | |
2436 | fi | |
2437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2438 | fi | |
2439 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2440 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2441 | if test "$ac_test_CFLAGS" = set; then | |
2442 | CFLAGS=$ac_save_CFLAGS | |
2443 | elif test $ac_cv_prog_cc_g = yes; then | |
2444 | if test "$GCC" = yes; then | |
2445 | CFLAGS="-g -O2" | |
2446 | else | |
2447 | CFLAGS="-g" | |
2448 | fi | |
2449 | else | |
2450 | if test "$GCC" = yes; then | |
2451 | CFLAGS="-O2" | |
2452 | else | |
2453 | CFLAGS= | |
2454 | fi | |
2455 | fi | |
2456 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2457 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2458 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2460 | else | |
2461 | ac_cv_prog_cc_stdc=no | |
2462 | ac_save_CC=$CC | |
2463 | cat >conftest.$ac_ext <<_ACEOF | |
2464 | /* confdefs.h. */ | |
2465 | _ACEOF | |
2466 | cat confdefs.h >>conftest.$ac_ext | |
2467 | cat >>conftest.$ac_ext <<_ACEOF | |
2468 | /* end confdefs.h. */ | |
2469 | #include <stdarg.h> | |
2470 | #include <stdio.h> | |
2471 | #include <sys/types.h> | |
2472 | #include <sys/stat.h> | |
2473 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2474 | struct buf { int x; }; | |
2475 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2476 | static char *e (p, i) | |
2477 | char **p; | |
2478 | int i; | |
2479 | { | |
2480 | return p[i]; | |
2481 | } | |
2482 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2483 | { | |
2484 | char *s; | |
2485 | va_list v; | |
2486 | va_start (v,p); | |
2487 | s = g (p, va_arg (v,int)); | |
2488 | va_end (v); | |
2489 | return s; | |
2490 | } | |
2491 | ||
2492 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2493 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2494 | These don't provoke an error unfortunately, instead are silently treated | |
2495 | as 'x'. The following induces an error, until -std1 is added to get | |
2496 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2497 | array size at least. It's necessary to write '\x00'==0 to get something | |
2498 | that's true only with -std1. */ | |
2499 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2500 | ||
2501 | int test (int i, double x); | |
2502 | struct s1 {int (*f) (int a);}; | |
2503 | struct s2 {int (*f) (double a);}; | |
2504 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2505 | int argc; | |
2506 | char **argv; | |
2507 | int | |
2508 | main () | |
2509 | { | |
2510 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2511 | ; | |
2512 | return 0; | |
2513 | } | |
2514 | _ACEOF | |
2515 | # Don't try gcc -ansi; that turns off useful extensions and | |
2516 | # breaks some systems' header files. | |
2517 | # AIX -qlanglvl=ansi | |
2518 | # Ultrix and OSF/1 -std1 | |
2519 | # HP-UX 10.20 and later -Ae | |
2520 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2521 | # SVR4 -Xc -D__EXTENSIONS__ | |
2522 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2523 | do | |
2524 | CC="$ac_save_CC $ac_arg" | |
2525 | rm -f conftest.$ac_objext | |
2526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2527 | (eval $ac_compile) 2>conftest.er1 | |
2528 | ac_status=$? | |
2529 | grep -v '^ *+' conftest.er1 >conftest.err | |
2530 | rm -f conftest.er1 | |
2531 | cat conftest.err >&5 | |
2532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2533 | (exit $ac_status); } && | |
2534 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2536 | (eval $ac_try) 2>&5 | |
2537 | ac_status=$? | |
2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2539 | (exit $ac_status); }; } && | |
2540 | { ac_try='test -s conftest.$ac_objext' | |
2541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2542 | (eval $ac_try) 2>&5 | |
2543 | ac_status=$? | |
2544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2545 | (exit $ac_status); }; }; then | |
2546 | ac_cv_prog_cc_stdc=$ac_arg | |
2547 | break | |
2548 | else | |
2549 | echo "$as_me: failed program was:" >&5 | |
2550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2551 | ||
2552 | fi | |
2553 | rm -f conftest.err conftest.$ac_objext | |
2554 | done | |
2555 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2556 | CC=$ac_save_CC | |
2557 | ||
2558 | fi | |
2559 | ||
2560 | case "x$ac_cv_prog_cc_stdc" in | |
2561 | x|xno) | |
2562 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2563 | echo "${ECHO_T}none needed" >&6 ;; | |
2564 | *) | |
2565 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2566 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2567 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2568 | esac | |
2569 | ||
2570 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2571 | # in C++ we need to declare it. In case someone uses the same compiler | |
2572 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2573 | # the declaration of exit, since it's the most demanding environment. | |
2574 | cat >conftest.$ac_ext <<_ACEOF | |
2575 | #ifndef __cplusplus | |
2576 | choke me | |
2577 | #endif | |
2578 | _ACEOF | |
2579 | rm -f conftest.$ac_objext | |
2580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2581 | (eval $ac_compile) 2>conftest.er1 | |
2582 | ac_status=$? | |
2583 | grep -v '^ *+' conftest.er1 >conftest.err | |
2584 | rm -f conftest.er1 | |
2585 | cat conftest.err >&5 | |
2586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2587 | (exit $ac_status); } && | |
2588 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2590 | (eval $ac_try) 2>&5 | |
2591 | ac_status=$? | |
2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2593 | (exit $ac_status); }; } && | |
2594 | { ac_try='test -s conftest.$ac_objext' | |
2595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2596 | (eval $ac_try) 2>&5 | |
2597 | ac_status=$? | |
2598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2599 | (exit $ac_status); }; }; then | |
2600 | for ac_declaration in \ | |
2601 | '' \ | |
2602 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2603 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2604 | 'extern "C" void exit (int) throw ();' \ | |
2605 | 'extern "C" void exit (int);' \ | |
2606 | 'void exit (int);' | |
2607 | do | |
2608 | cat >conftest.$ac_ext <<_ACEOF | |
2609 | /* confdefs.h. */ | |
2610 | _ACEOF | |
2611 | cat confdefs.h >>conftest.$ac_ext | |
2612 | cat >>conftest.$ac_ext <<_ACEOF | |
2613 | /* end confdefs.h. */ | |
2614 | $ac_declaration | |
2615 | #include <stdlib.h> | |
2616 | int | |
2617 | main () | |
2618 | { | |
2619 | exit (42); | |
2620 | ; | |
2621 | return 0; | |
2622 | } | |
2623 | _ACEOF | |
2624 | rm -f conftest.$ac_objext | |
2625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2626 | (eval $ac_compile) 2>conftest.er1 | |
2627 | ac_status=$? | |
2628 | grep -v '^ *+' conftest.er1 >conftest.err | |
2629 | rm -f conftest.er1 | |
2630 | cat conftest.err >&5 | |
2631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2632 | (exit $ac_status); } && | |
2633 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2635 | (eval $ac_try) 2>&5 | |
2636 | ac_status=$? | |
2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2638 | (exit $ac_status); }; } && | |
2639 | { ac_try='test -s conftest.$ac_objext' | |
2640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2641 | (eval $ac_try) 2>&5 | |
2642 | ac_status=$? | |
2643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2644 | (exit $ac_status); }; }; then | |
2645 | : | |
2646 | else | |
2647 | echo "$as_me: failed program was:" >&5 | |
2648 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2649 | ||
2650 | continue | |
2651 | fi | |
2652 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2653 | cat >conftest.$ac_ext <<_ACEOF | |
2654 | /* confdefs.h. */ | |
2655 | _ACEOF | |
2656 | cat confdefs.h >>conftest.$ac_ext | |
2657 | cat >>conftest.$ac_ext <<_ACEOF | |
2658 | /* end confdefs.h. */ | |
2659 | $ac_declaration | |
2660 | int | |
2661 | main () | |
2662 | { | |
2663 | exit (42); | |
2664 | ; | |
2665 | return 0; | |
2666 | } | |
2667 | _ACEOF | |
2668 | rm -f conftest.$ac_objext | |
2669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2670 | (eval $ac_compile) 2>conftest.er1 | |
2671 | ac_status=$? | |
2672 | grep -v '^ *+' conftest.er1 >conftest.err | |
2673 | rm -f conftest.er1 | |
2674 | cat conftest.err >&5 | |
2675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2676 | (exit $ac_status); } && | |
2677 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
2678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2679 | (eval $ac_try) 2>&5 | |
2680 | ac_status=$? | |
2681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2682 | (exit $ac_status); }; } && | |
2683 | { ac_try='test -s conftest.$ac_objext' | |
2684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2685 | (eval $ac_try) 2>&5 | |
2686 | ac_status=$? | |
2687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2688 | (exit $ac_status); }; }; then | |
2689 | break | |
2690 | else | |
2691 | echo "$as_me: failed program was:" >&5 | |
2692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2693 | ||
2694 | fi | |
2695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2696 | done | |
2697 | rm -f conftest* | |
2698 | if test -n "$ac_declaration"; then | |
2699 | echo '#ifdef __cplusplus' >>confdefs.h | |
2700 | echo $ac_declaration >>confdefs.h | |
2701 | echo '#endif' >>confdefs.h | |
2702 | fi | |
2703 | ||
2704 | else | |
2705 | echo "$as_me: failed program was:" >&5 | |
2706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2707 | ||
2708 | fi | |
2709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2710 | ac_ext=c | |
2711 | ac_cpp='$CPP $CPPFLAGS' | |
2712 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2713 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2714 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2715 | DEPDIR="${am__leading_dot}deps" | |
2716 | ||
2717 | ac_config_commands="$ac_config_commands depfiles" | |
2718 | ||
2719 | ||
2720 | am_make=${MAKE-make} | |
2721 | cat > confinc << 'END' | |
2722 | am__doit: | |
2723 | @echo done | |
2724 | .PHONY: am__doit | |
2725 | END | |
2726 | # If we don't find an include directive, just comment out the code. | |
2727 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2728 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2729 | am__include="#" | |
2730 | am__quote= | |
2731 | _am_result=none | |
2732 | # First try GNU make style include. | |
2733 | echo "include confinc" > confmf | |
2734 | # We grep out `Entering directory' and `Leaving directory' | |
2735 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2736 | # In particular we don't look at `^make:' because GNU make might | |
2737 | # be invoked under some other name (usually "gmake"), in which | |
2738 | # case it prints its new name instead of `make'. | |
2739 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2740 | am__include=include | |
2741 | am__quote= | |
2742 | _am_result=GNU | |
2743 | fi | |
2744 | # Now try BSD make style include. | |
2745 | if test "$am__include" = "#"; then | |
2746 | echo '.include "confinc"' > confmf | |
2747 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2748 | am__include=.include | |
2749 | am__quote="\"" | |
2750 | _am_result=BSD | |
2751 | fi | |
2752 | fi | |
2753 | ||
2754 | ||
2755 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2756 | echo "${ECHO_T}$_am_result" >&6 | |
2757 | rm -f confinc confmf | |
2758 | ||
2759 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2760 | if test "${enable_dependency_tracking+set}" = set; then | |
2761 | enableval="$enable_dependency_tracking" | |
2762 | ||
2763 | fi; | |
2764 | if test "x$enable_dependency_tracking" != xno; then | |
2765 | am_depcomp="$ac_aux_dir/depcomp" | |
2766 | AMDEPBACKSLASH='\' | |
2767 | fi | |
2768 | ||
2769 | ||
2770 | if test "x$enable_dependency_tracking" != xno; then | |
2771 | AMDEP_TRUE= | |
2772 | AMDEP_FALSE='#' | |
2773 | else | |
2774 | AMDEP_TRUE='#' | |
2775 | AMDEP_FALSE= | |
2776 | fi | |
2777 | ||
2778 | ||
2779 | ||
2780 | ||
2781 | depcc="$CC" am_compiler_list= | |
2782 | ||
2783 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2784 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2785 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2787 | else | |
2788 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2789 | # We make a subdir and do the tests there. Otherwise we can end up | |
2790 | # making bogus files that we don't know about and never remove. For | |
2791 | # instance it was reported that on HP-UX the gcc test will end up | |
2792 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2793 | # in D'. | |
2794 | mkdir conftest.dir | |
2795 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2796 | # using a relative directory. | |
2797 | cp "$am_depcomp" conftest.dir | |
2798 | cd conftest.dir | |
2799 | # We will build objects and dependencies in a subdirectory because | |
2800 | # it helps to detect inapplicable dependency modes. For instance | |
2801 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2802 | # side effect of compilation, but ICC will put the dependencies in | |
2803 | # the current directory while Tru64 will put them in the object | |
2804 | # directory. | |
2805 | mkdir sub | |
2806 | ||
2807 | am_cv_CC_dependencies_compiler_type=none | |
2808 | if test "$am_compiler_list" = ""; then | |
2809 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2810 | fi | |
2811 | for depmode in $am_compiler_list; do | |
2812 | # Setup a source with many dependencies, because some compilers | |
2813 | # like to wrap large dependency lists on column 80 (with \), and | |
2814 | # we should not choose a depcomp mode which is confused by this. | |
2815 | # | |
2816 | # We need to recreate these files for each test, as the compiler may | |
2817 | # overwrite some of them when testing with obscure command lines. | |
2818 | # This happens at least with the AIX C compiler. | |
2819 | : > sub/conftest.c | |
2820 | for i in 1 2 3 4 5 6; do | |
2821 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
c9e66eda PB |
2822 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
2823 | # Solaris 8's {/usr,}/bin/sh. | |
2824 | touch sub/conftst$i.h | |
6de9cd9a DN |
2825 | done |
2826 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
2827 | ||
2828 | case $depmode in | |
2829 | nosideeffect) | |
2830 | # after this tag, mechanisms are not by side-effect, so they'll | |
2831 | # only be used when explicitly requested | |
2832 | if test "x$enable_dependency_tracking" = xyes; then | |
2833 | continue | |
2834 | else | |
2835 | break | |
2836 | fi | |
2837 | ;; | |
2838 | none) break ;; | |
2839 | esac | |
2840 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2841 | # mode. It turns out that the SunPro C++ compiler does not properly | |
2842 | # handle `-M -o', and we need to detect this. | |
2843 | if depmode=$depmode \ | |
2844 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
2845 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
2846 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
2847 | >/dev/null 2>conftest.err && | |
2848 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
2849 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
2850 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2851 | # icc doesn't choke on unknown options, it will just issue warnings | |
c9e66eda PB |
2852 | # or remarks (even with -Werror). So we grep stderr for any message |
2853 | # that says an option was ignored or not supported. | |
2854 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
2855 | # icc: Command line warning: ignoring option '-M'; no argument required | |
2856 | # The diagnosis changed in icc 8.0: | |
2857 | # icc: Command line remark: option '-MP' not supported | |
2858 | if (grep 'ignoring option' conftest.err || | |
2859 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
6de9cd9a DN |
2860 | am_cv_CC_dependencies_compiler_type=$depmode |
2861 | break | |
2862 | fi | |
2863 | fi | |
2864 | done | |
2865 | ||
2866 | cd .. | |
2867 | rm -rf conftest.dir | |
2868 | else | |
2869 | am_cv_CC_dependencies_compiler_type=none | |
2870 | fi | |
2871 | ||
2872 | fi | |
2873 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
2874 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
2875 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
2876 | ||
2877 | ||
2878 | ||
2879 | if | |
2880 | test "x$enable_dependency_tracking" != xno \ | |
2881 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
2882 | am__fastdepCC_TRUE= | |
2883 | am__fastdepCC_FALSE='#' | |
2884 | else | |
2885 | am__fastdepCC_TRUE='#' | |
2886 | am__fastdepCC_FALSE= | |
2887 | fi | |
2888 | ||
2889 | ||
2890 | if test "x$GCC" = "xyes"; then | |
2891 | CFLAGS="$CFLAGS -Wall" | |
2892 | fi | |
2893 | ||
2894 | # We need gfortran to compile parts of the library | |
2895 | # We can't use AC_PROG_F77 because it expects a fully working gfortran. | |
2896 | #AC_PROG_F77(gfortran) | |
2897 | F77="$GFORTRAN" | |
2898 | ac_ext=f | |
2899 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
2900 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2901 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
2902 | if test -n "$ac_tool_prefix"; then | |
2903 | for ac_prog in gfortran | |
2904 | do | |
2905 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2906 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2907 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2908 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2909 | if test "${ac_cv_prog_F77+set}" = set; then | |
2910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2911 | else | |
2912 | if test -n "$F77"; then | |
2913 | ac_cv_prog_F77="$F77" # Let the user override the test. | |
2914 | else | |
2915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2916 | for as_dir in $PATH | |
2917 | do | |
2918 | IFS=$as_save_IFS | |
2919 | test -z "$as_dir" && as_dir=. | |
2920 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2921 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2922 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
2923 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2924 | break 2 | |
2925 | fi | |
2926 | done | |
2927 | done | |
2928 | ||
2929 | fi | |
2930 | fi | |
2931 | F77=$ac_cv_prog_F77 | |
2932 | if test -n "$F77"; then | |
2933 | echo "$as_me:$LINENO: result: $F77" >&5 | |
2934 | echo "${ECHO_T}$F77" >&6 | |
2935 | else | |
2936 | echo "$as_me:$LINENO: result: no" >&5 | |
2937 | echo "${ECHO_T}no" >&6 | |
2938 | fi | |
2939 | ||
2940 | test -n "$F77" && break | |
2941 | done | |
2942 | fi | |
2943 | if test -z "$F77"; then | |
2944 | ac_ct_F77=$F77 | |
2945 | for ac_prog in gfortran | |
2946 | do | |
2947 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2948 | set dummy $ac_prog; ac_word=$2 | |
2949 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2950 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2951 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | |
2952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2953 | else | |
2954 | if test -n "$ac_ct_F77"; then | |
2955 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
2956 | else | |
2957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2958 | for as_dir in $PATH | |
2959 | do | |
2960 | IFS=$as_save_IFS | |
2961 | test -z "$as_dir" && as_dir=. | |
2962 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2963 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2964 | ac_cv_prog_ac_ct_F77="$ac_prog" | |
2965 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2966 | break 2 | |
2967 | fi | |
2968 | done | |
2969 | done | |
2970 | ||
2971 | fi | |
2972 | fi | |
2973 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
2974 | if test -n "$ac_ct_F77"; then | |
2975 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | |
2976 | echo "${ECHO_T}$ac_ct_F77" >&6 | |
2977 | else | |
2978 | echo "$as_me:$LINENO: result: no" >&5 | |
2979 | echo "${ECHO_T}no" >&6 | |
2980 | fi | |
2981 | ||
2982 | test -n "$ac_ct_F77" && break | |
2983 | done | |
2984 | ||
2985 | F77=$ac_ct_F77 | |
2986 | fi | |
2987 | ||
2988 | ||
2989 | # Provide some information about the compiler. | |
c9e66eda | 2990 | echo "$as_me:2990:" \ |
6de9cd9a DN |
2991 | "checking for Fortran 77 compiler version" >&5 |
2992 | ac_compiler=`set X $ac_compile; echo $2` | |
2993 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2994 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2995 | ac_status=$? | |
2996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2997 | (exit $ac_status); } | |
2998 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2999 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3000 | ac_status=$? | |
3001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3002 | (exit $ac_status); } | |
3003 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3004 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3005 | ac_status=$? | |
3006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3007 | (exit $ac_status); } | |
3008 | rm -f a.out | |
3009 | ||
3010 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
3011 | # input file. (Note that this only needs to work for GNU compilers.) | |
3012 | ac_save_ext=$ac_ext | |
3013 | ac_ext=F | |
3014 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
3015 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | |
3016 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
3017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3018 | else | |
3019 | cat >conftest.$ac_ext <<_ACEOF | |
3020 | program main | |
3021 | #ifndef __GNUC__ | |
3022 | choke me | |
3023 | #endif | |
3024 | ||
3025 | end | |
3026 | _ACEOF | |
3027 | rm -f conftest.$ac_objext | |
3028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3029 | (eval $ac_compile) 2>conftest.er1 | |
3030 | ac_status=$? | |
3031 | grep -v '^ *+' conftest.er1 >conftest.err | |
3032 | rm -f conftest.er1 | |
3033 | cat conftest.err >&5 | |
3034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3035 | (exit $ac_status); } && | |
3036 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
3037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3038 | (eval $ac_try) 2>&5 | |
3039 | ac_status=$? | |
3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3041 | (exit $ac_status); }; } && | |
3042 | { ac_try='test -s conftest.$ac_objext' | |
3043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3044 | (eval $ac_try) 2>&5 | |
3045 | ac_status=$? | |
3046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3047 | (exit $ac_status); }; }; then | |
3048 | ac_compiler_gnu=yes | |
3049 | else | |
3050 | echo "$as_me: failed program was:" >&5 | |
3051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3052 | ||
3053 | ac_compiler_gnu=no | |
3054 | fi | |
3055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3056 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
3057 | ||
3058 | fi | |
3059 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | |
3060 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | |
3061 | ac_ext=$ac_save_ext | |
3062 | ac_test_FFLAGS=${FFLAGS+set} | |
3063 | ac_save_FFLAGS=$FFLAGS | |
3064 | FFLAGS= | |
3065 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
3066 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | |
3067 | if test "${ac_cv_prog_f77_g+set}" = set; then | |
3068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3069 | else | |
3070 | FFLAGS=-g | |
3071 | cat >conftest.$ac_ext <<_ACEOF | |
3072 | program main | |
3073 | ||
3074 | end | |
3075 | _ACEOF | |
3076 | rm -f conftest.$ac_objext | |
3077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3078 | (eval $ac_compile) 2>conftest.er1 | |
3079 | ac_status=$? | |
3080 | grep -v '^ *+' conftest.er1 >conftest.err | |
3081 | rm -f conftest.er1 | |
3082 | cat conftest.err >&5 | |
3083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3084 | (exit $ac_status); } && | |
3085 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | |
3086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3087 | (eval $ac_try) 2>&5 | |
3088 | ac_status=$? | |
3089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3090 | (exit $ac_status); }; } && | |
3091 | { ac_try='test -s conftest.$ac_objext' | |
3092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3093 | (eval $ac_try) 2>&5 | |
3094 | ac_status=$? | |
3095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3096 | (exit $ac_status); }; }; then | |
3097 | ac_cv_prog_f77_g=yes | |
3098 | else | |
3099 | echo "$as_me: failed program was:" >&5 | |
3100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3101 | ||
3102 | ac_cv_prog_f77_g=no | |
3103 | fi | |
3104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3105 | ||
3106 | fi | |
3107 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | |
3108 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | |
3109 | if test "$ac_test_FFLAGS" = set; then | |
3110 | FFLAGS=$ac_save_FFLAGS | |
3111 | elif test $ac_cv_prog_f77_g = yes; then | |
3112 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
3113 | FFLAGS="-g -O2" | |
3114 | else | |
3115 | FFLAGS="-g" | |
3116 | fi | |
3117 | else | |
3118 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
3119 | FFLAGS="-O2" | |
3120 | else | |
3121 | FFLAGS= | |
3122 | fi | |
3123 | fi | |
3124 | ||
3125 | G77=`test $ac_compiler_gnu = yes && echo yes` | |
3126 | ac_ext=c | |
3127 | ac_cpp='$CPP $CPPFLAGS' | |
3128 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3129 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3130 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3131 | ||
3132 | FFLAGS="$FFLAGS -Wall -fno-repack-arrays -fno-underscoring" | |
3133 | ||
3134 | ||
3135 | ac_ext=c | |
3136 | ac_cpp='$CPP $CPPFLAGS' | |
3137 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3138 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3139 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3140 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3141 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3142 | # On Suns, sometimes $CPP names a directory. | |
3143 | if test -n "$CPP" && test -d "$CPP"; then | |
3144 | CPP= | |
3145 | fi | |
3146 | if test -z "$CPP"; then | |
3147 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3149 | else | |
3150 | # Double quotes because CPP needs to be expanded | |
3151 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3152 | do | |
3153 | ac_preproc_ok=false | |
3154 | for ac_c_preproc_warn_flag in '' yes | |
3155 | do | |
3156 | # Use a header file that comes with gcc, so configuring glibc | |
3157 | # with a fresh cross-compiler works. | |
3158 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3159 | # <limits.h> exists even on freestanding compilers. | |
3160 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3161 | # not just through cpp. "Syntax error" is here to catch this case. | |
3162 | cat >conftest.$ac_ext <<_ACEOF | |
3163 | /* confdefs.h. */ | |
3164 | _ACEOF | |
3165 | cat confdefs.h >>conftest.$ac_ext | |
3166 | cat >>conftest.$ac_ext <<_ACEOF | |
3167 | /* end confdefs.h. */ | |
3168 | #ifdef __STDC__ | |
3169 | # include <limits.h> | |
3170 | #else | |
3171 | # include <assert.h> | |
3172 | #endif | |
3173 | Syntax error | |
3174 | _ACEOF | |
3175 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3176 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3177 | ac_status=$? | |
3178 | grep -v '^ *+' conftest.er1 >conftest.err | |
3179 | rm -f conftest.er1 | |
3180 | cat conftest.err >&5 | |
3181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3182 | (exit $ac_status); } >/dev/null; then | |
3183 | if test -s conftest.err; then | |
3184 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3185 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3186 | else | |
3187 | ac_cpp_err= | |
3188 | fi | |
3189 | else | |
3190 | ac_cpp_err=yes | |
3191 | fi | |
3192 | if test -z "$ac_cpp_err"; then | |
3193 | : | |
3194 | else | |
3195 | echo "$as_me: failed program was:" >&5 | |
3196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3197 | ||
3198 | # Broken: fails on valid input. | |
3199 | continue | |
3200 | fi | |
3201 | rm -f conftest.err conftest.$ac_ext | |
3202 | ||
3203 | # OK, works on sane cases. Now check whether non-existent headers | |
3204 | # can be detected and how. | |
3205 | cat >conftest.$ac_ext <<_ACEOF | |
3206 | /* confdefs.h. */ | |
3207 | _ACEOF | |
3208 | cat confdefs.h >>conftest.$ac_ext | |
3209 | cat >>conftest.$ac_ext <<_ACEOF | |
3210 | /* end confdefs.h. */ | |
3211 | #include <ac_nonexistent.h> | |
3212 | _ACEOF | |
3213 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3214 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3215 | ac_status=$? | |
3216 | grep -v '^ *+' conftest.er1 >conftest.err | |
3217 | rm -f conftest.er1 | |
3218 | cat conftest.err >&5 | |
3219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3220 | (exit $ac_status); } >/dev/null; then | |
3221 | if test -s conftest.err; then | |
3222 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3223 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3224 | else | |
3225 | ac_cpp_err= | |
3226 | fi | |
3227 | else | |
3228 | ac_cpp_err=yes | |
3229 | fi | |
3230 | if test -z "$ac_cpp_err"; then | |
3231 | # Broken: success on invalid input. | |
3232 | continue | |
3233 | else | |
3234 | echo "$as_me: failed program was:" >&5 | |
3235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3236 | ||
3237 | # Passes both tests. | |
3238 | ac_preproc_ok=: | |
3239 | break | |
3240 | fi | |
3241 | rm -f conftest.err conftest.$ac_ext | |
3242 | ||
3243 | done | |
3244 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3245 | rm -f conftest.err conftest.$ac_ext | |
3246 | if $ac_preproc_ok; then | |
3247 | break | |
3248 | fi | |
3249 | ||
3250 | done | |
3251 | ac_cv_prog_CPP=$CPP | |
3252 | ||
3253 | fi | |
3254 | CPP=$ac_cv_prog_CPP | |
3255 | else | |
3256 | ac_cv_prog_CPP=$CPP | |
3257 | fi | |
3258 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
3259 | echo "${ECHO_T}$CPP" >&6 | |
3260 | ac_preproc_ok=false | |
3261 | for ac_c_preproc_warn_flag in '' yes | |
3262 | do | |
3263 | # Use a header file that comes with gcc, so configuring glibc | |
3264 | # with a fresh cross-compiler works. | |
3265 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3266 | # <limits.h> exists even on freestanding compilers. | |
3267 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3268 | # not just through cpp. "Syntax error" is here to catch this case. | |
3269 | cat >conftest.$ac_ext <<_ACEOF | |
3270 | /* confdefs.h. */ | |
3271 | _ACEOF | |
3272 | cat confdefs.h >>conftest.$ac_ext | |
3273 | cat >>conftest.$ac_ext <<_ACEOF | |
3274 | /* end confdefs.h. */ | |
3275 | #ifdef __STDC__ | |
3276 | # include <limits.h> | |
3277 | #else | |
3278 | # include <assert.h> | |
3279 | #endif | |
3280 | Syntax error | |
3281 | _ACEOF | |
3282 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3283 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3284 | ac_status=$? | |
3285 | grep -v '^ *+' conftest.er1 >conftest.err | |
3286 | rm -f conftest.er1 | |
3287 | cat conftest.err >&5 | |
3288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3289 | (exit $ac_status); } >/dev/null; then | |
3290 | if test -s conftest.err; then | |
3291 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3292 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3293 | else | |
3294 | ac_cpp_err= | |
3295 | fi | |
3296 | else | |
3297 | ac_cpp_err=yes | |
3298 | fi | |
3299 | if test -z "$ac_cpp_err"; then | |
3300 | : | |
3301 | else | |
3302 | echo "$as_me: failed program was:" >&5 | |
3303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3304 | ||
3305 | # Broken: fails on valid input. | |
3306 | continue | |
3307 | fi | |
3308 | rm -f conftest.err conftest.$ac_ext | |
3309 | ||
3310 | # OK, works on sane cases. Now check whether non-existent headers | |
3311 | # can be detected and how. | |
3312 | cat >conftest.$ac_ext <<_ACEOF | |
3313 | /* confdefs.h. */ | |
3314 | _ACEOF | |
3315 | cat confdefs.h >>conftest.$ac_ext | |
3316 | cat >>conftest.$ac_ext <<_ACEOF | |
3317 | /* end confdefs.h. */ | |
3318 | #include <ac_nonexistent.h> | |
3319 | _ACEOF | |
3320 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3321 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3322 | ac_status=$? | |
3323 | grep -v '^ *+' conftest.er1 >conftest.err | |
3324 | rm -f conftest.er1 | |
3325 | cat conftest.err >&5 | |
3326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3327 | (exit $ac_status); } >/dev/null; then | |
3328 | if test -s conftest.err; then | |
3329 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3330 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3331 | else | |
3332 | ac_cpp_err= | |
3333 | fi | |
3334 | else | |
3335 | ac_cpp_err=yes | |
3336 | fi | |
3337 | if test -z "$ac_cpp_err"; then | |
3338 | # Broken: success on invalid input. | |
3339 | continue | |
3340 | else | |
3341 | echo "$as_me: failed program was:" >&5 | |
3342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3343 | ||
3344 | # Passes both tests. | |
3345 | ac_preproc_ok=: | |
3346 | break | |
3347 | fi | |
3348 | rm -f conftest.err conftest.$ac_ext | |
3349 | ||
3350 | done | |
3351 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3352 | rm -f conftest.err conftest.$ac_ext | |
3353 | if $ac_preproc_ok; then | |
3354 | : | |
3355 | else | |
3356 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3357 | See \`config.log' for more details." >&5 | |
3358 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3359 | See \`config.log' for more details." >&2;} | |
3360 | { (exit 1); exit 1; }; } | |
3361 | fi | |
3362 | ||
3363 | ac_ext=c | |
3364 | ac_cpp='$CPP $CPPFLAGS' | |
3365 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3366 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3367 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3368 | ||
3369 | ||
3370 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3371 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3372 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3374 | else | |
3375 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3376 | then ac_cv_prog_egrep='grep -E' | |
3377 | else ac_cv_prog_egrep='egrep' | |
3378 | fi | |
3379 | fi | |
3380 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3381 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3382 | EGREP=$ac_cv_prog_egrep | |
3383 | ||
3384 | ||
3385 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3386 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3387 | if test "${ac_cv_header_stdc+set}" = set; then | |
3388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3389 | else | |
3390 | cat >conftest.$ac_ext <<_ACEOF | |
3391 | /* confdefs.h. */ | |
3392 | _ACEOF | |
3393 | cat confdefs.h >>conftest.$ac_ext | |
3394 | cat >>conftest.$ac_ext <<_ACEOF | |
3395 | /* end confdefs.h. */ | |
3396 | #include <stdlib.h> | |
3397 | #include <stdarg.h> | |
3398 | #include <string.h> | |
3399 | #include <float.h> | |
3400 | ||
3401 | int | |
3402 | main () | |
3403 | { | |
3404 | ||
3405 | ; | |
3406 | return 0; | |
3407 | } | |
3408 | _ACEOF | |
3409 | rm -f conftest.$ac_objext | |
3410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3411 | (eval $ac_compile) 2>conftest.er1 | |
3412 | ac_status=$? | |
3413 | grep -v '^ *+' conftest.er1 >conftest.err | |
3414 | rm -f conftest.er1 | |
3415 | cat conftest.err >&5 | |
3416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3417 | (exit $ac_status); } && | |
3418 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3420 | (eval $ac_try) 2>&5 | |
3421 | ac_status=$? | |
3422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3423 | (exit $ac_status); }; } && | |
3424 | { ac_try='test -s conftest.$ac_objext' | |
3425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3426 | (eval $ac_try) 2>&5 | |
3427 | ac_status=$? | |
3428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3429 | (exit $ac_status); }; }; then | |
3430 | ac_cv_header_stdc=yes | |
3431 | else | |
3432 | echo "$as_me: failed program was:" >&5 | |
3433 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3434 | ||
3435 | ac_cv_header_stdc=no | |
3436 | fi | |
3437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3438 | ||
3439 | if test $ac_cv_header_stdc = yes; then | |
3440 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3441 | cat >conftest.$ac_ext <<_ACEOF | |
3442 | /* confdefs.h. */ | |
3443 | _ACEOF | |
3444 | cat confdefs.h >>conftest.$ac_ext | |
3445 | cat >>conftest.$ac_ext <<_ACEOF | |
3446 | /* end confdefs.h. */ | |
3447 | #include <string.h> | |
3448 | ||
3449 | _ACEOF | |
3450 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3451 | $EGREP "memchr" >/dev/null 2>&1; then | |
3452 | : | |
3453 | else | |
3454 | ac_cv_header_stdc=no | |
3455 | fi | |
3456 | rm -f conftest* | |
3457 | ||
3458 | fi | |
3459 | ||
3460 | if test $ac_cv_header_stdc = yes; then | |
3461 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3462 | cat >conftest.$ac_ext <<_ACEOF | |
3463 | /* confdefs.h. */ | |
3464 | _ACEOF | |
3465 | cat confdefs.h >>conftest.$ac_ext | |
3466 | cat >>conftest.$ac_ext <<_ACEOF | |
3467 | /* end confdefs.h. */ | |
3468 | #include <stdlib.h> | |
3469 | ||
3470 | _ACEOF | |
3471 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3472 | $EGREP "free" >/dev/null 2>&1; then | |
3473 | : | |
3474 | else | |
3475 | ac_cv_header_stdc=no | |
3476 | fi | |
3477 | rm -f conftest* | |
3478 | ||
3479 | fi | |
3480 | ||
3481 | if test $ac_cv_header_stdc = yes; then | |
3482 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3483 | if test "$cross_compiling" = yes; then | |
3484 | : | |
3485 | else | |
3486 | cat >conftest.$ac_ext <<_ACEOF | |
3487 | /* confdefs.h. */ | |
3488 | _ACEOF | |
3489 | cat confdefs.h >>conftest.$ac_ext | |
3490 | cat >>conftest.$ac_ext <<_ACEOF | |
3491 | /* end confdefs.h. */ | |
3492 | #include <ctype.h> | |
3493 | #if ((' ' & 0x0FF) == 0x020) | |
3494 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3495 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3496 | #else | |
3497 | # define ISLOWER(c) \ | |
3498 | (('a' <= (c) && (c) <= 'i') \ | |
3499 | || ('j' <= (c) && (c) <= 'r') \ | |
3500 | || ('s' <= (c) && (c) <= 'z')) | |
3501 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3502 | #endif | |
3503 | ||
3504 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3505 | int | |
3506 | main () | |
3507 | { | |
3508 | int i; | |
3509 | for (i = 0; i < 256; i++) | |
3510 | if (XOR (islower (i), ISLOWER (i)) | |
3511 | || toupper (i) != TOUPPER (i)) | |
3512 | exit(2); | |
3513 | exit (0); | |
3514 | } | |
3515 | _ACEOF | |
3516 | rm -f conftest$ac_exeext | |
3517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3518 | (eval $ac_link) 2>&5 | |
3519 | ac_status=$? | |
3520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3521 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3523 | (eval $ac_try) 2>&5 | |
3524 | ac_status=$? | |
3525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3526 | (exit $ac_status); }; }; then | |
3527 | : | |
3528 | else | |
3529 | echo "$as_me: program exited with status $ac_status" >&5 | |
3530 | echo "$as_me: failed program was:" >&5 | |
3531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3532 | ||
3533 | ( exit $ac_status ) | |
3534 | ac_cv_header_stdc=no | |
3535 | fi | |
3536 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3537 | fi | |
3538 | fi | |
3539 | fi | |
3540 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3541 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3542 | if test $ac_cv_header_stdc = yes; then | |
3543 | ||
3544 | cat >>confdefs.h <<\_ACEOF | |
3545 | #define STDC_HEADERS 1 | |
3546 | _ACEOF | |
3547 | ||
3548 | fi | |
3549 | ||
3550 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3551 | ||
3552 | ||
3553 | ||
3554 | ||
3555 | ||
3556 | ||
3557 | ||
3558 | ||
3559 | ||
3560 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3561 | inttypes.h stdint.h unistd.h | |
3562 | do | |
3563 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3564 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3565 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3566 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3568 | else | |
3569 | cat >conftest.$ac_ext <<_ACEOF | |
3570 | /* confdefs.h. */ | |
3571 | _ACEOF | |
3572 | cat confdefs.h >>conftest.$ac_ext | |
3573 | cat >>conftest.$ac_ext <<_ACEOF | |
3574 | /* end confdefs.h. */ | |
3575 | $ac_includes_default | |
3576 | ||
3577 | #include <$ac_header> | |
3578 | _ACEOF | |
3579 | rm -f conftest.$ac_objext | |
3580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3581 | (eval $ac_compile) 2>conftest.er1 | |
3582 | ac_status=$? | |
3583 | grep -v '^ *+' conftest.er1 >conftest.err | |
3584 | rm -f conftest.er1 | |
3585 | cat conftest.err >&5 | |
3586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3587 | (exit $ac_status); } && | |
3588 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3590 | (eval $ac_try) 2>&5 | |
3591 | ac_status=$? | |
3592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3593 | (exit $ac_status); }; } && | |
3594 | { ac_try='test -s conftest.$ac_objext' | |
3595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3596 | (eval $ac_try) 2>&5 | |
3597 | ac_status=$? | |
3598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3599 | (exit $ac_status); }; }; then | |
3600 | eval "$as_ac_Header=yes" | |
3601 | else | |
3602 | echo "$as_me: failed program was:" >&5 | |
3603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3604 | ||
3605 | eval "$as_ac_Header=no" | |
3606 | fi | |
3607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3608 | fi | |
3609 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3610 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3611 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3612 | cat >>confdefs.h <<_ACEOF | |
3613 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3614 | _ACEOF | |
3615 | ||
3616 | fi | |
3617 | ||
3618 | done | |
3619 | ||
3620 | ||
3621 | ||
3622 | ||
3623 | for ac_header in stdlib.h unistd.h | |
3624 | do | |
3625 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3626 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3627 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3628 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3629 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3631 | fi | |
3632 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3633 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3634 | else | |
3635 | # Is the header compilable? | |
3636 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3637 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3638 | cat >conftest.$ac_ext <<_ACEOF | |
3639 | /* confdefs.h. */ | |
3640 | _ACEOF | |
3641 | cat confdefs.h >>conftest.$ac_ext | |
3642 | cat >>conftest.$ac_ext <<_ACEOF | |
3643 | /* end confdefs.h. */ | |
3644 | $ac_includes_default | |
3645 | #include <$ac_header> | |
3646 | _ACEOF | |
3647 | rm -f conftest.$ac_objext | |
3648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3649 | (eval $ac_compile) 2>conftest.er1 | |
3650 | ac_status=$? | |
3651 | grep -v '^ *+' conftest.er1 >conftest.err | |
3652 | rm -f conftest.er1 | |
3653 | cat conftest.err >&5 | |
3654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3655 | (exit $ac_status); } && | |
3656 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3658 | (eval $ac_try) 2>&5 | |
3659 | ac_status=$? | |
3660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3661 | (exit $ac_status); }; } && | |
3662 | { ac_try='test -s conftest.$ac_objext' | |
3663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3664 | (eval $ac_try) 2>&5 | |
3665 | ac_status=$? | |
3666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3667 | (exit $ac_status); }; }; then | |
3668 | ac_header_compiler=yes | |
3669 | else | |
3670 | echo "$as_me: failed program was:" >&5 | |
3671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3672 | ||
3673 | ac_header_compiler=no | |
3674 | fi | |
3675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3676 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3677 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3678 | ||
3679 | # Is the header present? | |
3680 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3681 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3682 | cat >conftest.$ac_ext <<_ACEOF | |
3683 | /* confdefs.h. */ | |
3684 | _ACEOF | |
3685 | cat confdefs.h >>conftest.$ac_ext | |
3686 | cat >>conftest.$ac_ext <<_ACEOF | |
3687 | /* end confdefs.h. */ | |
3688 | #include <$ac_header> | |
3689 | _ACEOF | |
3690 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3691 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3692 | ac_status=$? | |
3693 | grep -v '^ *+' conftest.er1 >conftest.err | |
3694 | rm -f conftest.er1 | |
3695 | cat conftest.err >&5 | |
3696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3697 | (exit $ac_status); } >/dev/null; then | |
3698 | if test -s conftest.err; then | |
3699 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3700 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3701 | else | |
3702 | ac_cpp_err= | |
3703 | fi | |
3704 | else | |
3705 | ac_cpp_err=yes | |
3706 | fi | |
3707 | if test -z "$ac_cpp_err"; then | |
3708 | ac_header_preproc=yes | |
3709 | else | |
3710 | echo "$as_me: failed program was:" >&5 | |
3711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3712 | ||
3713 | ac_header_preproc=no | |
3714 | fi | |
3715 | rm -f conftest.err conftest.$ac_ext | |
3716 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3717 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3718 | ||
3719 | # So? What about this header? | |
3720 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3721 | yes:no: ) | |
3722 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3723 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3724 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3725 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3726 | ac_header_preproc=yes | |
3727 | ;; | |
3728 | no:yes:* ) | |
3729 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3730 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3731 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3732 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3733 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3734 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3735 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3736 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3737 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3738 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3739 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3740 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
3741 | ( | |
3742 | cat <<\_ASBOX | |
3743 | ## ------------------------------------------------------ ## | |
3744 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
3745 | ## ------------------------------------------------------ ## | |
3746 | _ASBOX | |
3747 | ) | | |
3748 | sed "s/^/$as_me: WARNING: /" >&2 | |
3749 | ;; | |
3750 | esac | |
3751 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3752 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3753 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3755 | else | |
3756 | eval "$as_ac_Header=\$ac_header_preproc" | |
3757 | fi | |
3758 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3759 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3760 | ||
3761 | fi | |
3762 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3763 | cat >>confdefs.h <<_ACEOF | |
3764 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3765 | _ACEOF | |
3766 | ||
3767 | fi | |
3768 | ||
3769 | done | |
3770 | ||
3771 | ||
3772 | for ac_func in getpagesize | |
3773 | do | |
3774 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3775 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3776 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3777 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3779 | else | |
3780 | cat >conftest.$ac_ext <<_ACEOF | |
3781 | /* confdefs.h. */ | |
3782 | _ACEOF | |
3783 | cat confdefs.h >>conftest.$ac_ext | |
3784 | cat >>conftest.$ac_ext <<_ACEOF | |
3785 | /* end confdefs.h. */ | |
3786 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
3787 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3788 | #define $ac_func innocuous_$ac_func | |
3789 | ||
3790 | /* System header to define __stub macros and hopefully few prototypes, | |
3791 | which can conflict with char $ac_func (); below. | |
3792 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3793 | <limits.h> exists even on freestanding compilers. */ | |
3794 | ||
3795 | #ifdef __STDC__ | |
3796 | # include <limits.h> | |
3797 | #else | |
3798 | # include <assert.h> | |
3799 | #endif | |
3800 | ||
3801 | #undef $ac_func | |
3802 | ||
3803 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3804 | #ifdef __cplusplus | |
3805 | extern "C" | |
3806 | { | |
3807 | #endif | |
3808 | /* We use char because int might match the return type of a gcc2 | |
3809 | builtin and then its argument prototype would still apply. */ | |
3810 | char $ac_func (); | |
3811 | /* The GNU C library defines this for functions which it implements | |
3812 | to always fail with ENOSYS. Some functions are actually named | |
3813 | something starting with __ and the normal name is an alias. */ | |
3814 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3815 | choke me | |
3816 | #else | |
3817 | char (*f) () = $ac_func; | |
3818 | #endif | |
3819 | #ifdef __cplusplus | |
3820 | } | |
3821 | #endif | |
3822 | ||
3823 | int | |
3824 | main () | |
3825 | { | |
3826 | return f != $ac_func; | |
3827 | ; | |
3828 | return 0; | |
3829 | } | |
3830 | _ACEOF | |
3831 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3833 | (eval $ac_link) 2>conftest.er1 | |
3834 | ac_status=$? | |
3835 | grep -v '^ *+' conftest.er1 >conftest.err | |
3836 | rm -f conftest.er1 | |
3837 | cat conftest.err >&5 | |
3838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3839 | (exit $ac_status); } && | |
3840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
3841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3842 | (eval $ac_try) 2>&5 | |
3843 | ac_status=$? | |
3844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3845 | (exit $ac_status); }; } && | |
3846 | { ac_try='test -s conftest$ac_exeext' | |
3847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3848 | (eval $ac_try) 2>&5 | |
3849 | ac_status=$? | |
3850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3851 | (exit $ac_status); }; }; then | |
3852 | eval "$as_ac_var=yes" | |
3853 | else | |
3854 | echo "$as_me: failed program was:" >&5 | |
3855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3856 | ||
3857 | eval "$as_ac_var=no" | |
3858 | fi | |
3859 | rm -f conftest.err conftest.$ac_objext \ | |
3860 | conftest$ac_exeext conftest.$ac_ext | |
3861 | fi | |
3862 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
3863 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
3864 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
3865 | cat >>confdefs.h <<_ACEOF | |
3866 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
3867 | _ACEOF | |
3868 | ||
3869 | fi | |
3870 | done | |
3871 | ||
3872 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
3873 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
3874 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
3875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3876 | else | |
3877 | if test "$cross_compiling" = yes; then | |
3878 | ac_cv_func_mmap_fixed_mapped=no | |
3879 | else | |
3880 | cat >conftest.$ac_ext <<_ACEOF | |
3881 | /* confdefs.h. */ | |
3882 | _ACEOF | |
3883 | cat confdefs.h >>conftest.$ac_ext | |
3884 | cat >>conftest.$ac_ext <<_ACEOF | |
3885 | /* end confdefs.h. */ | |
3886 | $ac_includes_default | |
3887 | /* malloc might have been renamed as rpl_malloc. */ | |
3888 | #undef malloc | |
3889 | ||
3890 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
3891 | Here is a matrix of mmap possibilities: | |
3892 | mmap private not fixed | |
3893 | mmap private fixed at somewhere currently unmapped | |
3894 | mmap private fixed at somewhere already mapped | |
3895 | mmap shared not fixed | |
3896 | mmap shared fixed at somewhere currently unmapped | |
3897 | mmap shared fixed at somewhere already mapped | |
3898 | For private mappings, we should verify that changes cannot be read() | |
3899 | back from the file, nor mmap's back from the file at a different | |
3900 | address. (There have been systems where private was not correctly | |
3901 | implemented like the infamous i386 svr4.0, and systems where the | |
3902 | VM page cache was not coherent with the file system buffer cache | |
3903 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
3904 | For shared mappings, we should conversely verify that changes get | |
3905 | propagated back to all the places they're supposed to be. | |
3906 | ||
3907 | Grep wants private fixed already mapped. | |
3908 | The main things grep needs to know about mmap are: | |
3909 | * does it exist and is it safe to write into the mmap'd area | |
3910 | * how to use it (BSD variants) */ | |
3911 | ||
3912 | #include <fcntl.h> | |
3913 | #include <sys/mman.h> | |
3914 | ||
3915 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
3916 | char *malloc (); | |
3917 | #endif | |
3918 | ||
3919 | /* This mess was copied from the GNU getpagesize.h. */ | |
3920 | #if !HAVE_GETPAGESIZE | |
3921 | /* Assume that all systems that can run configure have sys/param.h. */ | |
3922 | # if !HAVE_SYS_PARAM_H | |
3923 | # define HAVE_SYS_PARAM_H 1 | |
3924 | # endif | |
3925 | ||
3926 | # ifdef _SC_PAGESIZE | |
3927 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
3928 | # else /* no _SC_PAGESIZE */ | |
3929 | # if HAVE_SYS_PARAM_H | |
3930 | # include <sys/param.h> | |
3931 | # ifdef EXEC_PAGESIZE | |
3932 | # define getpagesize() EXEC_PAGESIZE | |
3933 | # else /* no EXEC_PAGESIZE */ | |
3934 | # ifdef NBPG | |
3935 | # define getpagesize() NBPG * CLSIZE | |
3936 | # ifndef CLSIZE | |
3937 | # define CLSIZE 1 | |
3938 | # endif /* no CLSIZE */ | |
3939 | # else /* no NBPG */ | |
3940 | # ifdef NBPC | |
3941 | # define getpagesize() NBPC | |
3942 | # else /* no NBPC */ | |
3943 | # ifdef PAGESIZE | |
3944 | # define getpagesize() PAGESIZE | |
3945 | # endif /* PAGESIZE */ | |
3946 | # endif /* no NBPC */ | |
3947 | # endif /* no NBPG */ | |
3948 | # endif /* no EXEC_PAGESIZE */ | |
3949 | # else /* no HAVE_SYS_PARAM_H */ | |
3950 | # define getpagesize() 8192 /* punt totally */ | |
3951 | # endif /* no HAVE_SYS_PARAM_H */ | |
3952 | # endif /* no _SC_PAGESIZE */ | |
3953 | ||
3954 | #endif /* no HAVE_GETPAGESIZE */ | |
3955 | ||
3956 | int | |
3957 | main () | |
3958 | { | |
3959 | char *data, *data2, *data3; | |
3960 | int i, pagesize; | |
3961 | int fd; | |
3962 | ||
3963 | pagesize = getpagesize (); | |
3964 | ||
3965 | /* First, make a file with some known garbage in it. */ | |
3966 | data = (char *) malloc (pagesize); | |
3967 | if (!data) | |
3968 | exit (1); | |
3969 | for (i = 0; i < pagesize; ++i) | |
3970 | *(data + i) = rand (); | |
3971 | umask (0); | |
3972 | fd = creat ("conftest.mmap", 0600); | |
3973 | if (fd < 0) | |
3974 | exit (1); | |
3975 | if (write (fd, data, pagesize) != pagesize) | |
3976 | exit (1); | |
3977 | close (fd); | |
3978 | ||
3979 | /* Next, try to mmap the file at a fixed address which already has | |
3980 | something else allocated at it. If we can, also make sure that | |
3981 | we see the same garbage. */ | |
3982 | fd = open ("conftest.mmap", O_RDWR); | |
3983 | if (fd < 0) | |
3984 | exit (1); | |
3985 | data2 = (char *) malloc (2 * pagesize); | |
3986 | if (!data2) | |
3987 | exit (1); | |
3988 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
3989 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
3990 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
3991 | exit (1); | |
3992 | for (i = 0; i < pagesize; ++i) | |
3993 | if (*(data + i) != *(data2 + i)) | |
3994 | exit (1); | |
3995 | ||
3996 | /* Finally, make sure that changes to the mapped area do not | |
3997 | percolate back to the file as seen by read(). (This is a bug on | |
3998 | some variants of i386 svr4.0.) */ | |
3999 | for (i = 0; i < pagesize; ++i) | |
4000 | *(data2 + i) = *(data2 + i) + 1; | |
4001 | data3 = (char *) malloc (pagesize); | |
4002 | if (!data3) | |
4003 | exit (1); | |
4004 | if (read (fd, data3, pagesize) != pagesize) | |
4005 | exit (1); | |
4006 | for (i = 0; i < pagesize; ++i) | |
4007 | if (*(data + i) != *(data3 + i)) | |
4008 | exit (1); | |
4009 | close (fd); | |
4010 | exit (0); | |
4011 | } | |
4012 | _ACEOF | |
4013 | rm -f conftest$ac_exeext | |
4014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4015 | (eval $ac_link) 2>&5 | |
4016 | ac_status=$? | |
4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4018 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4020 | (eval $ac_try) 2>&5 | |
4021 | ac_status=$? | |
4022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4023 | (exit $ac_status); }; }; then | |
4024 | ac_cv_func_mmap_fixed_mapped=yes | |
4025 | else | |
4026 | echo "$as_me: program exited with status $ac_status" >&5 | |
4027 | echo "$as_me: failed program was:" >&5 | |
4028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4029 | ||
4030 | ( exit $ac_status ) | |
4031 | ac_cv_func_mmap_fixed_mapped=no | |
4032 | fi | |
4033 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4034 | fi | |
4035 | fi | |
4036 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
4037 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
4038 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
4039 | ||
4040 | cat >>confdefs.h <<\_ACEOF | |
4041 | #define HAVE_MMAP 1 | |
4042 | _ACEOF | |
4043 | ||
4044 | fi | |
4045 | rm -f conftest.mmap | |
4046 | ||
4047 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
4048 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
4049 | if test "${ac_cv_type_off_t+set}" = set; then | |
4050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4051 | else | |
4052 | cat >conftest.$ac_ext <<_ACEOF | |
4053 | /* confdefs.h. */ | |
4054 | _ACEOF | |
4055 | cat confdefs.h >>conftest.$ac_ext | |
4056 | cat >>conftest.$ac_ext <<_ACEOF | |
4057 | /* end confdefs.h. */ | |
4058 | $ac_includes_default | |
4059 | int | |
4060 | main () | |
4061 | { | |
4062 | if ((off_t *) 0) | |
4063 | return 0; | |
4064 | if (sizeof (off_t)) | |
4065 | return 0; | |
4066 | ; | |
4067 | return 0; | |
4068 | } | |
4069 | _ACEOF | |
4070 | rm -f conftest.$ac_objext | |
4071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4072 | (eval $ac_compile) 2>conftest.er1 | |
4073 | ac_status=$? | |
4074 | grep -v '^ *+' conftest.er1 >conftest.err | |
4075 | rm -f conftest.er1 | |
4076 | cat conftest.err >&5 | |
4077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4078 | (exit $ac_status); } && | |
4079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4081 | (eval $ac_try) 2>&5 | |
4082 | ac_status=$? | |
4083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4084 | (exit $ac_status); }; } && | |
4085 | { ac_try='test -s conftest.$ac_objext' | |
4086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4087 | (eval $ac_try) 2>&5 | |
4088 | ac_status=$? | |
4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4090 | (exit $ac_status); }; }; then | |
4091 | ac_cv_type_off_t=yes | |
4092 | else | |
4093 | echo "$as_me: failed program was:" >&5 | |
4094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4095 | ||
4096 | ac_cv_type_off_t=no | |
4097 | fi | |
4098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4099 | fi | |
4100 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
4101 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
4102 | if test $ac_cv_type_off_t = yes; then | |
4103 | : | |
4104 | else | |
4105 | ||
4106 | cat >>confdefs.h <<_ACEOF | |
4107 | #define off_t long | |
4108 | _ACEOF | |
4109 | ||
4110 | fi | |
4111 | ||
4112 | ||
4113 | # Check for install | |
4114 | # Find a good install program. We prefer a C program (faster), | |
4115 | # so one script is as good as another. But avoid the broken or | |
4116 | # incompatible versions: | |
4117 | # SysV /etc/install, /usr/sbin/install | |
4118 | # SunOS /usr/etc/install | |
4119 | # IRIX /sbin/install | |
4120 | # AIX /bin/install | |
4121 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4122 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4123 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4124 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4125 | # OS/2's system install, which has a completely different semantic | |
4126 | # ./install, which can be erroneously created by make from ./install.sh. | |
4127 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
4128 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
4129 | if test -z "$INSTALL"; then | |
4130 | if test "${ac_cv_path_install+set}" = set; then | |
4131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4132 | else | |
4133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4134 | for as_dir in $PATH | |
4135 | do | |
4136 | IFS=$as_save_IFS | |
4137 | test -z "$as_dir" && as_dir=. | |
4138 | # Account for people who put trailing slashes in PATH elements. | |
4139 | case $as_dir/ in | |
4140 | ./ | .// | /cC/* | \ | |
4141 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4142 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4143 | /usr/ucb/* ) ;; | |
4144 | *) | |
4145 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4146 | # Don't use installbsd from OSF since it installs stuff as root | |
4147 | # by default. | |
4148 | for ac_prog in ginstall scoinst install; do | |
4149 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4150 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
4151 | if test $ac_prog = install && | |
4152 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4153 | # AIX install. It has an incompatible calling convention. | |
4154 | : | |
4155 | elif test $ac_prog = install && | |
4156 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4157 | # program-specific install script used by HP pwplus--don't use. | |
4158 | : | |
4159 | else | |
4160 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4161 | break 3 | |
4162 | fi | |
4163 | fi | |
4164 | done | |
4165 | done | |
4166 | ;; | |
4167 | esac | |
4168 | done | |
4169 | ||
4170 | ||
4171 | fi | |
4172 | if test "${ac_cv_path_install+set}" = set; then | |
4173 | INSTALL=$ac_cv_path_install | |
4174 | else | |
4175 | # As a last resort, use the slow shell script. We don't cache a | |
4176 | # path for INSTALL within a source directory, because that will | |
4177 | # break other packages using the cache if that directory is | |
4178 | # removed, or if the path is relative. | |
4179 | INSTALL=$ac_install_sh | |
4180 | fi | |
4181 | fi | |
4182 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
4183 | echo "${ECHO_T}$INSTALL" >&6 | |
4184 | ||
4185 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4186 | # It thinks the first close brace ends the variable substitution. | |
4187 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4188 | ||
4189 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4190 | ||
4191 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4192 | ||
4193 | ||
4194 | # check header files | |
4195 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
4196 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4197 | if test "${ac_cv_header_stdc+set}" = set; then | |
4198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4199 | else | |
4200 | cat >conftest.$ac_ext <<_ACEOF | |
4201 | /* confdefs.h. */ | |
4202 | _ACEOF | |
4203 | cat confdefs.h >>conftest.$ac_ext | |
4204 | cat >>conftest.$ac_ext <<_ACEOF | |
4205 | /* end confdefs.h. */ | |
4206 | #include <stdlib.h> | |
4207 | #include <stdarg.h> | |
4208 | #include <string.h> | |
4209 | #include <float.h> | |
4210 | ||
4211 | int | |
4212 | main () | |
4213 | { | |
4214 | ||
4215 | ; | |
4216 | return 0; | |
4217 | } | |
4218 | _ACEOF | |
4219 | rm -f conftest.$ac_objext | |
4220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4221 | (eval $ac_compile) 2>conftest.er1 | |
4222 | ac_status=$? | |
4223 | grep -v '^ *+' conftest.er1 >conftest.err | |
4224 | rm -f conftest.er1 | |
4225 | cat conftest.err >&5 | |
4226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4227 | (exit $ac_status); } && | |
4228 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4230 | (eval $ac_try) 2>&5 | |
4231 | ac_status=$? | |
4232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4233 | (exit $ac_status); }; } && | |
4234 | { ac_try='test -s conftest.$ac_objext' | |
4235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4236 | (eval $ac_try) 2>&5 | |
4237 | ac_status=$? | |
4238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4239 | (exit $ac_status); }; }; then | |
4240 | ac_cv_header_stdc=yes | |
4241 | else | |
4242 | echo "$as_me: failed program was:" >&5 | |
4243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4244 | ||
4245 | ac_cv_header_stdc=no | |
4246 | fi | |
4247 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4248 | ||
4249 | if test $ac_cv_header_stdc = yes; then | |
4250 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4251 | cat >conftest.$ac_ext <<_ACEOF | |
4252 | /* confdefs.h. */ | |
4253 | _ACEOF | |
4254 | cat confdefs.h >>conftest.$ac_ext | |
4255 | cat >>conftest.$ac_ext <<_ACEOF | |
4256 | /* end confdefs.h. */ | |
4257 | #include <string.h> | |
4258 | ||
4259 | _ACEOF | |
4260 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4261 | $EGREP "memchr" >/dev/null 2>&1; then | |
4262 | : | |
4263 | else | |
4264 | ac_cv_header_stdc=no | |
4265 | fi | |
4266 | rm -f conftest* | |
4267 | ||
4268 | fi | |
4269 | ||
4270 | if test $ac_cv_header_stdc = yes; then | |
4271 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4272 | cat >conftest.$ac_ext <<_ACEOF | |
4273 | /* confdefs.h. */ | |
4274 | _ACEOF | |
4275 | cat confdefs.h >>conftest.$ac_ext | |
4276 | cat >>conftest.$ac_ext <<_ACEOF | |
4277 | /* end confdefs.h. */ | |
4278 | #include <stdlib.h> | |
4279 | ||
4280 | _ACEOF | |
4281 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4282 | $EGREP "free" >/dev/null 2>&1; then | |
4283 | : | |
4284 | else | |
4285 | ac_cv_header_stdc=no | |
4286 | fi | |
4287 | rm -f conftest* | |
4288 | ||
4289 | fi | |
4290 | ||
4291 | if test $ac_cv_header_stdc = yes; then | |
4292 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4293 | if test "$cross_compiling" = yes; then | |
4294 | : | |
4295 | else | |
4296 | cat >conftest.$ac_ext <<_ACEOF | |
4297 | /* confdefs.h. */ | |
4298 | _ACEOF | |
4299 | cat confdefs.h >>conftest.$ac_ext | |
4300 | cat >>conftest.$ac_ext <<_ACEOF | |
4301 | /* end confdefs.h. */ | |
4302 | #include <ctype.h> | |
4303 | #if ((' ' & 0x0FF) == 0x020) | |
4304 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4305 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4306 | #else | |
4307 | # define ISLOWER(c) \ | |
4308 | (('a' <= (c) && (c) <= 'i') \ | |
4309 | || ('j' <= (c) && (c) <= 'r') \ | |
4310 | || ('s' <= (c) && (c) <= 'z')) | |
4311 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4312 | #endif | |
4313 | ||
4314 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4315 | int | |
4316 | main () | |
4317 | { | |
4318 | int i; | |
4319 | for (i = 0; i < 256; i++) | |
4320 | if (XOR (islower (i), ISLOWER (i)) | |
4321 | || toupper (i) != TOUPPER (i)) | |
4322 | exit(2); | |
4323 | exit (0); | |
4324 | } | |
4325 | _ACEOF | |
4326 | rm -f conftest$ac_exeext | |
4327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4328 | (eval $ac_link) 2>&5 | |
4329 | ac_status=$? | |
4330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4331 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4333 | (eval $ac_try) 2>&5 | |
4334 | ac_status=$? | |
4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4336 | (exit $ac_status); }; }; then | |
4337 | : | |
4338 | else | |
4339 | echo "$as_me: program exited with status $ac_status" >&5 | |
4340 | echo "$as_me: failed program was:" >&5 | |
4341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4342 | ||
4343 | ( exit $ac_status ) | |
4344 | ac_cv_header_stdc=no | |
4345 | fi | |
4346 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4347 | fi | |
4348 | fi | |
4349 | fi | |
4350 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4351 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4352 | if test $ac_cv_header_stdc = yes; then | |
4353 | ||
4354 | cat >>confdefs.h <<\_ACEOF | |
4355 | #define STDC_HEADERS 1 | |
4356 | _ACEOF | |
4357 | ||
4358 | fi | |
4359 | ||
4360 | ||
4361 | ||
4362 | ||
4363 | ||
4364 | ||
4365 | ||
4366 | for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h | |
4367 | do | |
4368 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4369 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4370 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4371 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4374 | fi | |
4375 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4376 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4377 | else | |
4378 | # Is the header compilable? | |
4379 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4380 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4381 | cat >conftest.$ac_ext <<_ACEOF | |
4382 | /* confdefs.h. */ | |
4383 | _ACEOF | |
4384 | cat confdefs.h >>conftest.$ac_ext | |
4385 | cat >>conftest.$ac_ext <<_ACEOF | |
4386 | /* end confdefs.h. */ | |
4387 | $ac_includes_default | |
4388 | #include <$ac_header> | |
4389 | _ACEOF | |
4390 | rm -f conftest.$ac_objext | |
4391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4392 | (eval $ac_compile) 2>conftest.er1 | |
4393 | ac_status=$? | |
4394 | grep -v '^ *+' conftest.er1 >conftest.err | |
4395 | rm -f conftest.er1 | |
4396 | cat conftest.err >&5 | |
4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4398 | (exit $ac_status); } && | |
4399 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4401 | (eval $ac_try) 2>&5 | |
4402 | ac_status=$? | |
4403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4404 | (exit $ac_status); }; } && | |
4405 | { ac_try='test -s conftest.$ac_objext' | |
4406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4407 | (eval $ac_try) 2>&5 | |
4408 | ac_status=$? | |
4409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4410 | (exit $ac_status); }; }; then | |
4411 | ac_header_compiler=yes | |
4412 | else | |
4413 | echo "$as_me: failed program was:" >&5 | |
4414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4415 | ||
4416 | ac_header_compiler=no | |
4417 | fi | |
4418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4419 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4420 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4421 | ||
4422 | # Is the header present? | |
4423 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4424 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4425 | cat >conftest.$ac_ext <<_ACEOF | |
4426 | /* confdefs.h. */ | |
4427 | _ACEOF | |
4428 | cat confdefs.h >>conftest.$ac_ext | |
4429 | cat >>conftest.$ac_ext <<_ACEOF | |
4430 | /* end confdefs.h. */ | |
4431 | #include <$ac_header> | |
4432 | _ACEOF | |
4433 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4434 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4435 | ac_status=$? | |
4436 | grep -v '^ *+' conftest.er1 >conftest.err | |
4437 | rm -f conftest.er1 | |
4438 | cat conftest.err >&5 | |
4439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4440 | (exit $ac_status); } >/dev/null; then | |
4441 | if test -s conftest.err; then | |
4442 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4443 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4444 | else | |
4445 | ac_cpp_err= | |
4446 | fi | |
4447 | else | |
4448 | ac_cpp_err=yes | |
4449 | fi | |
4450 | if test -z "$ac_cpp_err"; then | |
4451 | ac_header_preproc=yes | |
4452 | else | |
4453 | echo "$as_me: failed program was:" >&5 | |
4454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4455 | ||
4456 | ac_header_preproc=no | |
4457 | fi | |
4458 | rm -f conftest.err conftest.$ac_ext | |
4459 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4460 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4461 | ||
4462 | # So? What about this header? | |
4463 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4464 | yes:no: ) | |
4465 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4466 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4467 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4468 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4469 | ac_header_preproc=yes | |
4470 | ;; | |
4471 | no:yes:* ) | |
4472 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4473 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4474 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4475 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4476 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4477 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4478 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4479 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4480 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4481 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4482 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4483 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4484 | ( | |
4485 | cat <<\_ASBOX | |
4486 | ## ------------------------------------------------------ ## | |
4487 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
4488 | ## ------------------------------------------------------ ## | |
4489 | _ASBOX | |
4490 | ) | | |
4491 | sed "s/^/$as_me: WARNING: /" >&2 | |
4492 | ;; | |
4493 | esac | |
4494 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4495 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4496 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4498 | else | |
4499 | eval "$as_ac_Header=\$ac_header_preproc" | |
4500 | fi | |
4501 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4502 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4503 | ||
4504 | fi | |
4505 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4506 | cat >>confdefs.h <<_ACEOF | |
4507 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4508 | _ACEOF | |
4509 | ||
4510 | fi | |
4511 | ||
4512 | done | |
4513 | ||
4514 | ||
4515 | ||
4516 | ||
4517 | ||
4518 | ||
4519 | for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h | |
4520 | do | |
4521 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4522 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4523 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4524 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4525 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4527 | fi | |
4528 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4529 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4530 | else | |
4531 | # Is the header compilable? | |
4532 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4533 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4534 | cat >conftest.$ac_ext <<_ACEOF | |
4535 | /* confdefs.h. */ | |
4536 | _ACEOF | |
4537 | cat confdefs.h >>conftest.$ac_ext | |
4538 | cat >>conftest.$ac_ext <<_ACEOF | |
4539 | /* end confdefs.h. */ | |
4540 | $ac_includes_default | |
4541 | #include <$ac_header> | |
4542 | _ACEOF | |
4543 | rm -f conftest.$ac_objext | |
4544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4545 | (eval $ac_compile) 2>conftest.er1 | |
4546 | ac_status=$? | |
4547 | grep -v '^ *+' conftest.er1 >conftest.err | |
4548 | rm -f conftest.er1 | |
4549 | cat conftest.err >&5 | |
4550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4551 | (exit $ac_status); } && | |
4552 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4554 | (eval $ac_try) 2>&5 | |
4555 | ac_status=$? | |
4556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4557 | (exit $ac_status); }; } && | |
4558 | { ac_try='test -s conftest.$ac_objext' | |
4559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4560 | (eval $ac_try) 2>&5 | |
4561 | ac_status=$? | |
4562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4563 | (exit $ac_status); }; }; then | |
4564 | ac_header_compiler=yes | |
4565 | else | |
4566 | echo "$as_me: failed program was:" >&5 | |
4567 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4568 | ||
4569 | ac_header_compiler=no | |
4570 | fi | |
4571 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4572 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4573 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4574 | ||
4575 | # Is the header present? | |
4576 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4577 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4578 | cat >conftest.$ac_ext <<_ACEOF | |
4579 | /* confdefs.h. */ | |
4580 | _ACEOF | |
4581 | cat confdefs.h >>conftest.$ac_ext | |
4582 | cat >>conftest.$ac_ext <<_ACEOF | |
4583 | /* end confdefs.h. */ | |
4584 | #include <$ac_header> | |
4585 | _ACEOF | |
4586 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4587 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4588 | ac_status=$? | |
4589 | grep -v '^ *+' conftest.er1 >conftest.err | |
4590 | rm -f conftest.er1 | |
4591 | cat conftest.err >&5 | |
4592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4593 | (exit $ac_status); } >/dev/null; then | |
4594 | if test -s conftest.err; then | |
4595 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4596 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4597 | else | |
4598 | ac_cpp_err= | |
4599 | fi | |
4600 | else | |
4601 | ac_cpp_err=yes | |
4602 | fi | |
4603 | if test -z "$ac_cpp_err"; then | |
4604 | ac_header_preproc=yes | |
4605 | else | |
4606 | echo "$as_me: failed program was:" >&5 | |
4607 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4608 | ||
4609 | ac_header_preproc=no | |
4610 | fi | |
4611 | rm -f conftest.err conftest.$ac_ext | |
4612 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4613 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4614 | ||
4615 | # So? What about this header? | |
4616 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4617 | yes:no: ) | |
4618 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4619 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4620 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4621 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4622 | ac_header_preproc=yes | |
4623 | ;; | |
4624 | no:yes:* ) | |
4625 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4626 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4627 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4628 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4629 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4630 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4631 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4632 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4633 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4634 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4635 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4636 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4637 | ( | |
4638 | cat <<\_ASBOX | |
4639 | ## ------------------------------------------------------ ## | |
4640 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
4641 | ## ------------------------------------------------------ ## | |
4642 | _ASBOX | |
4643 | ) | | |
4644 | sed "s/^/$as_me: WARNING: /" >&2 | |
4645 | ;; | |
4646 | esac | |
4647 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4648 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4649 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4651 | else | |
4652 | eval "$as_ac_Header=\$ac_header_preproc" | |
4653 | fi | |
4654 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4655 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4656 | ||
4657 | fi | |
4658 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4659 | cat >>confdefs.h <<_ACEOF | |
4660 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4661 | _ACEOF | |
4662 | ||
4663 | fi | |
4664 | ||
4665 | done | |
4666 | ||
4667 | if test "${ac_cv_header_complex_h+set}" = set; then | |
4668 | echo "$as_me:$LINENO: checking for complex.h" >&5 | |
4669 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
4670 | if test "${ac_cv_header_complex_h+set}" = set; then | |
4671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4672 | fi | |
4673 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 | |
4674 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
4675 | else | |
4676 | # Is the header compilable? | |
4677 | echo "$as_me:$LINENO: checking complex.h usability" >&5 | |
4678 | echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6 | |
4679 | cat >conftest.$ac_ext <<_ACEOF | |
4680 | /* confdefs.h. */ | |
4681 | _ACEOF | |
4682 | cat confdefs.h >>conftest.$ac_ext | |
4683 | cat >>conftest.$ac_ext <<_ACEOF | |
4684 | /* end confdefs.h. */ | |
4685 | $ac_includes_default | |
4686 | #include <complex.h> | |
4687 | _ACEOF | |
4688 | rm -f conftest.$ac_objext | |
4689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4690 | (eval $ac_compile) 2>conftest.er1 | |
4691 | ac_status=$? | |
4692 | grep -v '^ *+' conftest.er1 >conftest.err | |
4693 | rm -f conftest.er1 | |
4694 | cat conftest.err >&5 | |
4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4696 | (exit $ac_status); } && | |
4697 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4699 | (eval $ac_try) 2>&5 | |
4700 | ac_status=$? | |
4701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4702 | (exit $ac_status); }; } && | |
4703 | { ac_try='test -s conftest.$ac_objext' | |
4704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4705 | (eval $ac_try) 2>&5 | |
4706 | ac_status=$? | |
4707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4708 | (exit $ac_status); }; }; then | |
4709 | ac_header_compiler=yes | |
4710 | else | |
4711 | echo "$as_me: failed program was:" >&5 | |
4712 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4713 | ||
4714 | ac_header_compiler=no | |
4715 | fi | |
4716 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4717 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4718 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4719 | ||
4720 | # Is the header present? | |
4721 | echo "$as_me:$LINENO: checking complex.h presence" >&5 | |
4722 | echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6 | |
4723 | cat >conftest.$ac_ext <<_ACEOF | |
4724 | /* confdefs.h. */ | |
4725 | _ACEOF | |
4726 | cat confdefs.h >>conftest.$ac_ext | |
4727 | cat >>conftest.$ac_ext <<_ACEOF | |
4728 | /* end confdefs.h. */ | |
4729 | #include <complex.h> | |
4730 | _ACEOF | |
4731 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4732 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4733 | ac_status=$? | |
4734 | grep -v '^ *+' conftest.er1 >conftest.err | |
4735 | rm -f conftest.er1 | |
4736 | cat conftest.err >&5 | |
4737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4738 | (exit $ac_status); } >/dev/null; then | |
4739 | if test -s conftest.err; then | |
4740 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4741 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4742 | else | |
4743 | ac_cpp_err= | |
4744 | fi | |
4745 | else | |
4746 | ac_cpp_err=yes | |
4747 | fi | |
4748 | if test -z "$ac_cpp_err"; then | |
4749 | ac_header_preproc=yes | |
4750 | else | |
4751 | echo "$as_me: failed program was:" >&5 | |
4752 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4753 | ||
4754 | ac_header_preproc=no | |
4755 | fi | |
4756 | rm -f conftest.err conftest.$ac_ext | |
4757 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4758 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4759 | ||
4760 | # So? What about this header? | |
4761 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4762 | yes:no: ) | |
4763 | { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4764 | echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4765 | { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5 | |
4766 | echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;} | |
4767 | ac_header_preproc=yes | |
4768 | ;; | |
4769 | no:yes:* ) | |
4770 | { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5 | |
4771 | echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;} | |
4772 | { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5 | |
4773 | echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;} | |
4774 | { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5 | |
4775 | echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;} | |
4776 | { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4777 | echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4778 | { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5 | |
4779 | echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;} | |
4780 | { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5 | |
4781 | echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;} | |
4782 | ( | |
4783 | cat <<\_ASBOX | |
4784 | ## ------------------------------------------------------ ## | |
4785 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
4786 | ## ------------------------------------------------------ ## | |
4787 | _ASBOX | |
4788 | ) | | |
4789 | sed "s/^/$as_me: WARNING: /" >&2 | |
4790 | ;; | |
4791 | esac | |
4792 | echo "$as_me:$LINENO: checking for complex.h" >&5 | |
4793 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
4794 | if test "${ac_cv_header_complex_h+set}" = set; then | |
4795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4796 | else | |
4797 | ac_cv_header_complex_h=$ac_header_preproc | |
4798 | fi | |
4799 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 | |
4800 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
4801 | ||
4802 | fi | |
4803 | if test $ac_cv_header_complex_h = yes; then | |
4804 | ||
4805 | cat >>confdefs.h <<\_ACEOF | |
4806 | #define HAVE_COMPLEX_H 1 | |
4807 | _ACEOF | |
4808 | ||
4809 | fi | |
4810 | ||
4811 | ||
4812 | # Check for complex math functions | |
4813 | echo "$as_me:$LINENO: checking for csin in -lm" >&5 | |
4814 | echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6 | |
4815 | if test "${ac_cv_lib_m_csin+set}" = set; then | |
4816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4817 | else | |
4818 | ac_check_lib_save_LIBS=$LIBS | |
4819 | LIBS="-lm $LIBS" | |
4820 | cat >conftest.$ac_ext <<_ACEOF | |
4821 | /* confdefs.h. */ | |
4822 | _ACEOF | |
4823 | cat confdefs.h >>conftest.$ac_ext | |
4824 | cat >>conftest.$ac_ext <<_ACEOF | |
4825 | /* end confdefs.h. */ | |
4826 | ||
4827 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4828 | #ifdef __cplusplus | |
4829 | extern "C" | |
4830 | #endif | |
4831 | /* We use char because int might match the return type of a gcc2 | |
4832 | builtin and then its argument prototype would still apply. */ | |
4833 | char csin (); | |
4834 | int | |
4835 | main () | |
4836 | { | |
4837 | csin (); | |
4838 | ; | |
4839 | return 0; | |
4840 | } | |
4841 | _ACEOF | |
4842 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4844 | (eval $ac_link) 2>conftest.er1 | |
4845 | ac_status=$? | |
4846 | grep -v '^ *+' conftest.er1 >conftest.err | |
4847 | rm -f conftest.er1 | |
4848 | cat conftest.err >&5 | |
4849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4850 | (exit $ac_status); } && | |
4851 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4853 | (eval $ac_try) 2>&5 | |
4854 | ac_status=$? | |
4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4856 | (exit $ac_status); }; } && | |
4857 | { ac_try='test -s conftest$ac_exeext' | |
4858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4859 | (eval $ac_try) 2>&5 | |
4860 | ac_status=$? | |
4861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4862 | (exit $ac_status); }; }; then | |
4863 | ac_cv_lib_m_csin=yes | |
4864 | else | |
4865 | echo "$as_me: failed program was:" >&5 | |
4866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4867 | ||
4868 | ac_cv_lib_m_csin=no | |
4869 | fi | |
4870 | rm -f conftest.err conftest.$ac_objext \ | |
4871 | conftest$ac_exeext conftest.$ac_ext | |
4872 | LIBS=$ac_check_lib_save_LIBS | |
4873 | fi | |
4874 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5 | |
4875 | echo "${ECHO_T}$ac_cv_lib_m_csin" >&6 | |
4876 | if test $ac_cv_lib_m_csin = yes; then | |
4877 | need_math="no" | |
4878 | else | |
4879 | need_math="yes" | |
4880 | fi | |
4881 | ||
4882 | ||
4883 | # Check for complex math functions in -lmx also | |
4884 | echo "$as_me:$LINENO: checking for csin in -lmx" >&5 | |
4885 | echo $ECHO_N "checking for csin in -lmx... $ECHO_C" >&6 | |
4886 | if test "${ac_cv_lib_mx_csin+set}" = set; then | |
4887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4888 | else | |
4889 | ac_check_lib_save_LIBS=$LIBS | |
4890 | LIBS="-lmx $LIBS" | |
4891 | cat >conftest.$ac_ext <<_ACEOF | |
4892 | /* confdefs.h. */ | |
4893 | _ACEOF | |
4894 | cat confdefs.h >>conftest.$ac_ext | |
4895 | cat >>conftest.$ac_ext <<_ACEOF | |
4896 | /* end confdefs.h. */ | |
4897 | ||
4898 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4899 | #ifdef __cplusplus | |
4900 | extern "C" | |
4901 | #endif | |
4902 | /* We use char because int might match the return type of a gcc2 | |
4903 | builtin and then its argument prototype would still apply. */ | |
4904 | char csin (); | |
4905 | int | |
4906 | main () | |
4907 | { | |
4908 | csin (); | |
4909 | ; | |
4910 | return 0; | |
4911 | } | |
4912 | _ACEOF | |
4913 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4915 | (eval $ac_link) 2>conftest.er1 | |
4916 | ac_status=$? | |
4917 | grep -v '^ *+' conftest.er1 >conftest.err | |
4918 | rm -f conftest.er1 | |
4919 | cat conftest.err >&5 | |
4920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4921 | (exit $ac_status); } && | |
4922 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
4923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4924 | (eval $ac_try) 2>&5 | |
4925 | ac_status=$? | |
4926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4927 | (exit $ac_status); }; } && | |
4928 | { ac_try='test -s conftest$ac_exeext' | |
4929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4930 | (eval $ac_try) 2>&5 | |
4931 | ac_status=$? | |
4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4933 | (exit $ac_status); }; }; then | |
4934 | ac_cv_lib_mx_csin=yes | |
4935 | else | |
4936 | echo "$as_me: failed program was:" >&5 | |
4937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4938 | ||
4939 | ac_cv_lib_mx_csin=no | |
4940 | fi | |
4941 | rm -f conftest.err conftest.$ac_objext \ | |
4942 | conftest$ac_exeext conftest.$ac_ext | |
4943 | LIBS=$ac_check_lib_save_LIBS | |
4944 | fi | |
4945 | echo "$as_me:$LINENO: result: $ac_cv_lib_mx_csin" >&5 | |
4946 | echo "${ECHO_T}$ac_cv_lib_mx_csin" >&6 | |
4947 | if test $ac_cv_lib_mx_csin = yes; then | |
4948 | need_math="no" | |
4949 | else | |
4950 | need_math="yes" | |
4951 | fi | |
4952 | ||
4953 | ||
4954 | ||
4955 | ||
4956 | for ac_func in getrusage times | |
4957 | do | |
4958 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4959 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4960 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4961 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4963 | else | |
4964 | cat >conftest.$ac_ext <<_ACEOF | |
4965 | /* confdefs.h. */ | |
4966 | _ACEOF | |
4967 | cat confdefs.h >>conftest.$ac_ext | |
4968 | cat >>conftest.$ac_ext <<_ACEOF | |
4969 | /* end confdefs.h. */ | |
4970 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4971 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4972 | #define $ac_func innocuous_$ac_func | |
4973 | ||
4974 | /* System header to define __stub macros and hopefully few prototypes, | |
4975 | which can conflict with char $ac_func (); below. | |
4976 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4977 | <limits.h> exists even on freestanding compilers. */ | |
4978 | ||
4979 | #ifdef __STDC__ | |
4980 | # include <limits.h> | |
4981 | #else | |
4982 | # include <assert.h> | |
4983 | #endif | |
4984 | ||
4985 | #undef $ac_func | |
4986 | ||
4987 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4988 | #ifdef __cplusplus | |
4989 | extern "C" | |
4990 | { | |
4991 | #endif | |
4992 | /* We use char because int might match the return type of a gcc2 | |
4993 | builtin and then its argument prototype would still apply. */ | |
4994 | char $ac_func (); | |
4995 | /* The GNU C library defines this for functions which it implements | |
4996 | to always fail with ENOSYS. Some functions are actually named | |
4997 | something starting with __ and the normal name is an alias. */ | |
4998 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4999 | choke me | |
5000 | #else | |
5001 | char (*f) () = $ac_func; | |
5002 | #endif | |
5003 | #ifdef __cplusplus | |
5004 | } | |
5005 | #endif | |
5006 | ||
5007 | int | |
5008 | main () | |
5009 | { | |
5010 | return f != $ac_func; | |
5011 | ; | |
5012 | return 0; | |
5013 | } | |
5014 | _ACEOF | |
5015 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5017 | (eval $ac_link) 2>conftest.er1 | |
5018 | ac_status=$? | |
5019 | grep -v '^ *+' conftest.er1 >conftest.err | |
5020 | rm -f conftest.er1 | |
5021 | cat conftest.err >&5 | |
5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5023 | (exit $ac_status); } && | |
5024 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5026 | (eval $ac_try) 2>&5 | |
5027 | ac_status=$? | |
5028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5029 | (exit $ac_status); }; } && | |
5030 | { ac_try='test -s conftest$ac_exeext' | |
5031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5032 | (eval $ac_try) 2>&5 | |
5033 | ac_status=$? | |
5034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5035 | (exit $ac_status); }; }; then | |
5036 | eval "$as_ac_var=yes" | |
5037 | else | |
5038 | echo "$as_me: failed program was:" >&5 | |
5039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5040 | ||
5041 | eval "$as_ac_var=no" | |
5042 | fi | |
5043 | rm -f conftest.err conftest.$ac_objext \ | |
5044 | conftest$ac_exeext conftest.$ac_ext | |
5045 | fi | |
5046 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5047 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5048 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5049 | cat >>confdefs.h <<_ACEOF | |
5050 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5051 | _ACEOF | |
5052 | ||
5053 | fi | |
5054 | done | |
5055 | ||
5056 | ||
5057 | # Let the user override this | |
5058 | # Check whether --enable-cmath or --disable-cmath was given. | |
5059 | if test "${enable_cmath+set}" = set; then | |
5060 | enableval="$enable_cmath" | |
5061 | need_math=$enableval | |
5062 | fi; | |
5063 | if test "$need_math" = "yes"; then | |
5064 | { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5 | |
5065 | echo "$as_me: Including complex math functions in libgfor" >&6;}; | |
5066 | extra_math_obj='$(gfor_cmath_obj)' | |
5067 | fi | |
5068 | ||
5069 | MATH_OBJ="$extra_math_obj" | |
5070 | ||
5071 | ||
5072 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
5073 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
5074 | if test "${ac_cv_header_time+set}" = set; then | |
5075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5076 | else | |
5077 | cat >conftest.$ac_ext <<_ACEOF | |
5078 | /* confdefs.h. */ | |
5079 | _ACEOF | |
5080 | cat confdefs.h >>conftest.$ac_ext | |
5081 | cat >>conftest.$ac_ext <<_ACEOF | |
5082 | /* end confdefs.h. */ | |
5083 | #include <sys/types.h> | |
5084 | #include <sys/time.h> | |
5085 | #include <time.h> | |
5086 | ||
5087 | int | |
5088 | main () | |
5089 | { | |
5090 | if ((struct tm *) 0) | |
5091 | return 0; | |
5092 | ; | |
5093 | return 0; | |
5094 | } | |
5095 | _ACEOF | |
5096 | rm -f conftest.$ac_objext | |
5097 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5098 | (eval $ac_compile) 2>conftest.er1 | |
5099 | ac_status=$? | |
5100 | grep -v '^ *+' conftest.er1 >conftest.err | |
5101 | rm -f conftest.er1 | |
5102 | cat conftest.err >&5 | |
5103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5104 | (exit $ac_status); } && | |
5105 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5107 | (eval $ac_try) 2>&5 | |
5108 | ac_status=$? | |
5109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5110 | (exit $ac_status); }; } && | |
5111 | { ac_try='test -s conftest.$ac_objext' | |
5112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5113 | (eval $ac_try) 2>&5 | |
5114 | ac_status=$? | |
5115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5116 | (exit $ac_status); }; }; then | |
5117 | ac_cv_header_time=yes | |
5118 | else | |
5119 | echo "$as_me: failed program was:" >&5 | |
5120 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5121 | ||
5122 | ac_cv_header_time=no | |
5123 | fi | |
5124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5125 | fi | |
5126 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
5127 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
5128 | if test $ac_cv_header_time = yes; then | |
5129 | ||
5130 | cat >>confdefs.h <<\_ACEOF | |
5131 | #define TIME_WITH_SYS_TIME 1 | |
5132 | _ACEOF | |
5133 | ||
5134 | fi | |
5135 | ||
5136 | ||
5137 | ||
5138 | for ac_func in gettimeofday | |
5139 | do | |
5140 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5141 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5142 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5143 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5145 | else | |
5146 | cat >conftest.$ac_ext <<_ACEOF | |
5147 | /* confdefs.h. */ | |
5148 | _ACEOF | |
5149 | cat confdefs.h >>conftest.$ac_ext | |
5150 | cat >>conftest.$ac_ext <<_ACEOF | |
5151 | /* end confdefs.h. */ | |
5152 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5153 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5154 | #define $ac_func innocuous_$ac_func | |
5155 | ||
5156 | /* System header to define __stub macros and hopefully few prototypes, | |
5157 | which can conflict with char $ac_func (); below. | |
5158 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5159 | <limits.h> exists even on freestanding compilers. */ | |
5160 | ||
5161 | #ifdef __STDC__ | |
5162 | # include <limits.h> | |
5163 | #else | |
5164 | # include <assert.h> | |
5165 | #endif | |
5166 | ||
5167 | #undef $ac_func | |
5168 | ||
5169 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5170 | #ifdef __cplusplus | |
5171 | extern "C" | |
5172 | { | |
5173 | #endif | |
5174 | /* We use char because int might match the return type of a gcc2 | |
5175 | builtin and then its argument prototype would still apply. */ | |
5176 | char $ac_func (); | |
5177 | /* The GNU C library defines this for functions which it implements | |
5178 | to always fail with ENOSYS. Some functions are actually named | |
5179 | something starting with __ and the normal name is an alias. */ | |
5180 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5181 | choke me | |
5182 | #else | |
5183 | char (*f) () = $ac_func; | |
5184 | #endif | |
5185 | #ifdef __cplusplus | |
5186 | } | |
5187 | #endif | |
5188 | ||
5189 | int | |
5190 | main () | |
5191 | { | |
5192 | return f != $ac_func; | |
5193 | ; | |
5194 | return 0; | |
5195 | } | |
5196 | _ACEOF | |
5197 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5198 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5199 | (eval $ac_link) 2>conftest.er1 | |
5200 | ac_status=$? | |
5201 | grep -v '^ *+' conftest.er1 >conftest.err | |
5202 | rm -f conftest.er1 | |
5203 | cat conftest.err >&5 | |
5204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5205 | (exit $ac_status); } && | |
5206 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5208 | (eval $ac_try) 2>&5 | |
5209 | ac_status=$? | |
5210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5211 | (exit $ac_status); }; } && | |
5212 | { ac_try='test -s conftest$ac_exeext' | |
5213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5214 | (eval $ac_try) 2>&5 | |
5215 | ac_status=$? | |
5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5217 | (exit $ac_status); }; }; then | |
5218 | eval "$as_ac_var=yes" | |
5219 | else | |
5220 | echo "$as_me: failed program was:" >&5 | |
5221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5222 | ||
5223 | eval "$as_ac_var=no" | |
5224 | fi | |
5225 | rm -f conftest.err conftest.$ac_objext \ | |
5226 | conftest$ac_exeext conftest.$ac_ext | |
5227 | fi | |
5228 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5229 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5230 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5231 | cat >>confdefs.h <<_ACEOF | |
5232 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5233 | _ACEOF | |
5234 | ||
5235 | fi | |
5236 | done | |
5237 | ||
5238 | if test "$ac_cv_func_gettimeofday" = yes; then | |
5239 | echo "$as_me:$LINENO: checking for struct timezone" >&5 | |
5240 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 | |
5241 | if test "${gfor_cv_struct_timezone+set}" = set; then | |
5242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5243 | else | |
5244 | cat >conftest.$ac_ext <<_ACEOF | |
5245 | /* confdefs.h. */ | |
5246 | _ACEOF | |
5247 | cat confdefs.h >>conftest.$ac_ext | |
5248 | cat >>conftest.$ac_ext <<_ACEOF | |
5249 | /* end confdefs.h. */ | |
5250 | #include <sys/time.h> | |
5251 | int | |
5252 | main () | |
5253 | { | |
5254 | struct timezone tz; | |
5255 | ; | |
5256 | return 0; | |
5257 | } | |
5258 | _ACEOF | |
5259 | rm -f conftest.$ac_objext | |
5260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5261 | (eval $ac_compile) 2>conftest.er1 | |
5262 | ac_status=$? | |
5263 | grep -v '^ *+' conftest.er1 >conftest.err | |
5264 | rm -f conftest.er1 | |
5265 | cat conftest.err >&5 | |
5266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5267 | (exit $ac_status); } && | |
5268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5270 | (eval $ac_try) 2>&5 | |
5271 | ac_status=$? | |
5272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5273 | (exit $ac_status); }; } && | |
5274 | { ac_try='test -s conftest.$ac_objext' | |
5275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5276 | (eval $ac_try) 2>&5 | |
5277 | ac_status=$? | |
5278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5279 | (exit $ac_status); }; }; then | |
5280 | gfor_cv_struct_timezone=yes | |
5281 | else | |
5282 | echo "$as_me: failed program was:" >&5 | |
5283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5284 | ||
5285 | gfor_cv_struct_timezone=no | |
5286 | fi | |
5287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5288 | fi | |
5289 | echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5 | |
5290 | echo "${ECHO_T}$gfor_cv_struct_timezone" >&6 | |
5291 | if test $gfor_cv_struct_timezone = yes; then | |
5292 | if test "$cross_compiling" = yes; then | |
5293 | gfor_have_struct_timezone=yes | |
5294 | else | |
5295 | cat >conftest.$ac_ext <<_ACEOF | |
5296 | /* confdefs.h. */ | |
5297 | _ACEOF | |
5298 | cat confdefs.h >>conftest.$ac_ext | |
5299 | cat >>conftest.$ac_ext <<_ACEOF | |
5300 | /* end confdefs.h. */ | |
5301 | ||
5302 | #ifdef TIME_WITH_SYS_TIME | |
5303 | #include <sys/time.h> | |
5304 | #include <time.h> | |
5305 | #else | |
5306 | #ifdef HAVE_SYS_TIME_H | |
5307 | #include <sys/time.h> | |
5308 | #else | |
5309 | #include <time.h> | |
5310 | #endif | |
5311 | #endif | |
5312 | main () | |
5313 | { | |
5314 | struct timeval time; | |
5315 | struct timezone dummy; | |
5316 | if (gettimeofday (&time, &dummy)) | |
5317 | exit (1); | |
5318 | else | |
5319 | exit (0); | |
5320 | } | |
5321 | _ACEOF | |
5322 | rm -f conftest$ac_exeext | |
5323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5324 | (eval $ac_link) 2>&5 | |
5325 | ac_status=$? | |
5326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5327 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5329 | (eval $ac_try) 2>&5 | |
5330 | ac_status=$? | |
5331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5332 | (exit $ac_status); }; }; then | |
5333 | gfor_have_struct_timezone=yes | |
5334 | else | |
5335 | echo "$as_me: program exited with status $ac_status" >&5 | |
5336 | echo "$as_me: failed program was:" >&5 | |
5337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5338 | ||
5339 | ( exit $ac_status ) | |
5340 | gfor_have_struct_timezone=no | |
5341 | fi | |
5342 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
5343 | fi | |
5344 | if test $gfor_have_struct_timezone = yes; then | |
5345 | ||
5346 | cat >>confdefs.h <<\_ACEOF | |
5347 | #define HAVE_TIMEZONE 1 | |
5348 | _ACEOF | |
5349 | ||
5350 | fi | |
5351 | fi | |
5352 | ||
5353 | echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 | |
5354 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 | |
5355 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
5356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5357 | else | |
5358 | cat >conftest.$ac_ext <<_ACEOF | |
5359 | /* confdefs.h. */ | |
5360 | _ACEOF | |
5361 | cat confdefs.h >>conftest.$ac_ext | |
5362 | cat >>conftest.$ac_ext <<_ACEOF | |
5363 | /* end confdefs.h. */ | |
5364 | ||
5365 | #ifdef TIME_WITH_SYS_TIME | |
5366 | #include <sys/time.h> | |
5367 | #include <time.h> | |
5368 | #else | |
5369 | #ifdef HAVE_SYS_TIME_H | |
5370 | #include <sys/time.h> | |
5371 | #else | |
5372 | #include <time.h> | |
5373 | #endif | |
5374 | #endif | |
5375 | ||
5376 | int | |
5377 | main () | |
5378 | { | |
5379 | ||
5380 | struct timeval time; | |
5381 | #ifdef HAVE_TIMEZONE | |
5382 | struct timezone dummy; | |
5383 | #define DUMMY &dummy | |
5384 | #else | |
5385 | #define DUMMY NULL | |
5386 | #endif | |
5387 | gettimeofday (&time, DUMMY); | |
5388 | ; | |
5389 | return 0; | |
5390 | } | |
5391 | _ACEOF | |
5392 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5394 | (eval $ac_link) 2>conftest.er1 | |
5395 | ac_status=$? | |
5396 | grep -v '^ *+' conftest.er1 >conftest.err | |
5397 | rm -f conftest.er1 | |
5398 | cat conftest.err >&5 | |
5399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5400 | (exit $ac_status); } && | |
5401 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
5402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5403 | (eval $ac_try) 2>&5 | |
5404 | ac_status=$? | |
5405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5406 | (exit $ac_status); }; } && | |
5407 | { ac_try='test -s conftest$ac_exeext' | |
5408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5409 | (eval $ac_try) 2>&5 | |
5410 | ac_status=$? | |
5411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5412 | (exit $ac_status); }; }; then | |
5413 | emacs_cv_gettimeofday_two_arguments=yes | |
5414 | else | |
5415 | echo "$as_me: failed program was:" >&5 | |
5416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5417 | ||
5418 | emacs_cv_gettimeofday_two_arguments=no | |
5419 | fi | |
5420 | rm -f conftest.err conftest.$ac_objext \ | |
5421 | conftest$ac_exeext conftest.$ac_ext | |
5422 | fi | |
5423 | echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 | |
5424 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 | |
5425 | if test $emacs_cv_gettimeofday_two_arguments = no; then | |
5426 | ||
5427 | cat >>confdefs.h <<\_ACEOF | |
5428 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
5429 | _ACEOF | |
5430 | ||
5431 | fi | |
5432 | fi | |
5433 | ||
5434 | test "$AR" || AR=ar | |
5435 | ||
5436 | if test "$RANLIB"; then : | |
5437 | ||
5438 | else | |
5439 | if test -n "$ac_tool_prefix"; then | |
5440 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5441 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5442 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5443 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5444 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5446 | else | |
5447 | if test -n "$RANLIB"; then | |
5448 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5449 | else | |
5450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5451 | for as_dir in $PATH | |
5452 | do | |
5453 | IFS=$as_save_IFS | |
5454 | test -z "$as_dir" && as_dir=. | |
5455 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5456 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5457 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5458 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5459 | break 2 | |
5460 | fi | |
5461 | done | |
5462 | done | |
5463 | ||
5464 | fi | |
5465 | fi | |
5466 | RANLIB=$ac_cv_prog_RANLIB | |
5467 | if test -n "$RANLIB"; then | |
5468 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5469 | echo "${ECHO_T}$RANLIB" >&6 | |
5470 | else | |
5471 | echo "$as_me:$LINENO: result: no" >&5 | |
5472 | echo "${ECHO_T}no" >&6 | |
5473 | fi | |
5474 | ||
5475 | fi | |
5476 | if test -z "$ac_cv_prog_RANLIB"; then | |
5477 | ac_ct_RANLIB=$RANLIB | |
5478 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5479 | set dummy ranlib; ac_word=$2 | |
5480 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5481 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5482 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5484 | else | |
5485 | if test -n "$ac_ct_RANLIB"; then | |
5486 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5487 | else | |
5488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5489 | for as_dir in $PATH | |
5490 | do | |
5491 | IFS=$as_save_IFS | |
5492 | test -z "$as_dir" && as_dir=. | |
5493 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5494 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5495 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5496 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5497 | break 2 | |
5498 | fi | |
5499 | done | |
5500 | done | |
5501 | ||
5502 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
5503 | fi | |
5504 | fi | |
5505 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5506 | if test -n "$ac_ct_RANLIB"; then | |
5507 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5508 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
5509 | else | |
5510 | echo "$as_me:$LINENO: result: no" >&5 | |
5511 | echo "${ECHO_T}no" >&6 | |
5512 | fi | |
5513 | ||
5514 | RANLIB=$ac_ct_RANLIB | |
5515 | else | |
5516 | RANLIB="$ac_cv_prog_RANLIB" | |
5517 | fi | |
5518 | ||
5519 | fi | |
5520 | ||
5521 | # Check whether --enable-shared or --disable-shared was given. | |
5522 | if test "${enable_shared+set}" = set; then | |
5523 | enableval="$enable_shared" | |
5524 | p=${PACKAGE-default} | |
5525 | case $enableval in | |
5526 | yes) enable_shared=yes ;; | |
5527 | no) enable_shared=no ;; | |
5528 | *) | |
5529 | enable_shared=no | |
5530 | # Look at the argument we got. We use all the common list separators. | |
5531 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
5532 | for pkg in $enableval; do | |
5533 | if test "X$pkg" = "X$p"; then | |
5534 | enable_shared=yes | |
5535 | fi | |
5536 | done | |
5537 | IFS="$ac_save_ifs" | |
5538 | ;; | |
5539 | esac | |
5540 | else | |
5541 | enable_shared=yes | |
5542 | fi; | |
5543 | # Check whether --enable-static or --disable-static was given. | |
5544 | if test "${enable_static+set}" = set; then | |
5545 | enableval="$enable_static" | |
5546 | p=${PACKAGE-default} | |
5547 | case $enableval in | |
5548 | yes) enable_static=yes ;; | |
5549 | no) enable_static=no ;; | |
5550 | *) | |
5551 | enable_static=no | |
5552 | # Look at the argument we got. We use all the common list separators. | |
5553 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
5554 | for pkg in $enableval; do | |
5555 | if test "X$pkg" = "X$p"; then | |
5556 | enable_static=yes | |
5557 | fi | |
5558 | done | |
5559 | IFS="$ac_save_ifs" | |
5560 | ;; | |
5561 | esac | |
5562 | else | |
5563 | enable_static=yes | |
5564 | fi; | |
5565 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
5566 | if test "${enable_fast_install+set}" = set; then | |
5567 | enableval="$enable_fast_install" | |
5568 | p=${PACKAGE-default} | |
5569 | case $enableval in | |
5570 | yes) enable_fast_install=yes ;; | |
5571 | no) enable_fast_install=no ;; | |
5572 | *) | |
5573 | enable_fast_install=no | |
5574 | # Look at the argument we got. We use all the common list separators. | |
5575 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
5576 | for pkg in $enableval; do | |
5577 | if test "X$pkg" = "X$p"; then | |
5578 | enable_fast_install=yes | |
5579 | fi | |
5580 | done | |
5581 | IFS="$ac_save_ifs" | |
5582 | ;; | |
5583 | esac | |
5584 | else | |
5585 | enable_fast_install=yes | |
5586 | fi; | |
5587 | # Make sure we can run config.sub. | |
5588 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
5589 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
5590 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
5591 | { (exit 1); exit 1; }; } | |
5592 | ||
5593 | echo "$as_me:$LINENO: checking build system type" >&5 | |
5594 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
5595 | if test "${ac_cv_build+set}" = set; then | |
5596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5597 | else | |
5598 | ac_cv_build_alias=$build_alias | |
5599 | test -z "$ac_cv_build_alias" && | |
5600 | ac_cv_build_alias=`$ac_config_guess` | |
5601 | test -z "$ac_cv_build_alias" && | |
5602 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
5603 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
5604 | { (exit 1); exit 1; }; } | |
5605 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
5606 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
5607 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
5608 | { (exit 1); exit 1; }; } | |
5609 | ||
5610 | fi | |
5611 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
5612 | echo "${ECHO_T}$ac_cv_build" >&6 | |
5613 | build=$ac_cv_build | |
5614 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
5615 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
5616 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
5617 | ||
5618 | ||
5619 | echo "$as_me:$LINENO: checking host system type" >&5 | |
5620 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
5621 | if test "${ac_cv_host+set}" = set; then | |
5622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5623 | else | |
5624 | ac_cv_host_alias=$host_alias | |
5625 | test -z "$ac_cv_host_alias" && | |
5626 | ac_cv_host_alias=$ac_cv_build_alias | |
5627 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
5628 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
5629 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
5630 | { (exit 1); exit 1; }; } | |
5631 | ||
5632 | fi | |
5633 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
5634 | echo "${ECHO_T}$ac_cv_host" >&6 | |
5635 | host=$ac_cv_host | |
5636 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
5637 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
5638 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
5639 | ||
5640 | ||
5641 | ||
5642 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
5643 | if test "${with_gnu_ld+set}" = set; then | |
5644 | withval="$with_gnu_ld" | |
5645 | test "$withval" = no || with_gnu_ld=yes | |
5646 | else | |
5647 | with_gnu_ld=no | |
5648 | fi; | |
5649 | ac_prog=ld | |
5650 | if test "$GCC" = yes; then | |
5651 | # Check if gcc -print-prog-name=ld gives a path. | |
5652 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
5653 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
5654 | case $host in | |
5655 | *-*-mingw*) | |
5656 | # gcc leaves a trailing carriage return which upsets mingw | |
5657 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5658 | *) | |
5659 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5660 | esac | |
5661 | case $ac_prog in | |
5662 | # Accept absolute paths. | |
5663 | [\\/]* | [A-Za-z]:[\\/]*) | |
5664 | re_direlt='/[^/][^/]*/\.\./' | |
5665 | # Canonicalize the path of ld | |
5666 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
5667 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
5668 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
5669 | done | |
5670 | test -z "$LD" && LD="$ac_prog" | |
5671 | ;; | |
5672 | "") | |
5673 | # If it fails, then pretend we aren't using GCC. | |
5674 | ac_prog=ld | |
5675 | ;; | |
5676 | *) | |
5677 | # If it is relative, then search for the first ld in PATH. | |
5678 | with_gnu_ld=unknown | |
5679 | ;; | |
5680 | esac | |
5681 | elif test "$with_gnu_ld" = yes; then | |
5682 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
5683 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
5684 | else | |
5685 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
5686 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
5687 | fi | |
5688 | if test "${lt_cv_path_LD+set}" = set; then | |
5689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5690 | else | |
5691 | if test -z "$LD"; then | |
5692 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
5693 | for ac_dir in $PATH; do | |
5694 | test -z "$ac_dir" && ac_dir=. | |
5695 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5696 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5697 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5698 | # but apparently some GNU ld's only accept -v. | |
5699 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5700 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
5701 | test "$with_gnu_ld" != no && break | |
5702 | else | |
5703 | test "$with_gnu_ld" != yes && break | |
5704 | fi | |
5705 | fi | |
5706 | done | |
5707 | IFS="$ac_save_ifs" | |
5708 | else | |
5709 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5710 | fi | |
5711 | fi | |
5712 | ||
5713 | LD="$lt_cv_path_LD" | |
5714 | if test -n "$LD"; then | |
5715 | echo "$as_me:$LINENO: result: $LD" >&5 | |
5716 | echo "${ECHO_T}$LD" >&6 | |
5717 | else | |
5718 | echo "$as_me:$LINENO: result: no" >&5 | |
5719 | echo "${ECHO_T}no" >&6 | |
5720 | fi | |
5721 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
5722 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
5723 | { (exit 1); exit 1; }; } | |
5724 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
5725 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
5726 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
5727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5728 | else | |
5729 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
5730 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
5731 | lt_cv_prog_gnu_ld=yes | |
5732 | else | |
5733 | lt_cv_prog_gnu_ld=no | |
5734 | fi | |
5735 | fi | |
5736 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
5737 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
5738 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5739 | ||
5740 | ||
5741 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
5742 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
5743 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
5744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5745 | else | |
5746 | lt_cv_ld_reload_flag='-r' | |
5747 | fi | |
5748 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
5749 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
5750 | reload_flag=$lt_cv_ld_reload_flag | |
5751 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
5752 | ||
5753 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
5754 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
5755 | if test "${lt_cv_path_NM+set}" = set; then | |
5756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5757 | else | |
5758 | if test -n "$NM"; then | |
5759 | # Let the user override the test. | |
5760 | lt_cv_path_NM="$NM" | |
5761 | else | |
5762 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
5763 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
5764 | test -z "$ac_dir" && ac_dir=. | |
5765 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | |
5766 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
5767 | # Check to see if the nm accepts a BSD-compat flag. | |
5768 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5769 | # nm: unknown option "B" ignored | |
5770 | # Tru64's nm complains that /dev/null is an invalid object file | |
5771 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
5772 | lt_cv_path_NM="$tmp_nm -B" | |
5773 | break | |
5774 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
5775 | lt_cv_path_NM="$tmp_nm -p" | |
5776 | break | |
5777 | else | |
5778 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5779 | continue # so that we can try to find one that supports BSD flags | |
5780 | fi | |
5781 | fi | |
5782 | done | |
5783 | IFS="$ac_save_ifs" | |
5784 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
5785 | fi | |
5786 | fi | |
5787 | ||
5788 | NM="$lt_cv_path_NM" | |
5789 | echo "$as_me:$LINENO: result: $NM" >&5 | |
5790 | echo "${ECHO_T}$NM" >&6 | |
5791 | ||
5792 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
5793 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
5794 | LN_S=$as_ln_s | |
5795 | if test "$LN_S" = "ln -s"; then | |
5796 | echo "$as_me:$LINENO: result: yes" >&5 | |
5797 | echo "${ECHO_T}yes" >&6 | |
5798 | else | |
5799 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
5800 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5801 | fi | |
5802 | ||
5803 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 | |
5804 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
5805 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
5806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5807 | else | |
5808 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5809 | lt_cv_file_magic_test_file= | |
5810 | lt_cv_deplibs_check_method='unknown' | |
5811 | # Need to set the preceding variable on all platforms that support | |
5812 | # interlibrary dependencies. | |
5813 | # 'none' -- dependencies not supported. | |
5814 | # `unknown' -- same as none, but documents that we really don't know. | |
5815 | # 'pass_all' -- all dependencies passed with no checks. | |
5816 | # 'test_compile' -- check by making test program. | |
5817 | # 'file_magic [regex]' -- check by looking for files in library path | |
5818 | # which responds to the $file_magic_cmd with a given egrep regex. | |
5819 | # If you have `file' or equivalent on your system and you're not sure | |
5820 | # whether `pass_all' will *always* work, you probably want this one. | |
5821 | ||
5822 | case $host_os in | |
5823 | aix*) | |
5824 | lt_cv_deplibs_check_method=pass_all | |
5825 | ;; | |
5826 | ||
5827 | beos*) | |
5828 | lt_cv_deplibs_check_method=pass_all | |
5829 | ;; | |
5830 | ||
5831 | bsdi4*) | |
5832 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5833 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5834 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5835 | ;; | |
5836 | ||
5837 | cygwin* | mingw* |pw32*) | |
5838 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5839 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5840 | ;; | |
5841 | ||
5842 | darwin* | rhapsody*) | |
5843 | # this will be overwritten by pass_all, but leave it in just in case | |
5844 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
5845 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5846 | case "$host_os" in | |
5847 | rhapsody* | darwin1.012) | |
5848 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
5849 | ;; | |
5850 | *) # Darwin 1.3 on | |
5851 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
5852 | ;; | |
5853 | esac | |
5854 | lt_cv_deplibs_check_method=pass_all | |
5855 | ;; | |
5856 | ||
c9e66eda | 5857 | freebsd* | kfreebsd*-gnu) |
6de9cd9a DN |
5858 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
5859 | case $host_cpu in | |
5860 | i*86 ) | |
5861 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5862 | # Let's accept both of them until this is cleared up. | |
5863 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
5864 | lt_cv_file_magic_cmd=/usr/bin/file | |
5865 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5866 | ;; | |
5867 | esac | |
5868 | else | |
5869 | lt_cv_deplibs_check_method=pass_all | |
5870 | fi | |
5871 | ;; | |
5872 | ||
5873 | gnu*) | |
5874 | lt_cv_deplibs_check_method=pass_all | |
5875 | ;; | |
5876 | ||
5877 | hpux10.20*|hpux11*) | |
5878 | case $host_cpu in | |
5879 | hppa*) | |
5880 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
5881 | lt_cv_file_magic_cmd=/usr/bin/file | |
5882 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5883 | ;; | |
5884 | ia64*) | |
5885 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5886 | lt_cv_file_magic_cmd=/usr/bin/file | |
5887 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5888 | ;; | |
5889 | esac | |
5890 | ;; | |
5891 | ||
5892 | irix5* | irix6*) | |
5893 | case $host_os in | |
5894 | irix5*) | |
5895 | # this will be overridden with pass_all, but let us keep it just in case | |
5896 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
5897 | ;; | |
5898 | *) | |
5899 | case $LD in | |
5900 | *-32|*"-32 ") libmagic=32-bit;; | |
5901 | *-n32|*"-n32 ") libmagic=N32;; | |
5902 | *-64|*"-64 ") libmagic=64-bit;; | |
5903 | *) libmagic=never-match;; | |
5904 | esac | |
5905 | # this will be overridden with pass_all, but let us keep it just in case | |
5906 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
5907 | ;; | |
5908 | esac | |
5909 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
5910 | lt_cv_deplibs_check_method=pass_all | |
5911 | ;; | |
5912 | ||
5913 | # This must be Linux ELF. | |
5914 | linux-gnu*) | |
5915 | case $host_cpu in | |
c779c42f | 5916 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* ) |
6de9cd9a DN |
5917 | lt_cv_deplibs_check_method=pass_all ;; |
5918 | *) | |
5919 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
5920 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; | |
5921 | esac | |
5922 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | |
5923 | ;; | |
5924 | ||
c9e66eda | 5925 | netbsd* | knetbsd*-gnu) |
6de9cd9a DN |
5926 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
5927 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
5928 | else | |
5929 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
5930 | fi | |
5931 | ;; | |
5932 | ||
5933 | newsos6) | |
5934 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5935 | lt_cv_file_magic_cmd=/usr/bin/file | |
5936 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5937 | ;; | |
5938 | ||
5939 | osf3* | osf4* | osf5*) | |
5940 | # this will be overridden with pass_all, but let us keep it just in case | |
5941 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
5942 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5943 | lt_cv_deplibs_check_method=pass_all | |
5944 | ;; | |
5945 | ||
5946 | sco3.2v5*) | |
5947 | lt_cv_deplibs_check_method=pass_all | |
5948 | ;; | |
5949 | ||
5950 | solaris*) | |
5951 | lt_cv_deplibs_check_method=pass_all | |
5952 | lt_cv_file_magic_test_file=/lib/libc.so | |
5953 | ;; | |
5954 | ||
5955 | sysv5uw[78]* | sysv4*uw2*) | |
5956 | lt_cv_deplibs_check_method=pass_all | |
5957 | ;; | |
5958 | ||
5959 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
5960 | case $host_vendor in | |
5961 | ncr) | |
5962 | lt_cv_deplibs_check_method=pass_all | |
5963 | ;; | |
5964 | motorola) | |
5965 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' | |
5966 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5967 | ;; | |
5968 | esac | |
5969 | ;; | |
5970 | esac | |
5971 | ||
5972 | fi | |
5973 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
5974 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
5975 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5976 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5977 | ||
5978 | ||
5979 | ||
5980 | ||
5981 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
5982 | ||
5983 | # Only perform the check for file, if the check method requires it | |
5984 | case $deplibs_check_method in | |
5985 | file_magic*) | |
5986 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5987 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
5988 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
5989 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
5990 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5991 | else | |
5992 | case $MAGIC_CMD in | |
5993 | /*) | |
5994 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
5995 | ;; | |
5996 | ?:/*) | |
5997 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
5998 | ;; | |
5999 | *) | |
6000 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
6001 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6002 | ac_dummy="/usr/bin:$PATH" | |
6003 | for ac_dir in $ac_dummy; do | |
6004 | test -z "$ac_dir" && ac_dir=. | |
6005 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6006 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6007 | if test -n "$file_magic_test_file"; then | |
6008 | case $deplibs_check_method in | |
6009 | "file_magic "*) | |
6010 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
6011 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6012 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6013 | egrep "$file_magic_regex" > /dev/null; then | |
6014 | : | |
6015 | else | |
6016 | cat <<EOF 1>&2 | |
6017 | ||
6018 | *** Warning: the command libtool uses to detect shared libraries, | |
6019 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6020 | *** The result is that libtool may fail to recognize shared libraries | |
6021 | *** as such. This will affect the creation of libtool libraries that | |
6022 | *** depend on shared libraries, but programs linked with such libtool | |
6023 | *** libraries will work regardless of this problem. Nevertheless, you | |
6024 | *** may want to report the problem to your system manager and/or to | |
6025 | *** bug-libtool@gnu.org | |
6026 | ||
6027 | EOF | |
6028 | fi ;; | |
6029 | esac | |
6030 | fi | |
6031 | break | |
6032 | fi | |
6033 | done | |
6034 | IFS="$ac_save_ifs" | |
6035 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
6036 | ;; | |
6037 | esac | |
6038 | fi | |
6039 | ||
6040 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6041 | if test -n "$MAGIC_CMD"; then | |
6042 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6043 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6044 | else | |
6045 | echo "$as_me:$LINENO: result: no" >&5 | |
6046 | echo "${ECHO_T}no" >&6 | |
6047 | fi | |
6048 | ||
6049 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6050 | if test -n "$ac_tool_prefix"; then | |
6051 | echo "$as_me:$LINENO: checking for file" >&5 | |
6052 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
6053 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6055 | else | |
6056 | case $MAGIC_CMD in | |
6057 | /*) | |
6058 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6059 | ;; | |
6060 | ?:/*) | |
6061 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
6062 | ;; | |
6063 | *) | |
6064 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
6065 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
6066 | ac_dummy="/usr/bin:$PATH" | |
6067 | for ac_dir in $ac_dummy; do | |
6068 | test -z "$ac_dir" && ac_dir=. | |
6069 | if test -f $ac_dir/file; then | |
6070 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6071 | if test -n "$file_magic_test_file"; then | |
6072 | case $deplibs_check_method in | |
6073 | "file_magic "*) | |
6074 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
6075 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6076 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6077 | egrep "$file_magic_regex" > /dev/null; then | |
6078 | : | |
6079 | else | |
6080 | cat <<EOF 1>&2 | |
6081 | ||
6082 | *** Warning: the command libtool uses to detect shared libraries, | |
6083 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6084 | *** The result is that libtool may fail to recognize shared libraries | |
6085 | *** as such. This will affect the creation of libtool libraries that | |
6086 | *** depend on shared libraries, but programs linked with such libtool | |
6087 | *** libraries will work regardless of this problem. Nevertheless, you | |
6088 | *** may want to report the problem to your system manager and/or to | |
6089 | *** bug-libtool@gnu.org | |
6090 | ||
6091 | EOF | |
6092 | fi ;; | |
6093 | esac | |
6094 | fi | |
6095 | break | |
6096 | fi | |
6097 | done | |
6098 | IFS="$ac_save_ifs" | |
6099 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
6100 | ;; | |
6101 | esac | |
6102 | fi | |
6103 | ||
6104 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6105 | if test -n "$MAGIC_CMD"; then | |
6106 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6107 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6108 | else | |
6109 | echo "$as_me:$LINENO: result: no" >&5 | |
6110 | echo "${ECHO_T}no" >&6 | |
6111 | fi | |
6112 | ||
6113 | else | |
6114 | MAGIC_CMD=: | |
6115 | fi | |
6116 | fi | |
6117 | ||
6118 | fi | |
6119 | ;; | |
6120 | esac | |
6121 | ||
6122 | if test -n "$ac_tool_prefix"; then | |
6123 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6124 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6125 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6126 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6127 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6129 | else | |
6130 | if test -n "$RANLIB"; then | |
6131 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6132 | else | |
6133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6134 | for as_dir in $PATH | |
6135 | do | |
6136 | IFS=$as_save_IFS | |
6137 | test -z "$as_dir" && as_dir=. | |
6138 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6139 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6140 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6141 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6142 | break 2 | |
6143 | fi | |
6144 | done | |
6145 | done | |
6146 | ||
6147 | fi | |
6148 | fi | |
6149 | RANLIB=$ac_cv_prog_RANLIB | |
6150 | if test -n "$RANLIB"; then | |
6151 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
6152 | echo "${ECHO_T}$RANLIB" >&6 | |
6153 | else | |
6154 | echo "$as_me:$LINENO: result: no" >&5 | |
6155 | echo "${ECHO_T}no" >&6 | |
6156 | fi | |
6157 | ||
6158 | fi | |
6159 | if test -z "$ac_cv_prog_RANLIB"; then | |
6160 | ac_ct_RANLIB=$RANLIB | |
6161 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6162 | set dummy ranlib; ac_word=$2 | |
6163 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6164 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6165 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6166 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6167 | else | |
6168 | if test -n "$ac_ct_RANLIB"; then | |
6169 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6170 | else | |
6171 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6172 | for as_dir in $PATH | |
6173 | do | |
6174 | IFS=$as_save_IFS | |
6175 | test -z "$as_dir" && as_dir=. | |
6176 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6177 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6178 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6179 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6180 | break 2 | |
6181 | fi | |
6182 | done | |
6183 | done | |
6184 | ||
6185 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
6186 | fi | |
6187 | fi | |
6188 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6189 | if test -n "$ac_ct_RANLIB"; then | |
6190 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
6191 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
6192 | else | |
6193 | echo "$as_me:$LINENO: result: no" >&5 | |
6194 | echo "${ECHO_T}no" >&6 | |
6195 | fi | |
6196 | ||
6197 | RANLIB=$ac_ct_RANLIB | |
6198 | else | |
6199 | RANLIB="$ac_cv_prog_RANLIB" | |
6200 | fi | |
6201 | ||
6202 | if test -n "$ac_tool_prefix"; then | |
6203 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6204 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6205 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6206 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6207 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
6208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6209 | else | |
6210 | if test -n "$STRIP"; then | |
6211 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6212 | else | |
6213 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6214 | for as_dir in $PATH | |
6215 | do | |
6216 | IFS=$as_save_IFS | |
6217 | test -z "$as_dir" && as_dir=. | |
6218 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6219 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6220 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6221 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6222 | break 2 | |
6223 | fi | |
6224 | done | |
6225 | done | |
6226 | ||
6227 | fi | |
6228 | fi | |
6229 | STRIP=$ac_cv_prog_STRIP | |
6230 | if test -n "$STRIP"; then | |
6231 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6232 | echo "${ECHO_T}$STRIP" >&6 | |
6233 | else | |
6234 | echo "$as_me:$LINENO: result: no" >&5 | |
6235 | echo "${ECHO_T}no" >&6 | |
6236 | fi | |
6237 | ||
6238 | fi | |
6239 | if test -z "$ac_cv_prog_STRIP"; then | |
6240 | ac_ct_STRIP=$STRIP | |
6241 | # Extract the first word of "strip", so it can be a program name with args. | |
6242 | set dummy strip; ac_word=$2 | |
6243 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6244 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6245 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
6246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6247 | else | |
6248 | if test -n "$ac_ct_STRIP"; then | |
6249 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6250 | else | |
6251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6252 | for as_dir in $PATH | |
6253 | do | |
6254 | IFS=$as_save_IFS | |
6255 | test -z "$as_dir" && as_dir=. | |
6256 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6257 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6258 | ac_cv_prog_ac_ct_STRIP="strip" | |
6259 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6260 | break 2 | |
6261 | fi | |
6262 | done | |
6263 | done | |
6264 | ||
6265 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
6266 | fi | |
6267 | fi | |
6268 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6269 | if test -n "$ac_ct_STRIP"; then | |
6270 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6271 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
6272 | else | |
6273 | echo "$as_me:$LINENO: result: no" >&5 | |
6274 | echo "${ECHO_T}no" >&6 | |
6275 | fi | |
6276 | ||
6277 | STRIP=$ac_ct_STRIP | |
6278 | else | |
6279 | STRIP="$ac_cv_prog_STRIP" | |
6280 | fi | |
6281 | ||
6282 | ||
6283 | # Check for any special flags to pass to ltconfig. | |
6284 | libtool_flags="--cache-file=$cache_file" | |
6285 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
6286 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
6287 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
6288 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | |
6289 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
6290 | ||
6291 | ||
6292 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
6293 | if test "${enable_libtool_lock+set}" = set; then | |
6294 | enableval="$enable_libtool_lock" | |
6295 | ||
6296 | fi; | |
6297 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
6298 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
6299 | ||
6300 | ||
6301 | # Check whether --with-pic or --without-pic was given. | |
6302 | if test "${with_pic+set}" = set; then | |
6303 | withval="$with_pic" | |
6304 | pic_mode="$withval" | |
6305 | else | |
6306 | pic_mode=default | |
6307 | fi; | |
6308 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
6309 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
6310 | ||
6311 | # Some flags need to be propagated to the compiler or linker for good | |
6312 | # libtool support. | |
6313 | case $host in | |
6314 | *-*-irix6*) | |
6315 | # Find out which ABI we are using. | |
c9e66eda | 6316 | echo '#line 6316 "configure"' > conftest.$ac_ext |
6de9cd9a DN |
6317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6318 | (eval $ac_compile) 2>&5 | |
6319 | ac_status=$? | |
6320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6321 | (exit $ac_status); }; then | |
6322 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6323 | case `/usr/bin/file conftest.$ac_objext` in | |
6324 | *32-bit*) | |
6325 | LD="${LD-ld} -melf32bsmip" | |
6326 | ;; | |
6327 | *N32*) | |
6328 | LD="${LD-ld} -melf32bmipn32" | |
6329 | ;; | |
6330 | *64-bit*) | |
6331 | LD="${LD-ld} -melf64bmip" | |
6332 | ;; | |
6333 | esac | |
6334 | else | |
6335 | case `/usr/bin/file conftest.$ac_objext` in | |
6336 | *32-bit*) | |
6337 | LD="${LD-ld} -32" | |
6338 | ;; | |
6339 | *N32*) | |
6340 | LD="${LD-ld} -n32" | |
6341 | ;; | |
6342 | *64-bit*) | |
6343 | LD="${LD-ld} -64" | |
6344 | ;; | |
6345 | esac | |
6346 | fi | |
6347 | fi | |
6348 | rm -rf conftest* | |
6349 | ;; | |
6350 | ||
6351 | ia64-*-hpux*) | |
6352 | # Find out which ABI we are using. | |
6353 | echo 'int i;' > conftest.$ac_ext | |
6354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6355 | (eval $ac_compile) 2>&5 | |
6356 | ac_status=$? | |
6357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6358 | (exit $ac_status); }; then | |
6359 | case "`/usr/bin/file conftest.o`" in | |
6360 | *ELF-32*) | |
6361 | HPUX_IA64_MODE="32" | |
6362 | ;; | |
6363 | *ELF-64*) | |
6364 | HPUX_IA64_MODE="64" | |
6365 | ;; | |
6366 | esac | |
6367 | fi | |
6368 | rm -rf conftest* | |
6369 | ;; | |
6370 | ||
6371 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
6372 | # Find out which ABI we are using. | |
6373 | echo 'int i;' > conftest.$ac_ext | |
6374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6375 | (eval $ac_compile) 2>&5 | |
6376 | ac_status=$? | |
6377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6378 | (exit $ac_status); }; then | |
6379 | case "`/usr/bin/file conftest.o`" in | |
6380 | *32-bit*) | |
6381 | case $host in | |
6382 | x86_64-*linux*) | |
6383 | LD="${LD-ld} -m elf_i386" | |
6384 | ;; | |
6385 | ppc64-*linux*|powerpc64-*linux*) | |
6386 | LD="${LD-ld} -m elf32ppclinux" | |
6387 | ;; | |
6388 | s390x-*linux*) | |
6389 | LD="${LD-ld} -m elf_s390" | |
6390 | ;; | |
6391 | sparc64-*linux*) | |
6392 | LD="${LD-ld} -m elf32_sparc" | |
6393 | ;; | |
6394 | esac | |
6395 | ;; | |
6396 | *64-bit*) | |
6397 | case $host in | |
6398 | x86_64-*linux*) | |
6399 | LD="${LD-ld} -m elf_x86_64" | |
6400 | ;; | |
6401 | ppc*-*linux*|powerpc*-*linux*) | |
6402 | LD="${LD-ld} -m elf64ppc" | |
6403 | ;; | |
6404 | s390*-*linux*) | |
6405 | LD="${LD-ld} -m elf64_s390" | |
6406 | ;; | |
6407 | sparc*-*linux*) | |
6408 | LD="${LD-ld} -m elf64_sparc" | |
6409 | ;; | |
6410 | esac | |
6411 | ;; | |
6412 | esac | |
6413 | fi | |
6414 | rm -rf conftest* | |
6415 | ;; | |
6416 | ||
6417 | *-*-sco3.2v5*) | |
6418 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6419 | SAVE_CFLAGS="$CFLAGS" | |
6420 | CFLAGS="$CFLAGS -belf" | |
6421 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
6422 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
6423 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
6424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6425 | else | |
6426 | ||
6427 | ||
6428 | ac_ext=c | |
6429 | ac_cpp='$CPP $CPPFLAGS' | |
6430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6433 | ||
6434 | cat >conftest.$ac_ext <<_ACEOF | |
6435 | /* confdefs.h. */ | |
6436 | _ACEOF | |
6437 | cat confdefs.h >>conftest.$ac_ext | |
6438 | cat >>conftest.$ac_ext <<_ACEOF | |
6439 | /* end confdefs.h. */ | |
6440 | ||
6441 | int | |
6442 | main () | |
6443 | { | |
6444 | ||
6445 | ; | |
6446 | return 0; | |
6447 | } | |
6448 | _ACEOF | |
6449 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6451 | (eval $ac_link) 2>conftest.er1 | |
6452 | ac_status=$? | |
6453 | grep -v '^ *+' conftest.er1 >conftest.err | |
6454 | rm -f conftest.er1 | |
6455 | cat conftest.err >&5 | |
6456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6457 | (exit $ac_status); } && | |
6458 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | |
6459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6460 | (eval $ac_try) 2>&5 | |
6461 | ac_status=$? | |
6462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6463 | (exit $ac_status); }; } && | |
6464 | { ac_try='test -s conftest$ac_exeext' | |
6465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6466 | (eval $ac_try) 2>&5 | |
6467 | ac_status=$? | |
6468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6469 | (exit $ac_status); }; }; then | |
6470 | lt_cv_cc_needs_belf=yes | |
6471 | else | |
6472 | echo "$as_me: failed program was:" >&5 | |
6473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6474 | ||
6475 | lt_cv_cc_needs_belf=no | |
6476 | fi | |
6477 | rm -f conftest.err conftest.$ac_objext \ | |
6478 | conftest$ac_exeext conftest.$ac_ext | |
6479 | ac_ext=c | |
6480 | ac_cpp='$CPP $CPPFLAGS' | |
6481 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6482 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6483 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6484 | ||
6485 | fi | |
6486 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
6487 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
6488 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6489 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6490 | CFLAGS="$SAVE_CFLAGS" | |
6491 | fi | |
6492 | ;; | |
6493 | ||
6494 | ||
6495 | esac | |
6496 | ||
6497 | ||
6498 | # Save cache, so that ltconfig can load it | |
6499 | cat >confcache <<\_ACEOF | |
6500 | # This file is a shell script that caches the results of configure | |
6501 | # tests run on this system so they can be shared between configure | |
6502 | # scripts and configure runs, see configure's option --config-cache. | |
6503 | # It is not useful on other systems. If it contains results you don't | |
6504 | # want to keep, you may remove or edit it. | |
6505 | # | |
6506 | # config.status only pays attention to the cache file if you give it | |
6507 | # the --recheck option to rerun configure. | |
6508 | # | |
6509 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
6510 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6511 | # following values. | |
6512 | ||
6513 | _ACEOF | |
6514 | ||
6515 | # The following way of writing the cache mishandles newlines in values, | |
6516 | # but we know of no workaround that is simple, portable, and efficient. | |
6517 | # So, don't put newlines in cache variables' values. | |
6518 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6519 | # and sets the high bit in the cache file unless we assign to the vars. | |
6520 | { | |
6521 | (set) 2>&1 | | |
6522 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6523 | *ac_space=\ *) | |
6524 | # `set' does not quote correctly, so add quotes (double-quote | |
6525 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6526 | sed -n \ | |
6527 | "s/'/'\\\\''/g; | |
6528 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
6529 | ;; | |
6530 | *) | |
6531 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6532 | sed -n \ | |
6533 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
6534 | ;; | |
6535 | esac; | |
6536 | } | | |
6537 | sed ' | |
6538 | t clear | |
6539 | : clear | |
6540 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
6541 | t end | |
6542 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
6543 | : end' >>confcache | |
6544 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
6545 | if test -w $cache_file; then | |
6546 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
6547 | cat confcache >$cache_file | |
6548 | else | |
6549 | echo "not updating unwritable cache $cache_file" | |
6550 | fi | |
6551 | fi | |
6552 | rm -f confcache | |
6553 | ||
6554 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
6555 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
6556 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
6557 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
6558 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
6559 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
6560 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
6561 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
6562 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | |
6563 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 | |
6564 | echo "$as_me: error: libtool configure failed" >&2;} | |
6565 | { (exit 1); exit 1; }; } | |
6566 | ||
6567 | # Reload cache, that may have been modified by ltconfig | |
6568 | if test -r "$cache_file"; then | |
6569 | # Some versions of bash will fail to source /dev/null (special | |
6570 | # files actually), so we avoid doing that. | |
6571 | if test -f "$cache_file"; then | |
6572 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
6573 | echo "$as_me: loading cache $cache_file" >&6;} | |
6574 | case $cache_file in | |
6575 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
6576 | *) . ./$cache_file;; | |
6577 | esac | |
6578 | fi | |
6579 | else | |
6580 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
6581 | echo "$as_me: creating cache $cache_file" >&6;} | |
6582 | >$cache_file | |
6583 | fi | |
6584 | ||
6585 | ||
6586 | # This can be used to rebuild libtool when needed | |
6587 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | |
6588 | ||
6589 | # Always use our own libtool. | |
6590 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6591 | ||
6592 | # Redirect the config.log output again, so that the ltconfig log is not | |
6593 | # clobbered by the next message. | |
6594 | exec 5>>./config.log | |
6595 | ||
6596 | ||
6597 | ||
6598 | ||
6599 | ||
6600 | ||
6601 | ||
6602 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
6603 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
6604 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
6605 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
6606 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6607 | else | |
6608 | cat >conftest.make <<\_ACEOF | |
6609 | all: | |
6610 | @echo 'ac_maketemp="$(MAKE)"' | |
6611 | _ACEOF | |
6612 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
6613 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
6614 | if test -n "$ac_maketemp"; then | |
6615 | eval ac_cv_prog_make_${ac_make}_set=yes | |
6616 | else | |
6617 | eval ac_cv_prog_make_${ac_make}_set=no | |
6618 | fi | |
6619 | rm -f conftest.make | |
6620 | fi | |
6621 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
6622 | echo "$as_me:$LINENO: result: yes" >&5 | |
6623 | echo "${ECHO_T}yes" >&6 | |
6624 | SET_MAKE= | |
6625 | else | |
6626 | echo "$as_me:$LINENO: result: no" >&5 | |
6627 | echo "${ECHO_T}no" >&6 | |
6628 | SET_MAKE="MAKE=${MAKE-make}" | |
6629 | fi | |
6630 | ||
6631 | # Find a good install program. We prefer a C program (faster), | |
6632 | # so one script is as good as another. But avoid the broken or | |
6633 | # incompatible versions: | |
6634 | # SysV /etc/install, /usr/sbin/install | |
6635 | # SunOS /usr/etc/install | |
6636 | # IRIX /sbin/install | |
6637 | # AIX /bin/install | |
6638 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
6639 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
6640 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
6641 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
6642 | # OS/2's system install, which has a completely different semantic | |
6643 | # ./install, which can be erroneously created by make from ./install.sh. | |
6644 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
6645 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
6646 | if test -z "$INSTALL"; then | |
6647 | if test "${ac_cv_path_install+set}" = set; then | |
6648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6649 | else | |
6650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6651 | for as_dir in $PATH | |
6652 | do | |
6653 | IFS=$as_save_IFS | |
6654 | test -z "$as_dir" && as_dir=. | |
6655 | # Account for people who put trailing slashes in PATH elements. | |
6656 | case $as_dir/ in | |
6657 | ./ | .// | /cC/* | \ | |
6658 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
6659 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
6660 | /usr/ucb/* ) ;; | |
6661 | *) | |
6662 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
6663 | # Don't use installbsd from OSF since it installs stuff as root | |
6664 | # by default. | |
6665 | for ac_prog in ginstall scoinst install; do | |
6666 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6667 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
6668 | if test $ac_prog = install && | |
6669 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6670 | # AIX install. It has an incompatible calling convention. | |
6671 | : | |
6672 | elif test $ac_prog = install && | |
6673 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
6674 | # program-specific install script used by HP pwplus--don't use. | |
6675 | : | |
6676 | else | |
6677 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
6678 | break 3 | |
6679 | fi | |
6680 | fi | |
6681 | done | |
6682 | done | |
6683 | ;; | |
6684 | esac | |
6685 | done | |
6686 | ||
6687 | ||
6688 | fi | |
6689 | if test "${ac_cv_path_install+set}" = set; then | |
6690 | INSTALL=$ac_cv_path_install | |
6691 | else | |
6692 | # As a last resort, use the slow shell script. We don't cache a | |
6693 | # path for INSTALL within a source directory, because that will | |
6694 | # break other packages using the cache if that directory is | |
6695 | # removed, or if the path is relative. | |
6696 | INSTALL=$ac_install_sh | |
6697 | fi | |
6698 | fi | |
6699 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
6700 | echo "${ECHO_T}$INSTALL" >&6 | |
6701 | ||
6702 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
6703 | # It thinks the first close brace ends the variable substitution. | |
6704 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6705 | ||
6706 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
6707 | ||
6708 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
6709 | ||
6710 | ||
6711 | ac_config_files="$ac_config_files Makefile" | |
6712 | cat >confcache <<\_ACEOF | |
6713 | # This file is a shell script that caches the results of configure | |
6714 | # tests run on this system so they can be shared between configure | |
6715 | # scripts and configure runs, see configure's option --config-cache. | |
6716 | # It is not useful on other systems. If it contains results you don't | |
6717 | # want to keep, you may remove or edit it. | |
6718 | # | |
6719 | # config.status only pays attention to the cache file if you give it | |
6720 | # the --recheck option to rerun configure. | |
6721 | # | |
6722 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
6723 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6724 | # following values. | |
6725 | ||
6726 | _ACEOF | |
6727 | ||
6728 | # The following way of writing the cache mishandles newlines in values, | |
6729 | # but we know of no workaround that is simple, portable, and efficient. | |
6730 | # So, don't put newlines in cache variables' values. | |
6731 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6732 | # and sets the high bit in the cache file unless we assign to the vars. | |
6733 | { | |
6734 | (set) 2>&1 | | |
6735 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6736 | *ac_space=\ *) | |
6737 | # `set' does not quote correctly, so add quotes (double-quote | |
6738 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6739 | sed -n \ | |
6740 | "s/'/'\\\\''/g; | |
6741 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
6742 | ;; | |
6743 | *) | |
6744 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6745 | sed -n \ | |
6746 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
6747 | ;; | |
6748 | esac; | |
6749 | } | | |
6750 | sed ' | |
6751 | t clear | |
6752 | : clear | |
6753 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
6754 | t end | |
6755 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
6756 | : end' >>confcache | |
6757 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
6758 | if test -w $cache_file; then | |
6759 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
6760 | cat confcache >$cache_file | |
6761 | else | |
6762 | echo "not updating unwritable cache $cache_file" | |
6763 | fi | |
6764 | fi | |
6765 | rm -f confcache | |
6766 | ||
6767 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6768 | # Let make expand exec_prefix. | |
6769 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6770 | ||
6771 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
6772 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
6773 | # trailing colons and then remove the whole line if VPATH becomes empty | |
6774 | # (actually we leave an empty line to preserve line numbers). | |
6775 | if test "x$srcdir" = x.; then | |
6776 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
6777 | s/:*\$(srcdir):*/:/; | |
6778 | s/:*\${srcdir}:*/:/; | |
6779 | s/:*@srcdir@:*/:/; | |
6780 | s/^\([^=]*=[ ]*\):*/\1/; | |
6781 | s/:*$//; | |
6782 | s/^[^=]*=[ ]*$//; | |
6783 | }' | |
6784 | fi | |
6785 | ||
6786 | DEFS=-DHAVE_CONFIG_H | |
6787 | ||
6788 | ac_libobjs= | |
6789 | ac_ltlibobjs= | |
6790 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6791 | # 1. Remove the extension, and $U if already installed. | |
6792 | ac_i=`echo "$ac_i" | | |
6793 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
6794 | # 2. Add them. | |
6795 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
6796 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
6797 | done | |
6798 | LIBOBJS=$ac_libobjs | |
6799 | ||
6800 | LTLIBOBJS=$ac_ltlibobjs | |
6801 | ||
6802 | ||
6803 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
6804 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
6805 | Usually this means the macro was only invoked conditionally." >&5 | |
6806 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
6807 | Usually this means the macro was only invoked conditionally." >&2;} | |
6808 | { (exit 1); exit 1; }; } | |
6809 | fi | |
6810 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
6811 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
6812 | Usually this means the macro was only invoked conditionally." >&5 | |
6813 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
6814 | Usually this means the macro was only invoked conditionally." >&2;} | |
6815 | { (exit 1); exit 1; }; } | |
6816 | fi | |
6817 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
6818 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
6819 | Usually this means the macro was only invoked conditionally." >&5 | |
6820 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
6821 | Usually this means the macro was only invoked conditionally." >&2;} | |
6822 | { (exit 1); exit 1; }; } | |
6823 | fi | |
6824 | ||
6825 | : ${CONFIG_STATUS=./config.status} | |
6826 | ac_clean_files_save=$ac_clean_files | |
6827 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6828 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
6829 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6830 | cat >$CONFIG_STATUS <<_ACEOF | |
6831 | #! $SHELL | |
6832 | # Generated by $as_me. | |
6833 | # Run this file to recreate the current configuration. | |
6834 | # Compiler output produced by configure, useful for debugging | |
6835 | # configure, is in config.log if it exists. | |
6836 | ||
6837 | debug=false | |
6838 | ac_cs_recheck=false | |
6839 | ac_cs_silent=false | |
6840 | SHELL=\${CONFIG_SHELL-$SHELL} | |
6841 | _ACEOF | |
6842 | ||
6843 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6844 | ## --------------------- ## | |
6845 | ## M4sh Initialization. ## | |
6846 | ## --------------------- ## | |
6847 | ||
6848 | # Be Bourne compatible | |
6849 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
6850 | emulate sh | |
6851 | NULLCMD=: | |
6852 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
6853 | # is contrary to our usage. Disable this feature. | |
6854 | alias -g '${1+"$@"}'='"$@"' | |
6855 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
6856 | set -o posix | |
6857 | fi | |
6858 | DUALCASE=1; export DUALCASE # for MKS sh | |
6859 | ||
6860 | # Support unset when possible. | |
6861 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6862 | as_unset=unset | |
6863 | else | |
6864 | as_unset=false | |
6865 | fi | |
6866 | ||
6867 | ||
6868 | # Work around bugs in pre-3.0 UWIN ksh. | |
6869 | $as_unset ENV MAIL MAILPATH | |
6870 | PS1='$ ' | |
6871 | PS2='> ' | |
6872 | PS4='+ ' | |
6873 | ||
6874 | # NLS nuisances. | |
6875 | for as_var in \ | |
6876 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
6877 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
6878 | LC_TELEPHONE LC_TIME | |
6879 | do | |
6880 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
6881 | eval $as_var=C; export $as_var | |
6882 | else | |
6883 | $as_unset $as_var | |
6884 | fi | |
6885 | done | |
6886 | ||
6887 | # Required to use basename. | |
6888 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
6889 | as_expr=expr | |
6890 | else | |
6891 | as_expr=false | |
6892 | fi | |
6893 | ||
6894 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
6895 | as_basename=basename | |
6896 | else | |
6897 | as_basename=false | |
6898 | fi | |
6899 | ||
6900 | ||
6901 | # Name of the executable. | |
6902 | as_me=`$as_basename "$0" || | |
6903 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
6904 | X"$0" : 'X\(//\)$' \| \ | |
6905 | X"$0" : 'X\(/\)$' \| \ | |
6906 | . : '\(.\)' 2>/dev/null || | |
6907 | echo X/"$0" | | |
6908 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
6909 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
6910 | /^X\/\(\/\).*/{ s//\1/; q; } | |
6911 | s/.*/./; q'` | |
6912 | ||
6913 | ||
6914 | # PATH needs CR, and LINENO needs CR and PATH. | |
6915 | # Avoid depending upon Character Ranges. | |
6916 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
6917 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
6918 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
6919 | as_cr_digits='0123456789' | |
6920 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
6921 | ||
6922 | # The user is always right. | |
6923 | if test "${PATH_SEPARATOR+set}" != set; then | |
6924 | echo "#! /bin/sh" >conf$$.sh | |
6925 | echo "exit 0" >>conf$$.sh | |
6926 | chmod +x conf$$.sh | |
6927 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
6928 | PATH_SEPARATOR=';' | |
6929 | else | |
6930 | PATH_SEPARATOR=: | |
6931 | fi | |
6932 | rm -f conf$$.sh | |
6933 | fi | |
6934 | ||
6935 | ||
6936 | as_lineno_1=$LINENO | |
6937 | as_lineno_2=$LINENO | |
6938 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6939 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
6940 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
6941 | # Find who we are. Look in the path if we contain no path at all | |
6942 | # relative or not. | |
6943 | case $0 in | |
6944 | *[\\/]* ) as_myself=$0 ;; | |
6945 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6946 | for as_dir in $PATH | |
6947 | do | |
6948 | IFS=$as_save_IFS | |
6949 | test -z "$as_dir" && as_dir=. | |
6950 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
6951 | done | |
6952 | ||
6953 | ;; | |
6954 | esac | |
6955 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
6956 | # in which case we are not to be found in the path. | |
6957 | if test "x$as_myself" = x; then | |
6958 | as_myself=$0 | |
6959 | fi | |
6960 | if test ! -f "$as_myself"; then | |
6961 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
6962 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
6963 | { (exit 1); exit 1; }; } | |
6964 | fi | |
6965 | case $CONFIG_SHELL in | |
6966 | '') | |
6967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6968 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
6969 | do | |
6970 | IFS=$as_save_IFS | |
6971 | test -z "$as_dir" && as_dir=. | |
6972 | for as_base in sh bash ksh sh5; do | |
6973 | case $as_dir in | |
6974 | /*) | |
6975 | if ("$as_dir/$as_base" -c ' | |
6976 | as_lineno_1=$LINENO | |
6977 | as_lineno_2=$LINENO | |
6978 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
6979 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
6980 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
6981 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
6982 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
6983 | CONFIG_SHELL=$as_dir/$as_base | |
6984 | export CONFIG_SHELL | |
6985 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
6986 | fi;; | |
6987 | esac | |
6988 | done | |
6989 | done | |
6990 | ;; | |
6991 | esac | |
6992 | ||
6993 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
6994 | # uniformly replaced by the line number. The first 'sed' inserts a | |
6995 | # line-number line before each line; the second 'sed' does the real | |
6996 | # work. The second script uses 'N' to pair each line-number line | |
6997 | # with the numbered line, and appends trailing '-' during | |
6998 | # substitution so that $LINENO is not a special case at line end. | |
6999 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7000 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
7001 | sed '=' <$as_myself | | |
7002 | sed ' | |
7003 | N | |
7004 | s,$,-, | |
7005 | : loop | |
7006 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
7007 | t loop | |
7008 | s,-$,, | |
7009 | s,^['$as_cr_digits']*\n,, | |
7010 | ' >$as_me.lineno && | |
7011 | chmod +x $as_me.lineno || | |
7012 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
7013 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
7014 | { (exit 1); exit 1; }; } | |
7015 | ||
7016 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7017 | # (the dirname of $[0] is not the place where we might find the | |
7018 | # original and so on. Autoconf is especially sensible to this). | |
7019 | . ./$as_me.lineno | |
7020 | # Exit status is that of the last command. | |
7021 | exit | |
7022 | } | |
7023 | ||
7024 | ||
7025 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
7026 | *c*,-n*) ECHO_N= ECHO_C=' | |
7027 | ' ECHO_T=' ' ;; | |
7028 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
7029 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
7030 | esac | |
7031 | ||
7032 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7033 | as_expr=expr | |
7034 | else | |
7035 | as_expr=false | |
7036 | fi | |
7037 | ||
7038 | rm -f conf$$ conf$$.exe conf$$.file | |
7039 | echo >conf$$.file | |
7040 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7041 | # We could just check for DJGPP; but this test a) works b) is more generic | |
7042 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
7043 | if test -f conf$$.exe; then | |
7044 | # Don't use ln at all; we don't have any links | |
7045 | as_ln_s='cp -p' | |
7046 | else | |
7047 | as_ln_s='ln -s' | |
7048 | fi | |
7049 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7050 | as_ln_s=ln | |
7051 | else | |
7052 | as_ln_s='cp -p' | |
7053 | fi | |
7054 | rm -f conf$$ conf$$.exe conf$$.file | |
7055 | ||
7056 | if mkdir -p . 2>/dev/null; then | |
7057 | as_mkdir_p=: | |
7058 | else | |
7059 | test -d ./-p && rmdir ./-p | |
7060 | as_mkdir_p=false | |
7061 | fi | |
7062 | ||
7063 | as_executable_p="test -f" | |
7064 | ||
7065 | # Sed expression to map a string onto a valid CPP name. | |
7066 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7067 | ||
7068 | # Sed expression to map a string onto a valid variable name. | |
7069 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7070 | ||
7071 | ||
7072 | # IFS | |
7073 | # We need space, tab and new line, in precisely that order. | |
7074 | as_nl=' | |
7075 | ' | |
7076 | IFS=" $as_nl" | |
7077 | ||
7078 | # CDPATH. | |
7079 | $as_unset CDPATH | |
7080 | ||
7081 | exec 6>&1 | |
7082 | ||
7083 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
7084 | # report actual input values of CONFIG_FILES etc. instead of their | |
7085 | # values after options handling. Logging --version etc. is OK. | |
7086 | exec 5>>config.log | |
7087 | { | |
7088 | echo | |
7089 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7090 | ## Running $as_me. ## | |
7091 | _ASBOX | |
7092 | } >&5 | |
7093 | cat >&5 <<_CSEOF | |
7094 | ||
7095 | This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was | |
7096 | generated by GNU Autoconf 2.59. Invocation command line was | |
7097 | ||
7098 | CONFIG_FILES = $CONFIG_FILES | |
7099 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7100 | CONFIG_LINKS = $CONFIG_LINKS | |
7101 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7102 | $ $0 $@ | |
7103 | ||
7104 | _CSEOF | |
7105 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
7106 | echo >&5 | |
7107 | _ACEOF | |
7108 | ||
7109 | # Files that config.status was made for. | |
7110 | if test -n "$ac_config_files"; then | |
7111 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
7112 | fi | |
7113 | ||
7114 | if test -n "$ac_config_headers"; then | |
7115 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
7116 | fi | |
7117 | ||
7118 | if test -n "$ac_config_links"; then | |
7119 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7120 | fi | |
7121 | ||
7122 | if test -n "$ac_config_commands"; then | |
7123 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7124 | fi | |
7125 | ||
7126 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7127 | ||
7128 | ac_cs_usage="\ | |
7129 | \`$as_me' instantiates files from templates according to the | |
7130 | current configuration. | |
7131 | ||
7132 | Usage: $0 [OPTIONS] [FILE]... | |
7133 | ||
7134 | -h, --help print this help, then exit | |
7135 | -V, --version print version number, then exit | |
7136 | -q, --quiet do not print progress messages | |
7137 | -d, --debug don't remove temporary files | |
7138 | --recheck update $as_me by reconfiguring in the same conditions | |
7139 | --file=FILE[:TEMPLATE] | |
7140 | instantiate the configuration file FILE | |
7141 | --header=FILE[:TEMPLATE] | |
7142 | instantiate the configuration header FILE | |
7143 | ||
7144 | Configuration files: | |
7145 | $config_files | |
7146 | ||
7147 | Configuration headers: | |
7148 | $config_headers | |
7149 | ||
7150 | Configuration commands: | |
7151 | $config_commands | |
7152 | ||
7153 | Report bugs to <bug-autoconf@gnu.org>." | |
7154 | _ACEOF | |
7155 | ||
7156 | cat >>$CONFIG_STATUS <<_ACEOF | |
7157 | ac_cs_version="\\ | |
7158 | GNU Fortran Runtime Library config.status 0.2 | |
7159 | configured by $0, generated by GNU Autoconf 2.59, | |
7160 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
7161 | ||
7162 | Copyright (C) 2003 Free Software Foundation, Inc. | |
7163 | This config.status script is free software; the Free Software Foundation | |
7164 | gives unlimited permission to copy, distribute and modify it." | |
7165 | srcdir=$srcdir | |
7166 | INSTALL="$INSTALL" | |
7167 | _ACEOF | |
7168 | ||
7169 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7170 | # If no file are specified by the user, then we need to provide default | |
7171 | # value. By we need to know if files were specified by the user. | |
7172 | ac_need_defaults=: | |
7173 | while test $# != 0 | |
7174 | do | |
7175 | case $1 in | |
7176 | --*=*) | |
7177 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
7178 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
7179 | ac_shift=: | |
7180 | ;; | |
7181 | -*) | |
7182 | ac_option=$1 | |
7183 | ac_optarg=$2 | |
7184 | ac_shift=shift | |
7185 | ;; | |
7186 | *) # This is not an option, so the user has probably given explicit | |
7187 | # arguments. | |
7188 | ac_option=$1 | |
7189 | ac_need_defaults=false;; | |
7190 | esac | |
7191 | ||
7192 | case $ac_option in | |
7193 | # Handling of the options. | |
7194 | _ACEOF | |
7195 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7196 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
7197 | ac_cs_recheck=: ;; | |
7198 | --version | --vers* | -V ) | |
7199 | echo "$ac_cs_version"; exit 0 ;; | |
7200 | --he | --h) | |
7201 | # Conflict between --help and --header | |
7202 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
7203 | Try \`$0 --help' for more information." >&5 | |
7204 | echo "$as_me: error: ambiguous option: $1 | |
7205 | Try \`$0 --help' for more information." >&2;} | |
7206 | { (exit 1); exit 1; }; };; | |
7207 | --help | --hel | -h ) | |
7208 | echo "$ac_cs_usage"; exit 0 ;; | |
7209 | --debug | --d* | -d ) | |
7210 | debug=: ;; | |
7211 | --file | --fil | --fi | --f ) | |
7212 | $ac_shift | |
7213 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
7214 | ac_need_defaults=false;; | |
7215 | --header | --heade | --head | --hea ) | |
7216 | $ac_shift | |
7217 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
7218 | ac_need_defaults=false;; | |
7219 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
7220 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7221 | ac_cs_silent=: ;; | |
7222 | ||
7223 | # This is an error. | |
7224 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
7225 | Try \`$0 --help' for more information." >&5 | |
7226 | echo "$as_me: error: unrecognized option: $1 | |
7227 | Try \`$0 --help' for more information." >&2;} | |
7228 | { (exit 1); exit 1; }; } ;; | |
7229 | ||
7230 | *) ac_config_targets="$ac_config_targets $1" ;; | |
7231 | ||
7232 | esac | |
7233 | shift | |
7234 | done | |
7235 | ||
7236 | ac_configure_extra_args= | |
7237 | ||
7238 | if $ac_cs_silent; then | |
7239 | exec 6>/dev/null | |
7240 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7241 | fi | |
7242 | ||
7243 | _ACEOF | |
7244 | cat >>$CONFIG_STATUS <<_ACEOF | |
7245 | if \$ac_cs_recheck; then | |
7246 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
7247 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7248 | fi | |
7249 | ||
7250 | _ACEOF | |
7251 | ||
7252 | cat >>$CONFIG_STATUS <<_ACEOF | |
7253 | # | |
7254 | # INIT-COMMANDS section. | |
7255 | # | |
7256 | ||
7257 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
7258 | ||
7259 | _ACEOF | |
7260 | ||
7261 | ||
7262 | ||
7263 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7264 | for ac_config_target in $ac_config_targets | |
7265 | do | |
7266 | case "$ac_config_target" in | |
7267 | # Handling of arguments. | |
7268 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7269 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
7270 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
7271 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
7272 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
7273 | { (exit 1); exit 1; }; };; | |
7274 | esac | |
7275 | done | |
7276 | ||
7277 | # If the user did not use the arguments to specify the items to instantiate, | |
7278 | # then the envvar interface is used. Set only those that are not. | |
7279 | # We use the long form for the default assignment because of an extremely | |
7280 | # bizarre bug on SunOS 4.1.3. | |
7281 | if $ac_need_defaults; then | |
7282 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7283 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7284 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7285 | fi | |
7286 | ||
7287 | # Have a temporary directory for convenience. Make it in the build tree | |
7288 | # simply because there is no reason to put it here, and in addition, | |
7289 | # creating and moving files from /tmp can sometimes cause problems. | |
7290 | # Create a temporary directory, and hook for its removal unless debugging. | |
7291 | $debug || | |
7292 | { | |
7293 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7294 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
7295 | } | |
7296 | ||
7297 | # Create a (secure) tmp directory for tmp files. | |
7298 | ||
7299 | { | |
7300 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
7301 | test -n "$tmp" && test -d "$tmp" | |
7302 | } || | |
7303 | { | |
7304 | tmp=./confstat$$-$RANDOM | |
7305 | (umask 077 && mkdir $tmp) | |
7306 | } || | |
7307 | { | |
7308 | echo "$me: cannot create a temporary directory in ." >&2 | |
7309 | { (exit 1); exit 1; } | |
7310 | } | |
7311 | ||
7312 | _ACEOF | |
7313 | ||
7314 | cat >>$CONFIG_STATUS <<_ACEOF | |
7315 | ||
7316 | # | |
7317 | # CONFIG_FILES section. | |
7318 | # | |
7319 | ||
7320 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7321 | # This happens for instance when ./config.status config.h | |
7322 | if test -n "\$CONFIG_FILES"; then | |
7323 | # Protect against being on the right side of a sed subst in config.status. | |
7324 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7325 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7326 | s,@SHELL@,$SHELL,;t t | |
7327 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
7328 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7329 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7330 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7331 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7332 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
7333 | s,@exec_prefix@,$exec_prefix,;t t | |
7334 | s,@prefix@,$prefix,;t t | |
7335 | s,@program_transform_name@,$program_transform_name,;t t | |
7336 | s,@bindir@,$bindir,;t t | |
7337 | s,@sbindir@,$sbindir,;t t | |
7338 | s,@libexecdir@,$libexecdir,;t t | |
7339 | s,@datadir@,$datadir,;t t | |
7340 | s,@sysconfdir@,$sysconfdir,;t t | |
7341 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7342 | s,@localstatedir@,$localstatedir,;t t | |
7343 | s,@libdir@,$libdir,;t t | |
7344 | s,@includedir@,$includedir,;t t | |
7345 | s,@oldincludedir@,$oldincludedir,;t t | |
7346 | s,@infodir@,$infodir,;t t | |
7347 | s,@mandir@,$mandir,;t t | |
7348 | s,@build_alias@,$build_alias,;t t | |
7349 | s,@host_alias@,$host_alias,;t t | |
7350 | s,@target_alias@,$target_alias,;t t | |
7351 | s,@DEFS@,$DEFS,;t t | |
7352 | s,@ECHO_C@,$ECHO_C,;t t | |
7353 | s,@ECHO_N@,$ECHO_N,;t t | |
7354 | s,@ECHO_T@,$ECHO_T,;t t | |
7355 | s,@LIBS@,$LIBS,;t t | |
7356 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
7357 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7358 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7359 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
7360 | s,@PACKAGE@,$PACKAGE,;t t | |
7361 | s,@VERSION@,$VERSION,;t t | |
7362 | s,@ACLOCAL@,$ACLOCAL,;t t | |
7363 | s,@AUTOCONF@,$AUTOCONF,;t t | |
7364 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
7365 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
7366 | s,@MAKEINFO@,$MAKEINFO,;t t | |
7367 | s,@AMTAR@,$AMTAR,;t t | |
7368 | s,@install_sh@,$install_sh,;t t | |
7369 | s,@STRIP@,$STRIP,;t t | |
7370 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
7371 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
7372 | s,@mkdir_p@,$mkdir_p,;t t | |
7373 | s,@AWK@,$AWK,;t t | |
7374 | s,@SET_MAKE@,$SET_MAKE,;t t | |
7375 | s,@am__leading_dot@,$am__leading_dot,;t t | |
7376 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
7377 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
7378 | s,@MAINT@,$MAINT,;t t | |
7379 | s,@enable_shared@,$enable_shared,;t t | |
7380 | s,@enable_static@,$enable_static,;t t | |
7381 | s,@CC@,$CC,;t t | |
7382 | s,@CFLAGS@,$CFLAGS,;t t | |
7383 | s,@LDFLAGS@,$LDFLAGS,;t t | |
7384 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
7385 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
7386 | s,@EXEEXT@,$EXEEXT,;t t | |
7387 | s,@OBJEXT@,$OBJEXT,;t t | |
7388 | s,@DEPDIR@,$DEPDIR,;t t | |
7389 | s,@am__include@,$am__include,;t t | |
7390 | s,@am__quote@,$am__quote,;t t | |
7391 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
7392 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
7393 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
7394 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
7395 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
7396 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
7397 | s,@F77@,$F77,;t t | |
7398 | s,@FFLAGS@,$FFLAGS,;t t | |
7399 | s,@ac_ct_F77@,$ac_ct_F77,;t t | |
7400 | s,@CPP@,$CPP,;t t | |
7401 | s,@EGREP@,$EGREP,;t t | |
7402 | s,@MATH_OBJ@,$MATH_OBJ,;t t | |
7403 | s,@AR@,$AR,;t t | |
7404 | s,@RANLIB@,$RANLIB,;t t | |
7405 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
7406 | s,@build@,$build,;t t | |
7407 | s,@build_cpu@,$build_cpu,;t t | |
7408 | s,@build_vendor@,$build_vendor,;t t | |
7409 | s,@build_os@,$build_os,;t t | |
7410 | s,@host@,$host,;t t | |
7411 | s,@host_cpu@,$host_cpu,;t t | |
7412 | s,@host_vendor@,$host_vendor,;t t | |
7413 | s,@host_os@,$host_os,;t t | |
7414 | s,@LN_S@,$LN_S,;t t | |
7415 | s,@LIBTOOL@,$LIBTOOL,;t t | |
7416 | s,@LIBOBJS@,$LIBOBJS,;t t | |
7417 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
7418 | CEOF | |
7419 | ||
7420 | _ACEOF | |
7421 | ||
7422 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7423 | # Split the substitutions into bite-sized pieces for seds with | |
7424 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7425 | ac_max_sed_lines=48 | |
7426 | ac_sed_frag=1 # Number of current file. | |
7427 | ac_beg=1 # First line for current file. | |
7428 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7429 | ac_more_lines=: | |
7430 | ac_sed_cmds= | |
7431 | while $ac_more_lines; do | |
7432 | if test $ac_beg -gt 1; then | |
7433 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7434 | else | |
7435 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7436 | fi | |
7437 | if test ! -s $tmp/subs.frag; then | |
7438 | ac_more_lines=false | |
7439 | else | |
7440 | # The purpose of the label and of the branching condition is to | |
7441 | # speed up the sed processing (if there are no `@' at all, there | |
7442 | # is no need to browse any of the substitutions). | |
7443 | # These are the two extra sed commands mentioned above. | |
7444 | (echo ':t | |
7445 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7446 | if test -z "$ac_sed_cmds"; then | |
7447 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
7448 | else | |
7449 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
7450 | fi | |
7451 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7452 | ac_beg=$ac_end | |
7453 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
7454 | fi | |
7455 | done | |
7456 | if test -z "$ac_sed_cmds"; then | |
7457 | ac_sed_cmds=cat | |
7458 | fi | |
7459 | fi # test -n "$CONFIG_FILES" | |
7460 | ||
7461 | _ACEOF | |
7462 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7463 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
7464 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7465 | case $ac_file in | |
7466 | - | *:- | *:-:* ) # input from stdin | |
7467 | cat >$tmp/stdin | |
7468 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7469 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7470 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7471 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7472 | * ) ac_file_in=$ac_file.in ;; | |
7473 | esac | |
7474 | ||
7475 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
7476 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7477 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7478 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7479 | X"$ac_file" : 'X\(//\)$' \| \ | |
7480 | X"$ac_file" : 'X\(/\)' \| \ | |
7481 | . : '\(.\)' 2>/dev/null || | |
7482 | echo X"$ac_file" | | |
7483 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7484 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7485 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7486 | /^X\(\/\).*/{ s//\1/; q; } | |
7487 | s/.*/./; q'` | |
7488 | { if $as_mkdir_p; then | |
7489 | mkdir -p "$ac_dir" | |
7490 | else | |
7491 | as_dir="$ac_dir" | |
7492 | as_dirs= | |
7493 | while test ! -d "$as_dir"; do | |
7494 | as_dirs="$as_dir $as_dirs" | |
7495 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7496 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7497 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7498 | X"$as_dir" : 'X\(//\)$' \| \ | |
7499 | X"$as_dir" : 'X\(/\)' \| \ | |
7500 | . : '\(.\)' 2>/dev/null || | |
7501 | echo X"$as_dir" | | |
7502 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7503 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7504 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7505 | /^X\(\/\).*/{ s//\1/; q; } | |
7506 | s/.*/./; q'` | |
7507 | done | |
7508 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7509 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7510 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7511 | { (exit 1); exit 1; }; }; } | |
7512 | ||
7513 | ac_builddir=. | |
7514 | ||
7515 | if test "$ac_dir" != .; then | |
7516 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7517 | # A "../" for each directory in $ac_dir_suffix. | |
7518 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7519 | else | |
7520 | ac_dir_suffix= ac_top_builddir= | |
7521 | fi | |
7522 | ||
7523 | case $srcdir in | |
7524 | .) # No --srcdir option. We are building in place. | |
7525 | ac_srcdir=. | |
7526 | if test -z "$ac_top_builddir"; then | |
7527 | ac_top_srcdir=. | |
7528 | else | |
7529 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7530 | fi ;; | |
7531 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7532 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7533 | ac_top_srcdir=$srcdir ;; | |
7534 | *) # Relative path. | |
7535 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7536 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7537 | esac | |
7538 | ||
7539 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7540 | # the directories may not exist. | |
7541 | case `pwd` in | |
7542 | .) ac_abs_builddir="$ac_dir";; | |
7543 | *) | |
7544 | case "$ac_dir" in | |
7545 | .) ac_abs_builddir=`pwd`;; | |
7546 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7547 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7548 | esac;; | |
7549 | esac | |
7550 | case $ac_abs_builddir in | |
7551 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7552 | *) | |
7553 | case ${ac_top_builddir}. in | |
7554 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7555 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7556 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7557 | esac;; | |
7558 | esac | |
7559 | case $ac_abs_builddir in | |
7560 | .) ac_abs_srcdir=$ac_srcdir;; | |
7561 | *) | |
7562 | case $ac_srcdir in | |
7563 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7564 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7565 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7566 | esac;; | |
7567 | esac | |
7568 | case $ac_abs_builddir in | |
7569 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7570 | *) | |
7571 | case $ac_top_srcdir in | |
7572 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7573 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7574 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7575 | esac;; | |
7576 | esac | |
7577 | ||
7578 | ||
7579 | case $INSTALL in | |
7580 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7581 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
7582 | esac | |
7583 | ||
7584 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7585 | # use $as_me), people would be surprised to read: | |
7586 | # /* config.h. Generated by config.status. */ | |
7587 | if test x"$ac_file" = x-; then | |
7588 | configure_input= | |
7589 | else | |
7590 | configure_input="$ac_file. " | |
7591 | fi | |
7592 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
7593 | sed 's,.*/,,'` by configure." | |
7594 | ||
7595 | # First look for the input files in the build tree, otherwise in the | |
7596 | # src tree. | |
7597 | ac_file_inputs=`IFS=: | |
7598 | for f in $ac_file_in; do | |
7599 | case $f in | |
7600 | -) echo $tmp/stdin ;; | |
7601 | [\\/$]*) | |
7602 | # Absolute (can't be DOS-style, as IFS=:) | |
7603 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7604 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7605 | { (exit 1); exit 1; }; } | |
7606 | echo "$f";; | |
7607 | *) # Relative | |
7608 | if test -f "$f"; then | |
7609 | # Build tree | |
7610 | echo "$f" | |
7611 | elif test -f "$srcdir/$f"; then | |
7612 | # Source tree | |
7613 | echo "$srcdir/$f" | |
7614 | else | |
7615 | # /dev/null tree | |
7616 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7617 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7618 | { (exit 1); exit 1; }; } | |
7619 | fi;; | |
7620 | esac | |
7621 | done` || { (exit 1); exit 1; } | |
7622 | ||
7623 | if test x"$ac_file" != x-; then | |
7624 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7625 | echo "$as_me: creating $ac_file" >&6;} | |
7626 | rm -f "$ac_file" | |
7627 | fi | |
7628 | _ACEOF | |
7629 | cat >>$CONFIG_STATUS <<_ACEOF | |
7630 | sed "$ac_vpsub | |
7631 | $extrasub | |
7632 | _ACEOF | |
7633 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7634 | :t | |
7635 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7636 | s,@configure_input@,$configure_input,;t t | |
7637 | s,@srcdir@,$ac_srcdir,;t t | |
7638 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
7639 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
7640 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
7641 | s,@builddir@,$ac_builddir,;t t | |
7642 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
7643 | s,@top_builddir@,$ac_top_builddir,;t t | |
7644 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
7645 | s,@INSTALL@,$ac_INSTALL,;t t | |
7646 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7647 | rm -f $tmp/stdin | |
7648 | if test x"$ac_file" != x-; then | |
7649 | mv $tmp/out $ac_file | |
7650 | else | |
7651 | cat $tmp/out | |
7652 | rm -f $tmp/out | |
7653 | fi | |
7654 | ||
7655 | done | |
7656 | _ACEOF | |
7657 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7658 | ||
7659 | # | |
7660 | # CONFIG_HEADER section. | |
7661 | # | |
7662 | ||
7663 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7664 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7665 | # | |
7666 | # ac_d sets the value in "#define NAME VALUE" lines. | |
7667 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
7668 | ac_dB='[ ].*$,\1#\2' | |
7669 | ac_dC=' ' | |
7670 | ac_dD=',;t' | |
7671 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
7672 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
7673 | ac_uB='$,\1#\2define\3' | |
7674 | ac_uC=' ' | |
7675 | ac_uD=',;t' | |
7676 | ||
7677 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
7678 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7679 | case $ac_file in | |
7680 | - | *:- | *:-:* ) # input from stdin | |
7681 | cat >$tmp/stdin | |
7682 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7683 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7684 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7685 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7686 | * ) ac_file_in=$ac_file.in ;; | |
7687 | esac | |
7688 | ||
7689 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7690 | echo "$as_me: creating $ac_file" >&6;} | |
7691 | ||
7692 | # First look for the input files in the build tree, otherwise in the | |
7693 | # src tree. | |
7694 | ac_file_inputs=`IFS=: | |
7695 | for f in $ac_file_in; do | |
7696 | case $f in | |
7697 | -) echo $tmp/stdin ;; | |
7698 | [\\/$]*) | |
7699 | # Absolute (can't be DOS-style, as IFS=:) | |
7700 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7701 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7702 | { (exit 1); exit 1; }; } | |
7703 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
7704 | echo "$f";; | |
7705 | *) # Relative | |
7706 | if test -f "$f"; then | |
7707 | # Build tree | |
7708 | echo "$f" | |
7709 | elif test -f "$srcdir/$f"; then | |
7710 | # Source tree | |
7711 | echo "$srcdir/$f" | |
7712 | else | |
7713 | # /dev/null tree | |
7714 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7715 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7716 | { (exit 1); exit 1; }; } | |
7717 | fi;; | |
7718 | esac | |
7719 | done` || { (exit 1); exit 1; } | |
7720 | # Remove the trailing spaces. | |
7721 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
7722 | ||
7723 | _ACEOF | |
7724 | ||
7725 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
7726 | # `conftest.undefs', that substitutes the proper values into | |
7727 | # config.h.in to produce config.h. The first handles `#define' | |
7728 | # templates, and the second `#undef' templates. | |
7729 | # And first: Protect against being on the right side of a sed subst in | |
7730 | # config.status. Protect against being in an unquoted here document | |
7731 | # in config.status. | |
7732 | rm -f conftest.defines conftest.undefs | |
7733 | # Using a here document instead of a string reduces the quoting nightmare. | |
7734 | # Putting comments in sed scripts is not portable. | |
7735 | # | |
7736 | # `end' is used to avoid that the second main sed command (meant for | |
7737 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
7738 | # See the Autoconf documentation for `clear'. | |
7739 | cat >confdef2sed.sed <<\_ACEOF | |
7740 | s/[\\&,]/\\&/g | |
7741 | s,[\\$`],\\&,g | |
7742 | t clear | |
7743 | : clear | |
7744 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
7745 | t end | |
7746 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
7747 | : end | |
7748 | _ACEOF | |
7749 | # If some macros were called several times there might be several times | |
7750 | # the same #defines, which is useless. Nevertheless, we may not want to | |
7751 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
7752 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
7753 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
7754 | rm -f confdef2sed.sed | |
7755 | ||
7756 | # This sed command replaces #undef with comments. This is necessary, for | |
7757 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7758 | # on some systems where configure will not decide to define it. | |
7759 | cat >>conftest.undefs <<\_ACEOF | |
7760 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
7761 | _ACEOF | |
7762 | ||
7763 | # Break up conftest.defines because some shells have a limit on the size | |
7764 | # of here documents, and old seds have small limits too (100 cmds). | |
7765 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
7766 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
7767 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
7768 | echo ' :' >>$CONFIG_STATUS | |
7769 | rm -f conftest.tail | |
7770 | while grep . conftest.defines >/dev/null | |
7771 | do | |
7772 | # Write a limited-size here document to $tmp/defines.sed. | |
7773 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
7774 | # Speed up: don't consider the non `#define' lines. | |
7775 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
7776 | # Work around the forget-to-reset-the-flag bug. | |
7777 | echo 't clr' >>$CONFIG_STATUS | |
7778 | echo ': clr' >>$CONFIG_STATUS | |
7779 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
7780 | echo 'CEOF | |
7781 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
7782 | rm -f $tmp/in | |
7783 | mv $tmp/out $tmp/in | |
7784 | ' >>$CONFIG_STATUS | |
7785 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
7786 | rm -f conftest.defines | |
7787 | mv conftest.tail conftest.defines | |
7788 | done | |
7789 | rm -f conftest.defines | |
7790 | echo ' fi # grep' >>$CONFIG_STATUS | |
7791 | echo >>$CONFIG_STATUS | |
7792 | ||
7793 | # Break up conftest.undefs because some shells have a limit on the size | |
7794 | # of here documents, and old seds have small limits too (100 cmds). | |
7795 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
7796 | rm -f conftest.tail | |
7797 | while grep . conftest.undefs >/dev/null | |
7798 | do | |
7799 | # Write a limited-size here document to $tmp/undefs.sed. | |
7800 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
7801 | # Speed up: don't consider the non `#undef' | |
7802 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
7803 | # Work around the forget-to-reset-the-flag bug. | |
7804 | echo 't clr' >>$CONFIG_STATUS | |
7805 | echo ': clr' >>$CONFIG_STATUS | |
7806 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
7807 | echo 'CEOF | |
7808 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
7809 | rm -f $tmp/in | |
7810 | mv $tmp/out $tmp/in | |
7811 | ' >>$CONFIG_STATUS | |
7812 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
7813 | rm -f conftest.undefs | |
7814 | mv conftest.tail conftest.undefs | |
7815 | done | |
7816 | rm -f conftest.undefs | |
7817 | ||
7818 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7819 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7820 | # use $as_me), people would be surprised to read: | |
7821 | # /* config.h. Generated by config.status. */ | |
7822 | if test x"$ac_file" = x-; then | |
7823 | echo "/* Generated by configure. */" >$tmp/config.h | |
7824 | else | |
7825 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
7826 | fi | |
7827 | cat $tmp/in >>$tmp/config.h | |
7828 | rm -f $tmp/in | |
7829 | if test x"$ac_file" != x-; then | |
7830 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
7831 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
7832 | echo "$as_me: $ac_file is unchanged" >&6;} | |
7833 | else | |
7834 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7835 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7836 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7837 | X"$ac_file" : 'X\(//\)$' \| \ | |
7838 | X"$ac_file" : 'X\(/\)' \| \ | |
7839 | . : '\(.\)' 2>/dev/null || | |
7840 | echo X"$ac_file" | | |
7841 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7842 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7843 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7844 | /^X\(\/\).*/{ s//\1/; q; } | |
7845 | s/.*/./; q'` | |
7846 | { if $as_mkdir_p; then | |
7847 | mkdir -p "$ac_dir" | |
7848 | else | |
7849 | as_dir="$ac_dir" | |
7850 | as_dirs= | |
7851 | while test ! -d "$as_dir"; do | |
7852 | as_dirs="$as_dir $as_dirs" | |
7853 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7854 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7855 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7856 | X"$as_dir" : 'X\(//\)$' \| \ | |
7857 | X"$as_dir" : 'X\(/\)' \| \ | |
7858 | . : '\(.\)' 2>/dev/null || | |
7859 | echo X"$as_dir" | | |
7860 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7861 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7862 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7863 | /^X\(\/\).*/{ s//\1/; q; } | |
7864 | s/.*/./; q'` | |
7865 | done | |
7866 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7867 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7868 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7869 | { (exit 1); exit 1; }; }; } | |
7870 | ||
7871 | rm -f $ac_file | |
7872 | mv $tmp/config.h $ac_file | |
7873 | fi | |
7874 | else | |
7875 | cat $tmp/config.h | |
7876 | rm -f $tmp/config.h | |
7877 | fi | |
7878 | # Compute $ac_file's index in $config_headers. | |
7879 | _am_stamp_count=1 | |
7880 | for _am_header in $config_headers :; do | |
7881 | case $_am_header in | |
7882 | $ac_file | $ac_file:* ) | |
7883 | break ;; | |
7884 | * ) | |
7885 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
7886 | esac | |
7887 | done | |
7888 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
7889 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7890 | X$ac_file : 'X\(//\)[^/]' \| \ | |
7891 | X$ac_file : 'X\(//\)$' \| \ | |
7892 | X$ac_file : 'X\(/\)' \| \ | |
7893 | . : '\(.\)' 2>/dev/null || | |
7894 | echo X$ac_file | | |
7895 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7896 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7897 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7898 | /^X\(\/\).*/{ s//\1/; q; } | |
7899 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
7900 | done | |
7901 | _ACEOF | |
7902 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7903 | ||
7904 | # | |
7905 | # CONFIG_COMMANDS section. | |
7906 | # | |
7907 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
7908 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
7909 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7910 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
7911 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7912 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
7913 | X"$ac_dest" : 'X\(//\)$' \| \ | |
7914 | X"$ac_dest" : 'X\(/\)' \| \ | |
7915 | . : '\(.\)' 2>/dev/null || | |
7916 | echo X"$ac_dest" | | |
7917 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7918 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7919 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7920 | /^X\(\/\).*/{ s//\1/; q; } | |
7921 | s/.*/./; q'` | |
7922 | { if $as_mkdir_p; then | |
7923 | mkdir -p "$ac_dir" | |
7924 | else | |
7925 | as_dir="$ac_dir" | |
7926 | as_dirs= | |
7927 | while test ! -d "$as_dir"; do | |
7928 | as_dirs="$as_dir $as_dirs" | |
7929 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7930 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7931 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7932 | X"$as_dir" : 'X\(//\)$' \| \ | |
7933 | X"$as_dir" : 'X\(/\)' \| \ | |
7934 | . : '\(.\)' 2>/dev/null || | |
7935 | echo X"$as_dir" | | |
7936 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7937 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7938 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7939 | /^X\(\/\).*/{ s//\1/; q; } | |
7940 | s/.*/./; q'` | |
7941 | done | |
7942 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7943 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7944 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7945 | { (exit 1); exit 1; }; }; } | |
7946 | ||
7947 | ac_builddir=. | |
7948 | ||
7949 | if test "$ac_dir" != .; then | |
7950 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7951 | # A "../" for each directory in $ac_dir_suffix. | |
7952 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7953 | else | |
7954 | ac_dir_suffix= ac_top_builddir= | |
7955 | fi | |
7956 | ||
7957 | case $srcdir in | |
7958 | .) # No --srcdir option. We are building in place. | |
7959 | ac_srcdir=. | |
7960 | if test -z "$ac_top_builddir"; then | |
7961 | ac_top_srcdir=. | |
7962 | else | |
7963 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7964 | fi ;; | |
7965 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7966 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7967 | ac_top_srcdir=$srcdir ;; | |
7968 | *) # Relative path. | |
7969 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7970 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7971 | esac | |
7972 | ||
7973 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7974 | # the directories may not exist. | |
7975 | case `pwd` in | |
7976 | .) ac_abs_builddir="$ac_dir";; | |
7977 | *) | |
7978 | case "$ac_dir" in | |
7979 | .) ac_abs_builddir=`pwd`;; | |
7980 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7981 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7982 | esac;; | |
7983 | esac | |
7984 | case $ac_abs_builddir in | |
7985 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7986 | *) | |
7987 | case ${ac_top_builddir}. in | |
7988 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7989 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7990 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7991 | esac;; | |
7992 | esac | |
7993 | case $ac_abs_builddir in | |
7994 | .) ac_abs_srcdir=$ac_srcdir;; | |
7995 | *) | |
7996 | case $ac_srcdir in | |
7997 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7998 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7999 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8000 | esac;; | |
8001 | esac | |
8002 | case $ac_abs_builddir in | |
8003 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8004 | *) | |
8005 | case $ac_top_srcdir in | |
8006 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8007 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8008 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8009 | esac;; | |
8010 | esac | |
8011 | ||
8012 | ||
8013 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
8014 | echo "$as_me: executing $ac_dest commands" >&6;} | |
8015 | case $ac_dest in | |
8016 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
8017 | # Strip MF so we end up with the name of the file. | |
8018 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
8019 | # Check whether this is an Automake generated Makefile or not. | |
8020 | # We used to match only the files named `Makefile.in', but | |
8021 | # some people rename them; so instead we look at the file content. | |
8022 | # Grep'ing the first line is not enough: some people post-process | |
8023 | # each Makefile.in and add a new line on top of each file to say so. | |
8024 | # So let's grep whole file. | |
8025 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
8026 | dirpart=`(dirname "$mf") 2>/dev/null || | |
8027 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8028 | X"$mf" : 'X\(//\)[^/]' \| \ | |
8029 | X"$mf" : 'X\(//\)$' \| \ | |
8030 | X"$mf" : 'X\(/\)' \| \ | |
8031 | . : '\(.\)' 2>/dev/null || | |
8032 | echo X"$mf" | | |
8033 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8034 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8035 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8036 | /^X\(\/\).*/{ s//\1/; q; } | |
8037 | s/.*/./; q'` | |
8038 | else | |
8039 | continue | |
8040 | fi | |
8041 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue | |
8042 | # Extract the definition of DEP_FILES from the Makefile without | |
8043 | # running `make'. | |
c9e66eda | 8044 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
6de9cd9a DN |
8045 | test -z "$DEPDIR" && continue |
8046 | # When using ansi2knr, U may be empty or an underscore; expand it | |
c9e66eda | 8047 | U=`sed -n 's/^U = //p' < "$mf"` |
6de9cd9a DN |
8048 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
8049 | # We invoke sed twice because it is the simplest approach to | |
8050 | # changing $(DEPDIR) to its actual value in the expansion. | |
c9e66eda | 8051 | for file in `sed -n ' |
6de9cd9a DN |
8052 | /^DEP_FILES = .*\\\\$/ { |
8053 | s/^DEP_FILES = // | |
8054 | :loop | |
8055 | s/\\\\$// | |
8056 | p | |
8057 | n | |
8058 | /\\\\$/ b loop | |
8059 | p | |
8060 | } | |
8061 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ | |
8062 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
8063 | # Make sure the directory exists. | |
8064 | test -f "$dirpart/$file" && continue | |
8065 | fdir=`(dirname "$file") 2>/dev/null || | |
8066 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8067 | X"$file" : 'X\(//\)[^/]' \| \ | |
8068 | X"$file" : 'X\(//\)$' \| \ | |
8069 | X"$file" : 'X\(/\)' \| \ | |
8070 | . : '\(.\)' 2>/dev/null || | |
8071 | echo X"$file" | | |
8072 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8073 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8074 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8075 | /^X\(\/\).*/{ s//\1/; q; } | |
8076 | s/.*/./; q'` | |
8077 | { if $as_mkdir_p; then | |
8078 | mkdir -p $dirpart/$fdir | |
8079 | else | |
8080 | as_dir=$dirpart/$fdir | |
8081 | as_dirs= | |
8082 | while test ! -d "$as_dir"; do | |
8083 | as_dirs="$as_dir $as_dirs" | |
8084 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8085 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8086 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8087 | X"$as_dir" : 'X\(//\)$' \| \ | |
8088 | X"$as_dir" : 'X\(/\)' \| \ | |
8089 | . : '\(.\)' 2>/dev/null || | |
8090 | echo X"$as_dir" | | |
8091 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8092 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8093 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8094 | /^X\(\/\).*/{ s//\1/; q; } | |
8095 | s/.*/./; q'` | |
8096 | done | |
8097 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8098 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
8099 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
8100 | { (exit 1); exit 1; }; }; } | |
8101 | ||
8102 | # echo "creating $dirpart/$file" | |
8103 | echo '# dummy' > "$dirpart/$file" | |
8104 | done | |
8105 | done | |
8106 | ;; | |
8107 | esac | |
8108 | done | |
8109 | _ACEOF | |
8110 | ||
8111 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8112 | ||
8113 | { (exit 0); exit 0; } | |
8114 | _ACEOF | |
8115 | chmod +x $CONFIG_STATUS | |
8116 | ac_clean_files=$ac_clean_files_save | |
8117 | ||
8118 | ||
8119 | # configure is writing to config.log, and then calls config.status. | |
8120 | # config.status does its own redirection, appending to config.log. | |
8121 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8122 | # by configure, so config.status won't be able to write to it; its | |
8123 | # output is simply discarded. So we exec the FD to /dev/null, | |
8124 | # effectively closing config.log, so it can be properly (re)opened and | |
8125 | # appended to by config.status. When coming back to configure, we | |
8126 | # need to make the FD available again. | |
8127 | if test "$no_create" != yes; then | |
8128 | ac_cs_success=: | |
8129 | ac_config_status_args= | |
8130 | test "$silent" = yes && | |
8131 | ac_config_status_args="$ac_config_status_args --quiet" | |
8132 | exec 5>/dev/null | |
8133 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8134 | exec 5>>config.log | |
8135 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8136 | # would make configure fail if this is the last instruction. | |
8137 | $ac_cs_success || { (exit 1); exit 1; } | |
8138 | fi | |
8139 | ||
8140 |