]>
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 | ||
e87045f3 | 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT CFLAGS AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL enable_shared enable_static FC FCFLAGS LDFLAGS ac_ct_FC extra_ldflags_libgfortran CPP CPPFLAGS EGREP MATH_OBJ LIBOBJS LTLIBOBJS' |
6de9cd9a DN |
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 | |
c7a35fe9 AS |
752 | ac_env_FC_set=${FC+set} |
753 | ac_env_FC_value=$FC | |
754 | ac_cv_env_FC_set=${FC+set} | |
755 | ac_cv_env_FC_value=$FC | |
756 | ac_env_FCFLAGS_set=${FCFLAGS+set} | |
757 | ac_env_FCFLAGS_value=$FCFLAGS | |
758 | ac_cv_env_FCFLAGS_set=${FCFLAGS+set} | |
759 | ac_cv_env_FCFLAGS_value=$FCFLAGS | |
96b8a615 AJ |
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 | |
6de9cd9a DN |
764 | ac_env_CPP_set=${CPP+set} |
765 | ac_env_CPP_value=$CPP | |
766 | ac_cv_env_CPP_set=${CPP+set} | |
767 | ac_cv_env_CPP_value=$CPP | |
96b8a615 AJ |
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
6de9cd9a DN |
772 | |
773 | # | |
774 | # Report the --help message. | |
775 | # | |
776 | if test "$ac_init_help" = "long"; then | |
777 | # Omit some internal or obsolete options to make the list less imposing. | |
778 | # This message is too long to be a string in the A/UX 3.1 sh. | |
779 | cat <<_ACEOF | |
780 | \`configure' configures GNU Fortran Runtime Library 0.2 to adapt to many kinds of systems. | |
781 | ||
782 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
783 | ||
784 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
785 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
786 | ||
787 | Defaults for the options are specified in brackets. | |
788 | ||
789 | Configuration: | |
790 | -h, --help display this help and exit | |
791 | --help=short display options specific to this package | |
792 | --help=recursive display the short help of all the included packages | |
793 | -V, --version display version information and exit | |
794 | -q, --quiet, --silent do not print \`checking...' messages | |
795 | --cache-file=FILE cache test results in FILE [disabled] | |
796 | -C, --config-cache alias for \`--cache-file=config.cache' | |
797 | -n, --no-create do not create output files | |
798 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
799 | ||
800 | _ACEOF | |
801 | ||
802 | cat <<_ACEOF | |
803 | Installation directories: | |
804 | --prefix=PREFIX install architecture-independent files in PREFIX | |
805 | [$ac_default_prefix] | |
806 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
807 | [PREFIX] | |
808 | ||
809 | By default, \`make install' will install all the files in | |
810 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
811 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
812 | for instance \`--prefix=\$HOME'. | |
813 | ||
814 | For better control, use the options below. | |
815 | ||
816 | Fine tuning of the installation directories: | |
817 | --bindir=DIR user executables [EPREFIX/bin] | |
818 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
819 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
820 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
821 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
822 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
823 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
824 | --libdir=DIR object code libraries [EPREFIX/lib] | |
825 | --includedir=DIR C header files [PREFIX/include] | |
826 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
827 | --infodir=DIR info documentation [PREFIX/info] | |
828 | --mandir=DIR man documentation [PREFIX/man] | |
829 | _ACEOF | |
830 | ||
831 | cat <<\_ACEOF | |
832 | ||
833 | Program names: | |
834 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
835 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
836 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
837 | ||
838 | System types: | |
839 | --build=BUILD configure for building on BUILD [guessed] | |
840 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
96b8a615 | 841 | --target=TARGET configure for building compilers for TARGET [HOST] |
6de9cd9a DN |
842 | _ACEOF |
843 | fi | |
844 | ||
845 | if test -n "$ac_init_help"; then | |
846 | case $ac_init_help in | |
847 | short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.2:";; | |
848 | esac | |
849 | cat <<\_ACEOF | |
850 | ||
851 | Optional Features: | |
852 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
853 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
96b8a615 | 854 | --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory |
6de9cd9a DN |
855 | --enable-maintainer-mode enable make rules and dependencies not useful |
856 | (and sometimes confusing) to the casual installer | |
96b8a615 | 857 | --enable-multilib build many library versions (default) |
6de9cd9a DN |
858 | --enable-shared=PKGS build shared libraries default=yes |
859 | --enable-static=PKGS build static libraries default=yes | |
860 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
861 | --disable-libtool-lock avoid locking (might break parallel builds) | |
9cdc381b | 862 | --disable-largefile omit support for large files |
96b8a615 | 863 | --enable-cmath Include complex math functions |
6de9cd9a DN |
864 | |
865 | Optional Packages: | |
866 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
867 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
868 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
869 | --with-pic try to use only PIC/non-PIC objects default=use both | |
870 | ||
871 | Some influential environment variables: | |
872 | CC C compiler command | |
873 | CFLAGS C compiler flags | |
874 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
875 | nonstandard directory <lib dir> | |
876 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
877 | headers in a nonstandard directory <include dir> | |
c7a35fe9 AS |
878 | FC Fortran compiler command |
879 | FCFLAGS Fortran compiler flags | |
6de9cd9a DN |
880 | CPP C preprocessor |
881 | ||
882 | Use these variables to override the choices made by `configure' or to help | |
883 | it to find libraries and programs with nonstandard names/locations. | |
884 | ||
885 | _ACEOF | |
886 | fi | |
887 | ||
888 | if test "$ac_init_help" = "recursive"; then | |
889 | # If there are subdirs, report their specific --help. | |
890 | ac_popdir=`pwd` | |
891 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
892 | test -d $ac_dir || continue | |
893 | ac_builddir=. | |
894 | ||
895 | if test "$ac_dir" != .; then | |
896 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
897 | # A "../" for each directory in $ac_dir_suffix. | |
898 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
899 | else | |
900 | ac_dir_suffix= ac_top_builddir= | |
901 | fi | |
902 | ||
903 | case $srcdir in | |
904 | .) # No --srcdir option. We are building in place. | |
905 | ac_srcdir=. | |
906 | if test -z "$ac_top_builddir"; then | |
907 | ac_top_srcdir=. | |
908 | else | |
909 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
910 | fi ;; | |
911 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
912 | ac_srcdir=$srcdir$ac_dir_suffix; | |
913 | ac_top_srcdir=$srcdir ;; | |
914 | *) # Relative path. | |
915 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
916 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
917 | esac | |
918 | ||
919 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
920 | # the directories may not exist. | |
921 | case `pwd` in | |
922 | .) ac_abs_builddir="$ac_dir";; | |
923 | *) | |
924 | case "$ac_dir" in | |
925 | .) ac_abs_builddir=`pwd`;; | |
926 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
927 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
928 | esac;; | |
929 | esac | |
930 | case $ac_abs_builddir in | |
931 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
932 | *) | |
933 | case ${ac_top_builddir}. in | |
934 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
935 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
936 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
937 | esac;; | |
938 | esac | |
939 | case $ac_abs_builddir in | |
940 | .) ac_abs_srcdir=$ac_srcdir;; | |
941 | *) | |
942 | case $ac_srcdir in | |
943 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
944 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
945 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
946 | esac;; | |
947 | esac | |
948 | case $ac_abs_builddir in | |
949 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
950 | *) | |
951 | case $ac_top_srcdir in | |
952 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
953 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
954 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
955 | esac;; | |
956 | esac | |
957 | ||
958 | cd $ac_dir | |
959 | # Check for guested configure; otherwise get Cygnus style configure. | |
960 | if test -f $ac_srcdir/configure.gnu; then | |
961 | echo | |
962 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
963 | elif test -f $ac_srcdir/configure; then | |
964 | echo | |
965 | $SHELL $ac_srcdir/configure --help=recursive | |
966 | elif test -f $ac_srcdir/configure.ac || | |
967 | test -f $ac_srcdir/configure.in; then | |
968 | echo | |
969 | $ac_configure --help | |
970 | else | |
971 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
972 | fi | |
1fb2002d | 973 | cd "$ac_popdir" |
6de9cd9a DN |
974 | done |
975 | fi | |
976 | ||
977 | test -n "$ac_init_help" && exit 0 | |
978 | if $ac_init_version; then | |
979 | cat <<\_ACEOF | |
980 | GNU Fortran Runtime Library configure 0.2 | |
981 | generated by GNU Autoconf 2.59 | |
982 | ||
983 | Copyright (C) 2003 Free Software Foundation, Inc. | |
984 | This configure script is free software; the Free Software Foundation | |
985 | gives unlimited permission to copy, distribute and modify it. | |
986 | _ACEOF | |
987 | exit 0 | |
988 | fi | |
989 | exec 5>config.log | |
990 | cat >&5 <<_ACEOF | |
991 | This file contains any messages produced by compilers while | |
992 | running configure, to aid debugging if configure makes a mistake. | |
993 | ||
994 | It was created by GNU Fortran Runtime Library $as_me 0.2, which was | |
995 | generated by GNU Autoconf 2.59. Invocation command line was | |
996 | ||
997 | $ $0 $@ | |
998 | ||
999 | _ACEOF | |
1000 | { | |
1001 | cat <<_ASUNAME | |
1002 | ## --------- ## | |
1003 | ## Platform. ## | |
1004 | ## --------- ## | |
1005 | ||
1006 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1007 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1008 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1009 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1010 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1011 | ||
1012 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1013 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1014 | ||
1015 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1016 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1017 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1018 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1019 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1020 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1021 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1022 | ||
1023 | _ASUNAME | |
1024 | ||
1025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1026 | for as_dir in $PATH | |
1027 | do | |
1028 | IFS=$as_save_IFS | |
1029 | test -z "$as_dir" && as_dir=. | |
1030 | echo "PATH: $as_dir" | |
1031 | done | |
1032 | ||
1033 | } >&5 | |
1034 | ||
1035 | cat >&5 <<_ACEOF | |
1036 | ||
1037 | ||
1038 | ## ----------- ## | |
1039 | ## Core tests. ## | |
1040 | ## ----------- ## | |
1041 | ||
1042 | _ACEOF | |
1043 | ||
1044 | ||
1045 | # Keep a trace of the command line. | |
1046 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1047 | # Strip out --silent because we don't want to record it for future runs. | |
1048 | # Also quote any args containing shell meta-characters. | |
1049 | # Make two passes to allow for proper duplicate-argument suppression. | |
1050 | ac_configure_args= | |
1051 | ac_configure_args0= | |
1052 | ac_configure_args1= | |
1053 | ac_sep= | |
1054 | ac_must_keep_next=false | |
1055 | for ac_pass in 1 2 | |
1056 | do | |
1057 | for ac_arg | |
1058 | do | |
1059 | case $ac_arg in | |
1060 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1061 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1062 | | -silent | --silent | --silen | --sile | --sil) | |
1063 | continue ;; | |
1064 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1065 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1066 | esac | |
1067 | case $ac_pass in | |
1068 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1069 | 2) | |
1070 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1071 | if test $ac_must_keep_next = true; then | |
1072 | ac_must_keep_next=false # Got value, back to normal. | |
1073 | else | |
1074 | case $ac_arg in | |
1075 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1076 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1077 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1078 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1079 | case "$ac_configure_args0 " in | |
1080 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1081 | esac | |
1082 | ;; | |
1083 | -* ) ac_must_keep_next=true ;; | |
1084 | esac | |
1085 | fi | |
1086 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1087 | # Get rid of the leading space. | |
1088 | ac_sep=" " | |
1089 | ;; | |
1090 | esac | |
1091 | done | |
1092 | done | |
1093 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1094 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1095 | ||
1096 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1097 | # config.log. We remove comments because anyway the quotes in there | |
1098 | # would cause problems or look ugly. | |
1099 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1100 | # such as our DU 5.0 friend, will then `close' the trap. | |
1101 | trap 'exit_status=$? | |
1102 | # Save into config.log some information that might help in debugging. | |
1103 | { | |
1104 | echo | |
1105 | ||
1106 | cat <<\_ASBOX | |
1107 | ## ---------------- ## | |
1108 | ## Cache variables. ## | |
1109 | ## ---------------- ## | |
1110 | _ASBOX | |
1111 | echo | |
1112 | # The following way of writing the cache mishandles newlines in values, | |
1113 | { | |
1114 | (set) 2>&1 | | |
1115 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1116 | *ac_space=\ *) | |
1117 | sed -n \ | |
1118 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1119 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1120 | ;; | |
1121 | *) | |
1122 | sed -n \ | |
1123 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1124 | ;; | |
1125 | esac; | |
1126 | } | |
1127 | echo | |
1128 | ||
1129 | cat <<\_ASBOX | |
1130 | ## ----------------- ## | |
1131 | ## Output variables. ## | |
1132 | ## ----------------- ## | |
1133 | _ASBOX | |
1134 | echo | |
1135 | for ac_var in $ac_subst_vars | |
1136 | do | |
1137 | eval ac_val=$`echo $ac_var` | |
1138 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1139 | done | sort | |
1140 | echo | |
1141 | ||
1142 | if test -n "$ac_subst_files"; then | |
1143 | cat <<\_ASBOX | |
1144 | ## ------------- ## | |
1145 | ## Output files. ## | |
1146 | ## ------------- ## | |
1147 | _ASBOX | |
1148 | echo | |
1149 | for ac_var in $ac_subst_files | |
1150 | do | |
1151 | eval ac_val=$`echo $ac_var` | |
1152 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1153 | done | sort | |
1154 | echo | |
1155 | fi | |
1156 | ||
1157 | if test -s confdefs.h; then | |
1158 | cat <<\_ASBOX | |
1159 | ## ----------- ## | |
1160 | ## confdefs.h. ## | |
1161 | ## ----------- ## | |
1162 | _ASBOX | |
1163 | echo | |
1164 | sed "/^$/d" confdefs.h | sort | |
1165 | echo | |
1166 | fi | |
1167 | test "$ac_signal" != 0 && | |
1168 | echo "$as_me: caught signal $ac_signal" | |
1169 | echo "$as_me: exit $exit_status" | |
1170 | } >&5 | |
1171 | rm -f core *.core && | |
1172 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1173 | exit $exit_status | |
1174 | ' 0 | |
1175 | for ac_signal in 1 2 13 15; do | |
1176 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1177 | done | |
1178 | ac_signal=0 | |
1179 | ||
1180 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1181 | rm -rf conftest* confdefs.h | |
1182 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1183 | echo >confdefs.h | |
1184 | ||
1185 | # Predefined preprocessor variables. | |
1186 | ||
1187 | cat >>confdefs.h <<_ACEOF | |
1188 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1189 | _ACEOF | |
1190 | ||
1191 | ||
1192 | cat >>confdefs.h <<_ACEOF | |
1193 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1194 | _ACEOF | |
1195 | ||
1196 | ||
1197 | cat >>confdefs.h <<_ACEOF | |
1198 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1199 | _ACEOF | |
1200 | ||
1201 | ||
1202 | cat >>confdefs.h <<_ACEOF | |
1203 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1204 | _ACEOF | |
1205 | ||
1206 | ||
1207 | cat >>confdefs.h <<_ACEOF | |
1208 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1209 | _ACEOF | |
1210 | ||
1211 | ||
1212 | # Let the site file select an alternate cache file if it wants to. | |
1213 | # Prefer explicitly selected file to automatically selected ones. | |
1214 | if test -z "$CONFIG_SITE"; then | |
1215 | if test "x$prefix" != xNONE; then | |
1216 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1217 | else | |
1218 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1219 | fi | |
1220 | fi | |
1221 | for ac_site_file in $CONFIG_SITE; do | |
1222 | if test -r "$ac_site_file"; then | |
1223 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1224 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1225 | sed 's/^/| /' "$ac_site_file" >&5 | |
1226 | . "$ac_site_file" | |
1227 | fi | |
1228 | done | |
1229 | ||
1230 | if test -r "$cache_file"; then | |
1231 | # Some versions of bash will fail to source /dev/null (special | |
1232 | # files actually), so we avoid doing that. | |
1233 | if test -f "$cache_file"; then | |
1234 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1235 | echo "$as_me: loading cache $cache_file" >&6;} | |
1236 | case $cache_file in | |
1237 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1238 | *) . ./$cache_file;; | |
1239 | esac | |
1240 | fi | |
1241 | else | |
1242 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1243 | echo "$as_me: creating cache $cache_file" >&6;} | |
1244 | >$cache_file | |
1245 | fi | |
1246 | ||
1247 | # Check that the precious variables saved in the cache have kept the same | |
1248 | # value. | |
1249 | ac_cache_corrupted=false | |
1250 | for ac_var in `(set) 2>&1 | | |
1251 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1252 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1253 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1254 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1255 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1256 | case $ac_old_set,$ac_new_set in | |
1257 | set,) | |
1258 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1259 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1260 | ac_cache_corrupted=: ;; | |
1261 | ,set) | |
1262 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1263 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1264 | ac_cache_corrupted=: ;; | |
1265 | ,);; | |
1266 | *) | |
1267 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1268 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1269 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1270 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1271 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1272 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1273 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1274 | ac_cache_corrupted=: | |
1275 | fi;; | |
1276 | esac | |
1277 | # Pass precious variables to config.status. | |
1278 | if test "$ac_new_set" = set; then | |
1279 | case $ac_new_val in | |
1280 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1281 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1282 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1283 | esac | |
1284 | case " $ac_configure_args " in | |
1285 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1286 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1287 | esac | |
1288 | fi | |
1289 | done | |
1290 | if $ac_cache_corrupted; then | |
1291 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1292 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1293 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1294 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1295 | { (exit 1); exit 1; }; } | |
1296 | fi | |
1297 | ||
1298 | ac_ext=c | |
1299 | ac_cpp='$CPP $CPPFLAGS' | |
1300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
96b8a615 AJ |
1330 | ac_config_headers="$ac_config_headers config.h" |
1331 | ||
1332 | ||
96b8a615 AJ |
1333 | # ------- |
1334 | # Options | |
1335 | # ------- | |
1336 | ||
1337 | echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5 | |
1338 | echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6 | |
1339 | # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. | |
1340 | if test "${enable_version_specific_runtime_libs+set}" = set; then | |
1341 | enableval="$enable_version_specific_runtime_libs" | |
1342 | case "$enableval" in | |
1343 | yes) version_specific_libs=yes ;; | |
1344 | no) version_specific_libs=no ;; | |
1345 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5 | |
1346 | echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;} | |
1347 | { (exit 1); exit 1; }; };; | |
1348 | esac | |
1349 | else | |
1350 | version_specific_libs=no | |
1351 | fi; | |
1352 | echo "$as_me:$LINENO: result: $version_specific_libs" >&5 | |
1353 | echo "${ECHO_T}$version_specific_libs" >&6 | |
1354 | ||
1355 | ||
1356 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
1357 | # | |
1358 | # You will slowly go insane if you do not grok the following fact: when | |
1359 | # building this library, the top-level /target/ becomes the library's /host/. | |
1360 | # | |
1361 | # configure then causes --target to default to --host, exactly like any | |
1362 | # other package using autoconf. Therefore, 'target' and 'host' will | |
1363 | # always be the same. This makes sense both for native and cross compilers | |
1364 | # just think about it for a little while. :-) | |
1365 | # | |
1366 | # Also, if this library is being configured as part of a cross compiler, the | |
1367 | # top-level configure script will pass the "real" host as $with_cross_host. | |
1368 | # | |
1369 | # Do not delete or change the following two lines. For why, see | |
1370 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
6de9cd9a DN |
1371 | ac_aux_dir= |
1372 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1373 | if test -f $ac_dir/install-sh; then | |
1374 | ac_aux_dir=$ac_dir | |
1375 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1376 | break | |
1377 | elif test -f $ac_dir/install.sh; then | |
1378 | ac_aux_dir=$ac_dir | |
1379 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1380 | break | |
1381 | elif test -f $ac_dir/shtool; then | |
1382 | ac_aux_dir=$ac_dir | |
1383 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1384 | break | |
1385 | fi | |
1386 | done | |
1387 | if test -z "$ac_aux_dir"; then | |
1388 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1389 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1390 | { (exit 1); exit 1; }; } | |
1391 | fi | |
1392 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1393 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1394 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1395 | ||
96b8a615 AJ |
1396 | # Make sure we can run config.sub. |
1397 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1398 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1399 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1400 | { (exit 1); exit 1; }; } | |
1401 | ||
1402 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1403 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1404 | if test "${ac_cv_build+set}" = set; then | |
1405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1406 | else | |
1407 | ac_cv_build_alias=$build_alias | |
1408 | test -z "$ac_cv_build_alias" && | |
1409 | ac_cv_build_alias=`$ac_config_guess` | |
1410 | test -z "$ac_cv_build_alias" && | |
1411 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1412 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1413 | { (exit 1); exit 1; }; } | |
1414 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1415 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1416 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1417 | { (exit 1); exit 1; }; } | |
1418 | ||
1419 | fi | |
1420 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1421 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1422 | build=$ac_cv_build | |
1423 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1424 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1425 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1426 | ||
1427 | ||
1428 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1429 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1430 | if test "${ac_cv_host+set}" = set; then | |
1431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1432 | else | |
1433 | ac_cv_host_alias=$host_alias | |
1434 | test -z "$ac_cv_host_alias" && | |
1435 | ac_cv_host_alias=$ac_cv_build_alias | |
1436 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1437 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1438 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1439 | { (exit 1); exit 1; }; } | |
1440 | ||
1441 | fi | |
1442 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1443 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1444 | host=$ac_cv_host | |
1445 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1446 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1447 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1448 | ||
1449 | ||
1450 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1451 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1452 | if test "${ac_cv_target+set}" = set; then | |
1453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1454 | else | |
1455 | ac_cv_target_alias=$target_alias | |
1456 | test "x$ac_cv_target_alias" = "x" && | |
1457 | ac_cv_target_alias=$ac_cv_host_alias | |
1458 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1459 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1460 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1461 | { (exit 1); exit 1; }; } | |
1462 | ||
1463 | fi | |
1464 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1465 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1466 | target=$ac_cv_target | |
1467 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1468 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1469 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1470 | ||
1471 | ||
1472 | # The aliases save the names the user supplied, while $host etc. | |
1473 | # will get canonicalized. | |
1474 | test -n "$target_alias" && | |
1475 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1476 | NONENONEs,x,x, && | |
1477 | program_prefix=${target_alias}- | |
1478 | target_alias=${target_alias-$host_alias} | |
1479 | ||
1480 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
1481 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
1482 | # 1.8.2: minimum required version | |
1483 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
1484 | # of other PACKAGE_* variables will, however, and there's nothing | |
1485 | # we can do about that; they come from AC_INIT). | |
1486 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
1487 | # file in the top srcdir, etc, etc), so stop complaining. | |
1488 | # no-dependencies: turns off auto dependency generation (just for now) | |
1489 | # -Wall: turns on all automake warnings... | |
1490 | # -Wno-portability: ...except this one, since GNU make is required. | |
d49ec2d1 | 1491 | am__api_version="1.9" |
6de9cd9a DN |
1492 | # Find a good install program. We prefer a C program (faster), |
1493 | # so one script is as good as another. But avoid the broken or | |
1494 | # incompatible versions: | |
1495 | # SysV /etc/install, /usr/sbin/install | |
1496 | # SunOS /usr/etc/install | |
1497 | # IRIX /sbin/install | |
1498 | # AIX /bin/install | |
1499 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1500 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1501 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1502 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1503 | # OS/2's system install, which has a completely different semantic | |
1504 | # ./install, which can be erroneously created by make from ./install.sh. | |
1505 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1506 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1507 | if test -z "$INSTALL"; then | |
1508 | if test "${ac_cv_path_install+set}" = set; then | |
1509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1510 | else | |
1511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1512 | for as_dir in $PATH | |
1513 | do | |
1514 | IFS=$as_save_IFS | |
1515 | test -z "$as_dir" && as_dir=. | |
1516 | # Account for people who put trailing slashes in PATH elements. | |
1517 | case $as_dir/ in | |
1518 | ./ | .// | /cC/* | \ | |
1519 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1520 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1521 | /usr/ucb/* ) ;; | |
1522 | *) | |
1523 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1524 | # Don't use installbsd from OSF since it installs stuff as root | |
1525 | # by default. | |
1526 | for ac_prog in ginstall scoinst install; do | |
1527 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1528 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1529 | if test $ac_prog = install && | |
1530 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1531 | # AIX install. It has an incompatible calling convention. | |
1532 | : | |
1533 | elif test $ac_prog = install && | |
1534 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1535 | # program-specific install script used by HP pwplus--don't use. | |
1536 | : | |
1537 | else | |
1538 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1539 | break 3 | |
1540 | fi | |
1541 | fi | |
1542 | done | |
1543 | done | |
1544 | ;; | |
1545 | esac | |
1546 | done | |
1547 | ||
1548 | ||
1549 | fi | |
1550 | if test "${ac_cv_path_install+set}" = set; then | |
1551 | INSTALL=$ac_cv_path_install | |
1552 | else | |
1553 | # As a last resort, use the slow shell script. We don't cache a | |
1554 | # path for INSTALL within a source directory, because that will | |
1555 | # break other packages using the cache if that directory is | |
1556 | # removed, or if the path is relative. | |
1557 | INSTALL=$ac_install_sh | |
1558 | fi | |
1559 | fi | |
1560 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1561 | echo "${ECHO_T}$INSTALL" >&6 | |
1562 | ||
1563 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1564 | # It thinks the first close brace ends the variable substitution. | |
1565 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1566 | ||
1567 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1568 | ||
1569 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1570 | ||
1571 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1572 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1573 | # Just in case | |
1574 | sleep 1 | |
1575 | echo timestamp > conftest.file | |
1576 | # Do `set' in a subshell so we don't clobber the current shell's | |
1577 | # arguments. Must try -L first in case configure is actually a | |
1578 | # symlink; some systems play weird games with the mod time of symlinks | |
1579 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1580 | # directory). | |
1581 | if ( | |
1582 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1583 | if test "$*" = "X"; then | |
1584 | # -L didn't work. | |
1585 | set X `ls -t $srcdir/configure conftest.file` | |
1586 | fi | |
1587 | rm -f conftest.file | |
1588 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1589 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1590 | ||
1591 | # If neither matched, then we have a broken ls. This can happen | |
1592 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1593 | # broken ls alias from the environment. This has actually | |
1594 | # happened. Such a system could not be considered "sane". | |
1595 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1596 | alias in your environment" >&5 | |
1597 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1598 | alias in your environment" >&2;} | |
1599 | { (exit 1); exit 1; }; } | |
1600 | fi | |
1601 | ||
1602 | test "$2" = conftest.file | |
1603 | ) | |
1604 | then | |
1605 | # Ok. | |
1606 | : | |
1607 | else | |
1608 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1609 | Check your system clock" >&5 | |
1610 | echo "$as_me: error: newly created file is older than distributed files! | |
1611 | Check your system clock" >&2;} | |
1612 | { (exit 1); exit 1; }; } | |
1613 | fi | |
1614 | echo "$as_me:$LINENO: result: yes" >&5 | |
1615 | echo "${ECHO_T}yes" >&6 | |
1616 | test "$program_prefix" != NONE && | |
1617 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1618 | # Use a double $ so make ignores it. | |
1619 | test "$program_suffix" != NONE && | |
1620 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1621 | # Double any \ or $. echo might interpret backslashes. | |
1622 | # By default was `s,x,x', remove it if useless. | |
1623 | cat <<\_ACEOF >conftest.sed | |
1624 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1625 | _ACEOF | |
1626 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1627 | rm conftest.sed | |
1628 | ||
1629 | # expand $ac_aux_dir to an absolute path | |
1630 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1631 | ||
1632 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1633 | # Use eval to expand $SHELL | |
1634 | if eval "$MISSING --run true"; then | |
1635 | am_missing_run="$MISSING --run " | |
1636 | else | |
1637 | am_missing_run= | |
1638 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1639 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1640 | fi | |
1641 | ||
c9e66eda | 1642 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
d49ec2d1 KC |
1643 | # We used to keeping the `.' as first argument, in order to |
1644 | # allow $(mkdir_p) to be used without argument. As in | |
6de9cd9a | 1645 | # $(mkdir_p) $(somedir) |
d49ec2d1 KC |
1646 | # where $(somedir) is conditionally defined. However this is wrong |
1647 | # for two reasons: | |
1648 | # 1. if the package is installed by a user who cannot write `.' | |
1649 | # make install will fail, | |
1650 | # 2. the above comment should most certainly read | |
1651 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1652 | # so it does not work when $(somedir) is undefined and | |
1653 | # $(DESTDIR) is not. | |
1654 | # To support the latter case, we have to write | |
1655 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1656 | # so the `.' trick is pointless. | |
1657 | mkdir_p='mkdir -p --' | |
6de9cd9a DN |
1658 | else |
1659 | # On NextStep and OpenStep, the `mkdir' command does not | |
1660 | # recognize any option. It will interpret all options as | |
1661 | # directories to create, and then abort because `.' already | |
1662 | # exists. | |
c9e66eda | 1663 | for d in ./-p ./--version; |
6de9cd9a DN |
1664 | do |
1665 | test -d $d && rmdir $d | |
1666 | done | |
1667 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1668 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1669 | mkdir_p='$(mkinstalldirs)' | |
1670 | else | |
1671 | mkdir_p='$(install_sh) -d' | |
1672 | fi | |
1673 | fi | |
1674 | ||
1675 | for ac_prog in gawk mawk nawk awk | |
1676 | do | |
1677 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1678 | set dummy $ac_prog; ac_word=$2 | |
1679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1681 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1683 | else | |
1684 | if test -n "$AWK"; then | |
1685 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1686 | else | |
1687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1688 | for as_dir in $PATH | |
1689 | do | |
1690 | IFS=$as_save_IFS | |
1691 | test -z "$as_dir" && as_dir=. | |
1692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1694 | ac_cv_prog_AWK="$ac_prog" | |
1695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1696 | break 2 | |
1697 | fi | |
1698 | done | |
1699 | done | |
1700 | ||
1701 | fi | |
1702 | fi | |
1703 | AWK=$ac_cv_prog_AWK | |
1704 | if test -n "$AWK"; then | |
1705 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1706 | echo "${ECHO_T}$AWK" >&6 | |
1707 | else | |
1708 | echo "$as_me:$LINENO: result: no" >&5 | |
1709 | echo "${ECHO_T}no" >&6 | |
1710 | fi | |
1711 | ||
1712 | test -n "$AWK" && break | |
1713 | done | |
1714 | ||
1715 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1716 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1717 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1718 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1720 | else | |
1721 | cat >conftest.make <<\_ACEOF | |
1722 | all: | |
1723 | @echo 'ac_maketemp="$(MAKE)"' | |
1724 | _ACEOF | |
1725 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1726 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1727 | if test -n "$ac_maketemp"; then | |
1728 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1729 | else | |
1730 | eval ac_cv_prog_make_${ac_make}_set=no | |
1731 | fi | |
1732 | rm -f conftest.make | |
1733 | fi | |
1734 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1735 | echo "$as_me:$LINENO: result: yes" >&5 | |
1736 | echo "${ECHO_T}yes" >&6 | |
1737 | SET_MAKE= | |
1738 | else | |
1739 | echo "$as_me:$LINENO: result: no" >&5 | |
1740 | echo "${ECHO_T}no" >&6 | |
1741 | SET_MAKE="MAKE=${MAKE-make}" | |
1742 | fi | |
1743 | ||
1744 | rm -rf .tst 2>/dev/null | |
1745 | mkdir .tst 2>/dev/null | |
1746 | if test -d .tst; then | |
1747 | am__leading_dot=. | |
1748 | else | |
1749 | am__leading_dot=_ | |
1750 | fi | |
1751 | rmdir .tst 2>/dev/null | |
1752 | ||
1753 | # test to see if srcdir already configured | |
1754 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1755 | test -f $srcdir/config.status; then | |
1756 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1757 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1758 | { (exit 1); exit 1; }; } | |
1759 | fi | |
1760 | ||
1761 | # test whether we have cygpath | |
1762 | if test -z "$CYGPATH_W"; then | |
1763 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1764 | CYGPATH_W='cygpath -w' | |
1765 | else | |
1766 | CYGPATH_W=echo | |
1767 | fi | |
1768 | fi | |
1769 | ||
1770 | ||
1771 | # Define the identity of the package. | |
1772 | PACKAGE='libgfortran' | |
1773 | VERSION='0.2' | |
1774 | ||
1775 | ||
6de9cd9a DN |
1776 | # Some tools Automake needs. |
1777 | ||
1778 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1779 | ||
1780 | ||
1781 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1782 | ||
1783 | ||
1784 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1785 | ||
1786 | ||
1787 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1788 | ||
1789 | ||
1790 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1791 | ||
6de9cd9a DN |
1792 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1793 | ||
1794 | # Installed binaries are usually stripped using `strip' when the user | |
1795 | # run `make install-strip'. However `strip' might not be the right | |
1796 | # tool to use in cross-compilation environments, therefore Automake | |
1797 | # will honor the `STRIP' environment variable to overrule this program. | |
1798 | if test "$cross_compiling" != no; then | |
1799 | if test -n "$ac_tool_prefix"; then | |
1800 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1801 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1802 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1803 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1804 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1806 | else | |
1807 | if test -n "$STRIP"; then | |
1808 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1809 | else | |
1810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1811 | for as_dir in $PATH | |
1812 | do | |
1813 | IFS=$as_save_IFS | |
1814 | test -z "$as_dir" && as_dir=. | |
1815 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1816 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1817 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1818 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1819 | break 2 | |
1820 | fi | |
1821 | done | |
1822 | done | |
1823 | ||
1824 | fi | |
1825 | fi | |
1826 | STRIP=$ac_cv_prog_STRIP | |
1827 | if test -n "$STRIP"; then | |
1828 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1829 | echo "${ECHO_T}$STRIP" >&6 | |
1830 | else | |
1831 | echo "$as_me:$LINENO: result: no" >&5 | |
1832 | echo "${ECHO_T}no" >&6 | |
1833 | fi | |
1834 | ||
1835 | fi | |
1836 | if test -z "$ac_cv_prog_STRIP"; then | |
1837 | ac_ct_STRIP=$STRIP | |
1838 | # Extract the first word of "strip", so it can be a program name with args. | |
1839 | set dummy strip; ac_word=$2 | |
1840 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1841 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1842 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1844 | else | |
1845 | if test -n "$ac_ct_STRIP"; then | |
1846 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1847 | else | |
1848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1849 | for as_dir in $PATH | |
1850 | do | |
1851 | IFS=$as_save_IFS | |
1852 | test -z "$as_dir" && as_dir=. | |
1853 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1854 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1855 | ac_cv_prog_ac_ct_STRIP="strip" | |
1856 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1857 | break 2 | |
1858 | fi | |
1859 | done | |
1860 | done | |
1861 | ||
1862 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1863 | fi | |
1864 | fi | |
1865 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1866 | if test -n "$ac_ct_STRIP"; then | |
1867 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1868 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1869 | else | |
1870 | echo "$as_me:$LINENO: result: no" >&5 | |
1871 | echo "${ECHO_T}no" >&6 | |
1872 | fi | |
1873 | ||
1874 | STRIP=$ac_ct_STRIP | |
1875 | else | |
1876 | STRIP="$ac_cv_prog_STRIP" | |
1877 | fi | |
1878 | ||
1879 | fi | |
1880 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1881 | ||
1882 | # We need awk for the "check" target. The system "awk" is bad on | |
1883 | # some platforms. | |
d49ec2d1 KC |
1884 | # Always define AMTAR for backward compatibility. |
1885 | ||
1886 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1887 | ||
1888 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
1889 | ||
1890 | ||
6de9cd9a DN |
1891 | |
1892 | ||
1893 | ||
6de9cd9a DN |
1894 | |
1895 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1896 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1897 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
1898 | if test "${enable_maintainer_mode+set}" = set; then | |
1899 | enableval="$enable_maintainer_mode" | |
1900 | USE_MAINTAINER_MODE=$enableval | |
1901 | else | |
1902 | USE_MAINTAINER_MODE=no | |
1903 | fi; | |
1904 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1905 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
1906 | ||
1907 | ||
1908 | if test $USE_MAINTAINER_MODE = yes; then | |
1909 | MAINTAINER_MODE_TRUE= | |
1910 | MAINTAINER_MODE_FALSE='#' | |
1911 | else | |
1912 | MAINTAINER_MODE_TRUE='#' | |
1913 | MAINTAINER_MODE_FALSE= | |
1914 | fi | |
1915 | ||
1916 | MAINT=$MAINTAINER_MODE_TRUE | |
1917 | ||
1918 | ||
96b8a615 AJ |
1919 | # Default to --enable-multilib |
1920 | # Check whether --enable-multilib or --disable-multilib was given. | |
1921 | if test "${enable_multilib+set}" = set; then | |
1922 | enableval="$enable_multilib" | |
1923 | case "$enableval" in | |
1924 | yes) multilib=yes ;; | |
1925 | no) multilib=no ;; | |
1926 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
1927 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
1928 | { (exit 1); exit 1; }; } ;; | |
1929 | esac | |
1930 | else | |
1931 | multilib=yes | |
1932 | fi; | |
1933 | ||
1934 | # We may get other options which we leave undocumented: | |
1935 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
1936 | # See config-ml.in if you want the gory details. | |
1937 | ||
1938 | if test "$srcdir" = "."; then | |
1939 | if test "$with_target_subdir" != "."; then | |
1940 | multi_basedir="$srcdir/$with_multisrctop../.." | |
1941 | else | |
1942 | multi_basedir="$srcdir/$with_multisrctop.." | |
1943 | fi | |
1944 | else | |
1945 | multi_basedir="$srcdir/.." | |
1946 | fi | |
1947 | ||
1948 | ||
1949 | ac_config_commands="$ac_config_commands default-1" | |
1950 | ||
1951 | ||
1952 | # Handy for debugging: | |
1953 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
1954 | ||
1955 | # Are we being configured with some form of cross compiler? | |
1956 | # NB: We don't actually need to know this just now, but when, say, a test | |
1957 | # suite is included, we'll have to know. | |
1958 | if test "$build" != "$host"; then | |
1959 | LIBGFOR_IS_NATIVE=false | |
f77b6ca3 | 1960 | GCC_NO_EXECUTABLES |
96b8a615 AJ |
1961 | else |
1962 | LIBGFOR_IS_NATIVE=true | |
1963 | fi | |
1964 | ||
96b8a615 AJ |
1965 | # Calculate toolexeclibdir |
1966 | # Also toolexecdir, though it's only used in toolexeclibdir | |
1967 | case ${version_specific_libs} in | |
1968 | yes) | |
1969 | # Need the gcc compiler version to know where to install libraries | |
1970 | # and header files if --enable-version-specific-runtime-libs option | |
1971 | # is selected. | |
1972 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
140e859c | 1973 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' |
96b8a615 AJ |
1974 | ;; |
1975 | no) | |
1976 | if test -n "$with_cross_host" && | |
1977 | test x"$with_cross_host" != x"no"; then | |
1978 | # Install a library built with a cross compiler in tooldir, not libdir. | |
1979 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
1980 | toolexeclibdir='$(toolexecdir)/lib' | |
1981 | else | |
1982 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
1983 | toolexeclibdir='$(libdir)' | |
1984 | fi | |
1985 | multi_os_directory=`$CC -print-multi-os-directory` | |
1986 | case $multi_os_directory in | |
1987 | .) ;; # Avoid trailing /. | |
1988 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
1989 | esac | |
1990 | ;; | |
1991 | esac | |
1992 | ||
1993 | ||
6de9cd9a | 1994 | |
96b8a615 AJ |
1995 | # Check the compiler. |
1996 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
1997 | # We must force CC to /not/ be precious variables; otherwise | |
1998 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
1999 | # As a side effect, we have to subst CFLAGS ourselves. | |
6de9cd9a DN |
2000 | |
2001 | ||
2002 | ||
6de9cd9a DN |
2003 | ac_ext=c |
2004 | ac_cpp='$CPP $CPPFLAGS' | |
2005 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2006 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2007 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2008 | if test -n "$ac_tool_prefix"; then | |
2009 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2010 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2011 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2012 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2013 | if test "${ac_cv_prog_CC+set}" = set; then | |
2014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2015 | else | |
2016 | if test -n "$CC"; then | |
2017 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2018 | else | |
2019 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2020 | for as_dir in $PATH | |
2021 | do | |
2022 | IFS=$as_save_IFS | |
2023 | test -z "$as_dir" && as_dir=. | |
2024 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2025 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2026 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2027 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2028 | break 2 | |
2029 | fi | |
2030 | done | |
2031 | done | |
2032 | ||
2033 | fi | |
2034 | fi | |
2035 | CC=$ac_cv_prog_CC | |
2036 | if test -n "$CC"; then | |
2037 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2038 | echo "${ECHO_T}$CC" >&6 | |
2039 | else | |
2040 | echo "$as_me:$LINENO: result: no" >&5 | |
2041 | echo "${ECHO_T}no" >&6 | |
2042 | fi | |
2043 | ||
2044 | fi | |
2045 | if test -z "$ac_cv_prog_CC"; then | |
2046 | ac_ct_CC=$CC | |
2047 | # Extract the first word of "gcc", so it can be a program name with args. | |
2048 | set dummy gcc; ac_word=$2 | |
2049 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2050 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2051 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2053 | else | |
2054 | if test -n "$ac_ct_CC"; then | |
2055 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2056 | else | |
2057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2058 | for as_dir in $PATH | |
2059 | do | |
2060 | IFS=$as_save_IFS | |
2061 | test -z "$as_dir" && as_dir=. | |
2062 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2063 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2064 | ac_cv_prog_ac_ct_CC="gcc" | |
2065 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2066 | break 2 | |
2067 | fi | |
2068 | done | |
2069 | done | |
2070 | ||
2071 | fi | |
2072 | fi | |
2073 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2074 | if test -n "$ac_ct_CC"; then | |
2075 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2076 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2077 | else | |
2078 | echo "$as_me:$LINENO: result: no" >&5 | |
2079 | echo "${ECHO_T}no" >&6 | |
2080 | fi | |
2081 | ||
2082 | CC=$ac_ct_CC | |
2083 | else | |
2084 | CC="$ac_cv_prog_CC" | |
2085 | fi | |
2086 | ||
2087 | if test -z "$CC"; then | |
2088 | if test -n "$ac_tool_prefix"; then | |
2089 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2090 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2091 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2092 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2093 | if test "${ac_cv_prog_CC+set}" = set; then | |
2094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2095 | else | |
2096 | if test -n "$CC"; then | |
2097 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2098 | else | |
2099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2100 | for as_dir in $PATH | |
2101 | do | |
2102 | IFS=$as_save_IFS | |
2103 | test -z "$as_dir" && as_dir=. | |
2104 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2105 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2106 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2107 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2108 | break 2 | |
2109 | fi | |
2110 | done | |
2111 | done | |
2112 | ||
2113 | fi | |
2114 | fi | |
2115 | CC=$ac_cv_prog_CC | |
2116 | if test -n "$CC"; then | |
2117 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2118 | echo "${ECHO_T}$CC" >&6 | |
2119 | else | |
2120 | echo "$as_me:$LINENO: result: no" >&5 | |
2121 | echo "${ECHO_T}no" >&6 | |
2122 | fi | |
2123 | ||
2124 | fi | |
2125 | if test -z "$ac_cv_prog_CC"; then | |
2126 | ac_ct_CC=$CC | |
2127 | # Extract the first word of "cc", so it can be a program name with args. | |
2128 | set dummy cc; ac_word=$2 | |
2129 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2130 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2131 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2133 | else | |
2134 | if test -n "$ac_ct_CC"; then | |
2135 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2136 | else | |
2137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2138 | for as_dir in $PATH | |
2139 | do | |
2140 | IFS=$as_save_IFS | |
2141 | test -z "$as_dir" && as_dir=. | |
2142 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2143 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2144 | ac_cv_prog_ac_ct_CC="cc" | |
2145 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2146 | break 2 | |
2147 | fi | |
2148 | done | |
2149 | done | |
2150 | ||
2151 | fi | |
2152 | fi | |
2153 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2154 | if test -n "$ac_ct_CC"; then | |
2155 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2156 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2157 | else | |
2158 | echo "$as_me:$LINENO: result: no" >&5 | |
2159 | echo "${ECHO_T}no" >&6 | |
2160 | fi | |
2161 | ||
2162 | CC=$ac_ct_CC | |
2163 | else | |
2164 | CC="$ac_cv_prog_CC" | |
2165 | fi | |
2166 | ||
2167 | fi | |
2168 | if test -z "$CC"; then | |
2169 | # Extract the first word of "cc", so it can be a program name with args. | |
2170 | set dummy cc; ac_word=$2 | |
2171 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2172 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2173 | if test "${ac_cv_prog_CC+set}" = set; then | |
2174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2175 | else | |
2176 | if test -n "$CC"; then | |
2177 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2178 | else | |
2179 | ac_prog_rejected=no | |
2180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2181 | for as_dir in $PATH | |
2182 | do | |
2183 | IFS=$as_save_IFS | |
2184 | test -z "$as_dir" && as_dir=. | |
2185 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2186 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2187 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2188 | ac_prog_rejected=yes | |
2189 | continue | |
2190 | fi | |
2191 | ac_cv_prog_CC="cc" | |
2192 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2193 | break 2 | |
2194 | fi | |
2195 | done | |
2196 | done | |
2197 | ||
2198 | if test $ac_prog_rejected = yes; then | |
2199 | # We found a bogon in the path, so make sure we never use it. | |
2200 | set dummy $ac_cv_prog_CC | |
2201 | shift | |
2202 | if test $# != 0; then | |
2203 | # We chose a different compiler from the bogus one. | |
2204 | # However, it has the same basename, so the bogon will be chosen | |
2205 | # first if we set CC to just the basename; use the full file name. | |
2206 | shift | |
2207 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2208 | fi | |
2209 | fi | |
2210 | fi | |
2211 | fi | |
2212 | CC=$ac_cv_prog_CC | |
2213 | if test -n "$CC"; then | |
2214 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2215 | echo "${ECHO_T}$CC" >&6 | |
2216 | else | |
2217 | echo "$as_me:$LINENO: result: no" >&5 | |
2218 | echo "${ECHO_T}no" >&6 | |
2219 | fi | |
2220 | ||
2221 | fi | |
2222 | if test -z "$CC"; then | |
2223 | if test -n "$ac_tool_prefix"; then | |
2224 | for ac_prog in cl | |
2225 | do | |
2226 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2227 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2228 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2229 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2230 | if test "${ac_cv_prog_CC+set}" = set; then | |
2231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2232 | else | |
2233 | if test -n "$CC"; then | |
2234 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2235 | else | |
2236 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2237 | for as_dir in $PATH | |
2238 | do | |
2239 | IFS=$as_save_IFS | |
2240 | test -z "$as_dir" && as_dir=. | |
2241 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2242 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2243 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2244 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2245 | break 2 | |
2246 | fi | |
2247 | done | |
2248 | done | |
2249 | ||
2250 | fi | |
2251 | fi | |
2252 | CC=$ac_cv_prog_CC | |
2253 | if test -n "$CC"; then | |
2254 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2255 | echo "${ECHO_T}$CC" >&6 | |
2256 | else | |
2257 | echo "$as_me:$LINENO: result: no" >&5 | |
2258 | echo "${ECHO_T}no" >&6 | |
2259 | fi | |
2260 | ||
2261 | test -n "$CC" && break | |
2262 | done | |
2263 | fi | |
2264 | if test -z "$CC"; then | |
2265 | ac_ct_CC=$CC | |
2266 | for ac_prog in cl | |
2267 | do | |
2268 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2269 | set dummy $ac_prog; ac_word=$2 | |
2270 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2271 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2272 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2274 | else | |
2275 | if test -n "$ac_ct_CC"; then | |
2276 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2277 | else | |
2278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2279 | for as_dir in $PATH | |
2280 | do | |
2281 | IFS=$as_save_IFS | |
2282 | test -z "$as_dir" && as_dir=. | |
2283 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2284 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2285 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2286 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2287 | break 2 | |
2288 | fi | |
2289 | done | |
2290 | done | |
2291 | ||
2292 | fi | |
2293 | fi | |
2294 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2295 | if test -n "$ac_ct_CC"; then | |
2296 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2297 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2298 | else | |
2299 | echo "$as_me:$LINENO: result: no" >&5 | |
2300 | echo "${ECHO_T}no" >&6 | |
2301 | fi | |
2302 | ||
2303 | test -n "$ac_ct_CC" && break | |
2304 | done | |
2305 | ||
2306 | CC=$ac_ct_CC | |
2307 | fi | |
2308 | ||
2309 | fi | |
2310 | ||
2311 | ||
2312 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2313 | See \`config.log' for more details." >&5 | |
2314 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2315 | See \`config.log' for more details." >&2;} | |
2316 | { (exit 1); exit 1; }; } | |
2317 | ||
2318 | # Provide some information about the compiler. | |
2319 | echo "$as_me:$LINENO:" \ | |
2320 | "checking for C compiler version" >&5 | |
2321 | ac_compiler=`set X $ac_compile; echo $2` | |
2322 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2323 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2324 | ac_status=$? | |
2325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2326 | (exit $ac_status); } | |
2327 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2328 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2329 | ac_status=$? | |
2330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2331 | (exit $ac_status); } | |
2332 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2333 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2334 | ac_status=$? | |
2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2336 | (exit $ac_status); } | |
2337 | ||
2338 | cat >conftest.$ac_ext <<_ACEOF | |
2339 | /* confdefs.h. */ | |
2340 | _ACEOF | |
2341 | cat confdefs.h >>conftest.$ac_ext | |
2342 | cat >>conftest.$ac_ext <<_ACEOF | |
2343 | /* end confdefs.h. */ | |
2344 | ||
2345 | int | |
2346 | main () | |
2347 | { | |
2348 | ||
2349 | ; | |
2350 | return 0; | |
2351 | } | |
2352 | _ACEOF | |
2353 | ac_clean_files_save=$ac_clean_files | |
2354 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2355 | # Try to create an executable without -o first, disregard a.out. | |
2356 | # It will help us diagnose broken compilers, and finding out an intuition | |
2357 | # of exeext. | |
2358 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2359 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2360 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2361 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2362 | (eval $ac_link_default) 2>&5 | |
2363 | ac_status=$? | |
2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2365 | (exit $ac_status); }; then | |
2366 | # Find the output, starting from the most likely. This scheme is | |
2367 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2368 | # resort. | |
2369 | ||
2370 | # Be careful to initialize this variable, since it used to be cached. | |
2371 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2372 | ac_cv_exeext= | |
2373 | # b.out is created by i960 compilers. | |
2374 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2375 | do | |
2376 | test -f "$ac_file" || continue | |
2377 | case $ac_file in | |
2378 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2379 | ;; | |
2380 | conftest.$ac_ext ) | |
2381 | # This is the source file. | |
2382 | ;; | |
2383 | [ab].out ) | |
2384 | # We found the default executable, but exeext='' is most | |
2385 | # certainly right. | |
2386 | break;; | |
2387 | *.* ) | |
2388 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2389 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2390 | # but it would be cool to find out if it's true. Does anybody | |
2391 | # maintain Libtool? --akim. | |
2392 | export ac_cv_exeext | |
2393 | break;; | |
2394 | * ) | |
2395 | break;; | |
2396 | esac | |
2397 | done | |
2398 | else | |
2399 | echo "$as_me: failed program was:" >&5 | |
2400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2401 | ||
2402 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2403 | See \`config.log' for more details." >&5 | |
2404 | echo "$as_me: error: C compiler cannot create executables | |
2405 | See \`config.log' for more details." >&2;} | |
2406 | { (exit 77); exit 77; }; } | |
2407 | fi | |
2408 | ||
2409 | ac_exeext=$ac_cv_exeext | |
2410 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2411 | echo "${ECHO_T}$ac_file" >&6 | |
2412 | ||
2413 | # Check the compiler produces executables we can run. If not, either | |
2414 | # the compiler is broken, or we cross compile. | |
2415 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2416 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2417 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2418 | # If not cross compiling, check that we can run a simple program. | |
2419 | if test "$cross_compiling" != yes; then | |
2420 | if { ac_try='./$ac_file' | |
2421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2422 | (eval $ac_try) 2>&5 | |
2423 | ac_status=$? | |
2424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2425 | (exit $ac_status); }; }; then | |
2426 | cross_compiling=no | |
2427 | else | |
2428 | if test "$cross_compiling" = maybe; then | |
2429 | cross_compiling=yes | |
2430 | else | |
2431 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2432 | If you meant to cross compile, use \`--host'. | |
2433 | See \`config.log' for more details." >&5 | |
2434 | echo "$as_me: error: cannot run C compiled programs. | |
2435 | If you meant to cross compile, use \`--host'. | |
2436 | See \`config.log' for more details." >&2;} | |
2437 | { (exit 1); exit 1; }; } | |
2438 | fi | |
2439 | fi | |
2440 | fi | |
2441 | echo "$as_me:$LINENO: result: yes" >&5 | |
2442 | echo "${ECHO_T}yes" >&6 | |
2443 | ||
2444 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2445 | ac_clean_files=$ac_clean_files_save | |
2446 | # Check the compiler produces executables we can run. If not, either | |
2447 | # the compiler is broken, or we cross compile. | |
2448 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2449 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2450 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2451 | echo "${ECHO_T}$cross_compiling" >&6 | |
2452 | ||
2453 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2454 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2456 | (eval $ac_link) 2>&5 | |
2457 | ac_status=$? | |
2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2459 | (exit $ac_status); }; then | |
2460 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2461 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2462 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2463 | # `rm'. | |
2464 | for ac_file in conftest.exe conftest conftest.*; do | |
2465 | test -f "$ac_file" || continue | |
2466 | case $ac_file in | |
2467 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2468 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2469 | export ac_cv_exeext | |
2470 | break;; | |
2471 | * ) break;; | |
2472 | esac | |
2473 | done | |
2474 | else | |
2475 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2476 | See \`config.log' for more details." >&5 | |
2477 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2478 | See \`config.log' for more details." >&2;} | |
2479 | { (exit 1); exit 1; }; } | |
2480 | fi | |
2481 | ||
2482 | rm -f conftest$ac_cv_exeext | |
2483 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2484 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2485 | ||
2486 | rm -f conftest.$ac_ext | |
2487 | EXEEXT=$ac_cv_exeext | |
2488 | ac_exeext=$EXEEXT | |
2489 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2490 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2491 | if test "${ac_cv_objext+set}" = set; then | |
2492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2493 | else | |
2494 | cat >conftest.$ac_ext <<_ACEOF | |
2495 | /* confdefs.h. */ | |
2496 | _ACEOF | |
2497 | cat confdefs.h >>conftest.$ac_ext | |
2498 | cat >>conftest.$ac_ext <<_ACEOF | |
2499 | /* end confdefs.h. */ | |
2500 | ||
2501 | int | |
2502 | main () | |
2503 | { | |
2504 | ||
2505 | ; | |
2506 | return 0; | |
2507 | } | |
2508 | _ACEOF | |
2509 | rm -f conftest.o conftest.obj | |
2510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2511 | (eval $ac_compile) 2>&5 | |
2512 | ac_status=$? | |
2513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2514 | (exit $ac_status); }; then | |
2515 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2516 | case $ac_file in | |
2517 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2518 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2519 | break;; | |
2520 | esac | |
2521 | done | |
2522 | else | |
2523 | echo "$as_me: failed program was:" >&5 | |
2524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2525 | ||
2526 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2527 | See \`config.log' for more details." >&5 | |
2528 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2529 | See \`config.log' for more details." >&2;} | |
2530 | { (exit 1); exit 1; }; } | |
2531 | fi | |
2532 | ||
2533 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2534 | fi | |
2535 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2536 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2537 | OBJEXT=$ac_cv_objext | |
2538 | ac_objext=$OBJEXT | |
2539 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2540 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2541 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2543 | else | |
2544 | cat >conftest.$ac_ext <<_ACEOF | |
2545 | /* confdefs.h. */ | |
2546 | _ACEOF | |
2547 | cat confdefs.h >>conftest.$ac_ext | |
2548 | cat >>conftest.$ac_ext <<_ACEOF | |
2549 | /* end confdefs.h. */ | |
2550 | ||
2551 | int | |
2552 | main () | |
2553 | { | |
2554 | #ifndef __GNUC__ | |
2555 | choke me | |
2556 | #endif | |
2557 | ||
2558 | ; | |
2559 | return 0; | |
2560 | } | |
2561 | _ACEOF | |
2562 | rm -f conftest.$ac_objext | |
2563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2564 | (eval $ac_compile) 2>conftest.er1 | |
2565 | ac_status=$? | |
2566 | grep -v '^ *+' conftest.er1 >conftest.err | |
2567 | rm -f conftest.er1 | |
2568 | cat conftest.err >&5 | |
2569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2570 | (exit $ac_status); } && | |
1fb2002d | 2571 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
2572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2573 | (eval $ac_try) 2>&5 | |
2574 | ac_status=$? | |
2575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2576 | (exit $ac_status); }; } && | |
2577 | { ac_try='test -s conftest.$ac_objext' | |
2578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2579 | (eval $ac_try) 2>&5 | |
2580 | ac_status=$? | |
2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2582 | (exit $ac_status); }; }; then | |
2583 | ac_compiler_gnu=yes | |
2584 | else | |
2585 | echo "$as_me: failed program was:" >&5 | |
2586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2587 | ||
2588 | ac_compiler_gnu=no | |
2589 | fi | |
2590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2591 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2592 | ||
2593 | fi | |
2594 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2595 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2596 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2597 | ac_test_CFLAGS=${CFLAGS+set} | |
2598 | ac_save_CFLAGS=$CFLAGS | |
2599 | CFLAGS="-g" | |
2600 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2601 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2602 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2604 | else | |
2605 | cat >conftest.$ac_ext <<_ACEOF | |
2606 | /* confdefs.h. */ | |
2607 | _ACEOF | |
2608 | cat confdefs.h >>conftest.$ac_ext | |
2609 | cat >>conftest.$ac_ext <<_ACEOF | |
2610 | /* end confdefs.h. */ | |
2611 | ||
2612 | int | |
2613 | main () | |
2614 | { | |
2615 | ||
2616 | ; | |
2617 | return 0; | |
2618 | } | |
2619 | _ACEOF | |
2620 | rm -f conftest.$ac_objext | |
2621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2622 | (eval $ac_compile) 2>conftest.er1 | |
2623 | ac_status=$? | |
2624 | grep -v '^ *+' conftest.er1 >conftest.err | |
2625 | rm -f conftest.er1 | |
2626 | cat conftest.err >&5 | |
2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2628 | (exit $ac_status); } && | |
1fb2002d | 2629 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
2630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2631 | (eval $ac_try) 2>&5 | |
2632 | ac_status=$? | |
2633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2634 | (exit $ac_status); }; } && | |
2635 | { ac_try='test -s conftest.$ac_objext' | |
2636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2637 | (eval $ac_try) 2>&5 | |
2638 | ac_status=$? | |
2639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2640 | (exit $ac_status); }; }; then | |
2641 | ac_cv_prog_cc_g=yes | |
2642 | else | |
2643 | echo "$as_me: failed program was:" >&5 | |
2644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2645 | ||
2646 | ac_cv_prog_cc_g=no | |
2647 | fi | |
2648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2649 | fi | |
2650 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2651 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2652 | if test "$ac_test_CFLAGS" = set; then | |
2653 | CFLAGS=$ac_save_CFLAGS | |
2654 | elif test $ac_cv_prog_cc_g = yes; then | |
2655 | if test "$GCC" = yes; then | |
2656 | CFLAGS="-g -O2" | |
2657 | else | |
2658 | CFLAGS="-g" | |
2659 | fi | |
2660 | else | |
2661 | if test "$GCC" = yes; then | |
2662 | CFLAGS="-O2" | |
2663 | else | |
2664 | CFLAGS= | |
2665 | fi | |
2666 | fi | |
2667 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2668 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2669 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2671 | else | |
2672 | ac_cv_prog_cc_stdc=no | |
2673 | ac_save_CC=$CC | |
2674 | cat >conftest.$ac_ext <<_ACEOF | |
2675 | /* confdefs.h. */ | |
2676 | _ACEOF | |
2677 | cat confdefs.h >>conftest.$ac_ext | |
2678 | cat >>conftest.$ac_ext <<_ACEOF | |
2679 | /* end confdefs.h. */ | |
2680 | #include <stdarg.h> | |
2681 | #include <stdio.h> | |
2682 | #include <sys/types.h> | |
2683 | #include <sys/stat.h> | |
2684 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2685 | struct buf { int x; }; | |
2686 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2687 | static char *e (p, i) | |
2688 | char **p; | |
2689 | int i; | |
2690 | { | |
2691 | return p[i]; | |
2692 | } | |
2693 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2694 | { | |
2695 | char *s; | |
2696 | va_list v; | |
2697 | va_start (v,p); | |
2698 | s = g (p, va_arg (v,int)); | |
2699 | va_end (v); | |
2700 | return s; | |
2701 | } | |
2702 | ||
2703 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2704 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2705 | These don't provoke an error unfortunately, instead are silently treated | |
2706 | as 'x'. The following induces an error, until -std1 is added to get | |
2707 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2708 | array size at least. It's necessary to write '\x00'==0 to get something | |
2709 | that's true only with -std1. */ | |
2710 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2711 | ||
2712 | int test (int i, double x); | |
2713 | struct s1 {int (*f) (int a);}; | |
2714 | struct s2 {int (*f) (double a);}; | |
2715 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2716 | int argc; | |
2717 | char **argv; | |
2718 | int | |
2719 | main () | |
2720 | { | |
2721 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2722 | ; | |
2723 | return 0; | |
2724 | } | |
2725 | _ACEOF | |
2726 | # Don't try gcc -ansi; that turns off useful extensions and | |
2727 | # breaks some systems' header files. | |
2728 | # AIX -qlanglvl=ansi | |
2729 | # Ultrix and OSF/1 -std1 | |
2730 | # HP-UX 10.20 and later -Ae | |
2731 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2732 | # SVR4 -Xc -D__EXTENSIONS__ | |
2733 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2734 | do | |
2735 | CC="$ac_save_CC $ac_arg" | |
2736 | rm -f conftest.$ac_objext | |
2737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2738 | (eval $ac_compile) 2>conftest.er1 | |
2739 | ac_status=$? | |
2740 | grep -v '^ *+' conftest.er1 >conftest.err | |
2741 | rm -f conftest.er1 | |
2742 | cat conftest.err >&5 | |
2743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2744 | (exit $ac_status); } && | |
1fb2002d | 2745 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
2746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2747 | (eval $ac_try) 2>&5 | |
2748 | ac_status=$? | |
2749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2750 | (exit $ac_status); }; } && | |
2751 | { ac_try='test -s conftest.$ac_objext' | |
2752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2753 | (eval $ac_try) 2>&5 | |
2754 | ac_status=$? | |
2755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2756 | (exit $ac_status); }; }; then | |
2757 | ac_cv_prog_cc_stdc=$ac_arg | |
2758 | break | |
2759 | else | |
2760 | echo "$as_me: failed program was:" >&5 | |
2761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2762 | ||
2763 | fi | |
2764 | rm -f conftest.err conftest.$ac_objext | |
2765 | done | |
2766 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2767 | CC=$ac_save_CC | |
2768 | ||
2769 | fi | |
2770 | ||
2771 | case "x$ac_cv_prog_cc_stdc" in | |
2772 | x|xno) | |
2773 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2774 | echo "${ECHO_T}none needed" >&6 ;; | |
2775 | *) | |
2776 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2777 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2778 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2779 | esac | |
2780 | ||
2781 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2782 | # in C++ we need to declare it. In case someone uses the same compiler | |
2783 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2784 | # the declaration of exit, since it's the most demanding environment. | |
2785 | cat >conftest.$ac_ext <<_ACEOF | |
2786 | #ifndef __cplusplus | |
2787 | choke me | |
2788 | #endif | |
2789 | _ACEOF | |
2790 | rm -f conftest.$ac_objext | |
2791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2792 | (eval $ac_compile) 2>conftest.er1 | |
2793 | ac_status=$? | |
2794 | grep -v '^ *+' conftest.er1 >conftest.err | |
2795 | rm -f conftest.er1 | |
2796 | cat conftest.err >&5 | |
2797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2798 | (exit $ac_status); } && | |
1fb2002d | 2799 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
2800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2801 | (eval $ac_try) 2>&5 | |
2802 | ac_status=$? | |
2803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2804 | (exit $ac_status); }; } && | |
2805 | { ac_try='test -s conftest.$ac_objext' | |
2806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2807 | (eval $ac_try) 2>&5 | |
2808 | ac_status=$? | |
2809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2810 | (exit $ac_status); }; }; then | |
2811 | for ac_declaration in \ | |
2812 | '' \ | |
2813 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2814 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2815 | 'extern "C" void exit (int) throw ();' \ | |
2816 | 'extern "C" void exit (int);' \ | |
2817 | 'void exit (int);' | |
2818 | do | |
2819 | cat >conftest.$ac_ext <<_ACEOF | |
2820 | /* confdefs.h. */ | |
2821 | _ACEOF | |
2822 | cat confdefs.h >>conftest.$ac_ext | |
2823 | cat >>conftest.$ac_ext <<_ACEOF | |
2824 | /* end confdefs.h. */ | |
2825 | $ac_declaration | |
2826 | #include <stdlib.h> | |
2827 | int | |
2828 | main () | |
2829 | { | |
2830 | exit (42); | |
2831 | ; | |
2832 | return 0; | |
2833 | } | |
2834 | _ACEOF | |
2835 | rm -f conftest.$ac_objext | |
2836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2837 | (eval $ac_compile) 2>conftest.er1 | |
2838 | ac_status=$? | |
2839 | grep -v '^ *+' conftest.er1 >conftest.err | |
2840 | rm -f conftest.er1 | |
2841 | cat conftest.err >&5 | |
2842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2843 | (exit $ac_status); } && | |
1fb2002d | 2844 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
2845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2846 | (eval $ac_try) 2>&5 | |
2847 | ac_status=$? | |
2848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2849 | (exit $ac_status); }; } && | |
2850 | { ac_try='test -s conftest.$ac_objext' | |
2851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2852 | (eval $ac_try) 2>&5 | |
2853 | ac_status=$? | |
2854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2855 | (exit $ac_status); }; }; then | |
2856 | : | |
2857 | else | |
2858 | echo "$as_me: failed program was:" >&5 | |
2859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2860 | ||
2861 | continue | |
2862 | fi | |
2863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2864 | cat >conftest.$ac_ext <<_ACEOF | |
2865 | /* confdefs.h. */ | |
2866 | _ACEOF | |
2867 | cat confdefs.h >>conftest.$ac_ext | |
2868 | cat >>conftest.$ac_ext <<_ACEOF | |
2869 | /* end confdefs.h. */ | |
2870 | $ac_declaration | |
2871 | int | |
2872 | main () | |
2873 | { | |
2874 | exit (42); | |
2875 | ; | |
2876 | return 0; | |
2877 | } | |
2878 | _ACEOF | |
2879 | rm -f conftest.$ac_objext | |
2880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2881 | (eval $ac_compile) 2>conftest.er1 | |
2882 | ac_status=$? | |
2883 | grep -v '^ *+' conftest.er1 >conftest.err | |
2884 | rm -f conftest.er1 | |
2885 | cat conftest.err >&5 | |
2886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2887 | (exit $ac_status); } && | |
1fb2002d | 2888 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
2889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2890 | (eval $ac_try) 2>&5 | |
2891 | ac_status=$? | |
2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2893 | (exit $ac_status); }; } && | |
2894 | { ac_try='test -s conftest.$ac_objext' | |
2895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2896 | (eval $ac_try) 2>&5 | |
2897 | ac_status=$? | |
2898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2899 | (exit $ac_status); }; }; then | |
2900 | break | |
2901 | else | |
2902 | echo "$as_me: failed program was:" >&5 | |
2903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2904 | ||
2905 | fi | |
2906 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2907 | done | |
2908 | rm -f conftest* | |
2909 | if test -n "$ac_declaration"; then | |
2910 | echo '#ifdef __cplusplus' >>confdefs.h | |
2911 | echo $ac_declaration >>confdefs.h | |
2912 | echo '#endif' >>confdefs.h | |
2913 | fi | |
2914 | ||
2915 | else | |
2916 | echo "$as_me: failed program was:" >&5 | |
2917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2918 | ||
2919 | fi | |
2920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2921 | ac_ext=c | |
2922 | ac_cpp='$CPP $CPPFLAGS' | |
2923 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2924 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2925 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a | 2926 | |
6de9cd9a | 2927 | |
6de9cd9a | 2928 | |
6de9cd9a DN |
2929 | |
2930 | ||
96b8a615 AJ |
2931 | # Add -Wall if we are using GCC. |
2932 | if test "x$GCC" = "xyes"; then | |
2933 | CFLAGS="$CFLAGS -Wall" | |
6de9cd9a DN |
2934 | fi |
2935 | ||
96b8a615 AJ |
2936 | # Find other programs we need. |
2937 | if test -n "$ac_tool_prefix"; then | |
2938 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
2939 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
2940 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2942 | if test "${ac_cv_prog_AS+set}" = set; then | |
6de9cd9a DN |
2943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2944 | else | |
96b8a615 AJ |
2945 | if test -n "$AS"; then |
2946 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
2947 | else | |
2948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2949 | for as_dir in $PATH | |
2950 | do | |
2951 | IFS=$as_save_IFS | |
2952 | test -z "$as_dir" && as_dir=. | |
2953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2955 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
2956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2957 | break 2 | |
6de9cd9a | 2958 | fi |
96b8a615 AJ |
2959 | done |
2960 | done | |
6de9cd9a | 2961 | |
96b8a615 AJ |
2962 | fi |
2963 | fi | |
2964 | AS=$ac_cv_prog_AS | |
2965 | if test -n "$AS"; then | |
2966 | echo "$as_me:$LINENO: result: $AS" >&5 | |
2967 | echo "${ECHO_T}$AS" >&6 | |
6de9cd9a | 2968 | else |
96b8a615 AJ |
2969 | echo "$as_me:$LINENO: result: no" >&5 |
2970 | echo "${ECHO_T}no" >&6 | |
6de9cd9a DN |
2971 | fi |
2972 | ||
2973 | fi | |
96b8a615 AJ |
2974 | if test -z "$ac_cv_prog_AS"; then |
2975 | ac_ct_AS=$AS | |
2976 | # Extract the first word of "as", so it can be a program name with args. | |
2977 | set dummy as; ac_word=$2 | |
2978 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2980 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | |
2981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2982 | else | |
2983 | if test -n "$ac_ct_AS"; then | |
2984 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
2985 | else | |
2986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2987 | for as_dir in $PATH | |
2988 | do | |
2989 | IFS=$as_save_IFS | |
2990 | test -z "$as_dir" && as_dir=. | |
2991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2992 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2993 | ac_cv_prog_ac_ct_AS="as" | |
2994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2995 | break 2 | |
2996 | fi | |
2997 | done | |
2998 | done | |
6de9cd9a | 2999 | |
96b8a615 AJ |
3000 | fi |
3001 | fi | |
3002 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3003 | if test -n "$ac_ct_AS"; then | |
3004 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | |
3005 | echo "${ECHO_T}$ac_ct_AS" >&6 | |
6de9cd9a | 3006 | else |
96b8a615 AJ |
3007 | echo "$as_me:$LINENO: result: no" >&5 |
3008 | echo "${ECHO_T}no" >&6 | |
6de9cd9a DN |
3009 | fi |
3010 | ||
96b8a615 AJ |
3011 | AS=$ac_ct_AS |
3012 | else | |
3013 | AS="$ac_cv_prog_AS" | |
6de9cd9a DN |
3014 | fi |
3015 | ||
6de9cd9a | 3016 | if test -n "$ac_tool_prefix"; then |
96b8a615 AJ |
3017 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
3018 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6de9cd9a DN |
3019 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3020 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
96b8a615 | 3021 | if test "${ac_cv_prog_AR+set}" = set; then |
6de9cd9a DN |
3022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3023 | else | |
96b8a615 AJ |
3024 | if test -n "$AR"; then |
3025 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6de9cd9a DN |
3026 | else |
3027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3028 | for as_dir in $PATH | |
3029 | do | |
3030 | IFS=$as_save_IFS | |
3031 | test -z "$as_dir" && as_dir=. | |
3032 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3033 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
96b8a615 | 3034 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6de9cd9a DN |
3035 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3036 | break 2 | |
3037 | fi | |
3038 | done | |
3039 | done | |
3040 | ||
3041 | fi | |
3042 | fi | |
96b8a615 AJ |
3043 | AR=$ac_cv_prog_AR |
3044 | if test -n "$AR"; then | |
3045 | echo "$as_me:$LINENO: result: $AR" >&5 | |
3046 | echo "${ECHO_T}$AR" >&6 | |
6de9cd9a DN |
3047 | else |
3048 | echo "$as_me:$LINENO: result: no" >&5 | |
3049 | echo "${ECHO_T}no" >&6 | |
3050 | fi | |
3051 | ||
6de9cd9a | 3052 | fi |
96b8a615 AJ |
3053 | if test -z "$ac_cv_prog_AR"; then |
3054 | ac_ct_AR=$AR | |
3055 | # Extract the first word of "ar", so it can be a program name with args. | |
3056 | set dummy ar; ac_word=$2 | |
6de9cd9a DN |
3057 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3058 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
96b8a615 | 3059 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6de9cd9a DN |
3060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3061 | else | |
96b8a615 AJ |
3062 | if test -n "$ac_ct_AR"; then |
3063 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6de9cd9a DN |
3064 | else |
3065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3066 | for as_dir in $PATH | |
3067 | do | |
3068 | IFS=$as_save_IFS | |
3069 | test -z "$as_dir" && as_dir=. | |
3070 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3071 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
96b8a615 | 3072 | ac_cv_prog_ac_ct_AR="ar" |
6de9cd9a DN |
3073 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3074 | break 2 | |
3075 | fi | |
3076 | done | |
3077 | done | |
3078 | ||
3079 | fi | |
3080 | fi | |
96b8a615 AJ |
3081 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
3082 | if test -n "$ac_ct_AR"; then | |
3083 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3084 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
6de9cd9a DN |
3085 | else |
3086 | echo "$as_me:$LINENO: result: no" >&5 | |
3087 | echo "${ECHO_T}no" >&6 | |
3088 | fi | |
3089 | ||
96b8a615 AJ |
3090 | AR=$ac_ct_AR |
3091 | else | |
3092 | AR="$ac_cv_prog_AR" | |
6de9cd9a DN |
3093 | fi |
3094 | ||
96b8a615 AJ |
3095 | if test -n "$ac_tool_prefix"; then |
3096 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3097 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3098 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3099 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3100 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6de9cd9a DN |
3101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3102 | else | |
96b8a615 AJ |
3103 | if test -n "$RANLIB"; then |
3104 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6de9cd9a | 3105 | else |
96b8a615 AJ |
3106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3107 | for as_dir in $PATH | |
3108 | do | |
3109 | IFS=$as_save_IFS | |
3110 | test -z "$as_dir" && as_dir=. | |
3111 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3112 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3113 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3114 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3115 | break 2 | |
3116 | fi | |
3117 | done | |
3118 | done | |
6de9cd9a | 3119 | |
6de9cd9a | 3120 | fi |
96b8a615 AJ |
3121 | fi |
3122 | RANLIB=$ac_cv_prog_RANLIB | |
3123 | if test -n "$RANLIB"; then | |
3124 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3125 | echo "${ECHO_T}$RANLIB" >&6 | |
3126 | else | |
3127 | echo "$as_me:$LINENO: result: no" >&5 | |
3128 | echo "${ECHO_T}no" >&6 | |
3129 | fi | |
6de9cd9a DN |
3130 | |
3131 | fi | |
96b8a615 AJ |
3132 | if test -z "$ac_cv_prog_RANLIB"; then |
3133 | ac_ct_RANLIB=$RANLIB | |
3134 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3135 | set dummy ranlib; ac_word=$2 | |
3136 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3138 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6de9cd9a DN |
3139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3140 | else | |
96b8a615 AJ |
3141 | if test -n "$ac_ct_RANLIB"; then |
3142 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6de9cd9a | 3143 | else |
96b8a615 AJ |
3144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3145 | for as_dir in $PATH | |
3146 | do | |
3147 | IFS=$as_save_IFS | |
3148 | test -z "$as_dir" && as_dir=. | |
3149 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3150 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3151 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3152 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3153 | break 2 | |
3154 | fi | |
3155 | done | |
3156 | done | |
6de9cd9a | 3157 | |
96b8a615 | 3158 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" |
6de9cd9a | 3159 | fi |
6de9cd9a | 3160 | fi |
96b8a615 AJ |
3161 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3162 | if test -n "$ac_ct_RANLIB"; then | |
3163 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3164 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
6de9cd9a | 3165 | else |
96b8a615 AJ |
3166 | echo "$as_me:$LINENO: result: no" >&5 |
3167 | echo "${ECHO_T}no" >&6 | |
6de9cd9a DN |
3168 | fi |
3169 | ||
96b8a615 AJ |
3170 | RANLIB=$ac_ct_RANLIB |
3171 | else | |
3172 | RANLIB="$ac_cv_prog_RANLIB" | |
6de9cd9a | 3173 | fi |
96b8a615 AJ |
3174 | |
3175 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3176 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3177 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3178 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
6de9cd9a DN |
3179 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3180 | else | |
96b8a615 AJ |
3181 | cat >conftest.make <<\_ACEOF |
3182 | all: | |
3183 | @echo 'ac_maketemp="$(MAKE)"' | |
6de9cd9a | 3184 | _ACEOF |
96b8a615 AJ |
3185 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3186 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3187 | if test -n "$ac_maketemp"; then | |
3188 | eval ac_cv_prog_make_${ac_make}_set=yes | |
6de9cd9a | 3189 | else |
96b8a615 | 3190 | eval ac_cv_prog_make_${ac_make}_set=no |
6de9cd9a | 3191 | fi |
96b8a615 AJ |
3192 | rm -f conftest.make |
3193 | fi | |
3194 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3195 | echo "$as_me:$LINENO: result: yes" >&5 | |
3196 | echo "${ECHO_T}yes" >&6 | |
3197 | SET_MAKE= | |
6de9cd9a | 3198 | else |
96b8a615 AJ |
3199 | echo "$as_me:$LINENO: result: no" >&5 |
3200 | echo "${ECHO_T}no" >&6 | |
3201 | SET_MAKE="MAKE=${MAKE-make}" | |
6de9cd9a | 3202 | fi |
6de9cd9a | 3203 | |
96b8a615 AJ |
3204 | # Find a good install program. We prefer a C program (faster), |
3205 | # so one script is as good as another. But avoid the broken or | |
3206 | # incompatible versions: | |
3207 | # SysV /etc/install, /usr/sbin/install | |
3208 | # SunOS /usr/etc/install | |
3209 | # IRIX /sbin/install | |
3210 | # AIX /bin/install | |
3211 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3212 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3213 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3214 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3215 | # OS/2's system install, which has a completely different semantic | |
3216 | # ./install, which can be erroneously created by make from ./install.sh. | |
3217 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3218 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
3219 | if test -z "$INSTALL"; then | |
3220 | if test "${ac_cv_path_install+set}" = set; then | |
3221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6de9cd9a | 3222 | else |
96b8a615 AJ |
3223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3224 | for as_dir in $PATH | |
3225 | do | |
3226 | IFS=$as_save_IFS | |
3227 | test -z "$as_dir" && as_dir=. | |
3228 | # Account for people who put trailing slashes in PATH elements. | |
3229 | case $as_dir/ in | |
3230 | ./ | .// | /cC/* | \ | |
3231 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3232 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3233 | /usr/ucb/* ) ;; | |
3234 | *) | |
3235 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3236 | # Don't use installbsd from OSF since it installs stuff as root | |
3237 | # by default. | |
3238 | for ac_prog in ginstall scoinst install; do | |
3239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3240 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3241 | if test $ac_prog = install && | |
3242 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3243 | # AIX install. It has an incompatible calling convention. | |
3244 | : | |
3245 | elif test $ac_prog = install && | |
3246 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3247 | # program-specific install script used by HP pwplus--don't use. | |
3248 | : | |
3249 | else | |
3250 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3251 | break 3 | |
3252 | fi | |
3253 | fi | |
3254 | done | |
3255 | done | |
3256 | ;; | |
3257 | esac | |
6de9cd9a | 3258 | done |
6de9cd9a | 3259 | |
6de9cd9a DN |
3260 | |
3261 | fi | |
96b8a615 AJ |
3262 | if test "${ac_cv_path_install+set}" = set; then |
3263 | INSTALL=$ac_cv_path_install | |
6de9cd9a | 3264 | else |
96b8a615 AJ |
3265 | # As a last resort, use the slow shell script. We don't cache a |
3266 | # path for INSTALL within a source directory, because that will | |
3267 | # break other packages using the cache if that directory is | |
3268 | # removed, or if the path is relative. | |
3269 | INSTALL=$ac_install_sh | |
6de9cd9a | 3270 | fi |
6de9cd9a | 3271 | fi |
96b8a615 AJ |
3272 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3273 | echo "${ECHO_T}$INSTALL" >&6 | |
6de9cd9a | 3274 | |
96b8a615 AJ |
3275 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3276 | # It thinks the first close brace ends the variable substitution. | |
3277 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6de9cd9a | 3278 | |
96b8a615 | 3279 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
6de9cd9a | 3280 | |
96b8a615 | 3281 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
6de9cd9a | 3282 | |
6de9cd9a | 3283 | |
96b8a615 AJ |
3284 | # Configure libtool |
3285 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
6de9cd9a | 3286 | |
96b8a615 AJ |
3287 | # Check whether --enable-shared or --disable-shared was given. |
3288 | if test "${enable_shared+set}" = set; then | |
3289 | enableval="$enable_shared" | |
3290 | p=${PACKAGE-default} | |
3291 | case $enableval in | |
3292 | yes) enable_shared=yes ;; | |
3293 | no) enable_shared=no ;; | |
3294 | *) | |
3295 | enable_shared=no | |
3296 | # Look at the argument we got. We use all the common list separators. | |
3297 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3298 | for pkg in $enableval; do | |
3299 | if test "X$pkg" = "X$p"; then | |
3300 | enable_shared=yes | |
6de9cd9a | 3301 | fi |
96b8a615 AJ |
3302 | done |
3303 | IFS="$ac_save_ifs" | |
3304 | ;; | |
3305 | esac | |
6de9cd9a | 3306 | else |
96b8a615 AJ |
3307 | enable_shared=yes |
3308 | fi; | |
3309 | # Check whether --enable-static or --disable-static was given. | |
3310 | if test "${enable_static+set}" = set; then | |
3311 | enableval="$enable_static" | |
3312 | p=${PACKAGE-default} | |
3313 | case $enableval in | |
3314 | yes) enable_static=yes ;; | |
3315 | no) enable_static=no ;; | |
3316 | *) | |
3317 | enable_static=no | |
3318 | # Look at the argument we got. We use all the common list separators. | |
3319 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3320 | for pkg in $enableval; do | |
3321 | if test "X$pkg" = "X$p"; then | |
3322 | enable_static=yes | |
3323 | fi | |
3324 | done | |
3325 | IFS="$ac_save_ifs" | |
3326 | ;; | |
3327 | esac | |
3328 | else | |
3329 | enable_static=yes | |
3330 | fi; | |
3331 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
3332 | if test "${enable_fast_install+set}" = set; then | |
3333 | enableval="$enable_fast_install" | |
3334 | p=${PACKAGE-default} | |
3335 | case $enableval in | |
3336 | yes) enable_fast_install=yes ;; | |
3337 | no) enable_fast_install=no ;; | |
3338 | *) | |
3339 | enable_fast_install=no | |
3340 | # Look at the argument we got. We use all the common list separators. | |
3341 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3342 | for pkg in $enableval; do | |
3343 | if test "X$pkg" = "X$p"; then | |
3344 | enable_fast_install=yes | |
3345 | fi | |
3346 | done | |
3347 | IFS="$ac_save_ifs" | |
3348 | ;; | |
3349 | esac | |
3350 | else | |
3351 | enable_fast_install=yes | |
3352 | fi; | |
6de9cd9a | 3353 | |
96b8a615 AJ |
3354 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3355 | if test "${with_gnu_ld+set}" = set; then | |
3356 | withval="$with_gnu_ld" | |
3357 | test "$withval" = no || with_gnu_ld=yes | |
3358 | else | |
3359 | with_gnu_ld=no | |
3360 | fi; | |
3361 | ac_prog=ld | |
3362 | if test "$GCC" = yes; then | |
3363 | # Check if gcc -print-prog-name=ld gives a path. | |
3364 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
3365 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
3366 | case $host in | |
3367 | *-*-mingw*) | |
3368 | # gcc leaves a trailing carriage return which upsets mingw | |
3369 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3370 | *) | |
3371 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3372 | esac | |
3373 | case $ac_prog in | |
3374 | # Accept absolute paths. | |
3375 | [\\/]* | [A-Za-z]:[\\/]*) | |
3376 | re_direlt='/[^/][^/]*/\.\./' | |
3377 | # Canonicalize the path of ld | |
3378 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3379 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3380 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3381 | done | |
3382 | test -z "$LD" && LD="$ac_prog" | |
3383 | ;; | |
3384 | "") | |
3385 | # If it fails, then pretend we aren't using GCC. | |
3386 | ac_prog=ld | |
3387 | ;; | |
3388 | *) | |
3389 | # If it is relative, then search for the first ld in PATH. | |
3390 | with_gnu_ld=unknown | |
3391 | ;; | |
3392 | esac | |
3393 | elif test "$with_gnu_ld" = yes; then | |
3394 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3395 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3396 | else | |
3397 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3398 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3399 | fi | |
3400 | if test "${lt_cv_path_LD+set}" = set; then | |
3401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3402 | else | |
3403 | if test -z "$LD"; then | |
3404 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3405 | for ac_dir in $PATH; do | |
3406 | test -z "$ac_dir" && ac_dir=. | |
3407 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3408 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3409 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3410 | # but apparently some GNU ld's only accept -v. | |
3411 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3412 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
3413 | test "$with_gnu_ld" != no && break | |
3414 | else | |
3415 | test "$with_gnu_ld" != yes && break | |
3416 | fi | |
3417 | fi | |
3418 | done | |
3419 | IFS="$ac_save_ifs" | |
3420 | else | |
3421 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3422 | fi | |
3423 | fi | |
3424 | ||
3425 | LD="$lt_cv_path_LD" | |
3426 | if test -n "$LD"; then | |
3427 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3428 | echo "${ECHO_T}$LD" >&6 | |
3429 | else | |
3430 | echo "$as_me:$LINENO: result: no" >&5 | |
3431 | echo "${ECHO_T}no" >&6 | |
3432 | fi | |
3433 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3434 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3435 | { (exit 1); exit 1; }; } | |
3436 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3437 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3438 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3440 | else | |
3441 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3442 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
3443 | lt_cv_prog_gnu_ld=yes | |
3444 | else | |
3445 | lt_cv_prog_gnu_ld=no | |
3446 | fi | |
3447 | fi | |
3448 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3449 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3450 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3451 | ||
3452 | ||
3453 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3454 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3455 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3457 | else | |
3458 | lt_cv_ld_reload_flag='-r' | |
3459 | fi | |
3460 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3461 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3462 | reload_flag=$lt_cv_ld_reload_flag | |
3463 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3464 | ||
3465 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3466 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3467 | if test "${lt_cv_path_NM+set}" = set; then | |
3468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3469 | else | |
3470 | if test -n "$NM"; then | |
3471 | # Let the user override the test. | |
3472 | lt_cv_path_NM="$NM" | |
3473 | else | |
3474 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3475 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
3476 | test -z "$ac_dir" && ac_dir=. | |
3477 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | |
3478 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
3479 | # Check to see if the nm accepts a BSD-compat flag. | |
3480 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3481 | # nm: unknown option "B" ignored | |
3482 | # Tru64's nm complains that /dev/null is an invalid object file | |
3483 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
3484 | lt_cv_path_NM="$tmp_nm -B" | |
3485 | break | |
3486 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
3487 | lt_cv_path_NM="$tmp_nm -p" | |
3488 | break | |
3489 | else | |
3490 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3491 | continue # so that we can try to find one that supports BSD flags | |
3492 | fi | |
3493 | fi | |
3494 | done | |
3495 | IFS="$ac_save_ifs" | |
3496 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3497 | fi | |
3498 | fi | |
3499 | ||
3500 | NM="$lt_cv_path_NM" | |
3501 | echo "$as_me:$LINENO: result: $NM" >&5 | |
3502 | echo "${ECHO_T}$NM" >&6 | |
3503 | ||
3504 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3505 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3506 | LN_S=$as_ln_s | |
3507 | if test "$LN_S" = "ln -s"; then | |
3508 | echo "$as_me:$LINENO: result: yes" >&5 | |
3509 | echo "${ECHO_T}yes" >&6 | |
3510 | else | |
3511 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3512 | echo "${ECHO_T}no, using $LN_S" >&6 | |
3513 | fi | |
3514 | ||
3515 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 | |
3516 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3517 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3519 | else | |
3520 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3521 | lt_cv_file_magic_test_file= | |
3522 | lt_cv_deplibs_check_method='unknown' | |
3523 | # Need to set the preceding variable on all platforms that support | |
3524 | # interlibrary dependencies. | |
3525 | # 'none' -- dependencies not supported. | |
3526 | # `unknown' -- same as none, but documents that we really don't know. | |
3527 | # 'pass_all' -- all dependencies passed with no checks. | |
3528 | # 'test_compile' -- check by making test program. | |
3529 | # 'file_magic [regex]' -- check by looking for files in library path | |
3530 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3531 | # If you have `file' or equivalent on your system and you're not sure | |
3532 | # whether `pass_all' will *always* work, you probably want this one. | |
3533 | ||
3534 | case $host_os in | |
3535 | aix*) | |
3536 | lt_cv_deplibs_check_method=pass_all | |
3537 | ;; | |
3538 | ||
3539 | beos*) | |
3540 | lt_cv_deplibs_check_method=pass_all | |
3541 | ;; | |
3542 | ||
3543 | bsdi4*) | |
3544 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3545 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3546 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3547 | ;; | |
3548 | ||
3549 | cygwin* | mingw* |pw32*) | |
3550 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3551 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3552 | ;; | |
3553 | ||
3554 | darwin* | rhapsody*) | |
3555 | # this will be overwritten by pass_all, but leave it in just in case | |
3556 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
3557 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3558 | case "$host_os" in | |
3559 | rhapsody* | darwin1.012) | |
3560 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3561 | ;; | |
3562 | *) # Darwin 1.3 on | |
3563 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3564 | ;; | |
3565 | esac | |
3566 | lt_cv_deplibs_check_method=pass_all | |
3567 | ;; | |
3568 | ||
3569 | freebsd* | kfreebsd*-gnu) | |
3570 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3571 | case $host_cpu in | |
3572 | i*86 ) | |
3573 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3574 | # Let's accept both of them until this is cleared up. | |
3575 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
3576 | lt_cv_file_magic_cmd=/usr/bin/file | |
3577 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3578 | ;; | |
3579 | esac | |
3580 | else | |
3581 | lt_cv_deplibs_check_method=pass_all | |
3582 | fi | |
3583 | ;; | |
3584 | ||
3585 | gnu*) | |
3586 | lt_cv_deplibs_check_method=pass_all | |
3587 | ;; | |
3588 | ||
3589 | hpux10.20*|hpux11*) | |
3590 | case $host_cpu in | |
3591 | hppa*) | |
3592 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3593 | lt_cv_file_magic_cmd=/usr/bin/file | |
3594 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3595 | ;; | |
3596 | ia64*) | |
3597 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3598 | lt_cv_file_magic_cmd=/usr/bin/file | |
3599 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3600 | ;; | |
3601 | esac | |
3602 | ;; | |
3603 | ||
3604 | irix5* | irix6*) | |
3605 | case $host_os in | |
3606 | irix5*) | |
3607 | # this will be overridden with pass_all, but let us keep it just in case | |
3608 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3609 | ;; | |
3610 | *) | |
3611 | case $LD in | |
3612 | *-32|*"-32 ") libmagic=32-bit;; | |
3613 | *-n32|*"-n32 ") libmagic=N32;; | |
3614 | *-64|*"-64 ") libmagic=64-bit;; | |
3615 | *) libmagic=never-match;; | |
3616 | esac | |
3617 | # this will be overridden with pass_all, but let us keep it just in case | |
3618 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
3619 | ;; | |
3620 | esac | |
3621 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3622 | lt_cv_deplibs_check_method=pass_all | |
3623 | ;; | |
3624 | ||
3625 | # This must be Linux ELF. | |
3626 | linux-gnu*) | |
2c92e90f | 3627 | lt_cv_deplibs_check_method=pass_all |
96b8a615 AJ |
3628 | ;; |
3629 | ||
3630 | netbsd* | knetbsd*-gnu) | |
3631 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3632 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
3633 | else | |
3634 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
3635 | fi | |
3636 | ;; | |
3637 | ||
3638 | newsos6) | |
3639 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3640 | lt_cv_file_magic_cmd=/usr/bin/file | |
3641 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3642 | ;; | |
3643 | ||
3644 | osf3* | osf4* | osf5*) | |
3645 | # this will be overridden with pass_all, but let us keep it just in case | |
3646 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3647 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3648 | lt_cv_deplibs_check_method=pass_all | |
3649 | ;; | |
3650 | ||
3651 | sco3.2v5*) | |
3652 | lt_cv_deplibs_check_method=pass_all | |
3653 | ;; | |
3654 | ||
3655 | solaris*) | |
3656 | lt_cv_deplibs_check_method=pass_all | |
3657 | lt_cv_file_magic_test_file=/lib/libc.so | |
3658 | ;; | |
3659 | ||
3660 | sysv5uw[78]* | sysv4*uw2*) | |
3661 | lt_cv_deplibs_check_method=pass_all | |
3662 | ;; | |
3663 | ||
3664 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
3665 | case $host_vendor in | |
3666 | ncr) | |
3667 | lt_cv_deplibs_check_method=pass_all | |
3668 | ;; | |
3669 | motorola) | |
3670 | 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]' | |
3671 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3672 | ;; | |
3673 | esac | |
3674 | ;; | |
3675 | esac | |
3676 | ||
3677 | fi | |
3678 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
3679 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3680 | file_magic_cmd=$lt_cv_file_magic_cmd | |
3681 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3682 | ||
3683 | ||
3684 | ||
3685 | ||
3686 | ||
3687 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3688 | ||
6dab073b MS |
3689 | # find the maximum length of command line arguments |
3690 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
3691 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
3692 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
3693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3694 | else | |
3695 | i=0 | |
3696 | teststring="ABCD" | |
3697 | ||
3698 | case $build_os in | |
3699 | msdosdjgpp*) | |
3700 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
3701 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
3702 | # during glob expansion). Even if it were fixed, the result of this | |
3703 | # check would be larger than it should be. | |
3704 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
3705 | ;; | |
3706 | ||
3707 | cygwin* | mingw*) | |
3708 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
3709 | # about 5 minutes as the teststring grows exponentially. | |
3710 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
3711 | # you end up with a "frozen" computer, even though with patience | |
3712 | # the test eventually succeeds (with a max line length of 256k). | |
3713 | # Instead, let's just punt: use the minimum linelength reported by | |
3714 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
3715 | lt_cv_sys_max_cmd_len=8192; | |
3716 | ;; | |
3717 | ||
3718 | amigaos*) | |
3719 | # On AmigaOS with pdksh, this test takes hours, literally. | |
3720 | # So we just punt and use a minimum line length of 8192. | |
3721 | lt_cv_sys_max_cmd_len=8192; | |
3722 | ;; | |
3723 | ||
3724 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
3725 | # This has been around since 386BSD, at least. Likely further. | |
3726 | if test -x /sbin/sysctl; then | |
3727 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
3728 | elif test -x /usr/sbin/sysctl; then | |
3729 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
3730 | else | |
3731 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | |
3732 | fi | |
3733 | # And add a safety zone | |
3734 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
3735 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
3736 | ;; | |
3737 | esac | |
3738 | ||
3739 | fi | |
3740 | ||
3741 | if test -n $lt_cv_sys_max_cmd_len ; then | |
3742 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
3743 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
3744 | else | |
3745 | echo "$as_me:$LINENO: result: none" >&5 | |
3746 | echo "${ECHO_T}none" >&6 | |
3747 | fi | |
3748 | ||
3749 | ||
96b8a615 AJ |
3750 | # Only perform the check for file, if the check method requires it |
3751 | case $deplibs_check_method in | |
3752 | file_magic*) | |
3753 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
3754 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
3755 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3756 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3758 | else | |
3759 | case $MAGIC_CMD in | |
3760 | /*) | |
3761 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3762 | ;; | |
3763 | ?:/*) | |
3764 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3765 | ;; | |
3766 | *) | |
3767 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
3768 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3769 | ac_dummy="/usr/bin:$PATH" | |
3770 | for ac_dir in $ac_dummy; do | |
3771 | test -z "$ac_dir" && ac_dir=. | |
3772 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
3773 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
3774 | if test -n "$file_magic_test_file"; then | |
3775 | case $deplibs_check_method in | |
3776 | "file_magic "*) | |
3777 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3778 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3779 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3780 | egrep "$file_magic_regex" > /dev/null; then | |
3781 | : | |
3782 | else | |
3783 | cat <<EOF 1>&2 | |
3784 | ||
3785 | *** Warning: the command libtool uses to detect shared libraries, | |
3786 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3787 | *** The result is that libtool may fail to recognize shared libraries | |
3788 | *** as such. This will affect the creation of libtool libraries that | |
3789 | *** depend on shared libraries, but programs linked with such libtool | |
3790 | *** libraries will work regardless of this problem. Nevertheless, you | |
3791 | *** may want to report the problem to your system manager and/or to | |
3792 | *** bug-libtool@gnu.org | |
3793 | ||
3794 | EOF | |
3795 | fi ;; | |
3796 | esac | |
3797 | fi | |
3798 | break | |
3799 | fi | |
3800 | done | |
3801 | IFS="$ac_save_ifs" | |
3802 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
3803 | ;; | |
3804 | esac | |
3805 | fi | |
3806 | ||
3807 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3808 | if test -n "$MAGIC_CMD"; then | |
3809 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
3810 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
3811 | else | |
3812 | echo "$as_me:$LINENO: result: no" >&5 | |
3813 | echo "${ECHO_T}no" >&6 | |
3814 | fi | |
3815 | ||
3816 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
3817 | if test -n "$ac_tool_prefix"; then | |
3818 | echo "$as_me:$LINENO: checking for file" >&5 | |
3819 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3820 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3822 | else | |
3823 | case $MAGIC_CMD in | |
3824 | /*) | |
3825 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3826 | ;; | |
3827 | ?:/*) | |
3828 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3829 | ;; | |
3830 | *) | |
3831 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
3832 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3833 | ac_dummy="/usr/bin:$PATH" | |
3834 | for ac_dir in $ac_dummy; do | |
3835 | test -z "$ac_dir" && ac_dir=. | |
3836 | if test -f $ac_dir/file; then | |
3837 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
3838 | if test -n "$file_magic_test_file"; then | |
3839 | case $deplibs_check_method in | |
3840 | "file_magic "*) | |
3841 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3842 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3843 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3844 | egrep "$file_magic_regex" > /dev/null; then | |
3845 | : | |
3846 | else | |
3847 | cat <<EOF 1>&2 | |
3848 | ||
3849 | *** Warning: the command libtool uses to detect shared libraries, | |
3850 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3851 | *** The result is that libtool may fail to recognize shared libraries | |
3852 | *** as such. This will affect the creation of libtool libraries that | |
3853 | *** depend on shared libraries, but programs linked with such libtool | |
3854 | *** libraries will work regardless of this problem. Nevertheless, you | |
3855 | *** may want to report the problem to your system manager and/or to | |
3856 | *** bug-libtool@gnu.org | |
3857 | ||
3858 | EOF | |
3859 | fi ;; | |
3860 | esac | |
3861 | fi | |
3862 | break | |
3863 | fi | |
3864 | done | |
3865 | IFS="$ac_save_ifs" | |
3866 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
3867 | ;; | |
3868 | esac | |
3869 | fi | |
6de9cd9a | 3870 | |
96b8a615 AJ |
3871 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3872 | if test -n "$MAGIC_CMD"; then | |
3873 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
3874 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6de9cd9a | 3875 | else |
96b8a615 AJ |
3876 | echo "$as_me:$LINENO: result: no" >&5 |
3877 | echo "${ECHO_T}no" >&6 | |
3878 | fi | |
6de9cd9a | 3879 | |
96b8a615 AJ |
3880 | else |
3881 | MAGIC_CMD=: | |
3882 | fi | |
6de9cd9a | 3883 | fi |
6de9cd9a | 3884 | |
96b8a615 AJ |
3885 | fi |
3886 | ;; | |
3887 | esac | |
6de9cd9a | 3888 | |
96b8a615 AJ |
3889 | if test -n "$ac_tool_prefix"; then |
3890 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3891 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3892 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3894 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6de9cd9a | 3896 | else |
96b8a615 AJ |
3897 | if test -n "$RANLIB"; then |
3898 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3899 | else | |
3900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3901 | for as_dir in $PATH | |
3902 | do | |
3903 | IFS=$as_save_IFS | |
3904 | test -z "$as_dir" && as_dir=. | |
3905 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3906 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3907 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3909 | break 2 | |
3910 | fi | |
3911 | done | |
3912 | done | |
6de9cd9a | 3913 | |
96b8a615 AJ |
3914 | fi |
3915 | fi | |
3916 | RANLIB=$ac_cv_prog_RANLIB | |
3917 | if test -n "$RANLIB"; then | |
3918 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3919 | echo "${ECHO_T}$RANLIB" >&6 | |
3920 | else | |
3921 | echo "$as_me:$LINENO: result: no" >&5 | |
3922 | echo "${ECHO_T}no" >&6 | |
6de9cd9a DN |
3923 | fi |
3924 | ||
96b8a615 AJ |
3925 | fi |
3926 | if test -z "$ac_cv_prog_RANLIB"; then | |
3927 | ac_ct_RANLIB=$RANLIB | |
3928 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3929 | set dummy ranlib; ac_word=$2 | |
3930 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3931 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3932 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3934 | else | |
3935 | if test -n "$ac_ct_RANLIB"; then | |
3936 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3937 | else | |
3938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3939 | for as_dir in $PATH | |
3940 | do | |
3941 | IFS=$as_save_IFS | |
3942 | test -z "$as_dir" && as_dir=. | |
3943 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3944 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3945 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3946 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3947 | break 2 | |
3948 | fi | |
3949 | done | |
3950 | done | |
6de9cd9a | 3951 | |
96b8a615 AJ |
3952 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
3953 | fi | |
3954 | fi | |
3955 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3956 | if test -n "$ac_ct_RANLIB"; then | |
3957 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3958 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
6de9cd9a | 3959 | else |
96b8a615 AJ |
3960 | echo "$as_me:$LINENO: result: no" >&5 |
3961 | echo "${ECHO_T}no" >&6 | |
6de9cd9a | 3962 | fi |
6de9cd9a | 3963 | |
96b8a615 AJ |
3964 | RANLIB=$ac_ct_RANLIB |
3965 | else | |
3966 | RANLIB="$ac_cv_prog_RANLIB" | |
6de9cd9a DN |
3967 | fi |
3968 | ||
96b8a615 AJ |
3969 | if test -n "$ac_tool_prefix"; then |
3970 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3971 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3972 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3973 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3974 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6de9cd9a | 3976 | else |
96b8a615 AJ |
3977 | if test -n "$STRIP"; then |
3978 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3979 | else | |
3980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3981 | for as_dir in $PATH | |
3982 | do | |
3983 | IFS=$as_save_IFS | |
3984 | test -z "$as_dir" && as_dir=. | |
3985 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3986 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3987 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3988 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3989 | break 2 | |
3990 | fi | |
3991 | done | |
3992 | done | |
6de9cd9a | 3993 | |
96b8a615 AJ |
3994 | fi |
3995 | fi | |
3996 | STRIP=$ac_cv_prog_STRIP | |
3997 | if test -n "$STRIP"; then | |
3998 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
3999 | echo "${ECHO_T}$STRIP" >&6 | |
6de9cd9a | 4000 | else |
96b8a615 AJ |
4001 | echo "$as_me:$LINENO: result: no" >&5 |
4002 | echo "${ECHO_T}no" >&6 | |
4003 | fi | |
6de9cd9a | 4004 | |
6de9cd9a | 4005 | fi |
96b8a615 AJ |
4006 | if test -z "$ac_cv_prog_STRIP"; then |
4007 | ac_ct_STRIP=$STRIP | |
4008 | # Extract the first word of "strip", so it can be a program name with args. | |
4009 | set dummy strip; ac_word=$2 | |
4010 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4012 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4014 | else | |
4015 | if test -n "$ac_ct_STRIP"; then | |
4016 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4017 | else | |
4018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4019 | for as_dir in $PATH | |
4020 | do | |
4021 | IFS=$as_save_IFS | |
4022 | test -z "$as_dir" && as_dir=. | |
4023 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4024 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4025 | ac_cv_prog_ac_ct_STRIP="strip" | |
4026 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4027 | break 2 | |
4028 | fi | |
4029 | done | |
4030 | done | |
4031 | ||
4032 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
6de9cd9a DN |
4033 | fi |
4034 | fi | |
96b8a615 AJ |
4035 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
4036 | if test -n "$ac_ct_STRIP"; then | |
4037 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
4038 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
4039 | else | |
4040 | echo "$as_me:$LINENO: result: no" >&5 | |
4041 | echo "${ECHO_T}no" >&6 | |
6de9cd9a | 4042 | fi |
6de9cd9a | 4043 | |
96b8a615 AJ |
4044 | STRIP=$ac_ct_STRIP |
4045 | else | |
4046 | STRIP="$ac_cv_prog_STRIP" | |
6de9cd9a DN |
4047 | fi |
4048 | ||
6de9cd9a | 4049 | |
96b8a615 AJ |
4050 | # Check for any special flags to pass to ltconfig. |
4051 | libtool_flags="--cache-file=$cache_file" | |
4052 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
4053 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
4054 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
4055 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | |
4056 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
6de9cd9a DN |
4057 | |
4058 | ||
96b8a615 AJ |
4059 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
4060 | if test "${enable_libtool_lock+set}" = set; then | |
4061 | enableval="$enable_libtool_lock" | |
6de9cd9a | 4062 | |
96b8a615 AJ |
4063 | fi; |
4064 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
4065 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
6de9cd9a DN |
4066 | |
4067 | ||
96b8a615 AJ |
4068 | # Check whether --with-pic or --without-pic was given. |
4069 | if test "${with_pic+set}" = set; then | |
4070 | withval="$with_pic" | |
4071 | pic_mode="$withval" | |
6de9cd9a | 4072 | else |
96b8a615 AJ |
4073 | pic_mode=default |
4074 | fi; | |
4075 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
4076 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
6de9cd9a | 4077 | |
96b8a615 AJ |
4078 | # Some flags need to be propagated to the compiler or linker for good |
4079 | # libtool support. | |
4080 | case $host in | |
4081 | *-*-irix6*) | |
4082 | # Find out which ABI we are using. | |
1fb2002d | 4083 | echo '#line 4083 "configure"' > conftest.$ac_ext |
96b8a615 AJ |
4084 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4085 | (eval $ac_compile) 2>&5 | |
6de9cd9a DN |
4086 | ac_status=$? |
4087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
4088 | (exit $ac_status); }; then |
4089 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
4090 | case `/usr/bin/file conftest.$ac_objext` in | |
4091 | *32-bit*) | |
4092 | LD="${LD-ld} -melf32bsmip" | |
4093 | ;; | |
4094 | *N32*) | |
4095 | LD="${LD-ld} -melf32bmipn32" | |
4096 | ;; | |
4097 | *64-bit*) | |
4098 | LD="${LD-ld} -melf64bmip" | |
4099 | ;; | |
4100 | esac | |
4101 | else | |
4102 | case `/usr/bin/file conftest.$ac_objext` in | |
4103 | *32-bit*) | |
4104 | LD="${LD-ld} -32" | |
4105 | ;; | |
4106 | *N32*) | |
4107 | LD="${LD-ld} -n32" | |
4108 | ;; | |
4109 | *64-bit*) | |
4110 | LD="${LD-ld} -64" | |
4111 | ;; | |
4112 | esac | |
4113 | fi | |
4114 | fi | |
4115 | rm -rf conftest* | |
4116 | ;; | |
6de9cd9a | 4117 | |
96b8a615 AJ |
4118 | ia64-*-hpux*) |
4119 | # Find out which ABI we are using. | |
4120 | echo 'int i;' > conftest.$ac_ext | |
4121 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4122 | (eval $ac_compile) 2>&5 | |
6de9cd9a DN |
4123 | ac_status=$? |
4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
4125 | (exit $ac_status); }; then |
4126 | case "`/usr/bin/file conftest.o`" in | |
4127 | *ELF-32*) | |
4128 | HPUX_IA64_MODE="32" | |
4129 | ;; | |
4130 | *ELF-64*) | |
4131 | HPUX_IA64_MODE="64" | |
4132 | ;; | |
4133 | esac | |
4134 | fi | |
4135 | rm -rf conftest* | |
4136 | ;; | |
6de9cd9a | 4137 | |
96b8a615 AJ |
4138 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4139 | # Find out which ABI we are using. | |
4140 | echo 'int i;' > conftest.$ac_ext | |
4141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4142 | (eval $ac_compile) 2>&5 | |
6de9cd9a | 4143 | ac_status=$? |
6de9cd9a | 4144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
96b8a615 AJ |
4145 | (exit $ac_status); }; then |
4146 | case "`/usr/bin/file conftest.o`" in | |
4147 | *32-bit*) | |
4148 | case $host in | |
4149 | x86_64-*linux*) | |
4150 | LD="${LD-ld} -m elf_i386" | |
4151 | ;; | |
4152 | ppc64-*linux*|powerpc64-*linux*) | |
4153 | LD="${LD-ld} -m elf32ppclinux" | |
4154 | ;; | |
4155 | s390x-*linux*) | |
4156 | LD="${LD-ld} -m elf_s390" | |
4157 | ;; | |
4158 | sparc64-*linux*) | |
4159 | LD="${LD-ld} -m elf32_sparc" | |
4160 | ;; | |
4161 | esac | |
4162 | ;; | |
4163 | *64-bit*) | |
4164 | case $host in | |
4165 | x86_64-*linux*) | |
4166 | LD="${LD-ld} -m elf_x86_64" | |
4167 | ;; | |
4168 | ppc*-*linux*|powerpc*-*linux*) | |
4169 | LD="${LD-ld} -m elf64ppc" | |
4170 | ;; | |
4171 | s390*-*linux*) | |
4172 | LD="${LD-ld} -m elf64_s390" | |
4173 | ;; | |
4174 | sparc*-*linux*) | |
4175 | LD="${LD-ld} -m elf64_sparc" | |
4176 | ;; | |
4177 | esac | |
4178 | ;; | |
4179 | esac | |
6de9cd9a | 4180 | fi |
96b8a615 AJ |
4181 | rm -rf conftest* |
4182 | ;; | |
6de9cd9a | 4183 | |
96b8a615 AJ |
4184 | *-*-sco3.2v5*) |
4185 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4186 | SAVE_CFLAGS="$CFLAGS" | |
4187 | CFLAGS="$CFLAGS -belf" | |
4188 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4189 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4190 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
6de9cd9a DN |
4191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4192 | else | |
6de9cd9a | 4193 | |
6de9cd9a | 4194 | |
96b8a615 AJ |
4195 | ac_ext=c |
4196 | ac_cpp='$CPP $CPPFLAGS' | |
4197 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4198 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4199 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a | 4200 | |
f77b6ca3 | 4201 | cat >conftest.$ac_ext <<_ACEOF |
6de9cd9a DN |
4202 | /* confdefs.h. */ |
4203 | _ACEOF | |
4204 | cat confdefs.h >>conftest.$ac_ext | |
4205 | cat >>conftest.$ac_ext <<_ACEOF | |
4206 | /* end confdefs.h. */ | |
6de9cd9a DN |
4207 | |
4208 | int | |
4209 | main () | |
4210 | { | |
96b8a615 | 4211 | |
6de9cd9a DN |
4212 | ; |
4213 | return 0; | |
4214 | } | |
4215 | _ACEOF | |
4216 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4218 | (eval $ac_link) 2>conftest.er1 | |
4219 | ac_status=$? | |
4220 | grep -v '^ *+' conftest.er1 >conftest.err | |
4221 | rm -f conftest.er1 | |
4222 | cat conftest.err >&5 | |
4223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4224 | (exit $ac_status); } && | |
1fb2002d | 4225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
4226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4227 | (eval $ac_try) 2>&5 | |
4228 | ac_status=$? | |
4229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4230 | (exit $ac_status); }; } && | |
4231 | { ac_try='test -s conftest$ac_exeext' | |
4232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4233 | (eval $ac_try) 2>&5 | |
4234 | ac_status=$? | |
4235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4236 | (exit $ac_status); }; }; then | |
96b8a615 | 4237 | lt_cv_cc_needs_belf=yes |
6de9cd9a DN |
4238 | else |
4239 | echo "$as_me: failed program was:" >&5 | |
4240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4241 | ||
96b8a615 | 4242 | lt_cv_cc_needs_belf=no |
6de9cd9a DN |
4243 | fi |
4244 | rm -f conftest.err conftest.$ac_objext \ | |
4245 | conftest$ac_exeext conftest.$ac_ext | |
96b8a615 AJ |
4246 | ac_ext=c |
4247 | ac_cpp='$CPP $CPPFLAGS' | |
4248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4251 | ||
6de9cd9a | 4252 | fi |
96b8a615 AJ |
4253 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4254 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4255 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4256 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4257 | CFLAGS="$SAVE_CFLAGS" | |
4258 | fi | |
4259 | ;; | |
4260 | ||
4261 | ||
4262 | esac | |
4263 | ||
4264 | ||
4265 | # Save cache, so that ltconfig can load it | |
4266 | cat >confcache <<\_ACEOF | |
4267 | # This file is a shell script that caches the results of configure | |
4268 | # tests run on this system so they can be shared between configure | |
4269 | # scripts and configure runs, see configure's option --config-cache. | |
4270 | # It is not useful on other systems. If it contains results you don't | |
4271 | # want to keep, you may remove or edit it. | |
4272 | # | |
4273 | # config.status only pays attention to the cache file if you give it | |
4274 | # the --recheck option to rerun configure. | |
4275 | # | |
4276 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
4277 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4278 | # following values. | |
4279 | ||
6de9cd9a DN |
4280 | _ACEOF |
4281 | ||
96b8a615 AJ |
4282 | # The following way of writing the cache mishandles newlines in values, |
4283 | # but we know of no workaround that is simple, portable, and efficient. | |
4284 | # So, don't put newlines in cache variables' values. | |
4285 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4286 | # and sets the high bit in the cache file unless we assign to the vars. | |
4287 | { | |
4288 | (set) 2>&1 | | |
4289 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4290 | *ac_space=\ *) | |
4291 | # `set' does not quote correctly, so add quotes (double-quote | |
4292 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4293 | sed -n \ | |
4294 | "s/'/'\\\\''/g; | |
4295 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4296 | ;; | |
4297 | *) | |
4298 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4299 | sed -n \ | |
4300 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4301 | ;; | |
4302 | esac; | |
4303 | } | | |
4304 | sed ' | |
4305 | t clear | |
4306 | : clear | |
4307 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4308 | t end | |
4309 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4310 | : end' >>confcache | |
4311 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4312 | if test -w $cache_file; then | |
4313 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
4314 | cat confcache >$cache_file | |
4315 | else | |
4316 | echo "not updating unwritable cache $cache_file" | |
4317 | fi | |
6de9cd9a | 4318 | fi |
96b8a615 | 4319 | rm -f confcache |
6de9cd9a | 4320 | |
96b8a615 AJ |
4321 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
4322 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
4323 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
4324 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
4325 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4326 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4327 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
4328 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
4329 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | |
4330 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 | |
4331 | echo "$as_me: error: libtool configure failed" >&2;} | |
4332 | { (exit 1); exit 1; }; } | |
4333 | ||
4334 | # Reload cache, that may have been modified by ltconfig | |
4335 | if test -r "$cache_file"; then | |
4336 | # Some versions of bash will fail to source /dev/null (special | |
4337 | # files actually), so we avoid doing that. | |
4338 | if test -f "$cache_file"; then | |
4339 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4340 | echo "$as_me: loading cache $cache_file" >&6;} | |
4341 | case $cache_file in | |
4342 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4343 | *) . ./$cache_file;; | |
4344 | esac | |
4345 | fi | |
4346 | else | |
4347 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
4348 | echo "$as_me: creating cache $cache_file" >&6;} | |
4349 | >$cache_file | |
4350 | fi | |
6de9cd9a | 4351 | |
6de9cd9a | 4352 | |
96b8a615 AJ |
4353 | # This can be used to rebuild libtool when needed |
4354 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | |
6de9cd9a | 4355 | |
96b8a615 AJ |
4356 | # Always use our own libtool. |
4357 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6de9cd9a | 4358 | |
96b8a615 AJ |
4359 | # Redirect the config.log output again, so that the ltconfig log is not |
4360 | # clobbered by the next message. | |
4361 | exec 5>>./config.log | |
6de9cd9a | 4362 | |
6de9cd9a | 4363 | |
6de9cd9a | 4364 | |
6de9cd9a | 4365 | |
6de9cd9a | 4366 | |
6de9cd9a | 4367 | |
6de9cd9a | 4368 | |
6de9cd9a | 4369 | |
96b8a615 AJ |
4370 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
4371 | ||
4372 | # We need gfortran to compile parts of the library | |
c7a35fe9 AS |
4373 | # We can't use AC_PROG_FC because it expects a fully working gfortran. |
4374 | #AC_PROG_FC(gfortran) | |
4375 | FC="$GFORTRAN" | |
4376 | ac_ext=${FC_SRCEXT-f} | |
4377 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
4378 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
4379 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
96b8a615 AJ |
4380 | if test -n "$ac_tool_prefix"; then |
4381 | for ac_prog in gfortran | |
4382 | do | |
4383 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4384 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4385 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4386 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
c7a35fe9 | 4387 | if test "${ac_cv_prog_FC+set}" = set; then |
96b8a615 | 4388 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6de9cd9a | 4389 | else |
c7a35fe9 AS |
4390 | if test -n "$FC"; then |
4391 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
96b8a615 AJ |
4392 | else |
4393 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4394 | for as_dir in $PATH | |
4395 | do | |
4396 | IFS=$as_save_IFS | |
4397 | test -z "$as_dir" && as_dir=. | |
4398 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4399 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c7a35fe9 | 4400 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
96b8a615 AJ |
4401 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4402 | break 2 | |
4403 | fi | |
4404 | done | |
4405 | done | |
6de9cd9a | 4406 | |
6de9cd9a | 4407 | fi |
6de9cd9a | 4408 | fi |
c7a35fe9 AS |
4409 | FC=$ac_cv_prog_FC |
4410 | if test -n "$FC"; then | |
4411 | echo "$as_me:$LINENO: result: $FC" >&5 | |
4412 | echo "${ECHO_T}$FC" >&6 | |
96b8a615 AJ |
4413 | else |
4414 | echo "$as_me:$LINENO: result: no" >&5 | |
4415 | echo "${ECHO_T}no" >&6 | |
6de9cd9a | 4416 | fi |
6de9cd9a | 4417 | |
c7a35fe9 | 4418 | test -n "$FC" && break |
96b8a615 AJ |
4419 | done |
4420 | fi | |
c7a35fe9 AS |
4421 | if test -z "$FC"; then |
4422 | ac_ct_FC=$FC | |
96b8a615 AJ |
4423 | for ac_prog in gfortran |
4424 | do | |
4425 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4426 | set dummy $ac_prog; ac_word=$2 | |
4427 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
c7a35fe9 | 4429 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then |
96b8a615 AJ |
4430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4431 | else | |
c7a35fe9 AS |
4432 | if test -n "$ac_ct_FC"; then |
4433 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
96b8a615 AJ |
4434 | else |
4435 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4436 | for as_dir in $PATH | |
4437 | do | |
4438 | IFS=$as_save_IFS | |
4439 | test -z "$as_dir" && as_dir=. | |
4440 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4441 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c7a35fe9 | 4442 | ac_cv_prog_ac_ct_FC="$ac_prog" |
96b8a615 AJ |
4443 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4444 | break 2 | |
4445 | fi | |
4446 | done | |
4447 | done | |
6de9cd9a DN |
4448 | |
4449 | fi | |
96b8a615 | 4450 | fi |
c7a35fe9 AS |
4451 | ac_ct_FC=$ac_cv_prog_ac_ct_FC |
4452 | if test -n "$ac_ct_FC"; then | |
4453 | echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 | |
4454 | echo "${ECHO_T}$ac_ct_FC" >&6 | |
96b8a615 AJ |
4455 | else |
4456 | echo "$as_me:$LINENO: result: no" >&5 | |
4457 | echo "${ECHO_T}no" >&6 | |
4458 | fi | |
4459 | ||
c7a35fe9 | 4460 | test -n "$ac_ct_FC" && break |
96b8a615 AJ |
4461 | done |
4462 | ||
c7a35fe9 | 4463 | FC=$ac_ct_FC |
96b8a615 AJ |
4464 | fi |
4465 | ||
4466 | ||
4467 | # Provide some information about the compiler. | |
1fb2002d | 4468 | echo "$as_me:4468:" \ |
c7a35fe9 | 4469 | "checking for Fortran compiler version" >&5 |
96b8a615 AJ |
4470 | ac_compiler=`set X $ac_compile; echo $2` |
4471 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4472 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4473 | ac_status=$? | |
4474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4475 | (exit $ac_status); } | |
4476 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4477 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4478 | ac_status=$? | |
4479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4480 | (exit $ac_status); } | |
4481 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4482 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4483 | ac_status=$? | |
4484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4485 | (exit $ac_status); } | |
4486 | rm -f a.out | |
6de9cd9a | 4487 | |
96b8a615 AJ |
4488 | # If we don't use `.F' as extension, the preprocessor is not run on the |
4489 | # input file. (Note that this only needs to work for GNU compilers.) | |
4490 | ac_save_ext=$ac_ext | |
4491 | ac_ext=F | |
c7a35fe9 AS |
4492 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 |
4493 | echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 | |
4494 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then | |
6de9cd9a DN |
4495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4496 | else | |
4497 | cat >conftest.$ac_ext <<_ACEOF | |
96b8a615 AJ |
4498 | program main |
4499 | #ifndef __GNUC__ | |
4500 | choke me | |
4501 | #endif | |
4502 | ||
4503 | end | |
6de9cd9a DN |
4504 | _ACEOF |
4505 | rm -f conftest.$ac_objext | |
4506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4507 | (eval $ac_compile) 2>conftest.er1 | |
4508 | ac_status=$? | |
4509 | grep -v '^ *+' conftest.er1 >conftest.err | |
4510 | rm -f conftest.er1 | |
4511 | cat conftest.err >&5 | |
4512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4513 | (exit $ac_status); } && | |
1fb2002d | 4514 | { ac_try='test -z "$ac_fc_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
4515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4516 | (eval $ac_try) 2>&5 | |
4517 | ac_status=$? | |
4518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4519 | (exit $ac_status); }; } && | |
4520 | { ac_try='test -s conftest.$ac_objext' | |
4521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4522 | (eval $ac_try) 2>&5 | |
4523 | ac_status=$? | |
4524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4525 | (exit $ac_status); }; }; then | |
96b8a615 | 4526 | ac_compiler_gnu=yes |
6de9cd9a DN |
4527 | else |
4528 | echo "$as_me: failed program was:" >&5 | |
4529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4530 | ||
96b8a615 | 4531 | ac_compiler_gnu=no |
6de9cd9a DN |
4532 | fi |
4533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c7a35fe9 | 4534 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
6de9cd9a DN |
4535 | |
4536 | fi | |
c7a35fe9 AS |
4537 | echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 |
4538 | echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 | |
96b8a615 | 4539 | ac_ext=$ac_save_ext |
c7a35fe9 AS |
4540 | ac_test_FFLAGS=${FCFLAGS+set} |
4541 | ac_save_FFLAGS=$FCFLAGS | |
4542 | FCFLAGS= | |
4543 | echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 | |
4544 | echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 | |
4545 | if test "${ac_cv_prog_fc_g+set}" = set; then | |
6de9cd9a DN |
4546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4547 | else | |
c7a35fe9 | 4548 | FCFLAGS=-g |
96b8a615 AJ |
4549 | cat >conftest.$ac_ext <<_ACEOF |
4550 | program main | |
6de9cd9a | 4551 | |
96b8a615 | 4552 | end |
6de9cd9a DN |
4553 | _ACEOF |
4554 | rm -f conftest.$ac_objext | |
4555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4556 | (eval $ac_compile) 2>conftest.er1 | |
4557 | ac_status=$? | |
4558 | grep -v '^ *+' conftest.er1 >conftest.err | |
4559 | rm -f conftest.er1 | |
4560 | cat conftest.err >&5 | |
4561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4562 | (exit $ac_status); } && | |
1fb2002d | 4563 | { ac_try='test -z "$ac_fc_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
4564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4565 | (eval $ac_try) 2>&5 | |
4566 | ac_status=$? | |
4567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4568 | (exit $ac_status); }; } && | |
4569 | { ac_try='test -s conftest.$ac_objext' | |
4570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4571 | (eval $ac_try) 2>&5 | |
4572 | ac_status=$? | |
4573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4574 | (exit $ac_status); }; }; then | |
c7a35fe9 | 4575 | ac_cv_prog_fc_g=yes |
6de9cd9a DN |
4576 | else |
4577 | echo "$as_me: failed program was:" >&5 | |
4578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4579 | ||
c7a35fe9 | 4580 | ac_cv_prog_fc_g=no |
6de9cd9a DN |
4581 | fi |
4582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4583 | ||
6de9cd9a | 4584 | fi |
c7a35fe9 AS |
4585 | echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 |
4586 | echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 | |
96b8a615 | 4587 | if test "$ac_test_FFLAGS" = set; then |
c7a35fe9 AS |
4588 | FCFLAGS=$ac_save_FFLAGS |
4589 | elif test $ac_cv_prog_fc_g = yes; then | |
4590 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
4591 | FCFLAGS="-g -O2" | |
96b8a615 | 4592 | else |
c7a35fe9 | 4593 | FCFLAGS="-g" |
96b8a615 AJ |
4594 | fi |
4595 | else | |
c7a35fe9 AS |
4596 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
4597 | FCFLAGS="-O2" | |
96b8a615 | 4598 | else |
c7a35fe9 | 4599 | FCFLAGS= |
96b8a615 | 4600 | fi |
6de9cd9a DN |
4601 | fi |
4602 | ||
96b8a615 AJ |
4603 | ac_ext=c |
4604 | ac_cpp='$CPP $CPPFLAGS' | |
4605 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4606 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4607 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a | 4608 | |
c7a35fe9 | 4609 | FCFLAGS="$FCFLAGS -Wall -fno-repack-arrays -fno-underscoring" |
6de9cd9a | 4610 | |
e87045f3 AP |
4611 | # extra LD Flags which are required for targets |
4612 | case "${host}" in | |
4613 | *-darwin*) | |
4614 | # Darwin needs -single_module when linking libgfortran | |
4615 | extra_ldflags_libgfortran=-Wl,-single_module | |
4616 | ;; | |
4617 | esac | |
4618 | ||
4619 | ||
9cdc381b BD |
4620 | # Check whether --enable-largefile or --disable-largefile was given. |
4621 | if test "${enable_largefile+set}" = set; then | |
4622 | enableval="$enable_largefile" | |
4623 | ||
4624 | fi; | |
4625 | if test "$enable_largefile" != no; then | |
4626 | ||
4627 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
4628 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
4629 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4631 | else | |
4632 | ac_cv_sys_largefile_CC=no | |
4633 | if test "$GCC" != yes; then | |
4634 | ac_save_CC=$CC | |
4635 | while :; do | |
4636 | # IRIX 6.2 and later do not support large files by default, | |
4637 | # so use the C compiler's -n32 option if that helps. | |
4638 | cat >conftest.$ac_ext <<_ACEOF | |
4639 | /* confdefs.h. */ | |
4640 | _ACEOF | |
4641 | cat confdefs.h >>conftest.$ac_ext | |
4642 | cat >>conftest.$ac_ext <<_ACEOF | |
4643 | /* end confdefs.h. */ | |
4644 | #include <sys/types.h> | |
4645 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4646 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4647 | since some C++ compilers masquerading as C compilers | |
4648 | incorrectly reject 9223372036854775807. */ | |
4649 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4650 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4651 | && LARGE_OFF_T % 2147483647 == 1) | |
4652 | ? 1 : -1]; | |
4653 | int | |
4654 | main () | |
4655 | { | |
4656 | ||
4657 | ; | |
4658 | return 0; | |
4659 | } | |
4660 | _ACEOF | |
4661 | rm -f conftest.$ac_objext | |
4662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4663 | (eval $ac_compile) 2>conftest.er1 | |
4664 | ac_status=$? | |
4665 | grep -v '^ *+' conftest.er1 >conftest.err | |
4666 | rm -f conftest.er1 | |
4667 | cat conftest.err >&5 | |
4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4669 | (exit $ac_status); } && | |
1fb2002d | 4670 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9cdc381b BD |
4671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4672 | (eval $ac_try) 2>&5 | |
4673 | ac_status=$? | |
4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4675 | (exit $ac_status); }; } && | |
4676 | { ac_try='test -s conftest.$ac_objext' | |
4677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4678 | (eval $ac_try) 2>&5 | |
4679 | ac_status=$? | |
4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4681 | (exit $ac_status); }; }; then | |
4682 | break | |
4683 | else | |
4684 | echo "$as_me: failed program was:" >&5 | |
4685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4686 | ||
4687 | fi | |
4688 | rm -f conftest.err conftest.$ac_objext | |
4689 | CC="$CC -n32" | |
4690 | rm -f conftest.$ac_objext | |
4691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4692 | (eval $ac_compile) 2>conftest.er1 | |
4693 | ac_status=$? | |
4694 | grep -v '^ *+' conftest.er1 >conftest.err | |
4695 | rm -f conftest.er1 | |
4696 | cat conftest.err >&5 | |
4697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4698 | (exit $ac_status); } && | |
1fb2002d | 4699 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9cdc381b BD |
4700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4701 | (eval $ac_try) 2>&5 | |
4702 | ac_status=$? | |
4703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4704 | (exit $ac_status); }; } && | |
4705 | { ac_try='test -s conftest.$ac_objext' | |
4706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4707 | (eval $ac_try) 2>&5 | |
4708 | ac_status=$? | |
4709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4710 | (exit $ac_status); }; }; then | |
4711 | ac_cv_sys_largefile_CC=' -n32'; break | |
4712 | else | |
4713 | echo "$as_me: failed program was:" >&5 | |
4714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4715 | ||
4716 | fi | |
4717 | rm -f conftest.err conftest.$ac_objext | |
4718 | break | |
4719 | done | |
4720 | CC=$ac_save_CC | |
4721 | rm -f conftest.$ac_ext | |
4722 | fi | |
4723 | fi | |
4724 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
4725 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | |
4726 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4727 | CC=$CC$ac_cv_sys_largefile_CC | |
4728 | fi | |
4729 | ||
4730 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
4731 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
4732 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4734 | else | |
4735 | while :; do | |
4736 | ac_cv_sys_file_offset_bits=no | |
4737 | cat >conftest.$ac_ext <<_ACEOF | |
4738 | /* confdefs.h. */ | |
4739 | _ACEOF | |
4740 | cat confdefs.h >>conftest.$ac_ext | |
4741 | cat >>conftest.$ac_ext <<_ACEOF | |
4742 | /* end confdefs.h. */ | |
4743 | #include <sys/types.h> | |
4744 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4745 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4746 | since some C++ compilers masquerading as C compilers | |
4747 | incorrectly reject 9223372036854775807. */ | |
4748 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4749 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4750 | && LARGE_OFF_T % 2147483647 == 1) | |
4751 | ? 1 : -1]; | |
4752 | int | |
4753 | main () | |
4754 | { | |
4755 | ||
4756 | ; | |
4757 | return 0; | |
4758 | } | |
4759 | _ACEOF | |
4760 | rm -f conftest.$ac_objext | |
4761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4762 | (eval $ac_compile) 2>conftest.er1 | |
4763 | ac_status=$? | |
4764 | grep -v '^ *+' conftest.er1 >conftest.err | |
4765 | rm -f conftest.er1 | |
4766 | cat conftest.err >&5 | |
4767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4768 | (exit $ac_status); } && | |
1fb2002d | 4769 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9cdc381b BD |
4770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4771 | (eval $ac_try) 2>&5 | |
4772 | ac_status=$? | |
4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4774 | (exit $ac_status); }; } && | |
4775 | { ac_try='test -s conftest.$ac_objext' | |
4776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4777 | (eval $ac_try) 2>&5 | |
4778 | ac_status=$? | |
4779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4780 | (exit $ac_status); }; }; then | |
4781 | break | |
4782 | else | |
4783 | echo "$as_me: failed program was:" >&5 | |
4784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4785 | ||
4786 | fi | |
4787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4788 | cat >conftest.$ac_ext <<_ACEOF | |
4789 | /* confdefs.h. */ | |
4790 | _ACEOF | |
4791 | cat confdefs.h >>conftest.$ac_ext | |
4792 | cat >>conftest.$ac_ext <<_ACEOF | |
4793 | /* end confdefs.h. */ | |
4794 | #define _FILE_OFFSET_BITS 64 | |
4795 | #include <sys/types.h> | |
4796 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4797 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4798 | since some C++ compilers masquerading as C compilers | |
4799 | incorrectly reject 9223372036854775807. */ | |
4800 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4801 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4802 | && LARGE_OFF_T % 2147483647 == 1) | |
4803 | ? 1 : -1]; | |
4804 | int | |
4805 | main () | |
4806 | { | |
4807 | ||
4808 | ; | |
4809 | return 0; | |
4810 | } | |
4811 | _ACEOF | |
4812 | rm -f conftest.$ac_objext | |
4813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4814 | (eval $ac_compile) 2>conftest.er1 | |
4815 | ac_status=$? | |
4816 | grep -v '^ *+' conftest.er1 >conftest.err | |
4817 | rm -f conftest.er1 | |
4818 | cat conftest.err >&5 | |
4819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4820 | (exit $ac_status); } && | |
1fb2002d | 4821 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9cdc381b BD |
4822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4823 | (eval $ac_try) 2>&5 | |
4824 | ac_status=$? | |
4825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4826 | (exit $ac_status); }; } && | |
4827 | { ac_try='test -s conftest.$ac_objext' | |
4828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4829 | (eval $ac_try) 2>&5 | |
4830 | ac_status=$? | |
4831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4832 | (exit $ac_status); }; }; then | |
4833 | ac_cv_sys_file_offset_bits=64; break | |
4834 | else | |
4835 | echo "$as_me: failed program was:" >&5 | |
4836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4837 | ||
4838 | fi | |
4839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4840 | break | |
4841 | done | |
4842 | fi | |
4843 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
4844 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
4845 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
4846 | ||
4847 | cat >>confdefs.h <<_ACEOF | |
4848 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4849 | _ACEOF | |
4850 | ||
4851 | fi | |
4852 | rm -f conftest* | |
4853 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
4854 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
4855 | if test "${ac_cv_sys_large_files+set}" = set; then | |
4856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4857 | else | |
4858 | while :; do | |
4859 | ac_cv_sys_large_files=no | |
4860 | cat >conftest.$ac_ext <<_ACEOF | |
4861 | /* confdefs.h. */ | |
4862 | _ACEOF | |
4863 | cat confdefs.h >>conftest.$ac_ext | |
4864 | cat >>conftest.$ac_ext <<_ACEOF | |
4865 | /* end confdefs.h. */ | |
4866 | #include <sys/types.h> | |
4867 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4868 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4869 | since some C++ compilers masquerading as C compilers | |
4870 | incorrectly reject 9223372036854775807. */ | |
4871 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4872 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4873 | && LARGE_OFF_T % 2147483647 == 1) | |
4874 | ? 1 : -1]; | |
4875 | int | |
4876 | main () | |
4877 | { | |
4878 | ||
4879 | ; | |
4880 | return 0; | |
4881 | } | |
4882 | _ACEOF | |
4883 | rm -f conftest.$ac_objext | |
4884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4885 | (eval $ac_compile) 2>conftest.er1 | |
4886 | ac_status=$? | |
4887 | grep -v '^ *+' conftest.er1 >conftest.err | |
4888 | rm -f conftest.er1 | |
4889 | cat conftest.err >&5 | |
4890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4891 | (exit $ac_status); } && | |
1fb2002d | 4892 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9cdc381b BD |
4893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4894 | (eval $ac_try) 2>&5 | |
4895 | ac_status=$? | |
4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4897 | (exit $ac_status); }; } && | |
4898 | { ac_try='test -s conftest.$ac_objext' | |
4899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4900 | (eval $ac_try) 2>&5 | |
4901 | ac_status=$? | |
4902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4903 | (exit $ac_status); }; }; then | |
4904 | break | |
4905 | else | |
4906 | echo "$as_me: failed program was:" >&5 | |
4907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4908 | ||
4909 | fi | |
4910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4911 | cat >conftest.$ac_ext <<_ACEOF | |
4912 | /* confdefs.h. */ | |
4913 | _ACEOF | |
4914 | cat confdefs.h >>conftest.$ac_ext | |
4915 | cat >>conftest.$ac_ext <<_ACEOF | |
4916 | /* end confdefs.h. */ | |
4917 | #define _LARGE_FILES 1 | |
4918 | #include <sys/types.h> | |
4919 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4920 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4921 | since some C++ compilers masquerading as C compilers | |
4922 | incorrectly reject 9223372036854775807. */ | |
4923 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4924 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4925 | && LARGE_OFF_T % 2147483647 == 1) | |
4926 | ? 1 : -1]; | |
4927 | int | |
4928 | main () | |
4929 | { | |
4930 | ||
4931 | ; | |
4932 | return 0; | |
4933 | } | |
4934 | _ACEOF | |
4935 | rm -f conftest.$ac_objext | |
4936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4937 | (eval $ac_compile) 2>conftest.er1 | |
4938 | ac_status=$? | |
4939 | grep -v '^ *+' conftest.er1 >conftest.err | |
4940 | rm -f conftest.er1 | |
4941 | cat conftest.err >&5 | |
4942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4943 | (exit $ac_status); } && | |
1fb2002d | 4944 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9cdc381b BD |
4945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4946 | (eval $ac_try) 2>&5 | |
4947 | ac_status=$? | |
4948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4949 | (exit $ac_status); }; } && | |
4950 | { ac_try='test -s conftest.$ac_objext' | |
4951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4952 | (eval $ac_try) 2>&5 | |
4953 | ac_status=$? | |
4954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4955 | (exit $ac_status); }; }; then | |
4956 | ac_cv_sys_large_files=1; break | |
4957 | else | |
4958 | echo "$as_me: failed program was:" >&5 | |
4959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4960 | ||
4961 | fi | |
4962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4963 | break | |
4964 | done | |
4965 | fi | |
4966 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
4967 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
4968 | if test "$ac_cv_sys_large_files" != no; then | |
4969 | ||
4970 | cat >>confdefs.h <<_ACEOF | |
4971 | #define _LARGE_FILES $ac_cv_sys_large_files | |
4972 | _ACEOF | |
4973 | ||
4974 | fi | |
4975 | rm -f conftest* | |
4976 | fi | |
4977 | ||
f77b6ca3 | 4978 | ac_ext=c |
96b8a615 AJ |
4979 | ac_cpp='$CPP $CPPFLAGS' |
4980 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4981 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4982 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4983 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4984 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4985 | # On Suns, sometimes $CPP names a directory. | |
4986 | if test -n "$CPP" && test -d "$CPP"; then | |
4987 | CPP= | |
6de9cd9a | 4988 | fi |
96b8a615 AJ |
4989 | if test -z "$CPP"; then |
4990 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6de9cd9a | 4992 | else |
96b8a615 AJ |
4993 | # Double quotes because CPP needs to be expanded |
4994 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4995 | do | |
4996 | ac_preproc_ok=false | |
4997 | for ac_c_preproc_warn_flag in '' yes | |
4998 | do | |
4999 | # Use a header file that comes with gcc, so configuring glibc | |
5000 | # with a fresh cross-compiler works. | |
5001 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5002 | # <limits.h> exists even on freestanding compilers. | |
5003 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5004 | # not just through cpp. "Syntax error" is here to catch this case. | |
6de9cd9a DN |
5005 | cat >conftest.$ac_ext <<_ACEOF |
5006 | /* confdefs.h. */ | |
5007 | _ACEOF | |
5008 | cat confdefs.h >>conftest.$ac_ext | |
5009 | cat >>conftest.$ac_ext <<_ACEOF | |
5010 | /* end confdefs.h. */ | |
96b8a615 AJ |
5011 | #ifdef __STDC__ |
5012 | # include <limits.h> | |
6de9cd9a | 5013 | #else |
96b8a615 | 5014 | # include <assert.h> |
6de9cd9a | 5015 | #endif |
96b8a615 | 5016 | Syntax error |
6de9cd9a | 5017 | _ACEOF |
96b8a615 AJ |
5018 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5019 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6de9cd9a | 5020 | ac_status=$? |
96b8a615 AJ |
5021 | grep -v '^ *+' conftest.er1 >conftest.err |
5022 | rm -f conftest.er1 | |
5023 | cat conftest.err >&5 | |
6de9cd9a | 5024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
96b8a615 AJ |
5025 | (exit $ac_status); } >/dev/null; then |
5026 | if test -s conftest.err; then | |
5027 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5028 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5029 | else | |
5030 | ac_cpp_err= | |
5031 | fi | |
5032 | else | |
5033 | ac_cpp_err=yes | |
5034 | fi | |
5035 | if test -z "$ac_cpp_err"; then | |
6de9cd9a DN |
5036 | : |
5037 | else | |
96b8a615 | 5038 | echo "$as_me: failed program was:" >&5 |
6de9cd9a DN |
5039 | sed 's/^/| /' conftest.$ac_ext >&5 |
5040 | ||
96b8a615 AJ |
5041 | # Broken: fails on valid input. |
5042 | continue | |
6de9cd9a | 5043 | fi |
96b8a615 | 5044 | rm -f conftest.err conftest.$ac_ext |
6de9cd9a | 5045 | |
96b8a615 AJ |
5046 | # OK, works on sane cases. Now check whether non-existent headers |
5047 | # can be detected and how. | |
5048 | cat >conftest.$ac_ext <<_ACEOF | |
6de9cd9a DN |
5049 | /* confdefs.h. */ |
5050 | _ACEOF | |
5051 | cat confdefs.h >>conftest.$ac_ext | |
5052 | cat >>conftest.$ac_ext <<_ACEOF | |
5053 | /* end confdefs.h. */ | |
96b8a615 | 5054 | #include <ac_nonexistent.h> |
6de9cd9a | 5055 | _ACEOF |
96b8a615 AJ |
5056 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5057 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6de9cd9a DN |
5058 | ac_status=$? |
5059 | grep -v '^ *+' conftest.er1 >conftest.err | |
5060 | rm -f conftest.er1 | |
5061 | cat conftest.err >&5 | |
5062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
5063 | (exit $ac_status); } >/dev/null; then |
5064 | if test -s conftest.err; then | |
5065 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5066 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5067 | else | |
5068 | ac_cpp_err= | |
5069 | fi | |
5070 | else | |
5071 | ac_cpp_err=yes | |
5072 | fi | |
5073 | if test -z "$ac_cpp_err"; then | |
5074 | # Broken: success on invalid input. | |
5075 | continue | |
6de9cd9a DN |
5076 | else |
5077 | echo "$as_me: failed program was:" >&5 | |
5078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5079 | ||
96b8a615 AJ |
5080 | # Passes both tests. |
5081 | ac_preproc_ok=: | |
5082 | break | |
6de9cd9a | 5083 | fi |
96b8a615 | 5084 | rm -f conftest.err conftest.$ac_ext |
6de9cd9a | 5085 | |
96b8a615 AJ |
5086 | done |
5087 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5088 | rm -f conftest.err conftest.$ac_ext | |
5089 | if $ac_preproc_ok; then | |
5090 | break | |
5091 | fi | |
5092 | ||
5093 | done | |
5094 | ac_cv_prog_CPP=$CPP | |
5095 | ||
5096 | fi | |
5097 | CPP=$ac_cv_prog_CPP | |
5098 | else | |
5099 | ac_cv_prog_CPP=$CPP | |
5100 | fi | |
5101 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5102 | echo "${ECHO_T}$CPP" >&6 | |
5103 | ac_preproc_ok=false | |
5104 | for ac_c_preproc_warn_flag in '' yes | |
5105 | do | |
5106 | # Use a header file that comes with gcc, so configuring glibc | |
5107 | # with a fresh cross-compiler works. | |
5108 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5109 | # <limits.h> exists even on freestanding compilers. | |
5110 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5111 | # not just through cpp. "Syntax error" is here to catch this case. | |
5112 | cat >conftest.$ac_ext <<_ACEOF | |
6de9cd9a DN |
5113 | /* confdefs.h. */ |
5114 | _ACEOF | |
5115 | cat confdefs.h >>conftest.$ac_ext | |
5116 | cat >>conftest.$ac_ext <<_ACEOF | |
5117 | /* end confdefs.h. */ | |
96b8a615 AJ |
5118 | #ifdef __STDC__ |
5119 | # include <limits.h> | |
5120 | #else | |
5121 | # include <assert.h> | |
5122 | #endif | |
5123 | Syntax error | |
6de9cd9a DN |
5124 | _ACEOF |
5125 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5126 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5127 | ac_status=$? | |
5128 | grep -v '^ *+' conftest.er1 >conftest.err | |
5129 | rm -f conftest.er1 | |
5130 | cat conftest.err >&5 | |
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5132 | (exit $ac_status); } >/dev/null; then | |
5133 | if test -s conftest.err; then | |
5134 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5135 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5136 | else | |
5137 | ac_cpp_err= | |
5138 | fi | |
5139 | else | |
5140 | ac_cpp_err=yes | |
5141 | fi | |
5142 | if test -z "$ac_cpp_err"; then | |
96b8a615 | 5143 | : |
6de9cd9a DN |
5144 | else |
5145 | echo "$as_me: failed program was:" >&5 | |
5146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5147 | ||
96b8a615 AJ |
5148 | # Broken: fails on valid input. |
5149 | continue | |
6de9cd9a DN |
5150 | fi |
5151 | rm -f conftest.err conftest.$ac_ext | |
6de9cd9a | 5152 | |
96b8a615 AJ |
5153 | # OK, works on sane cases. Now check whether non-existent headers |
5154 | # can be detected and how. | |
5155 | cat >conftest.$ac_ext <<_ACEOF | |
5156 | /* confdefs.h. */ | |
5157 | _ACEOF | |
5158 | cat confdefs.h >>conftest.$ac_ext | |
5159 | cat >>conftest.$ac_ext <<_ACEOF | |
5160 | /* end confdefs.h. */ | |
5161 | #include <ac_nonexistent.h> | |
6de9cd9a | 5162 | _ACEOF |
96b8a615 AJ |
5163 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5164 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5165 | ac_status=$? | |
5166 | grep -v '^ *+' conftest.er1 >conftest.err | |
5167 | rm -f conftest.er1 | |
5168 | cat conftest.err >&5 | |
5169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5170 | (exit $ac_status); } >/dev/null; then | |
5171 | if test -s conftest.err; then | |
5172 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5173 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5174 | else | |
5175 | ac_cpp_err= | |
5176 | fi | |
5177 | else | |
5178 | ac_cpp_err=yes | |
5179 | fi | |
5180 | if test -z "$ac_cpp_err"; then | |
5181 | # Broken: success on invalid input. | |
5182 | continue | |
5183 | else | |
5184 | echo "$as_me: failed program was:" >&5 | |
5185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 5186 | |
96b8a615 AJ |
5187 | # Passes both tests. |
5188 | ac_preproc_ok=: | |
5189 | break | |
6de9cd9a | 5190 | fi |
96b8a615 | 5191 | rm -f conftest.err conftest.$ac_ext |
6de9cd9a DN |
5192 | |
5193 | done | |
96b8a615 AJ |
5194 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5195 | rm -f conftest.err conftest.$ac_ext | |
5196 | if $ac_preproc_ok; then | |
5197 | : | |
5198 | else | |
5199 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5200 | See \`config.log' for more details." >&5 | |
5201 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5202 | See \`config.log' for more details." >&2;} | |
5203 | { (exit 1); exit 1; }; } | |
5204 | fi | |
6de9cd9a | 5205 | |
96b8a615 AJ |
5206 | ac_ext=c |
5207 | ac_cpp='$CPP $CPPFLAGS' | |
5208 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5209 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5210 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a DN |
5211 | |
5212 | ||
96b8a615 AJ |
5213 | echo "$as_me:$LINENO: checking for egrep" >&5 |
5214 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5215 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5217 | else | |
5218 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
5219 | then ac_cv_prog_egrep='grep -E' | |
5220 | else ac_cv_prog_egrep='egrep' | |
5221 | fi | |
5222 | fi | |
5223 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
5224 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5225 | EGREP=$ac_cv_prog_egrep | |
6de9cd9a DN |
5226 | |
5227 | ||
96b8a615 AJ |
5228 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5229 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5230 | if test "${ac_cv_header_stdc+set}" = set; then | |
6de9cd9a | 5231 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6de9cd9a | 5232 | else |
96b8a615 | 5233 | cat >conftest.$ac_ext <<_ACEOF |
6de9cd9a DN |
5234 | /* confdefs.h. */ |
5235 | _ACEOF | |
5236 | cat confdefs.h >>conftest.$ac_ext | |
5237 | cat >>conftest.$ac_ext <<_ACEOF | |
5238 | /* end confdefs.h. */ | |
96b8a615 AJ |
5239 | #include <stdlib.h> |
5240 | #include <stdarg.h> | |
5241 | #include <string.h> | |
5242 | #include <float.h> | |
5243 | ||
5244 | int | |
5245 | main () | |
5246 | { | |
5247 | ||
5248 | ; | |
5249 | return 0; | |
5250 | } | |
6de9cd9a DN |
5251 | _ACEOF |
5252 | rm -f conftest.$ac_objext | |
5253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5254 | (eval $ac_compile) 2>conftest.er1 | |
5255 | ac_status=$? | |
5256 | grep -v '^ *+' conftest.er1 >conftest.err | |
5257 | rm -f conftest.er1 | |
5258 | cat conftest.err >&5 | |
5259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5260 | (exit $ac_status); } && | |
1fb2002d | 5261 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
5262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5263 | (eval $ac_try) 2>&5 | |
5264 | ac_status=$? | |
5265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5266 | (exit $ac_status); }; } && | |
5267 | { ac_try='test -s conftest.$ac_objext' | |
5268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5269 | (eval $ac_try) 2>&5 | |
5270 | ac_status=$? | |
5271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5272 | (exit $ac_status); }; }; then | |
96b8a615 | 5273 | ac_cv_header_stdc=yes |
6de9cd9a DN |
5274 | else |
5275 | echo "$as_me: failed program was:" >&5 | |
5276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5277 | ||
96b8a615 | 5278 | ac_cv_header_stdc=no |
6de9cd9a DN |
5279 | fi |
5280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6de9cd9a | 5281 | |
96b8a615 AJ |
5282 | if test $ac_cv_header_stdc = yes; then |
5283 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5284 | cat >conftest.$ac_ext <<_ACEOF | |
6de9cd9a DN |
5285 | /* confdefs.h. */ |
5286 | _ACEOF | |
5287 | cat confdefs.h >>conftest.$ac_ext | |
5288 | cat >>conftest.$ac_ext <<_ACEOF | |
5289 | /* end confdefs.h. */ | |
96b8a615 AJ |
5290 | #include <string.h> |
5291 | ||
6de9cd9a | 5292 | _ACEOF |
96b8a615 AJ |
5293 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5294 | $EGREP "memchr" >/dev/null 2>&1; then | |
5295 | : | |
6de9cd9a | 5296 | else |
96b8a615 | 5297 | ac_cv_header_stdc=no |
6de9cd9a | 5298 | fi |
96b8a615 AJ |
5299 | rm -f conftest* |
5300 | ||
5301 | fi | |
5302 | ||
5303 | if test $ac_cv_header_stdc = yes; then | |
5304 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5305 | cat >conftest.$ac_ext <<_ACEOF | |
5306 | /* confdefs.h. */ | |
5307 | _ACEOF | |
5308 | cat confdefs.h >>conftest.$ac_ext | |
5309 | cat >>conftest.$ac_ext <<_ACEOF | |
5310 | /* end confdefs.h. */ | |
5311 | #include <stdlib.h> | |
5312 | ||
5313 | _ACEOF | |
5314 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5315 | $EGREP "free" >/dev/null 2>&1; then | |
5316 | : | |
6de9cd9a | 5317 | else |
96b8a615 AJ |
5318 | ac_cv_header_stdc=no |
5319 | fi | |
5320 | rm -f conftest* | |
5321 | ||
5322 | fi | |
5323 | ||
5324 | if test $ac_cv_header_stdc = yes; then | |
5325 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5326 | if test "$cross_compiling" = yes; then | |
5327 | : | |
5328 | else | |
5329 | cat >conftest.$ac_ext <<_ACEOF | |
5330 | /* confdefs.h. */ | |
5331 | _ACEOF | |
5332 | cat confdefs.h >>conftest.$ac_ext | |
5333 | cat >>conftest.$ac_ext <<_ACEOF | |
5334 | /* end confdefs.h. */ | |
5335 | #include <ctype.h> | |
5336 | #if ((' ' & 0x0FF) == 0x020) | |
5337 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5338 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5339 | #else | |
5340 | # define ISLOWER(c) \ | |
5341 | (('a' <= (c) && (c) <= 'i') \ | |
5342 | || ('j' <= (c) && (c) <= 'r') \ | |
5343 | || ('s' <= (c) && (c) <= 'z')) | |
5344 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5345 | #endif | |
5346 | ||
5347 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5348 | int | |
5349 | main () | |
5350 | { | |
5351 | int i; | |
5352 | for (i = 0; i < 256; i++) | |
5353 | if (XOR (islower (i), ISLOWER (i)) | |
5354 | || toupper (i) != TOUPPER (i)) | |
5355 | exit(2); | |
5356 | exit (0); | |
5357 | } | |
5358 | _ACEOF | |
5359 | rm -f conftest$ac_exeext | |
5360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5361 | (eval $ac_link) 2>&5 | |
5362 | ac_status=$? | |
5363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5364 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5366 | (eval $ac_try) 2>&5 | |
5367 | ac_status=$? | |
5368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5369 | (exit $ac_status); }; }; then | |
5370 | : | |
5371 | else | |
5372 | echo "$as_me: program exited with status $ac_status" >&5 | |
5373 | echo "$as_me: failed program was:" >&5 | |
6de9cd9a DN |
5374 | sed 's/^/| /' conftest.$ac_ext >&5 |
5375 | ||
96b8a615 AJ |
5376 | ( exit $ac_status ) |
5377 | ac_cv_header_stdc=no | |
6de9cd9a | 5378 | fi |
96b8a615 AJ |
5379 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5380 | fi | |
5381 | fi | |
5382 | fi | |
5383 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5384 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5385 | if test $ac_cv_header_stdc = yes; then | |
6de9cd9a | 5386 | |
96b8a615 AJ |
5387 | cat >>confdefs.h <<\_ACEOF |
5388 | #define STDC_HEADERS 1 | |
5389 | _ACEOF | |
5390 | ||
5391 | fi | |
5392 | ||
5393 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5394 | ||
5395 | ||
5396 | ||
5397 | ||
5398 | ||
5399 | ||
5400 | ||
5401 | ||
5402 | ||
5403 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5404 | inttypes.h stdint.h unistd.h | |
5405 | do | |
5406 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6de9cd9a DN |
5407 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5408 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5409 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5411 | else | |
96b8a615 AJ |
5412 | cat >conftest.$ac_ext <<_ACEOF |
5413 | /* confdefs.h. */ | |
5414 | _ACEOF | |
5415 | cat confdefs.h >>conftest.$ac_ext | |
5416 | cat >>conftest.$ac_ext <<_ACEOF | |
5417 | /* end confdefs.h. */ | |
5418 | $ac_includes_default | |
5419 | ||
5420 | #include <$ac_header> | |
5421 | _ACEOF | |
5422 | rm -f conftest.$ac_objext | |
5423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5424 | (eval $ac_compile) 2>conftest.er1 | |
5425 | ac_status=$? | |
5426 | grep -v '^ *+' conftest.er1 >conftest.err | |
5427 | rm -f conftest.er1 | |
5428 | cat conftest.err >&5 | |
5429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5430 | (exit $ac_status); } && | |
1fb2002d | 5431 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
96b8a615 AJ |
5432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5433 | (eval $ac_try) 2>&5 | |
5434 | ac_status=$? | |
5435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5436 | (exit $ac_status); }; } && | |
5437 | { ac_try='test -s conftest.$ac_objext' | |
5438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5439 | (eval $ac_try) 2>&5 | |
5440 | ac_status=$? | |
5441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5442 | (exit $ac_status); }; }; then | |
5443 | eval "$as_ac_Header=yes" | |
5444 | else | |
5445 | echo "$as_me: failed program was:" >&5 | |
5446 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5447 | ||
5448 | eval "$as_ac_Header=no" | |
5449 | fi | |
5450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6de9cd9a DN |
5451 | fi |
5452 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5453 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a DN |
5454 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5455 | cat >>confdefs.h <<_ACEOF | |
5456 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5457 | _ACEOF | |
5458 | ||
5459 | fi | |
5460 | ||
5461 | done | |
5462 | ||
96b8a615 AJ |
5463 | |
5464 | ||
5465 | ||
5466 | for ac_header in stdlib.h unistd.h | |
5467 | do | |
5468 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5469 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5470 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5471 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5472 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6de9cd9a DN |
5473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5474 | fi | |
96b8a615 AJ |
5475 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5476 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a DN |
5477 | else |
5478 | # Is the header compilable? | |
96b8a615 AJ |
5479 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5480 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6de9cd9a DN |
5481 | cat >conftest.$ac_ext <<_ACEOF |
5482 | /* confdefs.h. */ | |
5483 | _ACEOF | |
5484 | cat confdefs.h >>conftest.$ac_ext | |
5485 | cat >>conftest.$ac_ext <<_ACEOF | |
5486 | /* end confdefs.h. */ | |
5487 | $ac_includes_default | |
96b8a615 | 5488 | #include <$ac_header> |
6de9cd9a DN |
5489 | _ACEOF |
5490 | rm -f conftest.$ac_objext | |
5491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5492 | (eval $ac_compile) 2>conftest.er1 | |
5493 | ac_status=$? | |
5494 | grep -v '^ *+' conftest.er1 >conftest.err | |
5495 | rm -f conftest.er1 | |
5496 | cat conftest.err >&5 | |
5497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5498 | (exit $ac_status); } && | |
1fb2002d | 5499 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
5500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5501 | (eval $ac_try) 2>&5 | |
5502 | ac_status=$? | |
5503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5504 | (exit $ac_status); }; } && | |
5505 | { ac_try='test -s conftest.$ac_objext' | |
5506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5507 | (eval $ac_try) 2>&5 | |
5508 | ac_status=$? | |
5509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5510 | (exit $ac_status); }; }; then | |
5511 | ac_header_compiler=yes | |
5512 | else | |
5513 | echo "$as_me: failed program was:" >&5 | |
5514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5515 | ||
5516 | ac_header_compiler=no | |
5517 | fi | |
5518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5519 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5520 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5521 | ||
5522 | # Is the header present? | |
96b8a615 AJ |
5523 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5524 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6de9cd9a DN |
5525 | cat >conftest.$ac_ext <<_ACEOF |
5526 | /* confdefs.h. */ | |
5527 | _ACEOF | |
5528 | cat confdefs.h >>conftest.$ac_ext | |
5529 | cat >>conftest.$ac_ext <<_ACEOF | |
5530 | /* end confdefs.h. */ | |
96b8a615 | 5531 | #include <$ac_header> |
6de9cd9a DN |
5532 | _ACEOF |
5533 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5534 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5535 | ac_status=$? | |
5536 | grep -v '^ *+' conftest.er1 >conftest.err | |
5537 | rm -f conftest.er1 | |
5538 | cat conftest.err >&5 | |
5539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5540 | (exit $ac_status); } >/dev/null; then | |
5541 | if test -s conftest.err; then | |
5542 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5543 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5544 | else | |
5545 | ac_cpp_err= | |
5546 | fi | |
5547 | else | |
5548 | ac_cpp_err=yes | |
5549 | fi | |
5550 | if test -z "$ac_cpp_err"; then | |
5551 | ac_header_preproc=yes | |
5552 | else | |
5553 | echo "$as_me: failed program was:" >&5 | |
5554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5555 | ||
5556 | ac_header_preproc=no | |
5557 | fi | |
5558 | rm -f conftest.err conftest.$ac_ext | |
5559 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5560 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5561 | ||
5562 | # So? What about this header? | |
5563 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5564 | yes:no: ) | |
96b8a615 AJ |
5565 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5566 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5567 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5568 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6de9cd9a DN |
5569 | ac_header_preproc=yes |
5570 | ;; | |
5571 | no:yes:* ) | |
96b8a615 AJ |
5572 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5573 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5574 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5575 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5576 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5577 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5578 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5579 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5580 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5581 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5582 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5583 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6de9cd9a DN |
5584 | ( |
5585 | cat <<\_ASBOX | |
5586 | ## ------------------------------------------------------ ## | |
5587 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
5588 | ## ------------------------------------------------------ ## | |
5589 | _ASBOX | |
5590 | ) | | |
5591 | sed "s/^/$as_me: WARNING: /" >&2 | |
5592 | ;; | |
5593 | esac | |
96b8a615 AJ |
5594 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5595 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5596 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6de9cd9a DN |
5597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5598 | else | |
96b8a615 | 5599 | eval "$as_ac_Header=\$ac_header_preproc" |
6de9cd9a | 5600 | fi |
96b8a615 AJ |
5601 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5602 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5603 | ||
5604 | fi | |
5605 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5606 | cat >>confdefs.h <<_ACEOF | |
5607 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5608 | _ACEOF | |
6de9cd9a | 5609 | |
96b8a615 | 5610 | fi |
6de9cd9a | 5611 | |
96b8a615 | 5612 | done |
6de9cd9a DN |
5613 | |
5614 | ||
96b8a615 | 5615 | for ac_func in getpagesize |
6de9cd9a DN |
5616 | do |
5617 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5618 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5619 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5620 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5622 | else | |
f77b6ca3 | 5623 | cat >conftest.$ac_ext <<_ACEOF |
6de9cd9a DN |
5624 | /* confdefs.h. */ |
5625 | _ACEOF | |
5626 | cat confdefs.h >>conftest.$ac_ext | |
5627 | cat >>conftest.$ac_ext <<_ACEOF | |
5628 | /* end confdefs.h. */ | |
5629 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5630 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5631 | #define $ac_func innocuous_$ac_func | |
5632 | ||
5633 | /* System header to define __stub macros and hopefully few prototypes, | |
5634 | which can conflict with char $ac_func (); below. | |
5635 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5636 | <limits.h> exists even on freestanding compilers. */ | |
5637 | ||
5638 | #ifdef __STDC__ | |
5639 | # include <limits.h> | |
5640 | #else | |
5641 | # include <assert.h> | |
5642 | #endif | |
5643 | ||
5644 | #undef $ac_func | |
5645 | ||
5646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5647 | #ifdef __cplusplus | |
5648 | extern "C" | |
5649 | { | |
5650 | #endif | |
5651 | /* We use char because int might match the return type of a gcc2 | |
5652 | builtin and then its argument prototype would still apply. */ | |
5653 | char $ac_func (); | |
5654 | /* The GNU C library defines this for functions which it implements | |
5655 | to always fail with ENOSYS. Some functions are actually named | |
5656 | something starting with __ and the normal name is an alias. */ | |
5657 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5658 | choke me | |
5659 | #else | |
5660 | char (*f) () = $ac_func; | |
5661 | #endif | |
5662 | #ifdef __cplusplus | |
5663 | } | |
5664 | #endif | |
5665 | ||
5666 | int | |
5667 | main () | |
5668 | { | |
5669 | return f != $ac_func; | |
5670 | ; | |
5671 | return 0; | |
5672 | } | |
5673 | _ACEOF | |
5674 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5676 | (eval $ac_link) 2>conftest.er1 | |
5677 | ac_status=$? | |
5678 | grep -v '^ *+' conftest.er1 >conftest.err | |
5679 | rm -f conftest.er1 | |
5680 | cat conftest.err >&5 | |
5681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5682 | (exit $ac_status); } && | |
1fb2002d | 5683 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
5684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5685 | (eval $ac_try) 2>&5 | |
5686 | ac_status=$? | |
5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5688 | (exit $ac_status); }; } && | |
5689 | { ac_try='test -s conftest$ac_exeext' | |
5690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5691 | (eval $ac_try) 2>&5 | |
5692 | ac_status=$? | |
5693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5694 | (exit $ac_status); }; }; then | |
5695 | eval "$as_ac_var=yes" | |
5696 | else | |
5697 | echo "$as_me: failed program was:" >&5 | |
5698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5699 | ||
5700 | eval "$as_ac_var=no" | |
5701 | fi | |
5702 | rm -f conftest.err conftest.$ac_objext \ | |
5703 | conftest$ac_exeext conftest.$ac_ext | |
5704 | fi | |
5705 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5706 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5707 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5708 | cat >>confdefs.h <<_ACEOF | |
5709 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5710 | _ACEOF | |
5711 | ||
5712 | fi | |
5713 | done | |
5714 | ||
96b8a615 AJ |
5715 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
5716 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
5717 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6de9cd9a | 5718 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
96b8a615 AJ |
5719 | else |
5720 | if test "$cross_compiling" = yes; then | |
5721 | ac_cv_func_mmap_fixed_mapped=no | |
6de9cd9a DN |
5722 | else |
5723 | cat >conftest.$ac_ext <<_ACEOF | |
5724 | /* confdefs.h. */ | |
5725 | _ACEOF | |
5726 | cat confdefs.h >>conftest.$ac_ext | |
5727 | cat >>conftest.$ac_ext <<_ACEOF | |
5728 | /* end confdefs.h. */ | |
96b8a615 AJ |
5729 | $ac_includes_default |
5730 | /* malloc might have been renamed as rpl_malloc. */ | |
5731 | #undef malloc | |
5732 | ||
5733 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
5734 | Here is a matrix of mmap possibilities: | |
5735 | mmap private not fixed | |
5736 | mmap private fixed at somewhere currently unmapped | |
5737 | mmap private fixed at somewhere already mapped | |
5738 | mmap shared not fixed | |
5739 | mmap shared fixed at somewhere currently unmapped | |
5740 | mmap shared fixed at somewhere already mapped | |
5741 | For private mappings, we should verify that changes cannot be read() | |
5742 | back from the file, nor mmap's back from the file at a different | |
5743 | address. (There have been systems where private was not correctly | |
5744 | implemented like the infamous i386 svr4.0, and systems where the | |
5745 | VM page cache was not coherent with the file system buffer cache | |
5746 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
5747 | For shared mappings, we should conversely verify that changes get | |
5748 | propagated back to all the places they're supposed to be. | |
5749 | ||
5750 | Grep wants private fixed already mapped. | |
5751 | The main things grep needs to know about mmap are: | |
5752 | * does it exist and is it safe to write into the mmap'd area | |
5753 | * how to use it (BSD variants) */ | |
5754 | ||
5755 | #include <fcntl.h> | |
5756 | #include <sys/mman.h> | |
5757 | ||
5758 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
5759 | char *malloc (); | |
5760 | #endif | |
5761 | ||
5762 | /* This mess was copied from the GNU getpagesize.h. */ | |
5763 | #if !HAVE_GETPAGESIZE | |
5764 | /* Assume that all systems that can run configure have sys/param.h. */ | |
5765 | # if !HAVE_SYS_PARAM_H | |
5766 | # define HAVE_SYS_PARAM_H 1 | |
5767 | # endif | |
5768 | ||
5769 | # ifdef _SC_PAGESIZE | |
5770 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
5771 | # else /* no _SC_PAGESIZE */ | |
5772 | # if HAVE_SYS_PARAM_H | |
5773 | # include <sys/param.h> | |
5774 | # ifdef EXEC_PAGESIZE | |
5775 | # define getpagesize() EXEC_PAGESIZE | |
5776 | # else /* no EXEC_PAGESIZE */ | |
5777 | # ifdef NBPG | |
5778 | # define getpagesize() NBPG * CLSIZE | |
5779 | # ifndef CLSIZE | |
5780 | # define CLSIZE 1 | |
5781 | # endif /* no CLSIZE */ | |
5782 | # else /* no NBPG */ | |
5783 | # ifdef NBPC | |
5784 | # define getpagesize() NBPC | |
5785 | # else /* no NBPC */ | |
5786 | # ifdef PAGESIZE | |
5787 | # define getpagesize() PAGESIZE | |
5788 | # endif /* PAGESIZE */ | |
5789 | # endif /* no NBPC */ | |
5790 | # endif /* no NBPG */ | |
5791 | # endif /* no EXEC_PAGESIZE */ | |
5792 | # else /* no HAVE_SYS_PARAM_H */ | |
5793 | # define getpagesize() 8192 /* punt totally */ | |
5794 | # endif /* no HAVE_SYS_PARAM_H */ | |
5795 | # endif /* no _SC_PAGESIZE */ | |
5796 | ||
5797 | #endif /* no HAVE_GETPAGESIZE */ | |
6de9cd9a DN |
5798 | |
5799 | int | |
5800 | main () | |
5801 | { | |
96b8a615 AJ |
5802 | char *data, *data2, *data3; |
5803 | int i, pagesize; | |
5804 | int fd; | |
5805 | ||
5806 | pagesize = getpagesize (); | |
5807 | ||
5808 | /* First, make a file with some known garbage in it. */ | |
5809 | data = (char *) malloc (pagesize); | |
5810 | if (!data) | |
5811 | exit (1); | |
5812 | for (i = 0; i < pagesize; ++i) | |
5813 | *(data + i) = rand (); | |
5814 | umask (0); | |
5815 | fd = creat ("conftest.mmap", 0600); | |
5816 | if (fd < 0) | |
5817 | exit (1); | |
5818 | if (write (fd, data, pagesize) != pagesize) | |
5819 | exit (1); | |
5820 | close (fd); | |
5821 | ||
5822 | /* Next, try to mmap the file at a fixed address which already has | |
5823 | something else allocated at it. If we can, also make sure that | |
5824 | we see the same garbage. */ | |
5825 | fd = open ("conftest.mmap", O_RDWR); | |
5826 | if (fd < 0) | |
5827 | exit (1); | |
5828 | data2 = (char *) malloc (2 * pagesize); | |
5829 | if (!data2) | |
5830 | exit (1); | |
5831 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
5832 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5833 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5834 | exit (1); | |
5835 | for (i = 0; i < pagesize; ++i) | |
5836 | if (*(data + i) != *(data2 + i)) | |
5837 | exit (1); | |
5838 | ||
5839 | /* Finally, make sure that changes to the mapped area do not | |
5840 | percolate back to the file as seen by read(). (This is a bug on | |
5841 | some variants of i386 svr4.0.) */ | |
5842 | for (i = 0; i < pagesize; ++i) | |
5843 | *(data2 + i) = *(data2 + i) + 1; | |
5844 | data3 = (char *) malloc (pagesize); | |
5845 | if (!data3) | |
5846 | exit (1); | |
5847 | if (read (fd, data3, pagesize) != pagesize) | |
5848 | exit (1); | |
5849 | for (i = 0; i < pagesize; ++i) | |
5850 | if (*(data + i) != *(data3 + i)) | |
5851 | exit (1); | |
5852 | close (fd); | |
5853 | exit (0); | |
6de9cd9a DN |
5854 | } |
5855 | _ACEOF | |
96b8a615 AJ |
5856 | rm -f conftest$ac_exeext |
5857 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5858 | (eval $ac_link) 2>&5 | |
6de9cd9a DN |
5859 | ac_status=$? |
5860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 | 5861 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6de9cd9a DN |
5862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5863 | (eval $ac_try) 2>&5 | |
5864 | ac_status=$? | |
5865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5866 | (exit $ac_status); }; }; then | |
96b8a615 | 5867 | ac_cv_func_mmap_fixed_mapped=yes |
6de9cd9a | 5868 | else |
96b8a615 AJ |
5869 | echo "$as_me: program exited with status $ac_status" >&5 |
5870 | echo "$as_me: failed program was:" >&5 | |
6de9cd9a DN |
5871 | sed 's/^/| /' conftest.$ac_ext >&5 |
5872 | ||
96b8a615 AJ |
5873 | ( exit $ac_status ) |
5874 | ac_cv_func_mmap_fixed_mapped=no | |
6de9cd9a | 5875 | fi |
96b8a615 | 5876 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 5877 | fi |
96b8a615 AJ |
5878 | fi |
5879 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
5880 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
5881 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6de9cd9a DN |
5882 | |
5883 | cat >>confdefs.h <<\_ACEOF | |
96b8a615 | 5884 | #define HAVE_MMAP 1 |
6de9cd9a DN |
5885 | _ACEOF |
5886 | ||
5887 | fi | |
96b8a615 | 5888 | rm -f conftest.mmap |
6de9cd9a | 5889 | |
96b8a615 AJ |
5890 | echo "$as_me:$LINENO: checking for off_t" >&5 |
5891 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5892 | if test "${ac_cv_type_off_t+set}" = set; then | |
6de9cd9a DN |
5893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5894 | else | |
96b8a615 AJ |
5895 | cat >conftest.$ac_ext <<_ACEOF |
5896 | /* confdefs.h. */ | |
5897 | _ACEOF | |
5898 | cat confdefs.h >>conftest.$ac_ext | |
5899 | cat >>conftest.$ac_ext <<_ACEOF | |
5900 | /* end confdefs.h. */ | |
5901 | $ac_includes_default | |
6de9cd9a DN |
5902 | int |
5903 | main () | |
5904 | { | |
96b8a615 AJ |
5905 | if ((off_t *) 0) |
5906 | return 0; | |
5907 | if (sizeof (off_t)) | |
5908 | return 0; | |
6de9cd9a DN |
5909 | ; |
5910 | return 0; | |
5911 | } | |
5912 | _ACEOF | |
96b8a615 AJ |
5913 | rm -f conftest.$ac_objext |
5914 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5915 | (eval $ac_compile) 2>conftest.er1 | |
6de9cd9a DN |
5916 | ac_status=$? |
5917 | grep -v '^ *+' conftest.er1 >conftest.err | |
5918 | rm -f conftest.er1 | |
5919 | cat conftest.err >&5 | |
5920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5921 | (exit $ac_status); } && | |
1fb2002d | 5922 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
5923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5924 | (eval $ac_try) 2>&5 | |
5925 | ac_status=$? | |
5926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5927 | (exit $ac_status); }; } && | |
96b8a615 | 5928 | { ac_try='test -s conftest.$ac_objext' |
6de9cd9a DN |
5929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5930 | (eval $ac_try) 2>&5 | |
5931 | ac_status=$? | |
5932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5933 | (exit $ac_status); }; }; then | |
96b8a615 | 5934 | ac_cv_type_off_t=yes |
6de9cd9a DN |
5935 | else |
5936 | echo "$as_me: failed program was:" >&5 | |
5937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5938 | ||
96b8a615 | 5939 | ac_cv_type_off_t=no |
6de9cd9a | 5940 | fi |
96b8a615 | 5941 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 5942 | fi |
96b8a615 AJ |
5943 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
5944 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
5945 | if test $ac_cv_type_off_t = yes; then | |
5946 | : | |
5947 | else | |
5948 | ||
5949 | cat >>confdefs.h <<_ACEOF | |
5950 | #define off_t long | |
6de9cd9a DN |
5951 | _ACEOF |
5952 | ||
5953 | fi | |
6de9cd9a | 5954 | |
96b8a615 AJ |
5955 | |
5956 | # check header files | |
5957 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
5958 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5959 | if test "${ac_cv_header_stdc+set}" = set; then | |
6de9cd9a DN |
5960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5961 | else | |
5962 | cat >conftest.$ac_ext <<_ACEOF | |
5963 | /* confdefs.h. */ | |
5964 | _ACEOF | |
5965 | cat confdefs.h >>conftest.$ac_ext | |
5966 | cat >>conftest.$ac_ext <<_ACEOF | |
5967 | /* end confdefs.h. */ | |
96b8a615 AJ |
5968 | #include <stdlib.h> |
5969 | #include <stdarg.h> | |
5970 | #include <string.h> | |
5971 | #include <float.h> | |
5972 | ||
6de9cd9a DN |
5973 | int |
5974 | main () | |
5975 | { | |
96b8a615 | 5976 | |
6de9cd9a DN |
5977 | ; |
5978 | return 0; | |
5979 | } | |
5980 | _ACEOF | |
5981 | rm -f conftest.$ac_objext | |
5982 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5983 | (eval $ac_compile) 2>conftest.er1 | |
5984 | ac_status=$? | |
5985 | grep -v '^ *+' conftest.er1 >conftest.err | |
5986 | rm -f conftest.er1 | |
5987 | cat conftest.err >&5 | |
5988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5989 | (exit $ac_status); } && | |
1fb2002d | 5990 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
5991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5992 | (eval $ac_try) 2>&5 | |
5993 | ac_status=$? | |
5994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5995 | (exit $ac_status); }; } && | |
5996 | { ac_try='test -s conftest.$ac_objext' | |
5997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5998 | (eval $ac_try) 2>&5 | |
5999 | ac_status=$? | |
6000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6001 | (exit $ac_status); }; }; then | |
96b8a615 | 6002 | ac_cv_header_stdc=yes |
6de9cd9a DN |
6003 | else |
6004 | echo "$as_me: failed program was:" >&5 | |
6005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6006 | ||
96b8a615 | 6007 | ac_cv_header_stdc=no |
6de9cd9a DN |
6008 | fi |
6009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
96b8a615 AJ |
6010 | |
6011 | if test $ac_cv_header_stdc = yes; then | |
6012 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6de9cd9a DN |
6013 | cat >conftest.$ac_ext <<_ACEOF |
6014 | /* confdefs.h. */ | |
6015 | _ACEOF | |
6016 | cat confdefs.h >>conftest.$ac_ext | |
6017 | cat >>conftest.$ac_ext <<_ACEOF | |
6018 | /* end confdefs.h. */ | |
96b8a615 | 6019 | #include <string.h> |
6de9cd9a | 6020 | |
6de9cd9a | 6021 | _ACEOF |
96b8a615 AJ |
6022 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6023 | $EGREP "memchr" >/dev/null 2>&1; then | |
6024 | : | |
6de9cd9a | 6025 | else |
96b8a615 | 6026 | ac_cv_header_stdc=no |
6de9cd9a | 6027 | fi |
96b8a615 AJ |
6028 | rm -f conftest* |
6029 | ||
6de9cd9a | 6030 | fi |
6de9cd9a | 6031 | |
96b8a615 AJ |
6032 | if test $ac_cv_header_stdc = yes; then |
6033 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6034 | cat >conftest.$ac_ext <<_ACEOF | |
6035 | /* confdefs.h. */ | |
6036 | _ACEOF | |
6037 | cat confdefs.h >>conftest.$ac_ext | |
6038 | cat >>conftest.$ac_ext <<_ACEOF | |
6039 | /* end confdefs.h. */ | |
6040 | #include <stdlib.h> | |
6041 | ||
6de9cd9a | 6042 | _ACEOF |
96b8a615 AJ |
6043 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6044 | $EGREP "free" >/dev/null 2>&1; then | |
6045 | : | |
6046 | else | |
6047 | ac_cv_header_stdc=no | |
6048 | fi | |
6049 | rm -f conftest* | |
6de9cd9a | 6050 | |
96b8a615 | 6051 | fi |
6de9cd9a | 6052 | |
96b8a615 AJ |
6053 | if test $ac_cv_header_stdc = yes; then |
6054 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6055 | if test "$cross_compiling" = yes; then | |
6056 | : | |
6de9cd9a DN |
6057 | else |
6058 | cat >conftest.$ac_ext <<_ACEOF | |
6059 | /* confdefs.h. */ | |
6060 | _ACEOF | |
6061 | cat confdefs.h >>conftest.$ac_ext | |
6062 | cat >>conftest.$ac_ext <<_ACEOF | |
6063 | /* end confdefs.h. */ | |
96b8a615 AJ |
6064 | #include <ctype.h> |
6065 | #if ((' ' & 0x0FF) == 0x020) | |
6066 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6067 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6de9cd9a | 6068 | #else |
96b8a615 AJ |
6069 | # define ISLOWER(c) \ |
6070 | (('a' <= (c) && (c) <= 'i') \ | |
6071 | || ('j' <= (c) && (c) <= 'r') \ | |
6072 | || ('s' <= (c) && (c) <= 'z')) | |
6073 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6de9cd9a DN |
6074 | #endif |
6075 | ||
96b8a615 | 6076 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6de9cd9a DN |
6077 | int |
6078 | main () | |
6079 | { | |
96b8a615 AJ |
6080 | int i; |
6081 | for (i = 0; i < 256; i++) | |
6082 | if (XOR (islower (i), ISLOWER (i)) | |
6083 | || toupper (i) != TOUPPER (i)) | |
6084 | exit(2); | |
6085 | exit (0); | |
6de9cd9a DN |
6086 | } |
6087 | _ACEOF | |
96b8a615 | 6088 | rm -f conftest$ac_exeext |
6de9cd9a | 6089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
96b8a615 | 6090 | (eval $ac_link) 2>&5 |
6de9cd9a DN |
6091 | ac_status=$? |
6092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 | 6093 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6de9cd9a DN |
6094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6095 | (eval $ac_try) 2>&5 | |
6096 | ac_status=$? | |
96b8a615 AJ |
6097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6098 | (exit $ac_status); }; }; then | |
6099 | : | |
6de9cd9a | 6100 | else |
96b8a615 AJ |
6101 | echo "$as_me: program exited with status $ac_status" >&5 |
6102 | echo "$as_me: failed program was:" >&5 | |
6103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 6104 | |
96b8a615 AJ |
6105 | ( exit $ac_status ) |
6106 | ac_cv_header_stdc=no | |
6de9cd9a | 6107 | fi |
96b8a615 | 6108 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6de9cd9a DN |
6109 | fi |
6110 | fi | |
6de9cd9a | 6111 | fi |
96b8a615 AJ |
6112 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6113 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6114 | if test $ac_cv_header_stdc = yes; then | |
6de9cd9a | 6115 | |
96b8a615 AJ |
6116 | cat >>confdefs.h <<\_ACEOF |
6117 | #define STDC_HEADERS 1 | |
6118 | _ACEOF | |
6de9cd9a DN |
6119 | |
6120 | fi | |
6121 | ||
6de9cd9a DN |
6122 | |
6123 | ||
6de9cd9a | 6124 | |
6de9cd9a DN |
6125 | |
6126 | ||
6127 | ||
f77b6ca3 FXC |
6128 | |
6129 | for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h signal.h | |
96b8a615 AJ |
6130 | do |
6131 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6132 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6133 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6134 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6135 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6137 | fi | |
6138 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6139 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a | 6140 | else |
96b8a615 AJ |
6141 | # Is the header compilable? |
6142 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6143 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6144 | cat >conftest.$ac_ext <<_ACEOF | |
6145 | /* confdefs.h. */ | |
6146 | _ACEOF | |
6147 | cat confdefs.h >>conftest.$ac_ext | |
6148 | cat >>conftest.$ac_ext <<_ACEOF | |
6149 | /* end confdefs.h. */ | |
6150 | $ac_includes_default | |
6151 | #include <$ac_header> | |
6152 | _ACEOF | |
6153 | rm -f conftest.$ac_objext | |
6154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6155 | (eval $ac_compile) 2>conftest.er1 | |
6156 | ac_status=$? | |
6157 | grep -v '^ *+' conftest.er1 >conftest.err | |
6158 | rm -f conftest.er1 | |
6159 | cat conftest.err >&5 | |
6160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6161 | (exit $ac_status); } && | |
1fb2002d | 6162 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
96b8a615 AJ |
6163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6164 | (eval $ac_try) 2>&5 | |
6165 | ac_status=$? | |
6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6167 | (exit $ac_status); }; } && | |
6168 | { ac_try='test -s conftest.$ac_objext' | |
6169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6170 | (eval $ac_try) 2>&5 | |
6171 | ac_status=$? | |
6172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6173 | (exit $ac_status); }; }; then | |
6174 | ac_header_compiler=yes | |
6de9cd9a | 6175 | else |
96b8a615 AJ |
6176 | echo "$as_me: failed program was:" >&5 |
6177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6178 | ||
6179 | ac_header_compiler=no | |
6de9cd9a | 6180 | fi |
96b8a615 AJ |
6181 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6182 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6183 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6184 | ||
6185 | # Is the header present? | |
6186 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6187 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6188 | cat >conftest.$ac_ext <<_ACEOF | |
6189 | /* confdefs.h. */ | |
6190 | _ACEOF | |
6191 | cat confdefs.h >>conftest.$ac_ext | |
6192 | cat >>conftest.$ac_ext <<_ACEOF | |
6193 | /* end confdefs.h. */ | |
6194 | #include <$ac_header> | |
6195 | _ACEOF | |
6196 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6197 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6198 | ac_status=$? | |
6199 | grep -v '^ *+' conftest.er1 >conftest.err | |
6200 | rm -f conftest.er1 | |
6201 | cat conftest.err >&5 | |
6202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6203 | (exit $ac_status); } >/dev/null; then | |
6204 | if test -s conftest.err; then | |
6205 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6206 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6207 | else | |
6208 | ac_cpp_err= | |
6209 | fi | |
6de9cd9a | 6210 | else |
96b8a615 | 6211 | ac_cpp_err=yes |
6de9cd9a | 6212 | fi |
96b8a615 AJ |
6213 | if test -z "$ac_cpp_err"; then |
6214 | ac_header_preproc=yes | |
6de9cd9a | 6215 | else |
96b8a615 AJ |
6216 | echo "$as_me: failed program was:" >&5 |
6217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6218 | ||
6219 | ac_header_preproc=no | |
6de9cd9a | 6220 | fi |
96b8a615 AJ |
6221 | rm -f conftest.err conftest.$ac_ext |
6222 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6223 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6224 | ||
6225 | # So? What about this header? | |
6226 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6227 | yes:no: ) | |
6228 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6229 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6230 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6231 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6232 | ac_header_preproc=yes | |
6233 | ;; | |
6234 | no:yes:* ) | |
6235 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6236 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6237 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6238 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6239 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6240 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6241 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6242 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6243 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6244 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6245 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6246 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6247 | ( | |
6248 | cat <<\_ASBOX | |
6249 | ## ------------------------------------------------------ ## | |
6250 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6251 | ## ------------------------------------------------------ ## | |
6252 | _ASBOX | |
6253 | ) | | |
6254 | sed "s/^/$as_me: WARNING: /" >&2 | |
6255 | ;; | |
6256 | esac | |
6257 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6258 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6259 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6de9cd9a DN |
6260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6261 | else | |
96b8a615 | 6262 | eval "$as_ac_Header=\$ac_header_preproc" |
6de9cd9a | 6263 | fi |
96b8a615 AJ |
6264 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6265 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a | 6266 | |
96b8a615 AJ |
6267 | fi |
6268 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6269 | cat >>confdefs.h <<_ACEOF | |
6270 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6271 | _ACEOF | |
6de9cd9a | 6272 | |
6de9cd9a | 6273 | fi |
6de9cd9a | 6274 | |
96b8a615 AJ |
6275 | done |
6276 | ||
6277 | ||
6278 | ||
6279 | ||
6280 | ||
6281 | ||
6282 | for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h | |
6283 | do | |
6284 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6285 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6286 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f596fc98 AL |
6287 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6288 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6290 | fi | |
6291 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6292 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6293 | else | |
6294 | # Is the header compilable? | |
6295 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6296 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6297 | cat >conftest.$ac_ext <<_ACEOF | |
6298 | /* confdefs.h. */ | |
6299 | _ACEOF | |
6300 | cat confdefs.h >>conftest.$ac_ext | |
6301 | cat >>conftest.$ac_ext <<_ACEOF | |
6302 | /* end confdefs.h. */ | |
6303 | $ac_includes_default | |
6304 | #include <$ac_header> | |
6305 | _ACEOF | |
6306 | rm -f conftest.$ac_objext | |
6307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6308 | (eval $ac_compile) 2>conftest.er1 | |
6309 | ac_status=$? | |
6310 | grep -v '^ *+' conftest.er1 >conftest.err | |
6311 | rm -f conftest.er1 | |
6312 | cat conftest.err >&5 | |
6313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6314 | (exit $ac_status); } && | |
1fb2002d | 6315 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
f596fc98 AL |
6316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6317 | (eval $ac_try) 2>&5 | |
6318 | ac_status=$? | |
6319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6320 | (exit $ac_status); }; } && | |
6321 | { ac_try='test -s conftest.$ac_objext' | |
6322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6323 | (eval $ac_try) 2>&5 | |
6324 | ac_status=$? | |
6325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6326 | (exit $ac_status); }; }; then | |
6327 | ac_header_compiler=yes | |
6328 | else | |
6329 | echo "$as_me: failed program was:" >&5 | |
6330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6331 | ||
6332 | ac_header_compiler=no | |
6333 | fi | |
6334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6335 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6336 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6337 | ||
6338 | # Is the header present? | |
6339 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6340 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6341 | cat >conftest.$ac_ext <<_ACEOF | |
6342 | /* confdefs.h. */ | |
6343 | _ACEOF | |
6344 | cat confdefs.h >>conftest.$ac_ext | |
6345 | cat >>conftest.$ac_ext <<_ACEOF | |
6346 | /* end confdefs.h. */ | |
6347 | #include <$ac_header> | |
6348 | _ACEOF | |
6349 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6350 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6351 | ac_status=$? | |
6352 | grep -v '^ *+' conftest.er1 >conftest.err | |
6353 | rm -f conftest.er1 | |
6354 | cat conftest.err >&5 | |
6355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6356 | (exit $ac_status); } >/dev/null; then | |
6357 | if test -s conftest.err; then | |
6358 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6359 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6360 | else | |
6361 | ac_cpp_err= | |
6362 | fi | |
6363 | else | |
6364 | ac_cpp_err=yes | |
6365 | fi | |
6366 | if test -z "$ac_cpp_err"; then | |
6367 | ac_header_preproc=yes | |
6368 | else | |
6369 | echo "$as_me: failed program was:" >&5 | |
6370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6371 | ||
6372 | ac_header_preproc=no | |
6373 | fi | |
6374 | rm -f conftest.err conftest.$ac_ext | |
6375 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6376 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6377 | ||
6378 | # So? What about this header? | |
6379 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6380 | yes:no: ) | |
6381 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6382 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6383 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6384 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6385 | ac_header_preproc=yes | |
6386 | ;; | |
6387 | no:yes:* ) | |
6388 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6389 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6390 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6391 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6392 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6393 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6394 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6395 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6396 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6397 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6398 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6399 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6400 | ( | |
6401 | cat <<\_ASBOX | |
6402 | ## ------------------------------------------------------ ## | |
6403 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6404 | ## ------------------------------------------------------ ## | |
6405 | _ASBOX | |
6406 | ) | | |
6407 | sed "s/^/$as_me: WARNING: /" >&2 | |
6408 | ;; | |
6409 | esac | |
6410 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6411 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6412 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6414 | else | |
6415 | eval "$as_ac_Header=\$ac_header_preproc" | |
6416 | fi | |
6417 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6418 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6419 | ||
6420 | fi | |
6421 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6422 | cat >>confdefs.h <<_ACEOF | |
6423 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6424 | _ACEOF | |
6425 | ||
6426 | fi | |
6427 | ||
6428 | done | |
6429 | ||
6430 | ||
df65f093 SK |
6431 | |
6432 | ||
6e4d9244 EB |
6433 | |
6434 | for ac_header in sys/mman.h sys/types.h sys/stat.h ieeefp.h | |
f596fc98 AL |
6435 | do |
6436 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6438 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
96b8a615 AJ |
6439 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6440 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6de9cd9a | 6441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
96b8a615 AJ |
6442 | fi |
6443 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6444 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a | 6445 | else |
96b8a615 AJ |
6446 | # Is the header compilable? |
6447 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6448 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6449 | cat >conftest.$ac_ext <<_ACEOF | |
6450 | /* confdefs.h. */ | |
6451 | _ACEOF | |
6452 | cat confdefs.h >>conftest.$ac_ext | |
6453 | cat >>conftest.$ac_ext <<_ACEOF | |
6454 | /* end confdefs.h. */ | |
6455 | $ac_includes_default | |
6456 | #include <$ac_header> | |
6457 | _ACEOF | |
6458 | rm -f conftest.$ac_objext | |
6459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6460 | (eval $ac_compile) 2>conftest.er1 | |
6461 | ac_status=$? | |
6462 | grep -v '^ *+' conftest.er1 >conftest.err | |
6463 | rm -f conftest.er1 | |
6464 | cat conftest.err >&5 | |
6465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6466 | (exit $ac_status); } && | |
1fb2002d | 6467 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
96b8a615 AJ |
6468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6469 | (eval $ac_try) 2>&5 | |
6470 | ac_status=$? | |
6471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6472 | (exit $ac_status); }; } && | |
6473 | { ac_try='test -s conftest.$ac_objext' | |
6474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6475 | (eval $ac_try) 2>&5 | |
6476 | ac_status=$? | |
6477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6478 | (exit $ac_status); }; }; then | |
6479 | ac_header_compiler=yes | |
6de9cd9a | 6480 | else |
96b8a615 AJ |
6481 | echo "$as_me: failed program was:" >&5 |
6482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 6483 | |
96b8a615 AJ |
6484 | ac_header_compiler=no |
6485 | fi | |
6486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6487 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6488 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6de9cd9a | 6489 | |
96b8a615 AJ |
6490 | # Is the header present? |
6491 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6492 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6493 | cat >conftest.$ac_ext <<_ACEOF | |
6494 | /* confdefs.h. */ | |
6495 | _ACEOF | |
6496 | cat confdefs.h >>conftest.$ac_ext | |
6497 | cat >>conftest.$ac_ext <<_ACEOF | |
6498 | /* end confdefs.h. */ | |
6499 | #include <$ac_header> | |
6500 | _ACEOF | |
6501 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6502 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6503 | ac_status=$? | |
6504 | grep -v '^ *+' conftest.er1 >conftest.err | |
6505 | rm -f conftest.er1 | |
6506 | cat conftest.err >&5 | |
6507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6508 | (exit $ac_status); } >/dev/null; then | |
6509 | if test -s conftest.err; then | |
6510 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6511 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6512 | else | |
6513 | ac_cpp_err= | |
6514 | fi | |
6de9cd9a | 6515 | else |
96b8a615 | 6516 | ac_cpp_err=yes |
6de9cd9a | 6517 | fi |
96b8a615 AJ |
6518 | if test -z "$ac_cpp_err"; then |
6519 | ac_header_preproc=yes | |
6de9cd9a | 6520 | else |
96b8a615 AJ |
6521 | echo "$as_me: failed program was:" >&5 |
6522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 6523 | |
96b8a615 AJ |
6524 | ac_header_preproc=no |
6525 | fi | |
6526 | rm -f conftest.err conftest.$ac_ext | |
6527 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6528 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6de9cd9a | 6529 | |
96b8a615 AJ |
6530 | # So? What about this header? |
6531 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6532 | yes:no: ) | |
6533 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6534 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6535 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6536 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6537 | ac_header_preproc=yes | |
6de9cd9a | 6538 | ;; |
96b8a615 AJ |
6539 | no:yes:* ) |
6540 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6541 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6542 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6543 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6544 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6545 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6546 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6547 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6548 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6549 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6550 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6551 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6552 | ( | |
6553 | cat <<\_ASBOX | |
6554 | ## ------------------------------------------------------ ## | |
6555 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6556 | ## ------------------------------------------------------ ## | |
6557 | _ASBOX | |
6558 | ) | | |
6559 | sed "s/^/$as_me: WARNING: /" >&2 | |
6de9cd9a | 6560 | ;; |
96b8a615 AJ |
6561 | esac |
6562 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6563 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6564 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6566 | else | |
6567 | eval "$as_ac_Header=\$ac_header_preproc" | |
6568 | fi | |
6569 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6570 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a | 6571 | |
96b8a615 AJ |
6572 | fi |
6573 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6574 | cat >>confdefs.h <<_ACEOF | |
6575 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6576 | _ACEOF | |
6de9cd9a | 6577 | |
96b8a615 | 6578 | fi |
6de9cd9a | 6579 | |
96b8a615 | 6580 | done |
6de9cd9a | 6581 | |
96b8a615 AJ |
6582 | if test "${ac_cv_header_complex_h+set}" = set; then |
6583 | echo "$as_me:$LINENO: checking for complex.h" >&5 | |
6584 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
6585 | if test "${ac_cv_header_complex_h+set}" = set; then | |
6586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6587 | fi | |
6588 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 | |
6589 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
6590 | else | |
6591 | # Is the header compilable? | |
6592 | echo "$as_me:$LINENO: checking complex.h usability" >&5 | |
6593 | echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6 | |
6594 | cat >conftest.$ac_ext <<_ACEOF | |
6595 | /* confdefs.h. */ | |
6596 | _ACEOF | |
6597 | cat confdefs.h >>conftest.$ac_ext | |
6598 | cat >>conftest.$ac_ext <<_ACEOF | |
6599 | /* end confdefs.h. */ | |
6600 | $ac_includes_default | |
6601 | #include <complex.h> | |
6602 | _ACEOF | |
6603 | rm -f conftest.$ac_objext | |
6604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6605 | (eval $ac_compile) 2>conftest.er1 | |
6606 | ac_status=$? | |
6607 | grep -v '^ *+' conftest.er1 >conftest.err | |
6608 | rm -f conftest.er1 | |
6609 | cat conftest.err >&5 | |
6610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6611 | (exit $ac_status); } && | |
1fb2002d | 6612 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
96b8a615 AJ |
6613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6614 | (eval $ac_try) 2>&5 | |
6615 | ac_status=$? | |
6616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6617 | (exit $ac_status); }; } && | |
6618 | { ac_try='test -s conftest.$ac_objext' | |
6619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6620 | (eval $ac_try) 2>&5 | |
6621 | ac_status=$? | |
6622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6623 | (exit $ac_status); }; }; then | |
6624 | ac_header_compiler=yes | |
6625 | else | |
6626 | echo "$as_me: failed program was:" >&5 | |
6627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 6628 | |
96b8a615 AJ |
6629 | ac_header_compiler=no |
6630 | fi | |
6631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6632 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6633 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6de9cd9a | 6634 | |
96b8a615 AJ |
6635 | # Is the header present? |
6636 | echo "$as_me:$LINENO: checking complex.h presence" >&5 | |
6637 | echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6 | |
6638 | cat >conftest.$ac_ext <<_ACEOF | |
6639 | /* confdefs.h. */ | |
6640 | _ACEOF | |
6641 | cat confdefs.h >>conftest.$ac_ext | |
6642 | cat >>conftest.$ac_ext <<_ACEOF | |
6643 | /* end confdefs.h. */ | |
6644 | #include <complex.h> | |
6645 | _ACEOF | |
6646 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6647 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6648 | ac_status=$? | |
6649 | grep -v '^ *+' conftest.er1 >conftest.err | |
6650 | rm -f conftest.er1 | |
6651 | cat conftest.err >&5 | |
6652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6653 | (exit $ac_status); } >/dev/null; then | |
6654 | if test -s conftest.err; then | |
6655 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6656 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6de9cd9a | 6657 | else |
96b8a615 | 6658 | ac_cpp_err= |
6de9cd9a | 6659 | fi |
96b8a615 AJ |
6660 | else |
6661 | ac_cpp_err=yes | |
6662 | fi | |
6663 | if test -z "$ac_cpp_err"; then | |
6664 | ac_header_preproc=yes | |
6665 | else | |
6666 | echo "$as_me: failed program was:" >&5 | |
6667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 6668 | |
96b8a615 AJ |
6669 | ac_header_preproc=no |
6670 | fi | |
6671 | rm -f conftest.err conftest.$ac_ext | |
6672 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6673 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6de9cd9a | 6674 | |
96b8a615 AJ |
6675 | # So? What about this header? |
6676 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6677 | yes:no: ) | |
6678 | { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6679 | echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6680 | { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5 | |
6681 | echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;} | |
6682 | ac_header_preproc=yes | |
6de9cd9a | 6683 | ;; |
96b8a615 AJ |
6684 | no:yes:* ) |
6685 | { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5 | |
6686 | echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;} | |
6687 | { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5 | |
6688 | echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;} | |
6689 | { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5 | |
6690 | echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;} | |
6691 | { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
6692 | echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
6693 | { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5 | |
6694 | echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;} | |
6695 | { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5 | |
6696 | echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;} | |
6697 | ( | |
6698 | cat <<\_ASBOX | |
6699 | ## ------------------------------------------------------ ## | |
6700 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6701 | ## ------------------------------------------------------ ## | |
6702 | _ASBOX | |
6703 | ) | | |
6704 | sed "s/^/$as_me: WARNING: /" >&2 | |
6de9cd9a | 6705 | ;; |
6de9cd9a | 6706 | esac |
96b8a615 AJ |
6707 | echo "$as_me:$LINENO: checking for complex.h" >&5 |
6708 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
6709 | if test "${ac_cv_header_complex_h+set}" = set; then | |
6710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6711 | else | |
6712 | ac_cv_header_complex_h=$ac_header_preproc | |
6713 | fi | |
6714 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 | |
6715 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
6de9cd9a DN |
6716 | |
6717 | fi | |
96b8a615 | 6718 | if test $ac_cv_header_complex_h = yes; then |
6de9cd9a | 6719 | |
96b8a615 AJ |
6720 | cat >>confdefs.h <<\_ACEOF |
6721 | #define HAVE_COMPLEX_H 1 | |
6722 | _ACEOF | |
6de9cd9a | 6723 | |
96b8a615 | 6724 | fi |
6de9cd9a DN |
6725 | |
6726 | ||
6de9cd9a | 6727 | |
df65f093 SK |
6728 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
6729 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
6730 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | |
6731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6732 | else | |
6733 | cat >conftest.$ac_ext <<_ACEOF | |
6734 | /* confdefs.h. */ | |
6735 | _ACEOF | |
6736 | cat confdefs.h >>conftest.$ac_ext | |
6737 | cat >>conftest.$ac_ext <<_ACEOF | |
6738 | /* end confdefs.h. */ | |
6739 | $ac_includes_default | |
6740 | int | |
6741 | main () | |
6742 | { | |
6743 | static struct stat ac_aggr; | |
6744 | if (ac_aggr.st_blksize) | |
6745 | return 0; | |
6746 | ; | |
6747 | return 0; | |
6748 | } | |
6749 | _ACEOF | |
6750 | rm -f conftest.$ac_objext | |
6751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6752 | (eval $ac_compile) 2>conftest.er1 | |
6753 | ac_status=$? | |
6754 | grep -v '^ *+' conftest.er1 >conftest.err | |
6755 | rm -f conftest.er1 | |
6756 | cat conftest.err >&5 | |
6757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6758 | (exit $ac_status); } && | |
1fb2002d | 6759 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
df65f093 SK |
6760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6761 | (eval $ac_try) 2>&5 | |
6762 | ac_status=$? | |
6763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6764 | (exit $ac_status); }; } && | |
6765 | { ac_try='test -s conftest.$ac_objext' | |
6766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6767 | (eval $ac_try) 2>&5 | |
6768 | ac_status=$? | |
6769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6770 | (exit $ac_status); }; }; then | |
6771 | ac_cv_member_struct_stat_st_blksize=yes | |
6772 | else | |
6773 | echo "$as_me: failed program was:" >&5 | |
6774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6775 | ||
6776 | cat >conftest.$ac_ext <<_ACEOF | |
6777 | /* confdefs.h. */ | |
6778 | _ACEOF | |
6779 | cat confdefs.h >>conftest.$ac_ext | |
6780 | cat >>conftest.$ac_ext <<_ACEOF | |
6781 | /* end confdefs.h. */ | |
6782 | $ac_includes_default | |
6783 | int | |
6784 | main () | |
6785 | { | |
6786 | static struct stat ac_aggr; | |
6787 | if (sizeof ac_aggr.st_blksize) | |
6788 | return 0; | |
6789 | ; | |
6790 | return 0; | |
6791 | } | |
6792 | _ACEOF | |
6793 | rm -f conftest.$ac_objext | |
6794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6795 | (eval $ac_compile) 2>conftest.er1 | |
6796 | ac_status=$? | |
6797 | grep -v '^ *+' conftest.er1 >conftest.err | |
6798 | rm -f conftest.er1 | |
6799 | cat conftest.err >&5 | |
6800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6801 | (exit $ac_status); } && | |
1fb2002d | 6802 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
df65f093 SK |
6803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6804 | (eval $ac_try) 2>&5 | |
6805 | ac_status=$? | |
6806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6807 | (exit $ac_status); }; } && | |
6808 | { ac_try='test -s conftest.$ac_objext' | |
6809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6810 | (eval $ac_try) 2>&5 | |
6811 | ac_status=$? | |
6812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6813 | (exit $ac_status); }; }; then | |
6814 | ac_cv_member_struct_stat_st_blksize=yes | |
6815 | else | |
6816 | echo "$as_me: failed program was:" >&5 | |
6817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6818 | ||
6819 | ac_cv_member_struct_stat_st_blksize=no | |
6820 | fi | |
6821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6822 | fi | |
6823 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6824 | fi | |
6825 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | |
6826 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
6827 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | |
6828 | ||
6829 | cat >>confdefs.h <<_ACEOF | |
6830 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
6831 | _ACEOF | |
6832 | ||
6833 | ||
6834 | fi | |
6835 | ||
6836 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 | |
6837 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
6838 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then | |
6839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6840 | else | |
6841 | cat >conftest.$ac_ext <<_ACEOF | |
6842 | /* confdefs.h. */ | |
6843 | _ACEOF | |
6844 | cat confdefs.h >>conftest.$ac_ext | |
6845 | cat >>conftest.$ac_ext <<_ACEOF | |
6846 | /* end confdefs.h. */ | |
6847 | $ac_includes_default | |
6848 | int | |
6849 | main () | |
6850 | { | |
6851 | static struct stat ac_aggr; | |
6852 | if (ac_aggr.st_blocks) | |
6853 | return 0; | |
6854 | ; | |
6855 | return 0; | |
6856 | } | |
6857 | _ACEOF | |
6858 | rm -f conftest.$ac_objext | |
6859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6860 | (eval $ac_compile) 2>conftest.er1 | |
6861 | ac_status=$? | |
6862 | grep -v '^ *+' conftest.er1 >conftest.err | |
6863 | rm -f conftest.er1 | |
6864 | cat conftest.err >&5 | |
6865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6866 | (exit $ac_status); } && | |
1fb2002d | 6867 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
df65f093 SK |
6868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6869 | (eval $ac_try) 2>&5 | |
6870 | ac_status=$? | |
6871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6872 | (exit $ac_status); }; } && | |
6873 | { ac_try='test -s conftest.$ac_objext' | |
6874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6875 | (eval $ac_try) 2>&5 | |
6876 | ac_status=$? | |
6877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6878 | (exit $ac_status); }; }; then | |
6879 | ac_cv_member_struct_stat_st_blocks=yes | |
6880 | else | |
6881 | echo "$as_me: failed program was:" >&5 | |
6882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6883 | ||
6884 | cat >conftest.$ac_ext <<_ACEOF | |
6885 | /* confdefs.h. */ | |
6886 | _ACEOF | |
6887 | cat confdefs.h >>conftest.$ac_ext | |
6888 | cat >>conftest.$ac_ext <<_ACEOF | |
6889 | /* end confdefs.h. */ | |
6890 | $ac_includes_default | |
6891 | int | |
6892 | main () | |
6893 | { | |
6894 | static struct stat ac_aggr; | |
6895 | if (sizeof ac_aggr.st_blocks) | |
6896 | return 0; | |
6897 | ; | |
6898 | return 0; | |
6899 | } | |
6900 | _ACEOF | |
6901 | rm -f conftest.$ac_objext | |
6902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6903 | (eval $ac_compile) 2>conftest.er1 | |
6904 | ac_status=$? | |
6905 | grep -v '^ *+' conftest.er1 >conftest.err | |
6906 | rm -f conftest.er1 | |
6907 | cat conftest.err >&5 | |
6908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6909 | (exit $ac_status); } && | |
1fb2002d | 6910 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
df65f093 SK |
6911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6912 | (eval $ac_try) 2>&5 | |
6913 | ac_status=$? | |
6914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6915 | (exit $ac_status); }; } && | |
6916 | { ac_try='test -s conftest.$ac_objext' | |
6917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6918 | (eval $ac_try) 2>&5 | |
6919 | ac_status=$? | |
6920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6921 | (exit $ac_status); }; }; then | |
6922 | ac_cv_member_struct_stat_st_blocks=yes | |
6923 | else | |
6924 | echo "$as_me: failed program was:" >&5 | |
6925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6926 | ||
6927 | ac_cv_member_struct_stat_st_blocks=no | |
6928 | fi | |
6929 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6930 | fi | |
6931 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6932 | fi | |
6933 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 | |
6934 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
6935 | if test $ac_cv_member_struct_stat_st_blocks = yes; then | |
6936 | ||
6937 | cat >>confdefs.h <<_ACEOF | |
6938 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
6939 | _ACEOF | |
6940 | ||
6941 | ||
6942 | fi | |
6943 | ||
6944 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
6945 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
6946 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
6947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6948 | else | |
6949 | cat >conftest.$ac_ext <<_ACEOF | |
6950 | /* confdefs.h. */ | |
6951 | _ACEOF | |
6952 | cat confdefs.h >>conftest.$ac_ext | |
6953 | cat >>conftest.$ac_ext <<_ACEOF | |
6954 | /* end confdefs.h. */ | |
6955 | $ac_includes_default | |
6956 | int | |
6957 | main () | |
6958 | { | |
6959 | static struct stat ac_aggr; | |
6960 | if (ac_aggr.st_rdev) | |
6961 | return 0; | |
6962 | ; | |
6963 | return 0; | |
6964 | } | |
6965 | _ACEOF | |
6966 | rm -f conftest.$ac_objext | |
6967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6968 | (eval $ac_compile) 2>conftest.er1 | |
6969 | ac_status=$? | |
6970 | grep -v '^ *+' conftest.er1 >conftest.err | |
6971 | rm -f conftest.er1 | |
6972 | cat conftest.err >&5 | |
6973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6974 | (exit $ac_status); } && | |
1fb2002d | 6975 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
df65f093 SK |
6976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6977 | (eval $ac_try) 2>&5 | |
6978 | ac_status=$? | |
6979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6980 | (exit $ac_status); }; } && | |
6981 | { ac_try='test -s conftest.$ac_objext' | |
6982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6983 | (eval $ac_try) 2>&5 | |
6984 | ac_status=$? | |
6985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6986 | (exit $ac_status); }; }; then | |
6987 | ac_cv_member_struct_stat_st_rdev=yes | |
6988 | else | |
6989 | echo "$as_me: failed program was:" >&5 | |
6990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6991 | ||
6992 | cat >conftest.$ac_ext <<_ACEOF | |
6993 | /* confdefs.h. */ | |
6994 | _ACEOF | |
6995 | cat confdefs.h >>conftest.$ac_ext | |
6996 | cat >>conftest.$ac_ext <<_ACEOF | |
6997 | /* end confdefs.h. */ | |
6998 | $ac_includes_default | |
6999 | int | |
7000 | main () | |
7001 | { | |
7002 | static struct stat ac_aggr; | |
7003 | if (sizeof ac_aggr.st_rdev) | |
7004 | return 0; | |
7005 | ; | |
7006 | return 0; | |
7007 | } | |
7008 | _ACEOF | |
7009 | rm -f conftest.$ac_objext | |
7010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7011 | (eval $ac_compile) 2>conftest.er1 | |
7012 | ac_status=$? | |
7013 | grep -v '^ *+' conftest.er1 >conftest.err | |
7014 | rm -f conftest.er1 | |
7015 | cat conftest.err >&5 | |
7016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7017 | (exit $ac_status); } && | |
1fb2002d | 7018 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
df65f093 SK |
7019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7020 | (eval $ac_try) 2>&5 | |
7021 | ac_status=$? | |
7022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7023 | (exit $ac_status); }; } && | |
7024 | { ac_try='test -s conftest.$ac_objext' | |
7025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7026 | (eval $ac_try) 2>&5 | |
7027 | ac_status=$? | |
7028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7029 | (exit $ac_status); }; }; then | |
7030 | ac_cv_member_struct_stat_st_rdev=yes | |
7031 | else | |
7032 | echo "$as_me: failed program was:" >&5 | |
7033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7034 | ||
7035 | ac_cv_member_struct_stat_st_rdev=no | |
7036 | fi | |
7037 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7038 | fi | |
7039 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7040 | fi | |
7041 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
7042 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
7043 | if test $ac_cv_member_struct_stat_st_rdev = yes; then | |
7044 | ||
7045 | cat >>confdefs.h <<_ACEOF | |
7046 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
7047 | _ACEOF | |
7048 | ||
7049 | ||
7050 | fi | |
7051 | ||
7052 | ||
96b8a615 AJ |
7053 | # Check for complex math functions |
7054 | echo "$as_me:$LINENO: checking for csin in -lm" >&5 | |
7055 | echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6 | |
7056 | if test "${ac_cv_lib_m_csin+set}" = set; then | |
6de9cd9a DN |
7057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7058 | else | |
96b8a615 AJ |
7059 | ac_check_lib_save_LIBS=$LIBS |
7060 | LIBS="-lm $LIBS" | |
7061 | cat >conftest.$ac_ext <<_ACEOF | |
7062 | /* confdefs.h. */ | |
7063 | _ACEOF | |
7064 | cat confdefs.h >>conftest.$ac_ext | |
7065 | cat >>conftest.$ac_ext <<_ACEOF | |
7066 | /* end confdefs.h. */ | |
6de9cd9a | 7067 | |
96b8a615 AJ |
7068 | /* Override any gcc2 internal prototype to avoid an error. */ |
7069 | #ifdef __cplusplus | |
7070 | extern "C" | |
7071 | #endif | |
7072 | /* We use char because int might match the return type of a gcc2 | |
7073 | builtin and then its argument prototype would still apply. */ | |
7074 | char csin (); | |
7075 | int | |
7076 | main () | |
7077 | { | |
7078 | csin (); | |
7079 | ; | |
7080 | return 0; | |
7081 | } | |
7082 | _ACEOF | |
7083 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7084 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7085 | (eval $ac_link) 2>conftest.er1 | |
7086 | ac_status=$? | |
7087 | grep -v '^ *+' conftest.er1 >conftest.err | |
7088 | rm -f conftest.er1 | |
7089 | cat conftest.err >&5 | |
7090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7091 | (exit $ac_status); } && | |
1fb2002d | 7092 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
96b8a615 AJ |
7093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7094 | (eval $ac_try) 2>&5 | |
7095 | ac_status=$? | |
7096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7097 | (exit $ac_status); }; } && | |
7098 | { ac_try='test -s conftest$ac_exeext' | |
7099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7100 | (eval $ac_try) 2>&5 | |
7101 | ac_status=$? | |
7102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7103 | (exit $ac_status); }; }; then | |
7104 | ac_cv_lib_m_csin=yes | |
7105 | else | |
7106 | echo "$as_me: failed program was:" >&5 | |
7107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7108 | ||
7109 | ac_cv_lib_m_csin=no | |
7110 | fi | |
7111 | rm -f conftest.err conftest.$ac_objext \ | |
7112 | conftest$ac_exeext conftest.$ac_ext | |
7113 | LIBS=$ac_check_lib_save_LIBS | |
7114 | fi | |
7115 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5 | |
7116 | echo "${ECHO_T}$ac_cv_lib_m_csin" >&6 | |
7117 | if test $ac_cv_lib_m_csin = yes; then | |
7118 | need_math="no" | |
7119 | else | |
7120 | need_math="yes" | |
7121 | fi | |
7122 | ||
7123 | ||
96b8a615 AJ |
7124 | # Check for library functions. |
7125 | ||
7126 | ||
41724e6a | 7127 | |
2cbcdeba | 7128 | |
3969c39f | 7129 | |
1fb2002d FXC |
7130 | |
7131 | ||
7132 | for ac_func in getrusage times mkstemp strtof snprintf ftruncate chsize | |
96b8a615 AJ |
7133 | do |
7134 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7135 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7136 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7137 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6de9cd9a DN |
7138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7139 | else | |
f77b6ca3 FXC |
7140 | cat >conftest.$ac_ext <<_ACEOF |
7141 | /* confdefs.h. */ | |
7142 | _ACEOF | |
7143 | cat confdefs.h >>conftest.$ac_ext | |
7144 | cat >>conftest.$ac_ext <<_ACEOF | |
7145 | /* end confdefs.h. */ | |
7146 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7147 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7148 | #define $ac_func innocuous_$ac_func | |
7149 | ||
7150 | /* System header to define __stub macros and hopefully few prototypes, | |
7151 | which can conflict with char $ac_func (); below. | |
7152 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7153 | <limits.h> exists even on freestanding compilers. */ | |
7154 | ||
7155 | #ifdef __STDC__ | |
7156 | # include <limits.h> | |
7157 | #else | |
7158 | # include <assert.h> | |
7159 | #endif | |
7160 | ||
7161 | #undef $ac_func | |
7162 | ||
7163 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7164 | #ifdef __cplusplus | |
7165 | extern "C" | |
7166 | { | |
7167 | #endif | |
7168 | /* We use char because int might match the return type of a gcc2 | |
7169 | builtin and then its argument prototype would still apply. */ | |
7170 | char $ac_func (); | |
7171 | /* The GNU C library defines this for functions which it implements | |
7172 | to always fail with ENOSYS. Some functions are actually named | |
7173 | something starting with __ and the normal name is an alias. */ | |
7174 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7175 | choke me | |
7176 | #else | |
7177 | char (*f) () = $ac_func; | |
7178 | #endif | |
7179 | #ifdef __cplusplus | |
7180 | } | |
7181 | #endif | |
7182 | ||
7183 | int | |
7184 | main () | |
7185 | { | |
7186 | return f != $ac_func; | |
7187 | ; | |
7188 | return 0; | |
7189 | } | |
7190 | _ACEOF | |
7191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7193 | (eval $ac_link) 2>conftest.er1 | |
7194 | ac_status=$? | |
7195 | grep -v '^ *+' conftest.er1 >conftest.err | |
7196 | rm -f conftest.er1 | |
7197 | cat conftest.err >&5 | |
7198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7199 | (exit $ac_status); } && | |
1fb2002d | 7200 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
f77b6ca3 FXC |
7201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7202 | (eval $ac_try) 2>&5 | |
7203 | ac_status=$? | |
7204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7205 | (exit $ac_status); }; } && | |
7206 | { ac_try='test -s conftest$ac_exeext' | |
7207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7208 | (eval $ac_try) 2>&5 | |
7209 | ac_status=$? | |
7210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7211 | (exit $ac_status); }; }; then | |
7212 | eval "$as_ac_var=yes" | |
7213 | else | |
7214 | echo "$as_me: failed program was:" >&5 | |
7215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7216 | ||
7217 | eval "$as_ac_var=no" | |
d49ec2d1 | 7218 | fi |
f77b6ca3 FXC |
7219 | rm -f conftest.err conftest.$ac_objext \ |
7220 | conftest$ac_exeext conftest.$ac_ext | |
7221 | fi | |
7222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7223 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7224 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7225 | cat >>confdefs.h <<_ACEOF | |
7226 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7227 | _ACEOF | |
7228 | ||
7229 | fi | |
7230 | done | |
7231 | ||
7232 | ||
7233 | ||
7234 | ||
7235 | ||
7236 | ||
7237 | ||
7238 | ||
7239 | ||
7240 | for ac_func in chdir strerror getlogin gethostname kill link symlink perror | |
7241 | do | |
7242 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7243 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7244 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7245 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7247 | else | |
7248 | cat >conftest.$ac_ext <<_ACEOF | |
96b8a615 AJ |
7249 | /* confdefs.h. */ |
7250 | _ACEOF | |
7251 | cat confdefs.h >>conftest.$ac_ext | |
7252 | cat >>conftest.$ac_ext <<_ACEOF | |
7253 | /* end confdefs.h. */ | |
7254 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7255 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7256 | #define $ac_func innocuous_$ac_func | |
6de9cd9a | 7257 | |
96b8a615 AJ |
7258 | /* System header to define __stub macros and hopefully few prototypes, |
7259 | which can conflict with char $ac_func (); below. | |
7260 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7261 | <limits.h> exists even on freestanding compilers. */ | |
6de9cd9a | 7262 | |
96b8a615 AJ |
7263 | #ifdef __STDC__ |
7264 | # include <limits.h> | |
7265 | #else | |
7266 | # include <assert.h> | |
7267 | #endif | |
6de9cd9a | 7268 | |
96b8a615 AJ |
7269 | #undef $ac_func |
7270 | ||
7271 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7272 | #ifdef __cplusplus | |
7273 | extern "C" | |
7274 | { | |
7275 | #endif | |
7276 | /* We use char because int might match the return type of a gcc2 | |
7277 | builtin and then its argument prototype would still apply. */ | |
7278 | char $ac_func (); | |
7279 | /* The GNU C library defines this for functions which it implements | |
7280 | to always fail with ENOSYS. Some functions are actually named | |
7281 | something starting with __ and the normal name is an alias. */ | |
7282 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7283 | choke me | |
7284 | #else | |
7285 | char (*f) () = $ac_func; | |
7286 | #endif | |
7287 | #ifdef __cplusplus | |
7288 | } | |
7289 | #endif | |
7290 | ||
7291 | int | |
7292 | main () | |
7293 | { | |
7294 | return f != $ac_func; | |
7295 | ; | |
7296 | return 0; | |
7297 | } | |
7298 | _ACEOF | |
7299 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7301 | (eval $ac_link) 2>conftest.er1 | |
7302 | ac_status=$? | |
7303 | grep -v '^ *+' conftest.er1 >conftest.err | |
7304 | rm -f conftest.er1 | |
7305 | cat conftest.err >&5 | |
7306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7307 | (exit $ac_status); } && | |
1fb2002d | 7308 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
f77b6ca3 FXC |
7309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7310 | (eval $ac_try) 2>&5 | |
7311 | ac_status=$? | |
7312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7313 | (exit $ac_status); }; } && | |
7314 | { ac_try='test -s conftest$ac_exeext' | |
7315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7316 | (eval $ac_try) 2>&5 | |
7317 | ac_status=$? | |
7318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7319 | (exit $ac_status); }; }; then | |
7320 | eval "$as_ac_var=yes" | |
7321 | else | |
7322 | echo "$as_me: failed program was:" >&5 | |
7323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7324 | ||
7325 | eval "$as_ac_var=no" | |
7326 | fi | |
7327 | rm -f conftest.err conftest.$ac_objext \ | |
7328 | conftest$ac_exeext conftest.$ac_ext | |
7329 | fi | |
7330 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7331 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7332 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7333 | cat >>confdefs.h <<_ACEOF | |
7334 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7335 | _ACEOF | |
7336 | ||
7337 | fi | |
7338 | done | |
7339 | ||
7340 | ||
7341 | ||
7342 | for ac_func in sleep time | |
7343 | do | |
7344 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7345 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7346 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7347 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7349 | else | |
7350 | cat >conftest.$ac_ext <<_ACEOF | |
7351 | /* confdefs.h. */ | |
7352 | _ACEOF | |
7353 | cat confdefs.h >>conftest.$ac_ext | |
7354 | cat >>conftest.$ac_ext <<_ACEOF | |
7355 | /* end confdefs.h. */ | |
7356 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7357 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7358 | #define $ac_func innocuous_$ac_func | |
7359 | ||
7360 | /* System header to define __stub macros and hopefully few prototypes, | |
7361 | which can conflict with char $ac_func (); below. | |
7362 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7363 | <limits.h> exists even on freestanding compilers. */ | |
7364 | ||
7365 | #ifdef __STDC__ | |
7366 | # include <limits.h> | |
7367 | #else | |
7368 | # include <assert.h> | |
7369 | #endif | |
7370 | ||
7371 | #undef $ac_func | |
7372 | ||
7373 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7374 | #ifdef __cplusplus | |
7375 | extern "C" | |
7376 | { | |
7377 | #endif | |
7378 | /* We use char because int might match the return type of a gcc2 | |
7379 | builtin and then its argument prototype would still apply. */ | |
7380 | char $ac_func (); | |
7381 | /* The GNU C library defines this for functions which it implements | |
7382 | to always fail with ENOSYS. Some functions are actually named | |
7383 | something starting with __ and the normal name is an alias. */ | |
7384 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7385 | choke me | |
7386 | #else | |
7387 | char (*f) () = $ac_func; | |
7388 | #endif | |
7389 | #ifdef __cplusplus | |
7390 | } | |
7391 | #endif | |
7392 | ||
7393 | int | |
7394 | main () | |
7395 | { | |
7396 | return f != $ac_func; | |
7397 | ; | |
7398 | return 0; | |
7399 | } | |
7400 | _ACEOF | |
7401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7403 | (eval $ac_link) 2>conftest.er1 | |
7404 | ac_status=$? | |
7405 | grep -v '^ *+' conftest.er1 >conftest.err | |
7406 | rm -f conftest.er1 | |
7407 | cat conftest.err >&5 | |
7408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7409 | (exit $ac_status); } && | |
1fb2002d | 7410 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
96b8a615 AJ |
7411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7412 | (eval $ac_try) 2>&5 | |
7413 | ac_status=$? | |
7414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7415 | (exit $ac_status); }; } && | |
7416 | { ac_try='test -s conftest$ac_exeext' | |
7417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7418 | (eval $ac_try) 2>&5 | |
7419 | ac_status=$? | |
7420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7421 | (exit $ac_status); }; }; then | |
7422 | eval "$as_ac_var=yes" | |
6de9cd9a | 7423 | else |
96b8a615 AJ |
7424 | echo "$as_me: failed program was:" >&5 |
7425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7426 | ||
7427 | eval "$as_ac_var=no" | |
7428 | fi | |
7429 | rm -f conftest.err conftest.$ac_objext \ | |
7430 | conftest$ac_exeext conftest.$ac_ext | |
6de9cd9a | 7431 | fi |
96b8a615 AJ |
7432 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
7433 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7434 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7435 | cat >>confdefs.h <<_ACEOF | |
7436 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7437 | _ACEOF | |
6de9cd9a | 7438 | |
6de9cd9a | 7439 | fi |
96b8a615 | 7440 | done |
6de9cd9a | 7441 | |
6de9cd9a | 7442 | |
4c0c6b9f SK |
7443 | # Check libc for getgid, getpid, getuid |
7444 | echo "$as_me:$LINENO: checking for getgid in -lc" >&5 | |
7445 | echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6 | |
7446 | if test "${ac_cv_lib_c_getgid+set}" = set; then | |
7447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7448 | else | |
7449 | ac_check_lib_save_LIBS=$LIBS | |
7450 | LIBS="-lc $LIBS" | |
7451 | cat >conftest.$ac_ext <<_ACEOF | |
7452 | /* confdefs.h. */ | |
7453 | _ACEOF | |
7454 | cat confdefs.h >>conftest.$ac_ext | |
7455 | cat >>conftest.$ac_ext <<_ACEOF | |
7456 | /* end confdefs.h. */ | |
7457 | ||
7458 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7459 | #ifdef __cplusplus | |
7460 | extern "C" | |
7461 | #endif | |
7462 | /* We use char because int might match the return type of a gcc2 | |
7463 | builtin and then its argument prototype would still apply. */ | |
7464 | char getgid (); | |
7465 | int | |
7466 | main () | |
7467 | { | |
7468 | getgid (); | |
7469 | ; | |
7470 | return 0; | |
7471 | } | |
7472 | _ACEOF | |
7473 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7474 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7475 | (eval $ac_link) 2>conftest.er1 | |
7476 | ac_status=$? | |
7477 | grep -v '^ *+' conftest.er1 >conftest.err | |
7478 | rm -f conftest.er1 | |
7479 | cat conftest.err >&5 | |
7480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7481 | (exit $ac_status); } && | |
1fb2002d | 7482 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4c0c6b9f SK |
7483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7484 | (eval $ac_try) 2>&5 | |
7485 | ac_status=$? | |
7486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7487 | (exit $ac_status); }; } && | |
7488 | { ac_try='test -s conftest$ac_exeext' | |
7489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7490 | (eval $ac_try) 2>&5 | |
7491 | ac_status=$? | |
7492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7493 | (exit $ac_status); }; }; then | |
7494 | ac_cv_lib_c_getgid=yes | |
7495 | else | |
7496 | echo "$as_me: failed program was:" >&5 | |
7497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7498 | ||
7499 | ac_cv_lib_c_getgid=no | |
7500 | fi | |
7501 | rm -f conftest.err conftest.$ac_objext \ | |
7502 | conftest$ac_exeext conftest.$ac_ext | |
7503 | LIBS=$ac_check_lib_save_LIBS | |
7504 | fi | |
7505 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5 | |
7506 | echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6 | |
7507 | if test $ac_cv_lib_c_getgid = yes; then | |
7508 | ||
7509 | cat >>confdefs.h <<\_ACEOF | |
7510 | #define HAVE_GETGID 1 | |
7511 | _ACEOF | |
7512 | ||
7513 | fi | |
7514 | ||
7515 | echo "$as_me:$LINENO: checking for getpid in -lc" >&5 | |
7516 | echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6 | |
7517 | if test "${ac_cv_lib_c_getpid+set}" = set; then | |
7518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7519 | else | |
7520 | ac_check_lib_save_LIBS=$LIBS | |
7521 | LIBS="-lc $LIBS" | |
7522 | cat >conftest.$ac_ext <<_ACEOF | |
7523 | /* confdefs.h. */ | |
7524 | _ACEOF | |
7525 | cat confdefs.h >>conftest.$ac_ext | |
7526 | cat >>conftest.$ac_ext <<_ACEOF | |
7527 | /* end confdefs.h. */ | |
7528 | ||
7529 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7530 | #ifdef __cplusplus | |
7531 | extern "C" | |
7532 | #endif | |
7533 | /* We use char because int might match the return type of a gcc2 | |
7534 | builtin and then its argument prototype would still apply. */ | |
7535 | char getpid (); | |
7536 | int | |
7537 | main () | |
7538 | { | |
7539 | getpid (); | |
7540 | ; | |
7541 | return 0; | |
7542 | } | |
7543 | _ACEOF | |
7544 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7546 | (eval $ac_link) 2>conftest.er1 | |
7547 | ac_status=$? | |
7548 | grep -v '^ *+' conftest.er1 >conftest.err | |
7549 | rm -f conftest.er1 | |
7550 | cat conftest.err >&5 | |
7551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7552 | (exit $ac_status); } && | |
1fb2002d | 7553 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4c0c6b9f SK |
7554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7555 | (eval $ac_try) 2>&5 | |
7556 | ac_status=$? | |
7557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7558 | (exit $ac_status); }; } && | |
7559 | { ac_try='test -s conftest$ac_exeext' | |
7560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7561 | (eval $ac_try) 2>&5 | |
7562 | ac_status=$? | |
7563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7564 | (exit $ac_status); }; }; then | |
7565 | ac_cv_lib_c_getpid=yes | |
7566 | else | |
7567 | echo "$as_me: failed program was:" >&5 | |
7568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7569 | ||
7570 | ac_cv_lib_c_getpid=no | |
7571 | fi | |
7572 | rm -f conftest.err conftest.$ac_objext \ | |
7573 | conftest$ac_exeext conftest.$ac_ext | |
7574 | LIBS=$ac_check_lib_save_LIBS | |
7575 | fi | |
7576 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5 | |
7577 | echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6 | |
7578 | if test $ac_cv_lib_c_getpid = yes; then | |
7579 | ||
7580 | cat >>confdefs.h <<\_ACEOF | |
7581 | #define HAVE_GETPID 1 | |
7582 | _ACEOF | |
7583 | ||
7584 | fi | |
7585 | ||
7586 | echo "$as_me:$LINENO: checking for getuid in -lc" >&5 | |
7587 | echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6 | |
7588 | if test "${ac_cv_lib_c_getuid+set}" = set; then | |
7589 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7590 | else | |
7591 | ac_check_lib_save_LIBS=$LIBS | |
7592 | LIBS="-lc $LIBS" | |
7593 | cat >conftest.$ac_ext <<_ACEOF | |
7594 | /* confdefs.h. */ | |
7595 | _ACEOF | |
7596 | cat confdefs.h >>conftest.$ac_ext | |
7597 | cat >>conftest.$ac_ext <<_ACEOF | |
7598 | /* end confdefs.h. */ | |
7599 | ||
7600 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7601 | #ifdef __cplusplus | |
7602 | extern "C" | |
7603 | #endif | |
7604 | /* We use char because int might match the return type of a gcc2 | |
7605 | builtin and then its argument prototype would still apply. */ | |
7606 | char getuid (); | |
7607 | int | |
7608 | main () | |
7609 | { | |
7610 | getuid (); | |
7611 | ; | |
7612 | return 0; | |
7613 | } | |
7614 | _ACEOF | |
7615 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7617 | (eval $ac_link) 2>conftest.er1 | |
7618 | ac_status=$? | |
7619 | grep -v '^ *+' conftest.er1 >conftest.err | |
7620 | rm -f conftest.er1 | |
7621 | cat conftest.err >&5 | |
7622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7623 | (exit $ac_status); } && | |
1fb2002d | 7624 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4c0c6b9f SK |
7625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7626 | (eval $ac_try) 2>&5 | |
7627 | ac_status=$? | |
7628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7629 | (exit $ac_status); }; } && | |
7630 | { ac_try='test -s conftest$ac_exeext' | |
7631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7632 | (eval $ac_try) 2>&5 | |
7633 | ac_status=$? | |
7634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7635 | (exit $ac_status); }; }; then | |
7636 | ac_cv_lib_c_getuid=yes | |
7637 | else | |
7638 | echo "$as_me: failed program was:" >&5 | |
7639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7640 | ||
7641 | ac_cv_lib_c_getuid=no | |
7642 | fi | |
7643 | rm -f conftest.err conftest.$ac_objext \ | |
7644 | conftest$ac_exeext conftest.$ac_ext | |
7645 | LIBS=$ac_check_lib_save_LIBS | |
7646 | fi | |
7647 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5 | |
7648 | echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6 | |
7649 | if test $ac_cv_lib_c_getuid = yes; then | |
7650 | ||
7651 | cat >>confdefs.h <<\_ACEOF | |
7652 | #define HAVE_GETUID 1 | |
7653 | _ACEOF | |
7654 | ||
7655 | fi | |
7656 | ||
7657 | ||
453310d8 | 7658 | # Check for C99 (and other IEEE) math functions |
e8525382 | 7659 | # ??? This list seems awful long. Is there a better way to test for these? |
453310d8 RS |
7660 | echo "$as_me:$LINENO: checking for acosf in -lm" >&5 |
7661 | echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6 | |
7662 | if test "${ac_cv_lib_m_acosf+set}" = set; then | |
7663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7664 | else | |
7665 | ac_check_lib_save_LIBS=$LIBS | |
7666 | LIBS="-lm $LIBS" | |
7667 | cat >conftest.$ac_ext <<_ACEOF | |
7668 | /* confdefs.h. */ | |
7669 | _ACEOF | |
7670 | cat confdefs.h >>conftest.$ac_ext | |
7671 | cat >>conftest.$ac_ext <<_ACEOF | |
7672 | /* end confdefs.h. */ | |
7673 | ||
7674 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7675 | #ifdef __cplusplus | |
7676 | extern "C" | |
7677 | #endif | |
7678 | /* We use char because int might match the return type of a gcc2 | |
7679 | builtin and then its argument prototype would still apply. */ | |
7680 | char acosf (); | |
7681 | int | |
7682 | main () | |
7683 | { | |
7684 | acosf (); | |
7685 | ; | |
7686 | return 0; | |
7687 | } | |
7688 | _ACEOF | |
7689 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7691 | (eval $ac_link) 2>conftest.er1 | |
7692 | ac_status=$? | |
7693 | grep -v '^ *+' conftest.er1 >conftest.err | |
7694 | rm -f conftest.er1 | |
7695 | cat conftest.err >&5 | |
7696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7697 | (exit $ac_status); } && | |
1fb2002d | 7698 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
7699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7700 | (eval $ac_try) 2>&5 | |
7701 | ac_status=$? | |
7702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7703 | (exit $ac_status); }; } && | |
7704 | { ac_try='test -s conftest$ac_exeext' | |
7705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7706 | (eval $ac_try) 2>&5 | |
7707 | ac_status=$? | |
7708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7709 | (exit $ac_status); }; }; then | |
7710 | ac_cv_lib_m_acosf=yes | |
7711 | else | |
7712 | echo "$as_me: failed program was:" >&5 | |
7713 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7714 | ||
7715 | ac_cv_lib_m_acosf=no | |
7716 | fi | |
7717 | rm -f conftest.err conftest.$ac_objext \ | |
7718 | conftest$ac_exeext conftest.$ac_ext | |
7719 | LIBS=$ac_check_lib_save_LIBS | |
7720 | fi | |
7721 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5 | |
7722 | echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6 | |
7723 | if test $ac_cv_lib_m_acosf = yes; then | |
7724 | ||
7725 | cat >>confdefs.h <<\_ACEOF | |
7726 | #define HAVE_ACOSF 1 | |
7727 | _ACEOF | |
7728 | ||
7729 | fi | |
7730 | ||
7731 | echo "$as_me:$LINENO: checking for asinf in -lm" >&5 | |
7732 | echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6 | |
7733 | if test "${ac_cv_lib_m_asinf+set}" = set; then | |
7734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7735 | else | |
7736 | ac_check_lib_save_LIBS=$LIBS | |
7737 | LIBS="-lm $LIBS" | |
7738 | cat >conftest.$ac_ext <<_ACEOF | |
7739 | /* confdefs.h. */ | |
7740 | _ACEOF | |
7741 | cat confdefs.h >>conftest.$ac_ext | |
7742 | cat >>conftest.$ac_ext <<_ACEOF | |
7743 | /* end confdefs.h. */ | |
7744 | ||
7745 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7746 | #ifdef __cplusplus | |
7747 | extern "C" | |
7748 | #endif | |
7749 | /* We use char because int might match the return type of a gcc2 | |
7750 | builtin and then its argument prototype would still apply. */ | |
7751 | char asinf (); | |
7752 | int | |
7753 | main () | |
7754 | { | |
7755 | asinf (); | |
7756 | ; | |
7757 | return 0; | |
7758 | } | |
7759 | _ACEOF | |
7760 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7762 | (eval $ac_link) 2>conftest.er1 | |
7763 | ac_status=$? | |
7764 | grep -v '^ *+' conftest.er1 >conftest.err | |
7765 | rm -f conftest.er1 | |
7766 | cat conftest.err >&5 | |
7767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7768 | (exit $ac_status); } && | |
1fb2002d | 7769 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
7770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7771 | (eval $ac_try) 2>&5 | |
7772 | ac_status=$? | |
7773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7774 | (exit $ac_status); }; } && | |
7775 | { ac_try='test -s conftest$ac_exeext' | |
7776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7777 | (eval $ac_try) 2>&5 | |
7778 | ac_status=$? | |
7779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7780 | (exit $ac_status); }; }; then | |
7781 | ac_cv_lib_m_asinf=yes | |
7782 | else | |
7783 | echo "$as_me: failed program was:" >&5 | |
7784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7785 | ||
7786 | ac_cv_lib_m_asinf=no | |
7787 | fi | |
7788 | rm -f conftest.err conftest.$ac_objext \ | |
7789 | conftest$ac_exeext conftest.$ac_ext | |
7790 | LIBS=$ac_check_lib_save_LIBS | |
7791 | fi | |
7792 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5 | |
7793 | echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6 | |
7794 | if test $ac_cv_lib_m_asinf = yes; then | |
7795 | ||
7796 | cat >>confdefs.h <<\_ACEOF | |
7797 | #define HAVE_ASINF 1 | |
7798 | _ACEOF | |
7799 | ||
7800 | fi | |
7801 | ||
7802 | echo "$as_me:$LINENO: checking for atan2f in -lm" >&5 | |
7803 | echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6 | |
7804 | if test "${ac_cv_lib_m_atan2f+set}" = set; then | |
7805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7806 | else | |
7807 | ac_check_lib_save_LIBS=$LIBS | |
7808 | LIBS="-lm $LIBS" | |
7809 | cat >conftest.$ac_ext <<_ACEOF | |
7810 | /* confdefs.h. */ | |
7811 | _ACEOF | |
7812 | cat confdefs.h >>conftest.$ac_ext | |
7813 | cat >>conftest.$ac_ext <<_ACEOF | |
7814 | /* end confdefs.h. */ | |
7815 | ||
7816 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7817 | #ifdef __cplusplus | |
7818 | extern "C" | |
7819 | #endif | |
7820 | /* We use char because int might match the return type of a gcc2 | |
7821 | builtin and then its argument prototype would still apply. */ | |
7822 | char atan2f (); | |
7823 | int | |
7824 | main () | |
7825 | { | |
7826 | atan2f (); | |
7827 | ; | |
7828 | return 0; | |
7829 | } | |
7830 | _ACEOF | |
7831 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7833 | (eval $ac_link) 2>conftest.er1 | |
7834 | ac_status=$? | |
7835 | grep -v '^ *+' conftest.er1 >conftest.err | |
7836 | rm -f conftest.er1 | |
7837 | cat conftest.err >&5 | |
7838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7839 | (exit $ac_status); } && | |
1fb2002d | 7840 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
7841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7842 | (eval $ac_try) 2>&5 | |
7843 | ac_status=$? | |
7844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7845 | (exit $ac_status); }; } && | |
7846 | { ac_try='test -s conftest$ac_exeext' | |
7847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7848 | (eval $ac_try) 2>&5 | |
7849 | ac_status=$? | |
7850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7851 | (exit $ac_status); }; }; then | |
7852 | ac_cv_lib_m_atan2f=yes | |
7853 | else | |
7854 | echo "$as_me: failed program was:" >&5 | |
7855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7856 | ||
7857 | ac_cv_lib_m_atan2f=no | |
7858 | fi | |
7859 | rm -f conftest.err conftest.$ac_objext \ | |
7860 | conftest$ac_exeext conftest.$ac_ext | |
7861 | LIBS=$ac_check_lib_save_LIBS | |
7862 | fi | |
7863 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5 | |
7864 | echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6 | |
7865 | if test $ac_cv_lib_m_atan2f = yes; then | |
7866 | ||
7867 | cat >>confdefs.h <<\_ACEOF | |
7868 | #define HAVE_ATAN2F 1 | |
7869 | _ACEOF | |
7870 | ||
7871 | fi | |
7872 | ||
7873 | echo "$as_me:$LINENO: checking for atanf in -lm" >&5 | |
7874 | echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6 | |
7875 | if test "${ac_cv_lib_m_atanf+set}" = set; then | |
7876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7877 | else | |
7878 | ac_check_lib_save_LIBS=$LIBS | |
7879 | LIBS="-lm $LIBS" | |
7880 | cat >conftest.$ac_ext <<_ACEOF | |
7881 | /* confdefs.h. */ | |
7882 | _ACEOF | |
7883 | cat confdefs.h >>conftest.$ac_ext | |
7884 | cat >>conftest.$ac_ext <<_ACEOF | |
7885 | /* end confdefs.h. */ | |
7886 | ||
7887 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7888 | #ifdef __cplusplus | |
7889 | extern "C" | |
7890 | #endif | |
7891 | /* We use char because int might match the return type of a gcc2 | |
7892 | builtin and then its argument prototype would still apply. */ | |
7893 | char atanf (); | |
7894 | int | |
7895 | main () | |
7896 | { | |
7897 | atanf (); | |
7898 | ; | |
7899 | return 0; | |
7900 | } | |
7901 | _ACEOF | |
7902 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7903 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7904 | (eval $ac_link) 2>conftest.er1 | |
7905 | ac_status=$? | |
7906 | grep -v '^ *+' conftest.er1 >conftest.err | |
7907 | rm -f conftest.er1 | |
7908 | cat conftest.err >&5 | |
7909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7910 | (exit $ac_status); } && | |
1fb2002d | 7911 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
7912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7913 | (eval $ac_try) 2>&5 | |
7914 | ac_status=$? | |
7915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7916 | (exit $ac_status); }; } && | |
7917 | { ac_try='test -s conftest$ac_exeext' | |
7918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7919 | (eval $ac_try) 2>&5 | |
7920 | ac_status=$? | |
7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7922 | (exit $ac_status); }; }; then | |
7923 | ac_cv_lib_m_atanf=yes | |
7924 | else | |
7925 | echo "$as_me: failed program was:" >&5 | |
7926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7927 | ||
7928 | ac_cv_lib_m_atanf=no | |
7929 | fi | |
7930 | rm -f conftest.err conftest.$ac_objext \ | |
7931 | conftest$ac_exeext conftest.$ac_ext | |
7932 | LIBS=$ac_check_lib_save_LIBS | |
7933 | fi | |
7934 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5 | |
7935 | echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6 | |
7936 | if test $ac_cv_lib_m_atanf = yes; then | |
7937 | ||
7938 | cat >>confdefs.h <<\_ACEOF | |
7939 | #define HAVE_ATANF 1 | |
7940 | _ACEOF | |
7941 | ||
7942 | fi | |
7943 | ||
7944 | echo "$as_me:$LINENO: checking for ceilf in -lm" >&5 | |
7945 | echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6 | |
7946 | if test "${ac_cv_lib_m_ceilf+set}" = set; then | |
7947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7948 | else | |
7949 | ac_check_lib_save_LIBS=$LIBS | |
7950 | LIBS="-lm $LIBS" | |
7951 | cat >conftest.$ac_ext <<_ACEOF | |
7952 | /* confdefs.h. */ | |
7953 | _ACEOF | |
7954 | cat confdefs.h >>conftest.$ac_ext | |
7955 | cat >>conftest.$ac_ext <<_ACEOF | |
7956 | /* end confdefs.h. */ | |
7957 | ||
7958 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7959 | #ifdef __cplusplus | |
7960 | extern "C" | |
7961 | #endif | |
7962 | /* We use char because int might match the return type of a gcc2 | |
7963 | builtin and then its argument prototype would still apply. */ | |
7964 | char ceilf (); | |
7965 | int | |
7966 | main () | |
7967 | { | |
7968 | ceilf (); | |
7969 | ; | |
7970 | return 0; | |
7971 | } | |
7972 | _ACEOF | |
7973 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7974 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7975 | (eval $ac_link) 2>conftest.er1 | |
7976 | ac_status=$? | |
7977 | grep -v '^ *+' conftest.er1 >conftest.err | |
7978 | rm -f conftest.er1 | |
7979 | cat conftest.err >&5 | |
7980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7981 | (exit $ac_status); } && | |
1fb2002d | 7982 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
7983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7984 | (eval $ac_try) 2>&5 | |
7985 | ac_status=$? | |
7986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7987 | (exit $ac_status); }; } && | |
7988 | { ac_try='test -s conftest$ac_exeext' | |
7989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7990 | (eval $ac_try) 2>&5 | |
7991 | ac_status=$? | |
7992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7993 | (exit $ac_status); }; }; then | |
7994 | ac_cv_lib_m_ceilf=yes | |
7995 | else | |
7996 | echo "$as_me: failed program was:" >&5 | |
7997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7998 | ||
7999 | ac_cv_lib_m_ceilf=no | |
8000 | fi | |
8001 | rm -f conftest.err conftest.$ac_objext \ | |
8002 | conftest$ac_exeext conftest.$ac_ext | |
8003 | LIBS=$ac_check_lib_save_LIBS | |
8004 | fi | |
8005 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5 | |
8006 | echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6 | |
8007 | if test $ac_cv_lib_m_ceilf = yes; then | |
8008 | ||
8009 | cat >>confdefs.h <<\_ACEOF | |
8010 | #define HAVE_CEILF 1 | |
8011 | _ACEOF | |
8012 | ||
8013 | fi | |
8014 | ||
8015 | echo "$as_me:$LINENO: checking for copysignf in -lm" >&5 | |
8016 | echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6 | |
8017 | if test "${ac_cv_lib_m_copysignf+set}" = set; then | |
8018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8019 | else | |
8020 | ac_check_lib_save_LIBS=$LIBS | |
8021 | LIBS="-lm $LIBS" | |
8022 | cat >conftest.$ac_ext <<_ACEOF | |
8023 | /* confdefs.h. */ | |
8024 | _ACEOF | |
8025 | cat confdefs.h >>conftest.$ac_ext | |
8026 | cat >>conftest.$ac_ext <<_ACEOF | |
8027 | /* end confdefs.h. */ | |
8028 | ||
8029 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8030 | #ifdef __cplusplus | |
8031 | extern "C" | |
8032 | #endif | |
8033 | /* We use char because int might match the return type of a gcc2 | |
8034 | builtin and then its argument prototype would still apply. */ | |
8035 | char copysignf (); | |
8036 | int | |
8037 | main () | |
8038 | { | |
8039 | copysignf (); | |
8040 | ; | |
8041 | return 0; | |
8042 | } | |
8043 | _ACEOF | |
8044 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8045 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8046 | (eval $ac_link) 2>conftest.er1 | |
8047 | ac_status=$? | |
8048 | grep -v '^ *+' conftest.er1 >conftest.err | |
8049 | rm -f conftest.er1 | |
8050 | cat conftest.err >&5 | |
8051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8052 | (exit $ac_status); } && | |
1fb2002d | 8053 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
8054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8055 | (eval $ac_try) 2>&5 | |
8056 | ac_status=$? | |
8057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8058 | (exit $ac_status); }; } && | |
8059 | { ac_try='test -s conftest$ac_exeext' | |
8060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8061 | (eval $ac_try) 2>&5 | |
8062 | ac_status=$? | |
8063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8064 | (exit $ac_status); }; }; then | |
8065 | ac_cv_lib_m_copysignf=yes | |
8066 | else | |
8067 | echo "$as_me: failed program was:" >&5 | |
8068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8069 | ||
8070 | ac_cv_lib_m_copysignf=no | |
8071 | fi | |
8072 | rm -f conftest.err conftest.$ac_objext \ | |
8073 | conftest$ac_exeext conftest.$ac_ext | |
8074 | LIBS=$ac_check_lib_save_LIBS | |
8075 | fi | |
8076 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5 | |
8077 | echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6 | |
8078 | if test $ac_cv_lib_m_copysignf = yes; then | |
8079 | ||
8080 | cat >>confdefs.h <<\_ACEOF | |
8081 | #define HAVE_COPYSIGNF 1 | |
8082 | _ACEOF | |
8083 | ||
8084 | fi | |
8085 | ||
8086 | echo "$as_me:$LINENO: checking for cosf in -lm" >&5 | |
8087 | echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6 | |
8088 | if test "${ac_cv_lib_m_cosf+set}" = set; then | |
8089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8090 | else | |
8091 | ac_check_lib_save_LIBS=$LIBS | |
8092 | LIBS="-lm $LIBS" | |
8093 | cat >conftest.$ac_ext <<_ACEOF | |
8094 | /* confdefs.h. */ | |
8095 | _ACEOF | |
8096 | cat confdefs.h >>conftest.$ac_ext | |
8097 | cat >>conftest.$ac_ext <<_ACEOF | |
8098 | /* end confdefs.h. */ | |
8099 | ||
8100 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8101 | #ifdef __cplusplus | |
8102 | extern "C" | |
8103 | #endif | |
8104 | /* We use char because int might match the return type of a gcc2 | |
8105 | builtin and then its argument prototype would still apply. */ | |
8106 | char cosf (); | |
8107 | int | |
8108 | main () | |
8109 | { | |
8110 | cosf (); | |
8111 | ; | |
8112 | return 0; | |
8113 | } | |
8114 | _ACEOF | |
8115 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8117 | (eval $ac_link) 2>conftest.er1 | |
8118 | ac_status=$? | |
8119 | grep -v '^ *+' conftest.er1 >conftest.err | |
8120 | rm -f conftest.er1 | |
8121 | cat conftest.err >&5 | |
8122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8123 | (exit $ac_status); } && | |
1fb2002d | 8124 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
8125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8126 | (eval $ac_try) 2>&5 | |
8127 | ac_status=$? | |
8128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8129 | (exit $ac_status); }; } && | |
8130 | { ac_try='test -s conftest$ac_exeext' | |
8131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8132 | (eval $ac_try) 2>&5 | |
8133 | ac_status=$? | |
8134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8135 | (exit $ac_status); }; }; then | |
8136 | ac_cv_lib_m_cosf=yes | |
8137 | else | |
8138 | echo "$as_me: failed program was:" >&5 | |
8139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8140 | ||
8141 | ac_cv_lib_m_cosf=no | |
8142 | fi | |
8143 | rm -f conftest.err conftest.$ac_objext \ | |
8144 | conftest$ac_exeext conftest.$ac_ext | |
8145 | LIBS=$ac_check_lib_save_LIBS | |
8146 | fi | |
8147 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5 | |
8148 | echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6 | |
8149 | if test $ac_cv_lib_m_cosf = yes; then | |
8150 | ||
8151 | cat >>confdefs.h <<\_ACEOF | |
8152 | #define HAVE_COSF 1 | |
8153 | _ACEOF | |
8154 | ||
8155 | fi | |
8156 | ||
8157 | echo "$as_me:$LINENO: checking for coshf in -lm" >&5 | |
8158 | echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6 | |
8159 | if test "${ac_cv_lib_m_coshf+set}" = set; then | |
8160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8161 | else | |
8162 | ac_check_lib_save_LIBS=$LIBS | |
8163 | LIBS="-lm $LIBS" | |
8164 | cat >conftest.$ac_ext <<_ACEOF | |
8165 | /* confdefs.h. */ | |
8166 | _ACEOF | |
8167 | cat confdefs.h >>conftest.$ac_ext | |
8168 | cat >>conftest.$ac_ext <<_ACEOF | |
8169 | /* end confdefs.h. */ | |
8170 | ||
8171 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8172 | #ifdef __cplusplus | |
8173 | extern "C" | |
8174 | #endif | |
8175 | /* We use char because int might match the return type of a gcc2 | |
8176 | builtin and then its argument prototype would still apply. */ | |
8177 | char coshf (); | |
8178 | int | |
8179 | main () | |
8180 | { | |
8181 | coshf (); | |
8182 | ; | |
8183 | return 0; | |
8184 | } | |
8185 | _ACEOF | |
8186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8188 | (eval $ac_link) 2>conftest.er1 | |
8189 | ac_status=$? | |
8190 | grep -v '^ *+' conftest.er1 >conftest.err | |
8191 | rm -f conftest.er1 | |
8192 | cat conftest.err >&5 | |
8193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8194 | (exit $ac_status); } && | |
1fb2002d | 8195 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
8196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8197 | (eval $ac_try) 2>&5 | |
8198 | ac_status=$? | |
8199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8200 | (exit $ac_status); }; } && | |
8201 | { ac_try='test -s conftest$ac_exeext' | |
8202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8203 | (eval $ac_try) 2>&5 | |
8204 | ac_status=$? | |
8205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8206 | (exit $ac_status); }; }; then | |
8207 | ac_cv_lib_m_coshf=yes | |
8208 | else | |
8209 | echo "$as_me: failed program was:" >&5 | |
8210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8211 | ||
8212 | ac_cv_lib_m_coshf=no | |
8213 | fi | |
8214 | rm -f conftest.err conftest.$ac_objext \ | |
8215 | conftest$ac_exeext conftest.$ac_ext | |
8216 | LIBS=$ac_check_lib_save_LIBS | |
8217 | fi | |
8218 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5 | |
8219 | echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6 | |
8220 | if test $ac_cv_lib_m_coshf = yes; then | |
8221 | ||
8222 | cat >>confdefs.h <<\_ACEOF | |
8223 | #define HAVE_COSHF 1 | |
8224 | _ACEOF | |
8225 | ||
8226 | fi | |
8227 | ||
8228 | echo "$as_me:$LINENO: checking for expf in -lm" >&5 | |
8229 | echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6 | |
8230 | if test "${ac_cv_lib_m_expf+set}" = set; then | |
8231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8232 | else | |
8233 | ac_check_lib_save_LIBS=$LIBS | |
8234 | LIBS="-lm $LIBS" | |
8235 | cat >conftest.$ac_ext <<_ACEOF | |
8236 | /* confdefs.h. */ | |
8237 | _ACEOF | |
8238 | cat confdefs.h >>conftest.$ac_ext | |
8239 | cat >>conftest.$ac_ext <<_ACEOF | |
8240 | /* end confdefs.h. */ | |
8241 | ||
8242 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8243 | #ifdef __cplusplus | |
8244 | extern "C" | |
8245 | #endif | |
8246 | /* We use char because int might match the return type of a gcc2 | |
8247 | builtin and then its argument prototype would still apply. */ | |
8248 | char expf (); | |
8249 | int | |
8250 | main () | |
8251 | { | |
8252 | expf (); | |
8253 | ; | |
8254 | return 0; | |
8255 | } | |
8256 | _ACEOF | |
8257 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8258 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8259 | (eval $ac_link) 2>conftest.er1 | |
8260 | ac_status=$? | |
8261 | grep -v '^ *+' conftest.er1 >conftest.err | |
8262 | rm -f conftest.er1 | |
8263 | cat conftest.err >&5 | |
8264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8265 | (exit $ac_status); } && | |
1fb2002d | 8266 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
8267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8268 | (eval $ac_try) 2>&5 | |
8269 | ac_status=$? | |
8270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8271 | (exit $ac_status); }; } && | |
8272 | { ac_try='test -s conftest$ac_exeext' | |
8273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8274 | (eval $ac_try) 2>&5 | |
8275 | ac_status=$? | |
8276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8277 | (exit $ac_status); }; }; then | |
8278 | ac_cv_lib_m_expf=yes | |
8279 | else | |
8280 | echo "$as_me: failed program was:" >&5 | |
8281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8282 | ||
8283 | ac_cv_lib_m_expf=no | |
8284 | fi | |
8285 | rm -f conftest.err conftest.$ac_objext \ | |
8286 | conftest$ac_exeext conftest.$ac_ext | |
8287 | LIBS=$ac_check_lib_save_LIBS | |
8288 | fi | |
8289 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5 | |
8290 | echo "${ECHO_T}$ac_cv_lib_m_expf" >&6 | |
8291 | if test $ac_cv_lib_m_expf = yes; then | |
8292 | ||
8293 | cat >>confdefs.h <<\_ACEOF | |
8294 | #define HAVE_EXPF 1 | |
8295 | _ACEOF | |
8296 | ||
8297 | fi | |
8298 | ||
6e4d9244 EB |
8299 | echo "$as_me:$LINENO: checking for fabsf in -lm" >&5 |
8300 | echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6 | |
8301 | if test "${ac_cv_lib_m_fabsf+set}" = set; then | |
8302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8303 | else | |
8304 | ac_check_lib_save_LIBS=$LIBS | |
8305 | LIBS="-lm $LIBS" | |
6e4d9244 EB |
8306 | cat >conftest.$ac_ext <<_ACEOF |
8307 | /* confdefs.h. */ | |
8308 | _ACEOF | |
8309 | cat confdefs.h >>conftest.$ac_ext | |
8310 | cat >>conftest.$ac_ext <<_ACEOF | |
8311 | /* end confdefs.h. */ | |
8312 | ||
8313 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8314 | #ifdef __cplusplus | |
8315 | extern "C" | |
8316 | #endif | |
8317 | /* We use char because int might match the return type of a gcc2 | |
8318 | builtin and then its argument prototype would still apply. */ | |
8319 | char fabsf (); | |
8320 | int | |
8321 | main () | |
8322 | { | |
8323 | fabsf (); | |
8324 | ; | |
8325 | return 0; | |
8326 | } | |
8327 | _ACEOF | |
8328 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8330 | (eval $ac_link) 2>conftest.er1 | |
8331 | ac_status=$? | |
8332 | grep -v '^ *+' conftest.er1 >conftest.err | |
8333 | rm -f conftest.er1 | |
8334 | cat conftest.err >&5 | |
8335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8336 | (exit $ac_status); } && | |
1fb2002d | 8337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6e4d9244 EB |
8338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8339 | (eval $ac_try) 2>&5 | |
8340 | ac_status=$? | |
8341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8342 | (exit $ac_status); }; } && | |
8343 | { ac_try='test -s conftest$ac_exeext' | |
8344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8345 | (eval $ac_try) 2>&5 | |
8346 | ac_status=$? | |
8347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8348 | (exit $ac_status); }; }; then | |
8349 | ac_cv_lib_m_fabsf=yes | |
8350 | else | |
8351 | echo "$as_me: failed program was:" >&5 | |
8352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8353 | ||
8354 | ac_cv_lib_m_fabsf=no | |
8355 | fi | |
8356 | rm -f conftest.err conftest.$ac_objext \ | |
8357 | conftest$ac_exeext conftest.$ac_ext | |
8358 | LIBS=$ac_check_lib_save_LIBS | |
8359 | fi | |
8360 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5 | |
8361 | echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6 | |
8362 | if test $ac_cv_lib_m_fabsf = yes; then | |
8363 | ||
8364 | cat >>confdefs.h <<\_ACEOF | |
8365 | #define HAVE_FABSF 1 | |
8366 | _ACEOF | |
8367 | ||
8368 | fi | |
8369 | ||
453310d8 RS |
8370 | echo "$as_me:$LINENO: checking for floorf in -lm" >&5 |
8371 | echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6 | |
8372 | if test "${ac_cv_lib_m_floorf+set}" = set; then | |
8373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8374 | else | |
8375 | ac_check_lib_save_LIBS=$LIBS | |
8376 | LIBS="-lm $LIBS" | |
8377 | cat >conftest.$ac_ext <<_ACEOF | |
8378 | /* confdefs.h. */ | |
8379 | _ACEOF | |
8380 | cat confdefs.h >>conftest.$ac_ext | |
8381 | cat >>conftest.$ac_ext <<_ACEOF | |
8382 | /* end confdefs.h. */ | |
8383 | ||
8384 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8385 | #ifdef __cplusplus | |
8386 | extern "C" | |
8387 | #endif | |
8388 | /* We use char because int might match the return type of a gcc2 | |
8389 | builtin and then its argument prototype would still apply. */ | |
8390 | char floorf (); | |
8391 | int | |
8392 | main () | |
8393 | { | |
8394 | floorf (); | |
8395 | ; | |
8396 | return 0; | |
8397 | } | |
8398 | _ACEOF | |
8399 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8401 | (eval $ac_link) 2>conftest.er1 | |
8402 | ac_status=$? | |
8403 | grep -v '^ *+' conftest.er1 >conftest.err | |
8404 | rm -f conftest.er1 | |
8405 | cat conftest.err >&5 | |
8406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8407 | (exit $ac_status); } && | |
1fb2002d | 8408 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
8409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8410 | (eval $ac_try) 2>&5 | |
8411 | ac_status=$? | |
8412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8413 | (exit $ac_status); }; } && | |
8414 | { ac_try='test -s conftest$ac_exeext' | |
8415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8416 | (eval $ac_try) 2>&5 | |
8417 | ac_status=$? | |
8418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8419 | (exit $ac_status); }; }; then | |
8420 | ac_cv_lib_m_floorf=yes | |
8421 | else | |
8422 | echo "$as_me: failed program was:" >&5 | |
8423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8424 | ||
8425 | ac_cv_lib_m_floorf=no | |
8426 | fi | |
8427 | rm -f conftest.err conftest.$ac_objext \ | |
8428 | conftest$ac_exeext conftest.$ac_ext | |
8429 | LIBS=$ac_check_lib_save_LIBS | |
8430 | fi | |
8431 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5 | |
8432 | echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6 | |
8433 | if test $ac_cv_lib_m_floorf = yes; then | |
8434 | ||
8435 | cat >>confdefs.h <<\_ACEOF | |
8436 | #define HAVE_FLOORF 1 | |
8437 | _ACEOF | |
8438 | ||
8439 | fi | |
8440 | ||
8441 | echo "$as_me:$LINENO: checking for frexpf in -lm" >&5 | |
8442 | echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6 | |
8443 | if test "${ac_cv_lib_m_frexpf+set}" = set; then | |
8444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8445 | else | |
8446 | ac_check_lib_save_LIBS=$LIBS | |
8447 | LIBS="-lm $LIBS" | |
8448 | cat >conftest.$ac_ext <<_ACEOF | |
8449 | /* confdefs.h. */ | |
8450 | _ACEOF | |
8451 | cat confdefs.h >>conftest.$ac_ext | |
8452 | cat >>conftest.$ac_ext <<_ACEOF | |
8453 | /* end confdefs.h. */ | |
8454 | ||
8455 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8456 | #ifdef __cplusplus | |
8457 | extern "C" | |
8458 | #endif | |
8459 | /* We use char because int might match the return type of a gcc2 | |
8460 | builtin and then its argument prototype would still apply. */ | |
8461 | char frexpf (); | |
8462 | int | |
8463 | main () | |
8464 | { | |
8465 | frexpf (); | |
8466 | ; | |
8467 | return 0; | |
8468 | } | |
8469 | _ACEOF | |
8470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8472 | (eval $ac_link) 2>conftest.er1 | |
8473 | ac_status=$? | |
8474 | grep -v '^ *+' conftest.er1 >conftest.err | |
8475 | rm -f conftest.er1 | |
8476 | cat conftest.err >&5 | |
8477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8478 | (exit $ac_status); } && | |
1fb2002d | 8479 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
8480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8481 | (eval $ac_try) 2>&5 | |
8482 | ac_status=$? | |
8483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8484 | (exit $ac_status); }; } && | |
8485 | { ac_try='test -s conftest$ac_exeext' | |
8486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8487 | (eval $ac_try) 2>&5 | |
8488 | ac_status=$? | |
8489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8490 | (exit $ac_status); }; }; then | |
8491 | ac_cv_lib_m_frexpf=yes | |
8492 | else | |
8493 | echo "$as_me: failed program was:" >&5 | |
8494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8495 | ||
8496 | ac_cv_lib_m_frexpf=no | |
8497 | fi | |
8498 | rm -f conftest.err conftest.$ac_objext \ | |
8499 | conftest$ac_exeext conftest.$ac_ext | |
8500 | LIBS=$ac_check_lib_save_LIBS | |
8501 | fi | |
8502 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5 | |
8503 | echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6 | |
8504 | if test $ac_cv_lib_m_frexpf = yes; then | |
8505 | ||
8506 | cat >>confdefs.h <<\_ACEOF | |
8507 | #define HAVE_FREXPF 1 | |
8508 | _ACEOF | |
8509 | ||
8510 | fi | |
8511 | ||
8512 | echo "$as_me:$LINENO: checking for hypotf in -lm" >&5 | |
8513 | echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6 | |
8514 | if test "${ac_cv_lib_m_hypotf+set}" = set; then | |
8515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8516 | else | |
8517 | ac_check_lib_save_LIBS=$LIBS | |
8518 | LIBS="-lm $LIBS" | |
8519 | cat >conftest.$ac_ext <<_ACEOF | |
8520 | /* confdefs.h. */ | |
8521 | _ACEOF | |
8522 | cat confdefs.h >>conftest.$ac_ext | |
8523 | cat >>conftest.$ac_ext <<_ACEOF | |
8524 | /* end confdefs.h. */ | |
8525 | ||
8526 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8527 | #ifdef __cplusplus | |
8528 | extern "C" | |
8529 | #endif | |
8530 | /* We use char because int might match the return type of a gcc2 | |
8531 | builtin and then its argument prototype would still apply. */ | |
8532 | char hypotf (); | |
8533 | int | |
8534 | main () | |
8535 | { | |
8536 | hypotf (); | |
8537 | ; | |
8538 | return 0; | |
8539 | } | |
8540 | _ACEOF | |
8541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8543 | (eval $ac_link) 2>conftest.er1 | |
8544 | ac_status=$? | |
8545 | grep -v '^ *+' conftest.er1 >conftest.err | |
8546 | rm -f conftest.er1 | |
8547 | cat conftest.err >&5 | |
8548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8549 | (exit $ac_status); } && | |
1fb2002d | 8550 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
8551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8552 | (eval $ac_try) 2>&5 | |
8553 | ac_status=$? | |
8554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8555 | (exit $ac_status); }; } && | |
8556 | { ac_try='test -s conftest$ac_exeext' | |
8557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8558 | (eval $ac_try) 2>&5 | |
8559 | ac_status=$? | |
8560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8561 | (exit $ac_status); }; }; then | |
8562 | ac_cv_lib_m_hypotf=yes | |
8563 | else | |
8564 | echo "$as_me: failed program was:" >&5 | |
8565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8566 | ||
8567 | ac_cv_lib_m_hypotf=no | |
8568 | fi | |
8569 | rm -f conftest.err conftest.$ac_objext \ | |
8570 | conftest$ac_exeext conftest.$ac_ext | |
8571 | LIBS=$ac_check_lib_save_LIBS | |
8572 | fi | |
8573 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5 | |
8574 | echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6 | |
8575 | if test $ac_cv_lib_m_hypotf = yes; then | |
8576 | ||
8577 | cat >>confdefs.h <<\_ACEOF | |
8578 | #define HAVE_HYPOTF 1 | |
8579 | _ACEOF | |
8580 | ||
8581 | fi | |
8582 | ||
8583 | echo "$as_me:$LINENO: checking for logf in -lm" >&5 | |
8584 | echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6 | |
8585 | if test "${ac_cv_lib_m_logf+set}" = set; then | |
8586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8587 | else | |
8588 | ac_check_lib_save_LIBS=$LIBS | |
8589 | LIBS="-lm $LIBS" | |
8590 | cat >conftest.$ac_ext <<_ACEOF | |
8591 | /* confdefs.h. */ | |
8592 | _ACEOF | |
8593 | cat confdefs.h >>conftest.$ac_ext | |
8594 | cat >>conftest.$ac_ext <<_ACEOF | |
8595 | /* end confdefs.h. */ | |
8596 | ||
8597 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8598 | #ifdef __cplusplus | |
8599 | extern "C" | |
8600 | #endif | |
8601 | /* We use char because int might match the return type of a gcc2 | |
8602 | builtin and then its argument prototype would still apply. */ | |
8603 | char logf (); | |
8604 | int | |
8605 | main () | |
8606 | { | |
8607 | logf (); | |
8608 | ; | |
8609 | return 0; | |
8610 | } | |
8611 | _ACEOF | |
8612 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8614 | (eval $ac_link) 2>conftest.er1 | |
8615 | ac_status=$? | |
8616 | grep -v '^ *+' conftest.er1 >conftest.err | |
8617 | rm -f conftest.er1 | |
8618 | cat conftest.err >&5 | |
8619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8620 | (exit $ac_status); } && | |
1fb2002d | 8621 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
8622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8623 | (eval $ac_try) 2>&5 | |
8624 | ac_status=$? | |
8625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8626 | (exit $ac_status); }; } && | |
8627 | { ac_try='test -s conftest$ac_exeext' | |
8628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8629 | (eval $ac_try) 2>&5 | |
8630 | ac_status=$? | |
8631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8632 | (exit $ac_status); }; }; then | |
8633 | ac_cv_lib_m_logf=yes | |
8634 | else | |
8635 | echo "$as_me: failed program was:" >&5 | |
8636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8637 | ||
8638 | ac_cv_lib_m_logf=no | |
8639 | fi | |
8640 | rm -f conftest.err conftest.$ac_objext \ | |
8641 | conftest$ac_exeext conftest.$ac_ext | |
8642 | LIBS=$ac_check_lib_save_LIBS | |
8643 | fi | |
8644 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5 | |
8645 | echo "${ECHO_T}$ac_cv_lib_m_logf" >&6 | |
8646 | if test $ac_cv_lib_m_logf = yes; then | |
8647 | ||
8648 | cat >>confdefs.h <<\_ACEOF | |
8649 | #define HAVE_LOGF 1 | |
8650 | _ACEOF | |
8651 | ||
8652 | fi | |
8653 | ||
8654 | echo "$as_me:$LINENO: checking for log10f in -lm" >&5 | |
8655 | echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6 | |
8656 | if test "${ac_cv_lib_m_log10f+set}" = set; then | |
8657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8658 | else | |
8659 | ac_check_lib_save_LIBS=$LIBS | |
8660 | LIBS="-lm $LIBS" | |
8661 | cat >conftest.$ac_ext <<_ACEOF | |
8662 | /* confdefs.h. */ | |
8663 | _ACEOF | |
8664 | cat confdefs.h >>conftest.$ac_ext | |
8665 | cat >>conftest.$ac_ext <<_ACEOF | |
8666 | /* end confdefs.h. */ | |
8667 | ||
8668 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8669 | #ifdef __cplusplus | |
8670 | extern "C" | |
8671 | #endif | |
8672 | /* We use char because int might match the return type of a gcc2 | |
8673 | builtin and then its argument prototype would still apply. */ | |
8674 | char log10f (); | |
8675 | int | |
8676 | main () | |
8677 | { | |
8678 | log10f (); | |
8679 | ; | |
8680 | return 0; | |
8681 | } | |
8682 | _ACEOF | |
8683 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8685 | (eval $ac_link) 2>conftest.er1 | |
8686 | ac_status=$? | |
8687 | grep -v '^ *+' conftest.er1 >conftest.err | |
8688 | rm -f conftest.er1 | |
8689 | cat conftest.err >&5 | |
8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8691 | (exit $ac_status); } && | |
1fb2002d | 8692 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
8693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8694 | (eval $ac_try) 2>&5 | |
8695 | ac_status=$? | |
8696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8697 | (exit $ac_status); }; } && | |
8698 | { ac_try='test -s conftest$ac_exeext' | |
8699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8700 | (eval $ac_try) 2>&5 | |
8701 | ac_status=$? | |
8702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8703 | (exit $ac_status); }; }; then | |
8704 | ac_cv_lib_m_log10f=yes | |
8705 | else | |
8706 | echo "$as_me: failed program was:" >&5 | |
8707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8708 | ||
8709 | ac_cv_lib_m_log10f=no | |
8710 | fi | |
8711 | rm -f conftest.err conftest.$ac_objext \ | |
8712 | conftest$ac_exeext conftest.$ac_ext | |
8713 | LIBS=$ac_check_lib_save_LIBS | |
8714 | fi | |
8715 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5 | |
8716 | echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6 | |
8717 | if test $ac_cv_lib_m_log10f = yes; then | |
8718 | ||
8719 | cat >>confdefs.h <<\_ACEOF | |
8720 | #define HAVE_LOG10F 1 | |
8721 | _ACEOF | |
8722 | ||
8723 | fi | |
8724 | ||
8725 | echo "$as_me:$LINENO: checking for nextafter in -lm" >&5 | |
8726 | echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6 | |
8727 | if test "${ac_cv_lib_m_nextafter+set}" = set; then | |
8728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8729 | else | |
8730 | ac_check_lib_save_LIBS=$LIBS | |
8731 | LIBS="-lm $LIBS" | |
8732 | cat >conftest.$ac_ext <<_ACEOF | |
8733 | /* confdefs.h. */ | |
8734 | _ACEOF | |
8735 | cat confdefs.h >>conftest.$ac_ext | |
8736 | cat >>conftest.$ac_ext <<_ACEOF | |
8737 | /* end confdefs.h. */ | |
8738 | ||
8739 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8740 | #ifdef __cplusplus | |
8741 | extern "C" | |
8742 | #endif | |
8743 | /* We use char because int might match the return type of a gcc2 | |
8744 | builtin and then its argument prototype would still apply. */ | |
8745 | char nextafter (); | |
8746 | int | |
8747 | main () | |
8748 | { | |
8749 | nextafter (); | |
8750 | ; | |
8751 | return 0; | |
8752 | } | |
8753 | _ACEOF | |
8754 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8756 | (eval $ac_link) 2>conftest.er1 | |
8757 | ac_status=$? | |
8758 | grep -v '^ *+' conftest.er1 >conftest.err | |
8759 | rm -f conftest.er1 | |
8760 | cat conftest.err >&5 | |
8761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8762 | (exit $ac_status); } && | |
1fb2002d | 8763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
8764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8765 | (eval $ac_try) 2>&5 | |
8766 | ac_status=$? | |
8767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8768 | (exit $ac_status); }; } && | |
8769 | { ac_try='test -s conftest$ac_exeext' | |
8770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8771 | (eval $ac_try) 2>&5 | |
8772 | ac_status=$? | |
8773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8774 | (exit $ac_status); }; }; then | |
8775 | ac_cv_lib_m_nextafter=yes | |
8776 | else | |
8777 | echo "$as_me: failed program was:" >&5 | |
8778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8779 | ||
8780 | ac_cv_lib_m_nextafter=no | |
8781 | fi | |
8782 | rm -f conftest.err conftest.$ac_objext \ | |
8783 | conftest$ac_exeext conftest.$ac_ext | |
8784 | LIBS=$ac_check_lib_save_LIBS | |
8785 | fi | |
8786 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5 | |
8787 | echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6 | |
8788 | if test $ac_cv_lib_m_nextafter = yes; then | |
8789 | ||
8790 | cat >>confdefs.h <<\_ACEOF | |
8791 | #define HAVE_NEXTAFTER 1 | |
8792 | _ACEOF | |
8793 | ||
8794 | fi | |
8795 | ||
8796 | echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5 | |
8797 | echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6 | |
8798 | if test "${ac_cv_lib_m_nextafterf+set}" = set; then | |
8799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8800 | else | |
8801 | ac_check_lib_save_LIBS=$LIBS | |
8802 | LIBS="-lm $LIBS" | |
8803 | cat >conftest.$ac_ext <<_ACEOF | |
8804 | /* confdefs.h. */ | |
8805 | _ACEOF | |
8806 | cat confdefs.h >>conftest.$ac_ext | |
8807 | cat >>conftest.$ac_ext <<_ACEOF | |
8808 | /* end confdefs.h. */ | |
8809 | ||
8810 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8811 | #ifdef __cplusplus | |
8812 | extern "C" | |
8813 | #endif | |
8814 | /* We use char because int might match the return type of a gcc2 | |
8815 | builtin and then its argument prototype would still apply. */ | |
8816 | char nextafterf (); | |
8817 | int | |
8818 | main () | |
8819 | { | |
8820 | nextafterf (); | |
8821 | ; | |
8822 | return 0; | |
8823 | } | |
8824 | _ACEOF | |
8825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8827 | (eval $ac_link) 2>conftest.er1 | |
8828 | ac_status=$? | |
8829 | grep -v '^ *+' conftest.er1 >conftest.err | |
8830 | rm -f conftest.er1 | |
8831 | cat conftest.err >&5 | |
8832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8833 | (exit $ac_status); } && | |
1fb2002d | 8834 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
8835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8836 | (eval $ac_try) 2>&5 | |
8837 | ac_status=$? | |
8838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8839 | (exit $ac_status); }; } && | |
8840 | { ac_try='test -s conftest$ac_exeext' | |
8841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8842 | (eval $ac_try) 2>&5 | |
8843 | ac_status=$? | |
8844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8845 | (exit $ac_status); }; }; then | |
8846 | ac_cv_lib_m_nextafterf=yes | |
8847 | else | |
8848 | echo "$as_me: failed program was:" >&5 | |
8849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8850 | ||
8851 | ac_cv_lib_m_nextafterf=no | |
8852 | fi | |
8853 | rm -f conftest.err conftest.$ac_objext \ | |
8854 | conftest$ac_exeext conftest.$ac_ext | |
8855 | LIBS=$ac_check_lib_save_LIBS | |
8856 | fi | |
8857 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5 | |
8858 | echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6 | |
8859 | if test $ac_cv_lib_m_nextafterf = yes; then | |
8860 | ||
8861 | cat >>confdefs.h <<\_ACEOF | |
8862 | #define HAVE_NEXTAFTERF 1 | |
8863 | _ACEOF | |
8864 | ||
8865 | fi | |
8866 | ||
bf4d99cf TS |
8867 | echo "$as_me:$LINENO: checking for powf in -lm" >&5 |
8868 | echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6 | |
8869 | if test "${ac_cv_lib_m_powf+set}" = set; then | |
8870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8871 | else | |
8872 | ac_check_lib_save_LIBS=$LIBS | |
8873 | LIBS="-lm $LIBS" | |
8874 | cat >conftest.$ac_ext <<_ACEOF | |
8875 | /* confdefs.h. */ | |
8876 | _ACEOF | |
8877 | cat confdefs.h >>conftest.$ac_ext | |
8878 | cat >>conftest.$ac_ext <<_ACEOF | |
8879 | /* end confdefs.h. */ | |
8880 | ||
8881 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8882 | #ifdef __cplusplus | |
8883 | extern "C" | |
8884 | #endif | |
8885 | /* We use char because int might match the return type of a gcc2 | |
8886 | builtin and then its argument prototype would still apply. */ | |
8887 | char powf (); | |
8888 | int | |
8889 | main () | |
8890 | { | |
8891 | powf (); | |
8892 | ; | |
8893 | return 0; | |
8894 | } | |
8895 | _ACEOF | |
8896 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8898 | (eval $ac_link) 2>conftest.er1 | |
8899 | ac_status=$? | |
8900 | grep -v '^ *+' conftest.er1 >conftest.err | |
8901 | rm -f conftest.er1 | |
8902 | cat conftest.err >&5 | |
8903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8904 | (exit $ac_status); } && | |
1fb2002d | 8905 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
bf4d99cf TS |
8906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8907 | (eval $ac_try) 2>&5 | |
8908 | ac_status=$? | |
8909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8910 | (exit $ac_status); }; } && | |
8911 | { ac_try='test -s conftest$ac_exeext' | |
8912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8913 | (eval $ac_try) 2>&5 | |
8914 | ac_status=$? | |
8915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8916 | (exit $ac_status); }; }; then | |
8917 | ac_cv_lib_m_powf=yes | |
8918 | else | |
8919 | echo "$as_me: failed program was:" >&5 | |
8920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8921 | ||
8922 | ac_cv_lib_m_powf=no | |
8923 | fi | |
8924 | rm -f conftest.err conftest.$ac_objext \ | |
8925 | conftest$ac_exeext conftest.$ac_ext | |
8926 | LIBS=$ac_check_lib_save_LIBS | |
8927 | fi | |
8928 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5 | |
8929 | echo "${ECHO_T}$ac_cv_lib_m_powf" >&6 | |
8930 | if test $ac_cv_lib_m_powf = yes; then | |
8931 | ||
8932 | cat >>confdefs.h <<\_ACEOF | |
8933 | #define HAVE_POWF 1 | |
8934 | _ACEOF | |
8935 | ||
8936 | fi | |
8937 | ||
a2a2059f BD |
8938 | echo "$as_me:$LINENO: checking for round in -lm" >&5 |
8939 | echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6 | |
8940 | if test "${ac_cv_lib_m_round+set}" = set; then | |
8941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8942 | else | |
8943 | ac_check_lib_save_LIBS=$LIBS | |
8944 | LIBS="-lm $LIBS" | |
8945 | cat >conftest.$ac_ext <<_ACEOF | |
8946 | /* confdefs.h. */ | |
8947 | _ACEOF | |
8948 | cat confdefs.h >>conftest.$ac_ext | |
8949 | cat >>conftest.$ac_ext <<_ACEOF | |
8950 | /* end confdefs.h. */ | |
8951 | ||
8952 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8953 | #ifdef __cplusplus | |
8954 | extern "C" | |
8955 | #endif | |
8956 | /* We use char because int might match the return type of a gcc2 | |
8957 | builtin and then its argument prototype would still apply. */ | |
453310d8 RS |
8958 | char round (); |
8959 | int | |
8960 | main () | |
8961 | { | |
8962 | round (); | |
8963 | ; | |
8964 | return 0; | |
8965 | } | |
8966 | _ACEOF | |
8967 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8969 | (eval $ac_link) 2>conftest.er1 | |
8970 | ac_status=$? | |
8971 | grep -v '^ *+' conftest.er1 >conftest.err | |
8972 | rm -f conftest.er1 | |
8973 | cat conftest.err >&5 | |
8974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8975 | (exit $ac_status); } && | |
1fb2002d | 8976 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
8977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8978 | (eval $ac_try) 2>&5 | |
8979 | ac_status=$? | |
8980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8981 | (exit $ac_status); }; } && | |
8982 | { ac_try='test -s conftest$ac_exeext' | |
8983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8984 | (eval $ac_try) 2>&5 | |
8985 | ac_status=$? | |
8986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8987 | (exit $ac_status); }; }; then | |
8988 | ac_cv_lib_m_round=yes | |
8989 | else | |
8990 | echo "$as_me: failed program was:" >&5 | |
8991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8992 | ||
8993 | ac_cv_lib_m_round=no | |
8994 | fi | |
8995 | rm -f conftest.err conftest.$ac_objext \ | |
8996 | conftest$ac_exeext conftest.$ac_ext | |
8997 | LIBS=$ac_check_lib_save_LIBS | |
8998 | fi | |
8999 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5 | |
9000 | echo "${ECHO_T}$ac_cv_lib_m_round" >&6 | |
9001 | if test $ac_cv_lib_m_round = yes; then | |
9002 | ||
9003 | cat >>confdefs.h <<\_ACEOF | |
9004 | #define HAVE_ROUND 1 | |
9005 | _ACEOF | |
9006 | ||
9007 | fi | |
9008 | ||
9009 | echo "$as_me:$LINENO: checking for roundf in -lm" >&5 | |
9010 | echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6 | |
9011 | if test "${ac_cv_lib_m_roundf+set}" = set; then | |
9012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9013 | else | |
9014 | ac_check_lib_save_LIBS=$LIBS | |
9015 | LIBS="-lm $LIBS" | |
9016 | cat >conftest.$ac_ext <<_ACEOF | |
9017 | /* confdefs.h. */ | |
9018 | _ACEOF | |
9019 | cat confdefs.h >>conftest.$ac_ext | |
9020 | cat >>conftest.$ac_ext <<_ACEOF | |
9021 | /* end confdefs.h. */ | |
9022 | ||
9023 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9024 | #ifdef __cplusplus | |
9025 | extern "C" | |
9026 | #endif | |
9027 | /* We use char because int might match the return type of a gcc2 | |
9028 | builtin and then its argument prototype would still apply. */ | |
9029 | char roundf (); | |
a2a2059f BD |
9030 | int |
9031 | main () | |
9032 | { | |
453310d8 | 9033 | roundf (); |
a2a2059f BD |
9034 | ; |
9035 | return 0; | |
9036 | } | |
9037 | _ACEOF | |
9038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9040 | (eval $ac_link) 2>conftest.er1 | |
9041 | ac_status=$? | |
9042 | grep -v '^ *+' conftest.er1 >conftest.err | |
9043 | rm -f conftest.er1 | |
9044 | cat conftest.err >&5 | |
9045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9046 | (exit $ac_status); } && | |
1fb2002d | 9047 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a2a2059f BD |
9048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9049 | (eval $ac_try) 2>&5 | |
9050 | ac_status=$? | |
9051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9052 | (exit $ac_status); }; } && | |
9053 | { ac_try='test -s conftest$ac_exeext' | |
9054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9055 | (eval $ac_try) 2>&5 | |
9056 | ac_status=$? | |
9057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9058 | (exit $ac_status); }; }; then | |
453310d8 | 9059 | ac_cv_lib_m_roundf=yes |
a2a2059f BD |
9060 | else |
9061 | echo "$as_me: failed program was:" >&5 | |
9062 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9063 | ||
453310d8 | 9064 | ac_cv_lib_m_roundf=no |
a2a2059f BD |
9065 | fi |
9066 | rm -f conftest.err conftest.$ac_objext \ | |
9067 | conftest$ac_exeext conftest.$ac_ext | |
9068 | LIBS=$ac_check_lib_save_LIBS | |
9069 | fi | |
453310d8 RS |
9070 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5 |
9071 | echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6 | |
9072 | if test $ac_cv_lib_m_roundf = yes; then | |
a2a2059f BD |
9073 | |
9074 | cat >>confdefs.h <<\_ACEOF | |
453310d8 | 9075 | #define HAVE_ROUNDF 1 |
a2a2059f BD |
9076 | _ACEOF |
9077 | ||
9078 | fi | |
9079 | ||
453310d8 RS |
9080 | echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5 |
9081 | echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6 | |
9082 | if test "${ac_cv_lib_m_scalbnf+set}" = set; then | |
a2a2059f BD |
9083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9084 | else | |
9085 | ac_check_lib_save_LIBS=$LIBS | |
9086 | LIBS="-lm $LIBS" | |
9087 | cat >conftest.$ac_ext <<_ACEOF | |
9088 | /* confdefs.h. */ | |
9089 | _ACEOF | |
9090 | cat confdefs.h >>conftest.$ac_ext | |
9091 | cat >>conftest.$ac_ext <<_ACEOF | |
9092 | /* end confdefs.h. */ | |
9093 | ||
9094 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9095 | #ifdef __cplusplus | |
9096 | extern "C" | |
9097 | #endif | |
9098 | /* We use char because int might match the return type of a gcc2 | |
9099 | builtin and then its argument prototype would still apply. */ | |
453310d8 | 9100 | char scalbnf (); |
a2a2059f BD |
9101 | int |
9102 | main () | |
9103 | { | |
453310d8 | 9104 | scalbnf (); |
a2a2059f BD |
9105 | ; |
9106 | return 0; | |
9107 | } | |
9108 | _ACEOF | |
9109 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9110 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9111 | (eval $ac_link) 2>conftest.er1 | |
9112 | ac_status=$? | |
9113 | grep -v '^ *+' conftest.er1 >conftest.err | |
9114 | rm -f conftest.er1 | |
9115 | cat conftest.err >&5 | |
9116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9117 | (exit $ac_status); } && | |
1fb2002d | 9118 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a2a2059f BD |
9119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9120 | (eval $ac_try) 2>&5 | |
9121 | ac_status=$? | |
9122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9123 | (exit $ac_status); }; } && | |
9124 | { ac_try='test -s conftest$ac_exeext' | |
9125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9126 | (eval $ac_try) 2>&5 | |
9127 | ac_status=$? | |
9128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9129 | (exit $ac_status); }; }; then | |
453310d8 | 9130 | ac_cv_lib_m_scalbnf=yes |
a2a2059f BD |
9131 | else |
9132 | echo "$as_me: failed program was:" >&5 | |
9133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9134 | ||
453310d8 | 9135 | ac_cv_lib_m_scalbnf=no |
a2a2059f BD |
9136 | fi |
9137 | rm -f conftest.err conftest.$ac_objext \ | |
9138 | conftest$ac_exeext conftest.$ac_ext | |
9139 | LIBS=$ac_check_lib_save_LIBS | |
9140 | fi | |
453310d8 RS |
9141 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5 |
9142 | echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6 | |
9143 | if test $ac_cv_lib_m_scalbnf = yes; then | |
a2a2059f BD |
9144 | |
9145 | cat >>confdefs.h <<\_ACEOF | |
453310d8 | 9146 | #define HAVE_SCALBNF 1 |
a2a2059f BD |
9147 | _ACEOF |
9148 | ||
9149 | fi | |
9150 | ||
453310d8 RS |
9151 | echo "$as_me:$LINENO: checking for sinf in -lm" >&5 |
9152 | echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6 | |
9153 | if test "${ac_cv_lib_m_sinf+set}" = set; then | |
a9e7b9d3 PB |
9154 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9155 | else | |
9156 | ac_check_lib_save_LIBS=$LIBS | |
9157 | LIBS="-lm $LIBS" | |
9158 | cat >conftest.$ac_ext <<_ACEOF | |
9159 | /* confdefs.h. */ | |
9160 | _ACEOF | |
9161 | cat confdefs.h >>conftest.$ac_ext | |
9162 | cat >>conftest.$ac_ext <<_ACEOF | |
9163 | /* end confdefs.h. */ | |
9164 | ||
9165 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9166 | #ifdef __cplusplus | |
9167 | extern "C" | |
9168 | #endif | |
9169 | /* We use char because int might match the return type of a gcc2 | |
9170 | builtin and then its argument prototype would still apply. */ | |
453310d8 | 9171 | char sinf (); |
a9e7b9d3 PB |
9172 | int |
9173 | main () | |
9174 | { | |
453310d8 | 9175 | sinf (); |
a9e7b9d3 PB |
9176 | ; |
9177 | return 0; | |
9178 | } | |
9179 | _ACEOF | |
9180 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9181 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9182 | (eval $ac_link) 2>conftest.er1 | |
9183 | ac_status=$? | |
9184 | grep -v '^ *+' conftest.er1 >conftest.err | |
9185 | rm -f conftest.er1 | |
9186 | cat conftest.err >&5 | |
9187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9188 | (exit $ac_status); } && | |
1fb2002d | 9189 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a9e7b9d3 PB |
9190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9191 | (eval $ac_try) 2>&5 | |
9192 | ac_status=$? | |
9193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9194 | (exit $ac_status); }; } && | |
9195 | { ac_try='test -s conftest$ac_exeext' | |
9196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9197 | (eval $ac_try) 2>&5 | |
9198 | ac_status=$? | |
9199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9200 | (exit $ac_status); }; }; then | |
453310d8 | 9201 | ac_cv_lib_m_sinf=yes |
a9e7b9d3 PB |
9202 | else |
9203 | echo "$as_me: failed program was:" >&5 | |
9204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9205 | ||
453310d8 | 9206 | ac_cv_lib_m_sinf=no |
a9e7b9d3 PB |
9207 | fi |
9208 | rm -f conftest.err conftest.$ac_objext \ | |
9209 | conftest$ac_exeext conftest.$ac_ext | |
9210 | LIBS=$ac_check_lib_save_LIBS | |
9211 | fi | |
453310d8 RS |
9212 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5 |
9213 | echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6 | |
9214 | if test $ac_cv_lib_m_sinf = yes; then | |
a9e7b9d3 PB |
9215 | |
9216 | cat >>confdefs.h <<\_ACEOF | |
453310d8 | 9217 | #define HAVE_SINF 1 |
a9e7b9d3 PB |
9218 | _ACEOF |
9219 | ||
9220 | fi | |
9221 | ||
453310d8 RS |
9222 | echo "$as_me:$LINENO: checking for sinhf in -lm" >&5 |
9223 | echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6 | |
9224 | if test "${ac_cv_lib_m_sinhf+set}" = set; then | |
a9e7b9d3 PB |
9225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9226 | else | |
9227 | ac_check_lib_save_LIBS=$LIBS | |
9228 | LIBS="-lm $LIBS" | |
9229 | cat >conftest.$ac_ext <<_ACEOF | |
9230 | /* confdefs.h. */ | |
9231 | _ACEOF | |
9232 | cat confdefs.h >>conftest.$ac_ext | |
9233 | cat >>conftest.$ac_ext <<_ACEOF | |
9234 | /* end confdefs.h. */ | |
9235 | ||
9236 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9237 | #ifdef __cplusplus | |
9238 | extern "C" | |
9239 | #endif | |
9240 | /* We use char because int might match the return type of a gcc2 | |
9241 | builtin and then its argument prototype would still apply. */ | |
453310d8 | 9242 | char sinhf (); |
a9e7b9d3 PB |
9243 | int |
9244 | main () | |
9245 | { | |
453310d8 | 9246 | sinhf (); |
a9e7b9d3 PB |
9247 | ; |
9248 | return 0; | |
9249 | } | |
9250 | _ACEOF | |
9251 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9253 | (eval $ac_link) 2>conftest.er1 | |
9254 | ac_status=$? | |
9255 | grep -v '^ *+' conftest.er1 >conftest.err | |
9256 | rm -f conftest.er1 | |
9257 | cat conftest.err >&5 | |
9258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9259 | (exit $ac_status); } && | |
1fb2002d | 9260 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
a9e7b9d3 PB |
9261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9262 | (eval $ac_try) 2>&5 | |
9263 | ac_status=$? | |
9264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9265 | (exit $ac_status); }; } && | |
9266 | { ac_try='test -s conftest$ac_exeext' | |
9267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9268 | (eval $ac_try) 2>&5 | |
9269 | ac_status=$? | |
9270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9271 | (exit $ac_status); }; }; then | |
453310d8 | 9272 | ac_cv_lib_m_sinhf=yes |
a9e7b9d3 PB |
9273 | else |
9274 | echo "$as_me: failed program was:" >&5 | |
9275 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9276 | ||
453310d8 | 9277 | ac_cv_lib_m_sinhf=no |
a9e7b9d3 PB |
9278 | fi |
9279 | rm -f conftest.err conftest.$ac_objext \ | |
9280 | conftest$ac_exeext conftest.$ac_ext | |
9281 | LIBS=$ac_check_lib_save_LIBS | |
9282 | fi | |
453310d8 RS |
9283 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5 |
9284 | echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6 | |
9285 | if test $ac_cv_lib_m_sinhf = yes; then | |
a9e7b9d3 PB |
9286 | |
9287 | cat >>confdefs.h <<\_ACEOF | |
453310d8 RS |
9288 | #define HAVE_SINHF 1 |
9289 | _ACEOF | |
9290 | ||
9291 | fi | |
9292 | ||
9293 | echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5 | |
9294 | echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6 | |
9295 | if test "${ac_cv_lib_m_sqrtf+set}" = set; then | |
9296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9297 | else | |
9298 | ac_check_lib_save_LIBS=$LIBS | |
9299 | LIBS="-lm $LIBS" | |
9300 | cat >conftest.$ac_ext <<_ACEOF | |
9301 | /* confdefs.h. */ | |
9302 | _ACEOF | |
9303 | cat confdefs.h >>conftest.$ac_ext | |
9304 | cat >>conftest.$ac_ext <<_ACEOF | |
9305 | /* end confdefs.h. */ | |
9306 | ||
9307 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9308 | #ifdef __cplusplus | |
9309 | extern "C" | |
9310 | #endif | |
9311 | /* We use char because int might match the return type of a gcc2 | |
9312 | builtin and then its argument prototype would still apply. */ | |
9313 | char sqrtf (); | |
9314 | int | |
9315 | main () | |
9316 | { | |
9317 | sqrtf (); | |
9318 | ; | |
9319 | return 0; | |
9320 | } | |
9321 | _ACEOF | |
9322 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9323 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9324 | (eval $ac_link) 2>conftest.er1 | |
9325 | ac_status=$? | |
9326 | grep -v '^ *+' conftest.er1 >conftest.err | |
9327 | rm -f conftest.er1 | |
9328 | cat conftest.err >&5 | |
9329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9330 | (exit $ac_status); } && | |
1fb2002d | 9331 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
9332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9333 | (eval $ac_try) 2>&5 | |
9334 | ac_status=$? | |
9335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9336 | (exit $ac_status); }; } && | |
9337 | { ac_try='test -s conftest$ac_exeext' | |
9338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9339 | (eval $ac_try) 2>&5 | |
9340 | ac_status=$? | |
9341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9342 | (exit $ac_status); }; }; then | |
9343 | ac_cv_lib_m_sqrtf=yes | |
9344 | else | |
9345 | echo "$as_me: failed program was:" >&5 | |
9346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9347 | ||
9348 | ac_cv_lib_m_sqrtf=no | |
9349 | fi | |
9350 | rm -f conftest.err conftest.$ac_objext \ | |
9351 | conftest$ac_exeext conftest.$ac_ext | |
9352 | LIBS=$ac_check_lib_save_LIBS | |
9353 | fi | |
9354 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5 | |
9355 | echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6 | |
9356 | if test $ac_cv_lib_m_sqrtf = yes; then | |
9357 | ||
9358 | cat >>confdefs.h <<\_ACEOF | |
9359 | #define HAVE_SQRTF 1 | |
9360 | _ACEOF | |
9361 | ||
9362 | fi | |
9363 | ||
9364 | echo "$as_me:$LINENO: checking for tanf in -lm" >&5 | |
9365 | echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6 | |
9366 | if test "${ac_cv_lib_m_tanf+set}" = set; then | |
9367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9368 | else | |
9369 | ac_check_lib_save_LIBS=$LIBS | |
9370 | LIBS="-lm $LIBS" | |
9371 | cat >conftest.$ac_ext <<_ACEOF | |
9372 | /* confdefs.h. */ | |
9373 | _ACEOF | |
9374 | cat confdefs.h >>conftest.$ac_ext | |
9375 | cat >>conftest.$ac_ext <<_ACEOF | |
9376 | /* end confdefs.h. */ | |
9377 | ||
9378 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9379 | #ifdef __cplusplus | |
9380 | extern "C" | |
9381 | #endif | |
9382 | /* We use char because int might match the return type of a gcc2 | |
9383 | builtin and then its argument prototype would still apply. */ | |
9384 | char tanf (); | |
9385 | int | |
9386 | main () | |
9387 | { | |
9388 | tanf (); | |
9389 | ; | |
9390 | return 0; | |
9391 | } | |
9392 | _ACEOF | |
9393 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9394 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9395 | (eval $ac_link) 2>conftest.er1 | |
9396 | ac_status=$? | |
9397 | grep -v '^ *+' conftest.er1 >conftest.err | |
9398 | rm -f conftest.er1 | |
9399 | cat conftest.err >&5 | |
9400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9401 | (exit $ac_status); } && | |
1fb2002d | 9402 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
9403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9404 | (eval $ac_try) 2>&5 | |
9405 | ac_status=$? | |
9406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9407 | (exit $ac_status); }; } && | |
9408 | { ac_try='test -s conftest$ac_exeext' | |
9409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9410 | (eval $ac_try) 2>&5 | |
9411 | ac_status=$? | |
9412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9413 | (exit $ac_status); }; }; then | |
9414 | ac_cv_lib_m_tanf=yes | |
9415 | else | |
9416 | echo "$as_me: failed program was:" >&5 | |
9417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9418 | ||
9419 | ac_cv_lib_m_tanf=no | |
9420 | fi | |
9421 | rm -f conftest.err conftest.$ac_objext \ | |
9422 | conftest$ac_exeext conftest.$ac_ext | |
9423 | LIBS=$ac_check_lib_save_LIBS | |
9424 | fi | |
9425 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5 | |
9426 | echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6 | |
9427 | if test $ac_cv_lib_m_tanf = yes; then | |
9428 | ||
9429 | cat >>confdefs.h <<\_ACEOF | |
9430 | #define HAVE_TANF 1 | |
9431 | _ACEOF | |
9432 | ||
9433 | fi | |
9434 | ||
9435 | echo "$as_me:$LINENO: checking for tanhf in -lm" >&5 | |
9436 | echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6 | |
9437 | if test "${ac_cv_lib_m_tanhf+set}" = set; then | |
9438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9439 | else | |
9440 | ac_check_lib_save_LIBS=$LIBS | |
9441 | LIBS="-lm $LIBS" | |
9442 | cat >conftest.$ac_ext <<_ACEOF | |
9443 | /* confdefs.h. */ | |
9444 | _ACEOF | |
9445 | cat confdefs.h >>conftest.$ac_ext | |
9446 | cat >>conftest.$ac_ext <<_ACEOF | |
9447 | /* end confdefs.h. */ | |
9448 | ||
9449 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9450 | #ifdef __cplusplus | |
9451 | extern "C" | |
9452 | #endif | |
9453 | /* We use char because int might match the return type of a gcc2 | |
9454 | builtin and then its argument prototype would still apply. */ | |
9455 | char tanhf (); | |
9456 | int | |
9457 | main () | |
9458 | { | |
9459 | tanhf (); | |
9460 | ; | |
9461 | return 0; | |
9462 | } | |
9463 | _ACEOF | |
9464 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9465 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9466 | (eval $ac_link) 2>conftest.er1 | |
9467 | ac_status=$? | |
9468 | grep -v '^ *+' conftest.er1 >conftest.err | |
9469 | rm -f conftest.er1 | |
9470 | cat conftest.err >&5 | |
9471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9472 | (exit $ac_status); } && | |
1fb2002d | 9473 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
453310d8 RS |
9474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9475 | (eval $ac_try) 2>&5 | |
9476 | ac_status=$? | |
9477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9478 | (exit $ac_status); }; } && | |
9479 | { ac_try='test -s conftest$ac_exeext' | |
9480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9481 | (eval $ac_try) 2>&5 | |
9482 | ac_status=$? | |
9483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9484 | (exit $ac_status); }; }; then | |
9485 | ac_cv_lib_m_tanhf=yes | |
9486 | else | |
9487 | echo "$as_me: failed program was:" >&5 | |
9488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9489 | ||
9490 | ac_cv_lib_m_tanhf=no | |
9491 | fi | |
9492 | rm -f conftest.err conftest.$ac_objext \ | |
9493 | conftest$ac_exeext conftest.$ac_ext | |
9494 | LIBS=$ac_check_lib_save_LIBS | |
9495 | fi | |
9496 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5 | |
9497 | echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6 | |
9498 | if test $ac_cv_lib_m_tanhf = yes; then | |
9499 | ||
9500 | cat >>confdefs.h <<\_ACEOF | |
9501 | #define HAVE_TANHF 1 | |
a9e7b9d3 PB |
9502 | _ACEOF |
9503 | ||
9504 | fi | |
9505 | ||
e8525382 SK |
9506 | echo "$as_me:$LINENO: checking for erf in -lm" >&5 |
9507 | echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6 | |
9508 | if test "${ac_cv_lib_m_erf+set}" = set; then | |
9509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9510 | else | |
9511 | ac_check_lib_save_LIBS=$LIBS | |
9512 | LIBS="-lm $LIBS" | |
9513 | cat >conftest.$ac_ext <<_ACEOF | |
9514 | /* confdefs.h. */ | |
9515 | _ACEOF | |
9516 | cat confdefs.h >>conftest.$ac_ext | |
9517 | cat >>conftest.$ac_ext <<_ACEOF | |
9518 | /* end confdefs.h. */ | |
9519 | ||
9520 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9521 | #ifdef __cplusplus | |
9522 | extern "C" | |
9523 | #endif | |
9524 | /* We use char because int might match the return type of a gcc2 | |
9525 | builtin and then its argument prototype would still apply. */ | |
9526 | char erf (); | |
9527 | int | |
9528 | main () | |
9529 | { | |
9530 | erf (); | |
9531 | ; | |
9532 | return 0; | |
9533 | } | |
9534 | _ACEOF | |
9535 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9536 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9537 | (eval $ac_link) 2>conftest.er1 | |
9538 | ac_status=$? | |
9539 | grep -v '^ *+' conftest.er1 >conftest.err | |
9540 | rm -f conftest.er1 | |
9541 | cat conftest.err >&5 | |
9542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9543 | (exit $ac_status); } && | |
1fb2002d | 9544 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
9545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9546 | (eval $ac_try) 2>&5 | |
9547 | ac_status=$? | |
9548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9549 | (exit $ac_status); }; } && | |
9550 | { ac_try='test -s conftest$ac_exeext' | |
9551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9552 | (eval $ac_try) 2>&5 | |
9553 | ac_status=$? | |
9554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9555 | (exit $ac_status); }; }; then | |
9556 | ac_cv_lib_m_erf=yes | |
9557 | else | |
9558 | echo "$as_me: failed program was:" >&5 | |
9559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9560 | ||
9561 | ac_cv_lib_m_erf=no | |
9562 | fi | |
9563 | rm -f conftest.err conftest.$ac_objext \ | |
9564 | conftest$ac_exeext conftest.$ac_ext | |
9565 | LIBS=$ac_check_lib_save_LIBS | |
9566 | fi | |
9567 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5 | |
9568 | echo "${ECHO_T}$ac_cv_lib_m_erf" >&6 | |
9569 | if test $ac_cv_lib_m_erf = yes; then | |
9570 | ||
9571 | cat >>confdefs.h <<\_ACEOF | |
9572 | #define HAVE_ERF 1 | |
9573 | _ACEOF | |
9574 | ||
9575 | fi | |
9576 | ||
9577 | echo "$as_me:$LINENO: checking for erfc in -lm" >&5 | |
9578 | echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6 | |
9579 | if test "${ac_cv_lib_m_erfc+set}" = set; then | |
9580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9581 | else | |
9582 | ac_check_lib_save_LIBS=$LIBS | |
9583 | LIBS="-lm $LIBS" | |
9584 | cat >conftest.$ac_ext <<_ACEOF | |
9585 | /* confdefs.h. */ | |
9586 | _ACEOF | |
9587 | cat confdefs.h >>conftest.$ac_ext | |
9588 | cat >>conftest.$ac_ext <<_ACEOF | |
9589 | /* end confdefs.h. */ | |
9590 | ||
9591 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9592 | #ifdef __cplusplus | |
9593 | extern "C" | |
9594 | #endif | |
9595 | /* We use char because int might match the return type of a gcc2 | |
9596 | builtin and then its argument prototype would still apply. */ | |
9597 | char erfc (); | |
9598 | int | |
9599 | main () | |
9600 | { | |
9601 | erfc (); | |
9602 | ; | |
9603 | return 0; | |
9604 | } | |
9605 | _ACEOF | |
9606 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9607 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9608 | (eval $ac_link) 2>conftest.er1 | |
9609 | ac_status=$? | |
9610 | grep -v '^ *+' conftest.er1 >conftest.err | |
9611 | rm -f conftest.er1 | |
9612 | cat conftest.err >&5 | |
9613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9614 | (exit $ac_status); } && | |
1fb2002d | 9615 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
9616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9617 | (eval $ac_try) 2>&5 | |
9618 | ac_status=$? | |
9619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9620 | (exit $ac_status); }; } && | |
9621 | { ac_try='test -s conftest$ac_exeext' | |
9622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9623 | (eval $ac_try) 2>&5 | |
9624 | ac_status=$? | |
9625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9626 | (exit $ac_status); }; }; then | |
9627 | ac_cv_lib_m_erfc=yes | |
9628 | else | |
9629 | echo "$as_me: failed program was:" >&5 | |
9630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9631 | ||
9632 | ac_cv_lib_m_erfc=no | |
9633 | fi | |
9634 | rm -f conftest.err conftest.$ac_objext \ | |
9635 | conftest$ac_exeext conftest.$ac_ext | |
9636 | LIBS=$ac_check_lib_save_LIBS | |
9637 | fi | |
9638 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5 | |
9639 | echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6 | |
9640 | if test $ac_cv_lib_m_erfc = yes; then | |
9641 | ||
9642 | cat >>confdefs.h <<\_ACEOF | |
9643 | #define HAVE_ERFC 1 | |
9644 | _ACEOF | |
9645 | ||
9646 | fi | |
9647 | ||
9648 | echo "$as_me:$LINENO: checking for erfcf in -lm" >&5 | |
9649 | echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6 | |
9650 | if test "${ac_cv_lib_m_erfcf+set}" = set; then | |
9651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9652 | else | |
9653 | ac_check_lib_save_LIBS=$LIBS | |
9654 | LIBS="-lm $LIBS" | |
9655 | cat >conftest.$ac_ext <<_ACEOF | |
9656 | /* confdefs.h. */ | |
9657 | _ACEOF | |
9658 | cat confdefs.h >>conftest.$ac_ext | |
9659 | cat >>conftest.$ac_ext <<_ACEOF | |
9660 | /* end confdefs.h. */ | |
9661 | ||
9662 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9663 | #ifdef __cplusplus | |
9664 | extern "C" | |
9665 | #endif | |
9666 | /* We use char because int might match the return type of a gcc2 | |
9667 | builtin and then its argument prototype would still apply. */ | |
9668 | char erfcf (); | |
9669 | int | |
9670 | main () | |
9671 | { | |
9672 | erfcf (); | |
9673 | ; | |
9674 | return 0; | |
9675 | } | |
9676 | _ACEOF | |
9677 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9679 | (eval $ac_link) 2>conftest.er1 | |
9680 | ac_status=$? | |
9681 | grep -v '^ *+' conftest.er1 >conftest.err | |
9682 | rm -f conftest.er1 | |
9683 | cat conftest.err >&5 | |
9684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9685 | (exit $ac_status); } && | |
1fb2002d | 9686 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
9687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9688 | (eval $ac_try) 2>&5 | |
9689 | ac_status=$? | |
9690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9691 | (exit $ac_status); }; } && | |
9692 | { ac_try='test -s conftest$ac_exeext' | |
9693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9694 | (eval $ac_try) 2>&5 | |
9695 | ac_status=$? | |
9696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9697 | (exit $ac_status); }; }; then | |
9698 | ac_cv_lib_m_erfcf=yes | |
9699 | else | |
9700 | echo "$as_me: failed program was:" >&5 | |
9701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9702 | ||
9703 | ac_cv_lib_m_erfcf=no | |
9704 | fi | |
9705 | rm -f conftest.err conftest.$ac_objext \ | |
9706 | conftest$ac_exeext conftest.$ac_ext | |
9707 | LIBS=$ac_check_lib_save_LIBS | |
9708 | fi | |
9709 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5 | |
9710 | echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6 | |
9711 | if test $ac_cv_lib_m_erfcf = yes; then | |
9712 | ||
9713 | cat >>confdefs.h <<\_ACEOF | |
9714 | #define HAVE_ERFCF 1 | |
9715 | _ACEOF | |
9716 | ||
9717 | fi | |
9718 | ||
9719 | echo "$as_me:$LINENO: checking for erff in -lm" >&5 | |
9720 | echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6 | |
9721 | if test "${ac_cv_lib_m_erff+set}" = set; then | |
9722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9723 | else | |
9724 | ac_check_lib_save_LIBS=$LIBS | |
9725 | LIBS="-lm $LIBS" | |
9726 | cat >conftest.$ac_ext <<_ACEOF | |
9727 | /* confdefs.h. */ | |
9728 | _ACEOF | |
9729 | cat confdefs.h >>conftest.$ac_ext | |
9730 | cat >>conftest.$ac_ext <<_ACEOF | |
9731 | /* end confdefs.h. */ | |
9732 | ||
9733 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9734 | #ifdef __cplusplus | |
9735 | extern "C" | |
9736 | #endif | |
9737 | /* We use char because int might match the return type of a gcc2 | |
9738 | builtin and then its argument prototype would still apply. */ | |
9739 | char erff (); | |
9740 | int | |
9741 | main () | |
9742 | { | |
9743 | erff (); | |
9744 | ; | |
9745 | return 0; | |
9746 | } | |
9747 | _ACEOF | |
9748 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9750 | (eval $ac_link) 2>conftest.er1 | |
9751 | ac_status=$? | |
9752 | grep -v '^ *+' conftest.er1 >conftest.err | |
9753 | rm -f conftest.er1 | |
9754 | cat conftest.err >&5 | |
9755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9756 | (exit $ac_status); } && | |
1fb2002d | 9757 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
9758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9759 | (eval $ac_try) 2>&5 | |
9760 | ac_status=$? | |
9761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9762 | (exit $ac_status); }; } && | |
9763 | { ac_try='test -s conftest$ac_exeext' | |
9764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9765 | (eval $ac_try) 2>&5 | |
9766 | ac_status=$? | |
9767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9768 | (exit $ac_status); }; }; then | |
9769 | ac_cv_lib_m_erff=yes | |
9770 | else | |
9771 | echo "$as_me: failed program was:" >&5 | |
9772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9773 | ||
9774 | ac_cv_lib_m_erff=no | |
9775 | fi | |
9776 | rm -f conftest.err conftest.$ac_objext \ | |
9777 | conftest$ac_exeext conftest.$ac_ext | |
9778 | LIBS=$ac_check_lib_save_LIBS | |
9779 | fi | |
9780 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5 | |
9781 | echo "${ECHO_T}$ac_cv_lib_m_erff" >&6 | |
9782 | if test $ac_cv_lib_m_erff = yes; then | |
9783 | ||
9784 | cat >>confdefs.h <<\_ACEOF | |
9785 | #define HAVE_ERFF 1 | |
9786 | _ACEOF | |
9787 | ||
9788 | fi | |
9789 | ||
9790 | echo "$as_me:$LINENO: checking for j0 in -lm" >&5 | |
9791 | echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6 | |
9792 | if test "${ac_cv_lib_m_j0+set}" = set; then | |
9793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9794 | else | |
9795 | ac_check_lib_save_LIBS=$LIBS | |
9796 | LIBS="-lm $LIBS" | |
9797 | cat >conftest.$ac_ext <<_ACEOF | |
9798 | /* confdefs.h. */ | |
9799 | _ACEOF | |
9800 | cat confdefs.h >>conftest.$ac_ext | |
9801 | cat >>conftest.$ac_ext <<_ACEOF | |
9802 | /* end confdefs.h. */ | |
9803 | ||
9804 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9805 | #ifdef __cplusplus | |
9806 | extern "C" | |
9807 | #endif | |
9808 | /* We use char because int might match the return type of a gcc2 | |
9809 | builtin and then its argument prototype would still apply. */ | |
9810 | char j0 (); | |
9811 | int | |
9812 | main () | |
9813 | { | |
9814 | j0 (); | |
9815 | ; | |
9816 | return 0; | |
9817 | } | |
9818 | _ACEOF | |
9819 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9821 | (eval $ac_link) 2>conftest.er1 | |
9822 | ac_status=$? | |
9823 | grep -v '^ *+' conftest.er1 >conftest.err | |
9824 | rm -f conftest.er1 | |
9825 | cat conftest.err >&5 | |
9826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9827 | (exit $ac_status); } && | |
1fb2002d | 9828 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
9829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9830 | (eval $ac_try) 2>&5 | |
9831 | ac_status=$? | |
9832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9833 | (exit $ac_status); }; } && | |
9834 | { ac_try='test -s conftest$ac_exeext' | |
9835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9836 | (eval $ac_try) 2>&5 | |
9837 | ac_status=$? | |
9838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9839 | (exit $ac_status); }; }; then | |
9840 | ac_cv_lib_m_j0=yes | |
9841 | else | |
9842 | echo "$as_me: failed program was:" >&5 | |
9843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9844 | ||
9845 | ac_cv_lib_m_j0=no | |
9846 | fi | |
9847 | rm -f conftest.err conftest.$ac_objext \ | |
9848 | conftest$ac_exeext conftest.$ac_ext | |
9849 | LIBS=$ac_check_lib_save_LIBS | |
9850 | fi | |
9851 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5 | |
9852 | echo "${ECHO_T}$ac_cv_lib_m_j0" >&6 | |
9853 | if test $ac_cv_lib_m_j0 = yes; then | |
9854 | ||
9855 | cat >>confdefs.h <<\_ACEOF | |
9856 | #define HAVE_J0 1 | |
9857 | _ACEOF | |
9858 | ||
9859 | fi | |
9860 | ||
9861 | echo "$as_me:$LINENO: checking for j0f in -lm" >&5 | |
9862 | echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6 | |
9863 | if test "${ac_cv_lib_m_j0f+set}" = set; then | |
9864 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9865 | else | |
9866 | ac_check_lib_save_LIBS=$LIBS | |
9867 | LIBS="-lm $LIBS" | |
9868 | cat >conftest.$ac_ext <<_ACEOF | |
9869 | /* confdefs.h. */ | |
9870 | _ACEOF | |
9871 | cat confdefs.h >>conftest.$ac_ext | |
9872 | cat >>conftest.$ac_ext <<_ACEOF | |
9873 | /* end confdefs.h. */ | |
9874 | ||
9875 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9876 | #ifdef __cplusplus | |
9877 | extern "C" | |
9878 | #endif | |
9879 | /* We use char because int might match the return type of a gcc2 | |
9880 | builtin and then its argument prototype would still apply. */ | |
9881 | char j0f (); | |
9882 | int | |
9883 | main () | |
9884 | { | |
9885 | j0f (); | |
9886 | ; | |
9887 | return 0; | |
9888 | } | |
9889 | _ACEOF | |
9890 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9891 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9892 | (eval $ac_link) 2>conftest.er1 | |
9893 | ac_status=$? | |
9894 | grep -v '^ *+' conftest.er1 >conftest.err | |
9895 | rm -f conftest.er1 | |
9896 | cat conftest.err >&5 | |
9897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9898 | (exit $ac_status); } && | |
1fb2002d | 9899 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
9900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9901 | (eval $ac_try) 2>&5 | |
9902 | ac_status=$? | |
9903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9904 | (exit $ac_status); }; } && | |
9905 | { ac_try='test -s conftest$ac_exeext' | |
9906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9907 | (eval $ac_try) 2>&5 | |
9908 | ac_status=$? | |
9909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9910 | (exit $ac_status); }; }; then | |
9911 | ac_cv_lib_m_j0f=yes | |
9912 | else | |
9913 | echo "$as_me: failed program was:" >&5 | |
9914 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9915 | ||
9916 | ac_cv_lib_m_j0f=no | |
9917 | fi | |
9918 | rm -f conftest.err conftest.$ac_objext \ | |
9919 | conftest$ac_exeext conftest.$ac_ext | |
9920 | LIBS=$ac_check_lib_save_LIBS | |
9921 | fi | |
9922 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5 | |
9923 | echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6 | |
9924 | if test $ac_cv_lib_m_j0f = yes; then | |
9925 | ||
9926 | cat >>confdefs.h <<\_ACEOF | |
9927 | #define HAVE_J0F 1 | |
9928 | _ACEOF | |
9929 | ||
9930 | fi | |
9931 | ||
9932 | echo "$as_me:$LINENO: checking for j1 in -lm" >&5 | |
9933 | echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6 | |
9934 | if test "${ac_cv_lib_m_j1+set}" = set; then | |
9935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9936 | else | |
9937 | ac_check_lib_save_LIBS=$LIBS | |
9938 | LIBS="-lm $LIBS" | |
9939 | cat >conftest.$ac_ext <<_ACEOF | |
9940 | /* confdefs.h. */ | |
9941 | _ACEOF | |
9942 | cat confdefs.h >>conftest.$ac_ext | |
9943 | cat >>conftest.$ac_ext <<_ACEOF | |
9944 | /* end confdefs.h. */ | |
9945 | ||
9946 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9947 | #ifdef __cplusplus | |
9948 | extern "C" | |
9949 | #endif | |
9950 | /* We use char because int might match the return type of a gcc2 | |
9951 | builtin and then its argument prototype would still apply. */ | |
9952 | char j1 (); | |
9953 | int | |
9954 | main () | |
9955 | { | |
9956 | j1 (); | |
9957 | ; | |
9958 | return 0; | |
9959 | } | |
9960 | _ACEOF | |
9961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9963 | (eval $ac_link) 2>conftest.er1 | |
9964 | ac_status=$? | |
9965 | grep -v '^ *+' conftest.er1 >conftest.err | |
9966 | rm -f conftest.er1 | |
9967 | cat conftest.err >&5 | |
9968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9969 | (exit $ac_status); } && | |
1fb2002d | 9970 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
9971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9972 | (eval $ac_try) 2>&5 | |
9973 | ac_status=$? | |
9974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9975 | (exit $ac_status); }; } && | |
9976 | { ac_try='test -s conftest$ac_exeext' | |
9977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9978 | (eval $ac_try) 2>&5 | |
9979 | ac_status=$? | |
9980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9981 | (exit $ac_status); }; }; then | |
9982 | ac_cv_lib_m_j1=yes | |
9983 | else | |
9984 | echo "$as_me: failed program was:" >&5 | |
9985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9986 | ||
9987 | ac_cv_lib_m_j1=no | |
9988 | fi | |
9989 | rm -f conftest.err conftest.$ac_objext \ | |
9990 | conftest$ac_exeext conftest.$ac_ext | |
9991 | LIBS=$ac_check_lib_save_LIBS | |
9992 | fi | |
9993 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5 | |
9994 | echo "${ECHO_T}$ac_cv_lib_m_j1" >&6 | |
9995 | if test $ac_cv_lib_m_j1 = yes; then | |
9996 | ||
9997 | cat >>confdefs.h <<\_ACEOF | |
9998 | #define HAVE_J1 1 | |
9999 | _ACEOF | |
10000 | ||
10001 | fi | |
10002 | ||
10003 | echo "$as_me:$LINENO: checking for j1f in -lm" >&5 | |
10004 | echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6 | |
10005 | if test "${ac_cv_lib_m_j1f+set}" = set; then | |
10006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10007 | else | |
10008 | ac_check_lib_save_LIBS=$LIBS | |
10009 | LIBS="-lm $LIBS" | |
10010 | cat >conftest.$ac_ext <<_ACEOF | |
10011 | /* confdefs.h. */ | |
10012 | _ACEOF | |
10013 | cat confdefs.h >>conftest.$ac_ext | |
10014 | cat >>conftest.$ac_ext <<_ACEOF | |
10015 | /* end confdefs.h. */ | |
10016 | ||
10017 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10018 | #ifdef __cplusplus | |
10019 | extern "C" | |
10020 | #endif | |
10021 | /* We use char because int might match the return type of a gcc2 | |
10022 | builtin and then its argument prototype would still apply. */ | |
10023 | char j1f (); | |
10024 | int | |
10025 | main () | |
10026 | { | |
10027 | j1f (); | |
10028 | ; | |
10029 | return 0; | |
10030 | } | |
10031 | _ACEOF | |
10032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10034 | (eval $ac_link) 2>conftest.er1 | |
10035 | ac_status=$? | |
10036 | grep -v '^ *+' conftest.er1 >conftest.err | |
10037 | rm -f conftest.er1 | |
10038 | cat conftest.err >&5 | |
10039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10040 | (exit $ac_status); } && | |
1fb2002d | 10041 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
10042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10043 | (eval $ac_try) 2>&5 | |
10044 | ac_status=$? | |
10045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10046 | (exit $ac_status); }; } && | |
10047 | { ac_try='test -s conftest$ac_exeext' | |
10048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10049 | (eval $ac_try) 2>&5 | |
10050 | ac_status=$? | |
10051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10052 | (exit $ac_status); }; }; then | |
10053 | ac_cv_lib_m_j1f=yes | |
10054 | else | |
10055 | echo "$as_me: failed program was:" >&5 | |
10056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10057 | ||
10058 | ac_cv_lib_m_j1f=no | |
10059 | fi | |
10060 | rm -f conftest.err conftest.$ac_objext \ | |
10061 | conftest$ac_exeext conftest.$ac_ext | |
10062 | LIBS=$ac_check_lib_save_LIBS | |
10063 | fi | |
10064 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5 | |
10065 | echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6 | |
10066 | if test $ac_cv_lib_m_j1f = yes; then | |
10067 | ||
10068 | cat >>confdefs.h <<\_ACEOF | |
10069 | #define HAVE_J1F 1 | |
10070 | _ACEOF | |
10071 | ||
10072 | fi | |
10073 | ||
10074 | echo "$as_me:$LINENO: checking for jn in -lm" >&5 | |
10075 | echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6 | |
10076 | if test "${ac_cv_lib_m_jn+set}" = set; then | |
10077 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10078 | else | |
10079 | ac_check_lib_save_LIBS=$LIBS | |
10080 | LIBS="-lm $LIBS" | |
10081 | cat >conftest.$ac_ext <<_ACEOF | |
10082 | /* confdefs.h. */ | |
10083 | _ACEOF | |
10084 | cat confdefs.h >>conftest.$ac_ext | |
10085 | cat >>conftest.$ac_ext <<_ACEOF | |
10086 | /* end confdefs.h. */ | |
10087 | ||
10088 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10089 | #ifdef __cplusplus | |
10090 | extern "C" | |
10091 | #endif | |
10092 | /* We use char because int might match the return type of a gcc2 | |
10093 | builtin and then its argument prototype would still apply. */ | |
10094 | char jn (); | |
10095 | int | |
10096 | main () | |
10097 | { | |
10098 | jn (); | |
10099 | ; | |
10100 | return 0; | |
10101 | } | |
10102 | _ACEOF | |
10103 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10104 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10105 | (eval $ac_link) 2>conftest.er1 | |
10106 | ac_status=$? | |
10107 | grep -v '^ *+' conftest.er1 >conftest.err | |
10108 | rm -f conftest.er1 | |
10109 | cat conftest.err >&5 | |
10110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10111 | (exit $ac_status); } && | |
1fb2002d | 10112 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
10113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10114 | (eval $ac_try) 2>&5 | |
10115 | ac_status=$? | |
10116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10117 | (exit $ac_status); }; } && | |
10118 | { ac_try='test -s conftest$ac_exeext' | |
10119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10120 | (eval $ac_try) 2>&5 | |
10121 | ac_status=$? | |
10122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10123 | (exit $ac_status); }; }; then | |
10124 | ac_cv_lib_m_jn=yes | |
10125 | else | |
10126 | echo "$as_me: failed program was:" >&5 | |
10127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10128 | ||
10129 | ac_cv_lib_m_jn=no | |
10130 | fi | |
10131 | rm -f conftest.err conftest.$ac_objext \ | |
10132 | conftest$ac_exeext conftest.$ac_ext | |
10133 | LIBS=$ac_check_lib_save_LIBS | |
10134 | fi | |
10135 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5 | |
10136 | echo "${ECHO_T}$ac_cv_lib_m_jn" >&6 | |
10137 | if test $ac_cv_lib_m_jn = yes; then | |
10138 | ||
10139 | cat >>confdefs.h <<\_ACEOF | |
10140 | #define HAVE_JN 1 | |
10141 | _ACEOF | |
10142 | ||
10143 | fi | |
10144 | ||
10145 | echo "$as_me:$LINENO: checking for jnf in -lm" >&5 | |
10146 | echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6 | |
10147 | if test "${ac_cv_lib_m_jnf+set}" = set; then | |
10148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10149 | else | |
10150 | ac_check_lib_save_LIBS=$LIBS | |
10151 | LIBS="-lm $LIBS" | |
10152 | cat >conftest.$ac_ext <<_ACEOF | |
10153 | /* confdefs.h. */ | |
10154 | _ACEOF | |
10155 | cat confdefs.h >>conftest.$ac_ext | |
10156 | cat >>conftest.$ac_ext <<_ACEOF | |
10157 | /* end confdefs.h. */ | |
10158 | ||
10159 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10160 | #ifdef __cplusplus | |
10161 | extern "C" | |
10162 | #endif | |
10163 | /* We use char because int might match the return type of a gcc2 | |
10164 | builtin and then its argument prototype would still apply. */ | |
10165 | char jnf (); | |
10166 | int | |
10167 | main () | |
10168 | { | |
10169 | jnf (); | |
10170 | ; | |
10171 | return 0; | |
10172 | } | |
10173 | _ACEOF | |
10174 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10175 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10176 | (eval $ac_link) 2>conftest.er1 | |
10177 | ac_status=$? | |
10178 | grep -v '^ *+' conftest.er1 >conftest.err | |
10179 | rm -f conftest.er1 | |
10180 | cat conftest.err >&5 | |
10181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10182 | (exit $ac_status); } && | |
1fb2002d | 10183 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
10184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10185 | (eval $ac_try) 2>&5 | |
10186 | ac_status=$? | |
10187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10188 | (exit $ac_status); }; } && | |
10189 | { ac_try='test -s conftest$ac_exeext' | |
10190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10191 | (eval $ac_try) 2>&5 | |
10192 | ac_status=$? | |
10193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10194 | (exit $ac_status); }; }; then | |
10195 | ac_cv_lib_m_jnf=yes | |
10196 | else | |
10197 | echo "$as_me: failed program was:" >&5 | |
10198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10199 | ||
10200 | ac_cv_lib_m_jnf=no | |
10201 | fi | |
10202 | rm -f conftest.err conftest.$ac_objext \ | |
10203 | conftest$ac_exeext conftest.$ac_ext | |
10204 | LIBS=$ac_check_lib_save_LIBS | |
10205 | fi | |
10206 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5 | |
10207 | echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6 | |
10208 | if test $ac_cv_lib_m_jnf = yes; then | |
10209 | ||
10210 | cat >>confdefs.h <<\_ACEOF | |
10211 | #define HAVE_JNF 1 | |
10212 | _ACEOF | |
10213 | ||
10214 | fi | |
10215 | ||
10216 | echo "$as_me:$LINENO: checking for y0 in -lm" >&5 | |
10217 | echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6 | |
10218 | if test "${ac_cv_lib_m_y0+set}" = set; then | |
10219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10220 | else | |
10221 | ac_check_lib_save_LIBS=$LIBS | |
10222 | LIBS="-lm $LIBS" | |
10223 | cat >conftest.$ac_ext <<_ACEOF | |
10224 | /* confdefs.h. */ | |
10225 | _ACEOF | |
10226 | cat confdefs.h >>conftest.$ac_ext | |
10227 | cat >>conftest.$ac_ext <<_ACEOF | |
10228 | /* end confdefs.h. */ | |
10229 | ||
10230 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10231 | #ifdef __cplusplus | |
10232 | extern "C" | |
10233 | #endif | |
10234 | /* We use char because int might match the return type of a gcc2 | |
10235 | builtin and then its argument prototype would still apply. */ | |
10236 | char y0 (); | |
10237 | int | |
10238 | main () | |
10239 | { | |
10240 | y0 (); | |
10241 | ; | |
10242 | return 0; | |
10243 | } | |
10244 | _ACEOF | |
10245 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10247 | (eval $ac_link) 2>conftest.er1 | |
10248 | ac_status=$? | |
10249 | grep -v '^ *+' conftest.er1 >conftest.err | |
10250 | rm -f conftest.er1 | |
10251 | cat conftest.err >&5 | |
10252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10253 | (exit $ac_status); } && | |
1fb2002d | 10254 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
10255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10256 | (eval $ac_try) 2>&5 | |
10257 | ac_status=$? | |
10258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10259 | (exit $ac_status); }; } && | |
10260 | { ac_try='test -s conftest$ac_exeext' | |
10261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10262 | (eval $ac_try) 2>&5 | |
10263 | ac_status=$? | |
10264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10265 | (exit $ac_status); }; }; then | |
10266 | ac_cv_lib_m_y0=yes | |
10267 | else | |
10268 | echo "$as_me: failed program was:" >&5 | |
10269 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10270 | ||
10271 | ac_cv_lib_m_y0=no | |
10272 | fi | |
10273 | rm -f conftest.err conftest.$ac_objext \ | |
10274 | conftest$ac_exeext conftest.$ac_ext | |
10275 | LIBS=$ac_check_lib_save_LIBS | |
10276 | fi | |
10277 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5 | |
10278 | echo "${ECHO_T}$ac_cv_lib_m_y0" >&6 | |
10279 | if test $ac_cv_lib_m_y0 = yes; then | |
10280 | ||
10281 | cat >>confdefs.h <<\_ACEOF | |
10282 | #define HAVE_Y0 1 | |
10283 | _ACEOF | |
10284 | ||
10285 | fi | |
10286 | ||
10287 | echo "$as_me:$LINENO: checking for y0f in -lm" >&5 | |
10288 | echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6 | |
10289 | if test "${ac_cv_lib_m_y0f+set}" = set; then | |
10290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10291 | else | |
10292 | ac_check_lib_save_LIBS=$LIBS | |
10293 | LIBS="-lm $LIBS" | |
10294 | cat >conftest.$ac_ext <<_ACEOF | |
10295 | /* confdefs.h. */ | |
10296 | _ACEOF | |
10297 | cat confdefs.h >>conftest.$ac_ext | |
10298 | cat >>conftest.$ac_ext <<_ACEOF | |
10299 | /* end confdefs.h. */ | |
10300 | ||
10301 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10302 | #ifdef __cplusplus | |
10303 | extern "C" | |
10304 | #endif | |
10305 | /* We use char because int might match the return type of a gcc2 | |
10306 | builtin and then its argument prototype would still apply. */ | |
10307 | char y0f (); | |
10308 | int | |
10309 | main () | |
10310 | { | |
10311 | y0f (); | |
10312 | ; | |
10313 | return 0; | |
10314 | } | |
10315 | _ACEOF | |
10316 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10318 | (eval $ac_link) 2>conftest.er1 | |
10319 | ac_status=$? | |
10320 | grep -v '^ *+' conftest.er1 >conftest.err | |
10321 | rm -f conftest.er1 | |
10322 | cat conftest.err >&5 | |
10323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10324 | (exit $ac_status); } && | |
1fb2002d | 10325 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
10326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10327 | (eval $ac_try) 2>&5 | |
10328 | ac_status=$? | |
10329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10330 | (exit $ac_status); }; } && | |
10331 | { ac_try='test -s conftest$ac_exeext' | |
10332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10333 | (eval $ac_try) 2>&5 | |
10334 | ac_status=$? | |
10335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10336 | (exit $ac_status); }; }; then | |
10337 | ac_cv_lib_m_y0f=yes | |
10338 | else | |
10339 | echo "$as_me: failed program was:" >&5 | |
10340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10341 | ||
10342 | ac_cv_lib_m_y0f=no | |
10343 | fi | |
10344 | rm -f conftest.err conftest.$ac_objext \ | |
10345 | conftest$ac_exeext conftest.$ac_ext | |
10346 | LIBS=$ac_check_lib_save_LIBS | |
10347 | fi | |
10348 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5 | |
10349 | echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6 | |
10350 | if test $ac_cv_lib_m_y0f = yes; then | |
10351 | ||
10352 | cat >>confdefs.h <<\_ACEOF | |
10353 | #define HAVE_Y0F 1 | |
10354 | _ACEOF | |
10355 | ||
10356 | fi | |
10357 | ||
10358 | echo "$as_me:$LINENO: checking for y1 in -lm" >&5 | |
10359 | echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6 | |
10360 | if test "${ac_cv_lib_m_y1+set}" = set; then | |
10361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10362 | else | |
10363 | ac_check_lib_save_LIBS=$LIBS | |
10364 | LIBS="-lm $LIBS" | |
10365 | cat >conftest.$ac_ext <<_ACEOF | |
10366 | /* confdefs.h. */ | |
10367 | _ACEOF | |
10368 | cat confdefs.h >>conftest.$ac_ext | |
10369 | cat >>conftest.$ac_ext <<_ACEOF | |
10370 | /* end confdefs.h. */ | |
10371 | ||
10372 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10373 | #ifdef __cplusplus | |
10374 | extern "C" | |
10375 | #endif | |
10376 | /* We use char because int might match the return type of a gcc2 | |
10377 | builtin and then its argument prototype would still apply. */ | |
10378 | char y1 (); | |
10379 | int | |
10380 | main () | |
10381 | { | |
10382 | y1 (); | |
10383 | ; | |
10384 | return 0; | |
10385 | } | |
10386 | _ACEOF | |
10387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10389 | (eval $ac_link) 2>conftest.er1 | |
10390 | ac_status=$? | |
10391 | grep -v '^ *+' conftest.er1 >conftest.err | |
10392 | rm -f conftest.er1 | |
10393 | cat conftest.err >&5 | |
10394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10395 | (exit $ac_status); } && | |
1fb2002d | 10396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
10397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10398 | (eval $ac_try) 2>&5 | |
10399 | ac_status=$? | |
10400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10401 | (exit $ac_status); }; } && | |
10402 | { ac_try='test -s conftest$ac_exeext' | |
10403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10404 | (eval $ac_try) 2>&5 | |
10405 | ac_status=$? | |
10406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10407 | (exit $ac_status); }; }; then | |
10408 | ac_cv_lib_m_y1=yes | |
10409 | else | |
10410 | echo "$as_me: failed program was:" >&5 | |
10411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10412 | ||
10413 | ac_cv_lib_m_y1=no | |
10414 | fi | |
10415 | rm -f conftest.err conftest.$ac_objext \ | |
10416 | conftest$ac_exeext conftest.$ac_ext | |
10417 | LIBS=$ac_check_lib_save_LIBS | |
10418 | fi | |
10419 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5 | |
10420 | echo "${ECHO_T}$ac_cv_lib_m_y1" >&6 | |
10421 | if test $ac_cv_lib_m_y1 = yes; then | |
10422 | ||
10423 | cat >>confdefs.h <<\_ACEOF | |
10424 | #define HAVE_Y1 1 | |
10425 | _ACEOF | |
10426 | ||
10427 | fi | |
10428 | ||
10429 | echo "$as_me:$LINENO: checking for y1f in -lm" >&5 | |
10430 | echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6 | |
10431 | if test "${ac_cv_lib_m_y1f+set}" = set; then | |
10432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10433 | else | |
10434 | ac_check_lib_save_LIBS=$LIBS | |
10435 | LIBS="-lm $LIBS" | |
10436 | cat >conftest.$ac_ext <<_ACEOF | |
10437 | /* confdefs.h. */ | |
10438 | _ACEOF | |
10439 | cat confdefs.h >>conftest.$ac_ext | |
10440 | cat >>conftest.$ac_ext <<_ACEOF | |
10441 | /* end confdefs.h. */ | |
10442 | ||
10443 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10444 | #ifdef __cplusplus | |
10445 | extern "C" | |
10446 | #endif | |
10447 | /* We use char because int might match the return type of a gcc2 | |
10448 | builtin and then its argument prototype would still apply. */ | |
10449 | char y1f (); | |
10450 | int | |
10451 | main () | |
10452 | { | |
10453 | y1f (); | |
10454 | ; | |
10455 | return 0; | |
10456 | } | |
10457 | _ACEOF | |
10458 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10459 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10460 | (eval $ac_link) 2>conftest.er1 | |
10461 | ac_status=$? | |
10462 | grep -v '^ *+' conftest.er1 >conftest.err | |
10463 | rm -f conftest.er1 | |
10464 | cat conftest.err >&5 | |
10465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10466 | (exit $ac_status); } && | |
1fb2002d | 10467 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
10468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10469 | (eval $ac_try) 2>&5 | |
10470 | ac_status=$? | |
10471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10472 | (exit $ac_status); }; } && | |
10473 | { ac_try='test -s conftest$ac_exeext' | |
10474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10475 | (eval $ac_try) 2>&5 | |
10476 | ac_status=$? | |
10477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10478 | (exit $ac_status); }; }; then | |
10479 | ac_cv_lib_m_y1f=yes | |
10480 | else | |
10481 | echo "$as_me: failed program was:" >&5 | |
10482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10483 | ||
10484 | ac_cv_lib_m_y1f=no | |
10485 | fi | |
10486 | rm -f conftest.err conftest.$ac_objext \ | |
10487 | conftest$ac_exeext conftest.$ac_ext | |
10488 | LIBS=$ac_check_lib_save_LIBS | |
10489 | fi | |
10490 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5 | |
10491 | echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6 | |
10492 | if test $ac_cv_lib_m_y1f = yes; then | |
10493 | ||
10494 | cat >>confdefs.h <<\_ACEOF | |
10495 | #define HAVE_Y1F 1 | |
10496 | _ACEOF | |
10497 | ||
10498 | fi | |
10499 | ||
10500 | echo "$as_me:$LINENO: checking for yn in -lm" >&5 | |
10501 | echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6 | |
10502 | if test "${ac_cv_lib_m_yn+set}" = set; then | |
10503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10504 | else | |
10505 | ac_check_lib_save_LIBS=$LIBS | |
10506 | LIBS="-lm $LIBS" | |
10507 | cat >conftest.$ac_ext <<_ACEOF | |
10508 | /* confdefs.h. */ | |
10509 | _ACEOF | |
10510 | cat confdefs.h >>conftest.$ac_ext | |
10511 | cat >>conftest.$ac_ext <<_ACEOF | |
10512 | /* end confdefs.h. */ | |
10513 | ||
10514 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10515 | #ifdef __cplusplus | |
10516 | extern "C" | |
10517 | #endif | |
10518 | /* We use char because int might match the return type of a gcc2 | |
10519 | builtin and then its argument prototype would still apply. */ | |
10520 | char yn (); | |
10521 | int | |
10522 | main () | |
10523 | { | |
10524 | yn (); | |
10525 | ; | |
10526 | return 0; | |
10527 | } | |
10528 | _ACEOF | |
10529 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10531 | (eval $ac_link) 2>conftest.er1 | |
10532 | ac_status=$? | |
10533 | grep -v '^ *+' conftest.er1 >conftest.err | |
10534 | rm -f conftest.er1 | |
10535 | cat conftest.err >&5 | |
10536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10537 | (exit $ac_status); } && | |
1fb2002d | 10538 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
10539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10540 | (eval $ac_try) 2>&5 | |
10541 | ac_status=$? | |
10542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10543 | (exit $ac_status); }; } && | |
10544 | { ac_try='test -s conftest$ac_exeext' | |
10545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10546 | (eval $ac_try) 2>&5 | |
10547 | ac_status=$? | |
10548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10549 | (exit $ac_status); }; }; then | |
10550 | ac_cv_lib_m_yn=yes | |
10551 | else | |
10552 | echo "$as_me: failed program was:" >&5 | |
10553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10554 | ||
10555 | ac_cv_lib_m_yn=no | |
10556 | fi | |
10557 | rm -f conftest.err conftest.$ac_objext \ | |
10558 | conftest$ac_exeext conftest.$ac_ext | |
10559 | LIBS=$ac_check_lib_save_LIBS | |
10560 | fi | |
10561 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5 | |
10562 | echo "${ECHO_T}$ac_cv_lib_m_yn" >&6 | |
10563 | if test $ac_cv_lib_m_yn = yes; then | |
10564 | ||
10565 | cat >>confdefs.h <<\_ACEOF | |
10566 | #define HAVE_YN 1 | |
10567 | _ACEOF | |
10568 | ||
10569 | fi | |
10570 | ||
10571 | echo "$as_me:$LINENO: checking for ynf in -lm" >&5 | |
10572 | echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6 | |
10573 | if test "${ac_cv_lib_m_ynf+set}" = set; then | |
10574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10575 | else | |
10576 | ac_check_lib_save_LIBS=$LIBS | |
10577 | LIBS="-lm $LIBS" | |
10578 | cat >conftest.$ac_ext <<_ACEOF | |
10579 | /* confdefs.h. */ | |
10580 | _ACEOF | |
10581 | cat confdefs.h >>conftest.$ac_ext | |
10582 | cat >>conftest.$ac_ext <<_ACEOF | |
10583 | /* end confdefs.h. */ | |
10584 | ||
10585 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10586 | #ifdef __cplusplus | |
10587 | extern "C" | |
10588 | #endif | |
10589 | /* We use char because int might match the return type of a gcc2 | |
10590 | builtin and then its argument prototype would still apply. */ | |
10591 | char ynf (); | |
10592 | int | |
10593 | main () | |
10594 | { | |
10595 | ynf (); | |
10596 | ; | |
10597 | return 0; | |
10598 | } | |
10599 | _ACEOF | |
10600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10602 | (eval $ac_link) 2>conftest.er1 | |
10603 | ac_status=$? | |
10604 | grep -v '^ *+' conftest.er1 >conftest.err | |
10605 | rm -f conftest.er1 | |
10606 | cat conftest.err >&5 | |
10607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10608 | (exit $ac_status); } && | |
1fb2002d | 10609 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
e8525382 SK |
10610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10611 | (eval $ac_try) 2>&5 | |
10612 | ac_status=$? | |
10613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10614 | (exit $ac_status); }; } && | |
10615 | { ac_try='test -s conftest$ac_exeext' | |
10616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10617 | (eval $ac_try) 2>&5 | |
10618 | ac_status=$? | |
10619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10620 | (exit $ac_status); }; }; then | |
10621 | ac_cv_lib_m_ynf=yes | |
10622 | else | |
10623 | echo "$as_me: failed program was:" >&5 | |
10624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10625 | ||
10626 | ac_cv_lib_m_ynf=no | |
10627 | fi | |
10628 | rm -f conftest.err conftest.$ac_objext \ | |
10629 | conftest$ac_exeext conftest.$ac_ext | |
10630 | LIBS=$ac_check_lib_save_LIBS | |
10631 | fi | |
10632 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5 | |
10633 | echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6 | |
10634 | if test $ac_cv_lib_m_ynf = yes; then | |
10635 | ||
10636 | cat >>confdefs.h <<\_ACEOF | |
10637 | #define HAVE_YNF 1 | |
10638 | _ACEOF | |
10639 | ||
10640 | fi | |
10641 | ||
a2a2059f | 10642 | |
69d3c9a4 SB |
10643 | # Fallback in case isfinite is not available. |
10644 | echo "$as_me:$LINENO: checking for finite in -lm" >&5 | |
10645 | echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6 | |
10646 | if test "${ac_cv_lib_m_finite+set}" = set; then | |
10647 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10648 | else | |
10649 | ac_check_lib_save_LIBS=$LIBS | |
10650 | LIBS="-lm $LIBS" | |
69d3c9a4 SB |
10651 | cat >conftest.$ac_ext <<_ACEOF |
10652 | /* confdefs.h. */ | |
10653 | _ACEOF | |
10654 | cat confdefs.h >>conftest.$ac_ext | |
10655 | cat >>conftest.$ac_ext <<_ACEOF | |
10656 | /* end confdefs.h. */ | |
10657 | ||
10658 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10659 | #ifdef __cplusplus | |
10660 | extern "C" | |
10661 | #endif | |
10662 | /* We use char because int might match the return type of a gcc2 | |
10663 | builtin and then its argument prototype would still apply. */ | |
10664 | char finite (); | |
10665 | int | |
10666 | main () | |
10667 | { | |
10668 | finite (); | |
10669 | ; | |
10670 | return 0; | |
10671 | } | |
10672 | _ACEOF | |
10673 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10675 | (eval $ac_link) 2>conftest.er1 | |
10676 | ac_status=$? | |
10677 | grep -v '^ *+' conftest.er1 >conftest.err | |
10678 | rm -f conftest.er1 | |
10679 | cat conftest.err >&5 | |
10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10681 | (exit $ac_status); } && | |
1fb2002d | 10682 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
69d3c9a4 SB |
10683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10684 | (eval $ac_try) 2>&5 | |
10685 | ac_status=$? | |
10686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10687 | (exit $ac_status); }; } && | |
10688 | { ac_try='test -s conftest$ac_exeext' | |
10689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10690 | (eval $ac_try) 2>&5 | |
10691 | ac_status=$? | |
10692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10693 | (exit $ac_status); }; }; then | |
10694 | ac_cv_lib_m_finite=yes | |
10695 | else | |
10696 | echo "$as_me: failed program was:" >&5 | |
10697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10698 | ||
10699 | ac_cv_lib_m_finite=no | |
10700 | fi | |
10701 | rm -f conftest.err conftest.$ac_objext \ | |
10702 | conftest$ac_exeext conftest.$ac_ext | |
10703 | LIBS=$ac_check_lib_save_LIBS | |
10704 | fi | |
10705 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5 | |
10706 | echo "${ECHO_T}$ac_cv_lib_m_finite" >&6 | |
10707 | if test $ac_cv_lib_m_finite = yes; then | |
10708 | ||
10709 | cat >>confdefs.h <<\_ACEOF | |
10710 | #define HAVE_FINITE 1 | |
10711 | _ACEOF | |
10712 | ||
10713 | fi | |
10714 | ||
10715 | ||
96b8a615 AJ |
10716 | # Let the user override this |
10717 | # Check whether --enable-cmath or --disable-cmath was given. | |
10718 | if test "${enable_cmath+set}" = set; then | |
10719 | enableval="$enable_cmath" | |
10720 | need_math=$enableval | |
10721 | fi; | |
10722 | if test "$need_math" = "yes"; then | |
10723 | { echo "$as_me:$LINENO: Including complex math functions in libgfor" >&5 | |
10724 | echo "$as_me: Including complex math functions in libgfor" >&6;}; | |
10725 | extra_math_obj='$(gfor_cmath_obj)' | |
10726 | fi | |
10727 | ||
10728 | MATH_OBJ="$extra_math_obj" | |
10729 | ||
10730 | ||
10731 | # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check | |
10732 | # for struct timezone, as you might think. We also need to check how | |
10733 | # to call gettimeofday if we have it. | |
10734 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
10735 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
10736 | if test "${ac_cv_header_time+set}" = set; then | |
6de9cd9a DN |
10737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10738 | else | |
96b8a615 AJ |
10739 | cat >conftest.$ac_ext <<_ACEOF |
10740 | /* confdefs.h. */ | |
10741 | _ACEOF | |
10742 | cat confdefs.h >>conftest.$ac_ext | |
10743 | cat >>conftest.$ac_ext <<_ACEOF | |
10744 | /* end confdefs.h. */ | |
10745 | #include <sys/types.h> | |
10746 | #include <sys/time.h> | |
10747 | #include <time.h> | |
10748 | ||
10749 | int | |
10750 | main () | |
10751 | { | |
10752 | if ((struct tm *) 0) | |
10753 | return 0; | |
10754 | ; | |
10755 | return 0; | |
10756 | } | |
10757 | _ACEOF | |
10758 | rm -f conftest.$ac_objext | |
10759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10760 | (eval $ac_compile) 2>conftest.er1 | |
10761 | ac_status=$? | |
10762 | grep -v '^ *+' conftest.er1 >conftest.err | |
10763 | rm -f conftest.er1 | |
10764 | cat conftest.err >&5 | |
10765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10766 | (exit $ac_status); } && | |
1fb2002d | 10767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
96b8a615 AJ |
10768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10769 | (eval $ac_try) 2>&5 | |
10770 | ac_status=$? | |
10771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10772 | (exit $ac_status); }; } && | |
10773 | { ac_try='test -s conftest.$ac_objext' | |
10774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10775 | (eval $ac_try) 2>&5 | |
10776 | ac_status=$? | |
10777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10778 | (exit $ac_status); }; }; then | |
10779 | ac_cv_header_time=yes | |
10780 | else | |
10781 | echo "$as_me: failed program was:" >&5 | |
10782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 10783 | |
96b8a615 | 10784 | ac_cv_header_time=no |
6de9cd9a | 10785 | fi |
96b8a615 | 10786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 10787 | fi |
96b8a615 AJ |
10788 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
10789 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
10790 | if test $ac_cv_header_time = yes; then | |
6de9cd9a | 10791 | |
96b8a615 AJ |
10792 | cat >>confdefs.h <<\_ACEOF |
10793 | #define TIME_WITH_SYS_TIME 1 | |
10794 | _ACEOF | |
6de9cd9a | 10795 | |
6de9cd9a DN |
10796 | fi |
10797 | ||
6de9cd9a | 10798 | |
96b8a615 AJ |
10799 | |
10800 | for ac_func in gettimeofday | |
10801 | do | |
10802 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
10803 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10804 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10805 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6de9cd9a DN |
10806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10807 | else | |
f77b6ca3 | 10808 | cat >conftest.$ac_ext <<_ACEOF |
96b8a615 AJ |
10809 | /* confdefs.h. */ |
10810 | _ACEOF | |
10811 | cat confdefs.h >>conftest.$ac_ext | |
10812 | cat >>conftest.$ac_ext <<_ACEOF | |
10813 | /* end confdefs.h. */ | |
10814 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10815 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10816 | #define $ac_func innocuous_$ac_func | |
10817 | ||
10818 | /* System header to define __stub macros and hopefully few prototypes, | |
10819 | which can conflict with char $ac_func (); below. | |
10820 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10821 | <limits.h> exists even on freestanding compilers. */ | |
10822 | ||
10823 | #ifdef __STDC__ | |
10824 | # include <limits.h> | |
10825 | #else | |
10826 | # include <assert.h> | |
10827 | #endif | |
10828 | ||
10829 | #undef $ac_func | |
10830 | ||
10831 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10832 | #ifdef __cplusplus | |
10833 | extern "C" | |
10834 | { | |
10835 | #endif | |
10836 | /* We use char because int might match the return type of a gcc2 | |
10837 | builtin and then its argument prototype would still apply. */ | |
10838 | char $ac_func (); | |
10839 | /* The GNU C library defines this for functions which it implements | |
10840 | to always fail with ENOSYS. Some functions are actually named | |
10841 | something starting with __ and the normal name is an alias. */ | |
10842 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10843 | choke me | |
10844 | #else | |
10845 | char (*f) () = $ac_func; | |
10846 | #endif | |
10847 | #ifdef __cplusplus | |
10848 | } | |
10849 | #endif | |
10850 | ||
10851 | int | |
10852 | main () | |
10853 | { | |
10854 | return f != $ac_func; | |
10855 | ; | |
10856 | return 0; | |
10857 | } | |
10858 | _ACEOF | |
10859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10861 | (eval $ac_link) 2>conftest.er1 | |
10862 | ac_status=$? | |
10863 | grep -v '^ *+' conftest.er1 >conftest.err | |
10864 | rm -f conftest.er1 | |
10865 | cat conftest.err >&5 | |
10866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10867 | (exit $ac_status); } && | |
1fb2002d | 10868 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
96b8a615 AJ |
10869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10870 | (eval $ac_try) 2>&5 | |
10871 | ac_status=$? | |
10872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10873 | (exit $ac_status); }; } && | |
10874 | { ac_try='test -s conftest$ac_exeext' | |
10875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10876 | (eval $ac_try) 2>&5 | |
10877 | ac_status=$? | |
10878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10879 | (exit $ac_status); }; }; then | |
10880 | eval "$as_ac_var=yes" | |
6de9cd9a | 10881 | else |
96b8a615 AJ |
10882 | echo "$as_me: failed program was:" >&5 |
10883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 10884 | |
96b8a615 | 10885 | eval "$as_ac_var=no" |
6de9cd9a | 10886 | fi |
96b8a615 AJ |
10887 | rm -f conftest.err conftest.$ac_objext \ |
10888 | conftest$ac_exeext conftest.$ac_ext | |
6de9cd9a | 10889 | fi |
96b8a615 AJ |
10890 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
10891 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10892 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10893 | cat >>confdefs.h <<_ACEOF | |
10894 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10895 | _ACEOF | |
6de9cd9a DN |
10896 | |
10897 | fi | |
6de9cd9a DN |
10898 | done |
10899 | ||
96b8a615 AJ |
10900 | if test "$ac_cv_func_gettimeofday" = yes; then |
10901 | echo "$as_me:$LINENO: checking for struct timezone" >&5 | |
10902 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 | |
10903 | if test "${gfor_cv_struct_timezone+set}" = set; then | |
10904 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10905 | else | |
10906 | cat >conftest.$ac_ext <<_ACEOF | |
10907 | /* confdefs.h. */ | |
10908 | _ACEOF | |
10909 | cat confdefs.h >>conftest.$ac_ext | |
10910 | cat >>conftest.$ac_ext <<_ACEOF | |
10911 | /* end confdefs.h. */ | |
10912 | #include <sys/time.h> | |
10913 | int | |
10914 | main () | |
10915 | { | |
10916 | struct timezone tz; | |
10917 | ; | |
10918 | return 0; | |
10919 | } | |
10920 | _ACEOF | |
10921 | rm -f conftest.$ac_objext | |
10922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10923 | (eval $ac_compile) 2>conftest.er1 | |
10924 | ac_status=$? | |
10925 | grep -v '^ *+' conftest.er1 >conftest.err | |
10926 | rm -f conftest.er1 | |
10927 | cat conftest.err >&5 | |
10928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10929 | (exit $ac_status); } && | |
1fb2002d | 10930 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
96b8a615 AJ |
10931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10932 | (eval $ac_try) 2>&5 | |
10933 | ac_status=$? | |
10934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10935 | (exit $ac_status); }; } && | |
10936 | { ac_try='test -s conftest.$ac_objext' | |
10937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10938 | (eval $ac_try) 2>&5 | |
10939 | ac_status=$? | |
10940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10941 | (exit $ac_status); }; }; then | |
10942 | gfor_cv_struct_timezone=yes | |
6de9cd9a | 10943 | else |
96b8a615 AJ |
10944 | echo "$as_me: failed program was:" >&5 |
10945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 10946 | |
96b8a615 | 10947 | gfor_cv_struct_timezone=no |
6de9cd9a | 10948 | fi |
96b8a615 AJ |
10949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
10950 | fi | |
10951 | echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5 | |
10952 | echo "${ECHO_T}$gfor_cv_struct_timezone" >&6 | |
10953 | if test $gfor_cv_struct_timezone = yes; then | |
10954 | if test "$cross_compiling" = yes; then | |
10955 | gfor_have_struct_timezone=yes | |
6de9cd9a | 10956 | else |
96b8a615 AJ |
10957 | cat >conftest.$ac_ext <<_ACEOF |
10958 | /* confdefs.h. */ | |
10959 | _ACEOF | |
10960 | cat confdefs.h >>conftest.$ac_ext | |
10961 | cat >>conftest.$ac_ext <<_ACEOF | |
10962 | /* end confdefs.h. */ | |
6de9cd9a | 10963 | |
96b8a615 AJ |
10964 | #ifdef TIME_WITH_SYS_TIME |
10965 | #include <sys/time.h> | |
10966 | #include <time.h> | |
10967 | #else | |
10968 | #ifdef HAVE_SYS_TIME_H | |
10969 | #include <sys/time.h> | |
10970 | #else | |
10971 | #include <time.h> | |
10972 | #endif | |
10973 | #endif | |
10974 | main () | |
10975 | { | |
10976 | struct timeval time; | |
10977 | struct timezone dummy; | |
10978 | if (gettimeofday (&time, &dummy)) | |
10979 | exit (1); | |
10980 | else | |
10981 | exit (0); | |
10982 | } | |
10983 | _ACEOF | |
10984 | rm -f conftest$ac_exeext | |
10985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10986 | (eval $ac_link) 2>&5 | |
6de9cd9a DN |
10987 | ac_status=$? |
10988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
10989 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
10990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10991 | (eval $ac_try) 2>&5 | |
6de9cd9a DN |
10992 | ac_status=$? |
10993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
10994 | (exit $ac_status); }; }; then |
10995 | gfor_have_struct_timezone=yes | |
6de9cd9a | 10996 | else |
96b8a615 AJ |
10997 | echo "$as_me: program exited with status $ac_status" >&5 |
10998 | echo "$as_me: failed program was:" >&5 | |
10999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 11000 | |
96b8a615 AJ |
11001 | ( exit $ac_status ) |
11002 | gfor_have_struct_timezone=no | |
11003 | fi | |
11004 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11005 | fi | |
11006 | if test $gfor_have_struct_timezone = yes; then | |
6de9cd9a | 11007 | |
96b8a615 AJ |
11008 | cat >>confdefs.h <<\_ACEOF |
11009 | #define HAVE_TIMEZONE 1 | |
11010 | _ACEOF | |
6de9cd9a | 11011 | |
96b8a615 AJ |
11012 | fi |
11013 | fi | |
11014 | ||
11015 | echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 | |
11016 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 | |
11017 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
11018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11019 | else | |
f77b6ca3 | 11020 | cat >conftest.$ac_ext <<_ACEOF |
6de9cd9a DN |
11021 | /* confdefs.h. */ |
11022 | _ACEOF | |
11023 | cat confdefs.h >>conftest.$ac_ext | |
11024 | cat >>conftest.$ac_ext <<_ACEOF | |
11025 | /* end confdefs.h. */ | |
11026 | ||
96b8a615 AJ |
11027 | #ifdef TIME_WITH_SYS_TIME |
11028 | #include <sys/time.h> | |
11029 | #include <time.h> | |
11030 | #else | |
11031 | #ifdef HAVE_SYS_TIME_H | |
11032 | #include <sys/time.h> | |
11033 | #else | |
11034 | #include <time.h> | |
11035 | #endif | |
11036 | #endif | |
11037 | ||
6de9cd9a DN |
11038 | int |
11039 | main () | |
11040 | { | |
11041 | ||
96b8a615 AJ |
11042 | struct timeval time; |
11043 | #ifdef HAVE_TIMEZONE | |
11044 | struct timezone dummy; | |
11045 | #define DUMMY &dummy | |
11046 | #else | |
11047 | #define DUMMY NULL | |
11048 | #endif | |
11049 | gettimeofday (&time, DUMMY); | |
6de9cd9a DN |
11050 | ; |
11051 | return 0; | |
11052 | } | |
11053 | _ACEOF | |
11054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11056 | (eval $ac_link) 2>conftest.er1 | |
11057 | ac_status=$? | |
11058 | grep -v '^ *+' conftest.er1 >conftest.err | |
11059 | rm -f conftest.er1 | |
11060 | cat conftest.err >&5 | |
11061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11062 | (exit $ac_status); } && | |
1fb2002d | 11063 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
6de9cd9a DN |
11064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11065 | (eval $ac_try) 2>&5 | |
11066 | ac_status=$? | |
11067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11068 | (exit $ac_status); }; } && | |
11069 | { ac_try='test -s conftest$ac_exeext' | |
11070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11071 | (eval $ac_try) 2>&5 | |
11072 | ac_status=$? | |
11073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11074 | (exit $ac_status); }; }; then | |
96b8a615 | 11075 | emacs_cv_gettimeofday_two_arguments=yes |
6de9cd9a DN |
11076 | else |
11077 | echo "$as_me: failed program was:" >&5 | |
11078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11079 | ||
96b8a615 | 11080 | emacs_cv_gettimeofday_two_arguments=no |
6de9cd9a DN |
11081 | fi |
11082 | rm -f conftest.err conftest.$ac_objext \ | |
11083 | conftest$ac_exeext conftest.$ac_ext | |
6de9cd9a | 11084 | fi |
96b8a615 AJ |
11085 | echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
11086 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 | |
11087 | if test $emacs_cv_gettimeofday_two_arguments = no; then | |
6de9cd9a | 11088 | |
96b8a615 AJ |
11089 | cat >>confdefs.h <<\_ACEOF |
11090 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
11091 | _ACEOF | |
6de9cd9a | 11092 | |
96b8a615 AJ |
11093 | fi |
11094 | fi | |
6de9cd9a | 11095 | |
3969c39f EB |
11096 | # Attempt to assert that the target is of common type in case we don't |
11097 | # have C99 integer types at all. | |
11098 | ||
11099 | echo "$as_me:$LINENO: checking whether the target is ILP32" >&5 | |
11100 | echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6 | |
11101 | if test "${target_ilp32+set}" = set; then | |
11102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11103 | else | |
11104 | ||
11105 | save_CFLAGS="$CFLAGS" | |
11106 | CFLAGS="-O2" | |
f77b6ca3 | 11107 | cat >conftest.$ac_ext <<_ACEOF |
3969c39f EB |
11108 | /* confdefs.h. */ |
11109 | _ACEOF | |
11110 | cat confdefs.h >>conftest.$ac_ext | |
11111 | cat >>conftest.$ac_ext <<_ACEOF | |
11112 | /* end confdefs.h. */ | |
11113 | ||
11114 | int | |
11115 | main () | |
11116 | { | |
11117 | ||
11118 | if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4) | |
11119 | ; | |
11120 | else | |
11121 | undefined_function (); | |
11122 | ||
11123 | ; | |
11124 | return 0; | |
11125 | } | |
11126 | _ACEOF | |
11127 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11129 | (eval $ac_link) 2>conftest.er1 | |
11130 | ac_status=$? | |
11131 | grep -v '^ *+' conftest.er1 >conftest.err | |
11132 | rm -f conftest.er1 | |
11133 | cat conftest.err >&5 | |
11134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11135 | (exit $ac_status); } && | |
1fb2002d | 11136 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3969c39f EB |
11137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11138 | (eval $ac_try) 2>&5 | |
11139 | ac_status=$? | |
11140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11141 | (exit $ac_status); }; } && | |
11142 | { ac_try='test -s conftest$ac_exeext' | |
11143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11144 | (eval $ac_try) 2>&5 | |
11145 | ac_status=$? | |
11146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11147 | (exit $ac_status); }; }; then | |
11148 | target_ilp32=yes | |
11149 | else | |
11150 | echo "$as_me: failed program was:" >&5 | |
11151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11152 | ||
11153 | target_ilp32=no | |
11154 | fi | |
11155 | rm -f conftest.err conftest.$ac_objext \ | |
11156 | conftest$ac_exeext conftest.$ac_ext | |
11157 | CFLAGS="$save_CFLAGS" | |
11158 | fi | |
11159 | echo "$as_me:$LINENO: result: $target_ilp32" >&5 | |
11160 | echo "${ECHO_T}$target_ilp32" >&6 | |
11161 | if test $target_ilp32 = yes; then | |
11162 | ||
11163 | cat >>confdefs.h <<\_ACEOF | |
11164 | #define TARGET_ILP32 1 | |
11165 | _ACEOF | |
11166 | ||
11167 | fi | |
11168 | ||
11169 | ||
7d7b8bfe RH |
11170 | # Check out attribute support. |
11171 | ||
11172 | echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5 | |
11173 | echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6 | |
11174 | if test "${have_attribute_visibility+set}" = set; then | |
11175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11176 | else | |
11177 | ||
11178 | save_CFLAGS="$CFLAGS" | |
11179 | CFLAGS="$CFLAGS -Werror" | |
11180 | cat >conftest.$ac_ext <<_ACEOF | |
11181 | /* confdefs.h. */ | |
11182 | _ACEOF | |
11183 | cat confdefs.h >>conftest.$ac_ext | |
11184 | cat >>conftest.$ac_ext <<_ACEOF | |
11185 | /* end confdefs.h. */ | |
11186 | void __attribute__((visibility("hidden"))) foo(void) { } | |
11187 | int | |
11188 | main () | |
11189 | { | |
11190 | ||
11191 | ; | |
11192 | return 0; | |
11193 | } | |
11194 | _ACEOF | |
11195 | rm -f conftest.$ac_objext | |
11196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11197 | (eval $ac_compile) 2>conftest.er1 | |
11198 | ac_status=$? | |
11199 | grep -v '^ *+' conftest.er1 >conftest.err | |
11200 | rm -f conftest.er1 | |
11201 | cat conftest.err >&5 | |
11202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11203 | (exit $ac_status); } && | |
1fb2002d | 11204 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7d7b8bfe RH |
11205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11206 | (eval $ac_try) 2>&5 | |
11207 | ac_status=$? | |
11208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11209 | (exit $ac_status); }; } && | |
11210 | { ac_try='test -s conftest.$ac_objext' | |
11211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11212 | (eval $ac_try) 2>&5 | |
11213 | ac_status=$? | |
11214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11215 | (exit $ac_status); }; }; then | |
11216 | have_attribute_visibility=yes | |
11217 | else | |
11218 | echo "$as_me: failed program was:" >&5 | |
11219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11220 | ||
11221 | have_attribute_visibility=no | |
11222 | fi | |
11223 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11224 | CFLAGS="$save_CFLAGS" | |
11225 | fi | |
11226 | echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5 | |
11227 | echo "${ECHO_T}$have_attribute_visibility" >&6 | |
11228 | if test $have_attribute_visibility = yes; then | |
11229 | ||
11230 | cat >>confdefs.h <<\_ACEOF | |
11231 | #define HAVE_ATTRIBUTE_VISIBILITY 1 | |
11232 | _ACEOF | |
11233 | ||
11234 | fi | |
11235 | ||
11236 | echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5 | |
11237 | echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6 | |
11238 | if test "${have_attribute_dllexport+set}" = set; then | |
11239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11240 | else | |
11241 | ||
11242 | save_CFLAGS="$CFLAGS" | |
11243 | CFLAGS="$CFLAGS -Werror" | |
11244 | cat >conftest.$ac_ext <<_ACEOF | |
11245 | /* confdefs.h. */ | |
11246 | _ACEOF | |
11247 | cat confdefs.h >>conftest.$ac_ext | |
11248 | cat >>conftest.$ac_ext <<_ACEOF | |
11249 | /* end confdefs.h. */ | |
11250 | void __attribute__((dllexport)) foo(void) { } | |
11251 | int | |
11252 | main () | |
11253 | { | |
11254 | ||
11255 | ; | |
11256 | return 0; | |
11257 | } | |
11258 | _ACEOF | |
11259 | rm -f conftest.$ac_objext | |
11260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11261 | (eval $ac_compile) 2>conftest.er1 | |
11262 | ac_status=$? | |
11263 | grep -v '^ *+' conftest.er1 >conftest.err | |
11264 | rm -f conftest.er1 | |
11265 | cat conftest.err >&5 | |
11266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11267 | (exit $ac_status); } && | |
1fb2002d | 11268 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7d7b8bfe RH |
11269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11270 | (eval $ac_try) 2>&5 | |
11271 | ac_status=$? | |
11272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11273 | (exit $ac_status); }; } && | |
11274 | { ac_try='test -s conftest.$ac_objext' | |
11275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11276 | (eval $ac_try) 2>&5 | |
11277 | ac_status=$? | |
11278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11279 | (exit $ac_status); }; }; then | |
11280 | have_attribute_dllexport=yes | |
11281 | else | |
11282 | echo "$as_me: failed program was:" >&5 | |
11283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11284 | ||
11285 | have_attribute_dllexport=no | |
11286 | fi | |
11287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11288 | CFLAGS="$save_CFLAGS" | |
11289 | fi | |
11290 | echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5 | |
11291 | echo "${ECHO_T}$have_attribute_dllexport" >&6 | |
11292 | if test $have_attribute_dllexport = yes; then | |
11293 | ||
11294 | cat >>confdefs.h <<\_ACEOF | |
11295 | #define HAVE_ATTRIBUTE_DLLEXPORT 1 | |
11296 | _ACEOF | |
11297 | ||
11298 | fi | |
11299 | ||
11300 | echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5 | |
11301 | echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6 | |
11302 | if test "${have_attribute_alias+set}" = set; then | |
11303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11304 | else | |
11305 | ||
f77b6ca3 | 11306 | cat >conftest.$ac_ext <<_ACEOF |
7d7b8bfe RH |
11307 | /* confdefs.h. */ |
11308 | _ACEOF | |
11309 | cat confdefs.h >>conftest.$ac_ext | |
11310 | cat >>conftest.$ac_ext <<_ACEOF | |
11311 | /* end confdefs.h. */ | |
11312 | ||
11313 | #define ULP STR1(__USER_LABEL_PREFIX__) | |
11314 | #define STR1(x) STR2(x) | |
11315 | #define STR2(x) #x | |
11316 | void foo(void) { } | |
11317 | extern void bar(void) __attribute__((alias(ULP "foo"))); | |
11318 | int | |
11319 | main () | |
11320 | { | |
11321 | bar(); | |
11322 | ; | |
11323 | return 0; | |
11324 | } | |
11325 | _ACEOF | |
11326 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11327 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11328 | (eval $ac_link) 2>conftest.er1 | |
11329 | ac_status=$? | |
11330 | grep -v '^ *+' conftest.er1 >conftest.err | |
11331 | rm -f conftest.er1 | |
11332 | cat conftest.err >&5 | |
11333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11334 | (exit $ac_status); } && | |
1fb2002d | 11335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
7d7b8bfe RH |
11336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11337 | (eval $ac_try) 2>&5 | |
11338 | ac_status=$? | |
11339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11340 | (exit $ac_status); }; } && | |
11341 | { ac_try='test -s conftest$ac_exeext' | |
11342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11343 | (eval $ac_try) 2>&5 | |
11344 | ac_status=$? | |
11345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11346 | (exit $ac_status); }; }; then | |
11347 | have_attribute_alias=yes | |
11348 | else | |
11349 | echo "$as_me: failed program was:" >&5 | |
11350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11351 | ||
11352 | have_attribute_alias=no | |
11353 | fi | |
11354 | rm -f conftest.err conftest.$ac_objext \ | |
11355 | conftest$ac_exeext conftest.$ac_ext | |
11356 | fi | |
11357 | echo "$as_me:$LINENO: result: $have_attribute_alias" >&5 | |
11358 | echo "${ECHO_T}$have_attribute_alias" >&6 | |
11359 | if test $have_attribute_alias = yes; then | |
11360 | ||
11361 | cat >>confdefs.h <<\_ACEOF | |
11362 | #define HAVE_ATTRIBUTE_ALIAS 1 | |
11363 | _ACEOF | |
11364 | ||
11365 | fi | |
11366 | ||
6de9cd9a DN |
11367 | cat >confcache <<\_ACEOF |
11368 | # This file is a shell script that caches the results of configure | |
11369 | # tests run on this system so they can be shared between configure | |
11370 | # scripts and configure runs, see configure's option --config-cache. | |
11371 | # It is not useful on other systems. If it contains results you don't | |
11372 | # want to keep, you may remove or edit it. | |
11373 | # | |
11374 | # config.status only pays attention to the cache file if you give it | |
11375 | # the --recheck option to rerun configure. | |
11376 | # | |
11377 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11378 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11379 | # following values. | |
11380 | ||
11381 | _ACEOF | |
11382 | ||
11383 | # The following way of writing the cache mishandles newlines in values, | |
11384 | # but we know of no workaround that is simple, portable, and efficient. | |
11385 | # So, don't put newlines in cache variables' values. | |
11386 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11387 | # and sets the high bit in the cache file unless we assign to the vars. | |
11388 | { | |
11389 | (set) 2>&1 | | |
11390 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11391 | *ac_space=\ *) | |
11392 | # `set' does not quote correctly, so add quotes (double-quote | |
11393 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11394 | sed -n \ | |
11395 | "s/'/'\\\\''/g; | |
11396 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
11397 | ;; | |
11398 | *) | |
11399 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11400 | sed -n \ | |
11401 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
11402 | ;; | |
11403 | esac; | |
11404 | } | | |
11405 | sed ' | |
11406 | t clear | |
11407 | : clear | |
11408 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11409 | t end | |
11410 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11411 | : end' >>confcache | |
11412 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11413 | if test -w $cache_file; then | |
11414 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
11415 | cat confcache >$cache_file | |
11416 | else | |
11417 | echo "not updating unwritable cache $cache_file" | |
11418 | fi | |
11419 | fi | |
11420 | rm -f confcache | |
11421 | ||
96b8a615 AJ |
11422 | if test ${multilib} = yes; then |
11423 | multilib_arg="--enable-multilib" | |
6de9cd9a | 11424 | else |
96b8a615 | 11425 | multilib_arg= |
6de9cd9a | 11426 | fi |
6de9cd9a | 11427 | |
96b8a615 | 11428 | # Write our Makefile. |
6de9cd9a | 11429 | ac_config_files="$ac_config_files Makefile" |
96b8a615 | 11430 | |
6de9cd9a DN |
11431 | cat >confcache <<\_ACEOF |
11432 | # This file is a shell script that caches the results of configure | |
11433 | # tests run on this system so they can be shared between configure | |
11434 | # scripts and configure runs, see configure's option --config-cache. | |
11435 | # It is not useful on other systems. If it contains results you don't | |
11436 | # want to keep, you may remove or edit it. | |
11437 | # | |
11438 | # config.status only pays attention to the cache file if you give it | |
11439 | # the --recheck option to rerun configure. | |
11440 | # | |
11441 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11442 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11443 | # following values. | |
11444 | ||
11445 | _ACEOF | |
11446 | ||
11447 | # The following way of writing the cache mishandles newlines in values, | |
11448 | # but we know of no workaround that is simple, portable, and efficient. | |
11449 | # So, don't put newlines in cache variables' values. | |
11450 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11451 | # and sets the high bit in the cache file unless we assign to the vars. | |
11452 | { | |
11453 | (set) 2>&1 | | |
11454 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
11455 | *ac_space=\ *) | |
11456 | # `set' does not quote correctly, so add quotes (double-quote | |
11457 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
11458 | sed -n \ | |
11459 | "s/'/'\\\\''/g; | |
11460 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
11461 | ;; | |
11462 | *) | |
11463 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11464 | sed -n \ | |
11465 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
11466 | ;; | |
11467 | esac; | |
11468 | } | | |
11469 | sed ' | |
11470 | t clear | |
11471 | : clear | |
11472 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11473 | t end | |
11474 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11475 | : end' >>confcache | |
11476 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
11477 | if test -w $cache_file; then | |
11478 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
11479 | cat confcache >$cache_file | |
11480 | else | |
11481 | echo "not updating unwritable cache $cache_file" | |
11482 | fi | |
11483 | fi | |
11484 | rm -f confcache | |
11485 | ||
11486 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11487 | # Let make expand exec_prefix. | |
11488 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11489 | ||
11490 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
11491 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
11492 | # trailing colons and then remove the whole line if VPATH becomes empty | |
11493 | # (actually we leave an empty line to preserve line numbers). | |
11494 | if test "x$srcdir" = x.; then | |
11495 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
11496 | s/:*\$(srcdir):*/:/; | |
11497 | s/:*\${srcdir}:*/:/; | |
11498 | s/:*@srcdir@:*/:/; | |
11499 | s/^\([^=]*=[ ]*\):*/\1/; | |
11500 | s/:*$//; | |
11501 | s/^[^=]*=[ ]*$//; | |
11502 | }' | |
11503 | fi | |
11504 | ||
11505 | DEFS=-DHAVE_CONFIG_H | |
11506 | ||
11507 | ac_libobjs= | |
11508 | ac_ltlibobjs= | |
11509 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11510 | # 1. Remove the extension, and $U if already installed. | |
11511 | ac_i=`echo "$ac_i" | | |
11512 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
11513 | # 2. Add them. | |
11514 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
11515 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
11516 | done | |
11517 | LIBOBJS=$ac_libobjs | |
11518 | ||
11519 | LTLIBOBJS=$ac_ltlibobjs | |
11520 | ||
11521 | ||
11522 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
11523 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
11524 | Usually this means the macro was only invoked conditionally." >&5 | |
11525 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
11526 | Usually this means the macro was only invoked conditionally." >&2;} | |
11527 | { (exit 1); exit 1; }; } | |
11528 | fi | |
6de9cd9a DN |
11529 | |
11530 | : ${CONFIG_STATUS=./config.status} | |
11531 | ac_clean_files_save=$ac_clean_files | |
11532 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11533 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
11534 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11535 | cat >$CONFIG_STATUS <<_ACEOF | |
11536 | #! $SHELL | |
11537 | # Generated by $as_me. | |
11538 | # Run this file to recreate the current configuration. | |
11539 | # Compiler output produced by configure, useful for debugging | |
11540 | # configure, is in config.log if it exists. | |
11541 | ||
11542 | debug=false | |
11543 | ac_cs_recheck=false | |
11544 | ac_cs_silent=false | |
11545 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11546 | _ACEOF | |
11547 | ||
11548 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11549 | ## --------------------- ## | |
11550 | ## M4sh Initialization. ## | |
11551 | ## --------------------- ## | |
11552 | ||
11553 | # Be Bourne compatible | |
11554 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
11555 | emulate sh | |
11556 | NULLCMD=: | |
11557 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
11558 | # is contrary to our usage. Disable this feature. | |
11559 | alias -g '${1+"$@"}'='"$@"' | |
11560 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
11561 | set -o posix | |
11562 | fi | |
11563 | DUALCASE=1; export DUALCASE # for MKS sh | |
11564 | ||
11565 | # Support unset when possible. | |
11566 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
11567 | as_unset=unset | |
11568 | else | |
11569 | as_unset=false | |
11570 | fi | |
11571 | ||
11572 | ||
11573 | # Work around bugs in pre-3.0 UWIN ksh. | |
11574 | $as_unset ENV MAIL MAILPATH | |
11575 | PS1='$ ' | |
11576 | PS2='> ' | |
11577 | PS4='+ ' | |
11578 | ||
11579 | # NLS nuisances. | |
11580 | for as_var in \ | |
11581 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
11582 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
11583 | LC_TELEPHONE LC_TIME | |
11584 | do | |
11585 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
11586 | eval $as_var=C; export $as_var | |
11587 | else | |
11588 | $as_unset $as_var | |
11589 | fi | |
11590 | done | |
11591 | ||
11592 | # Required to use basename. | |
11593 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11594 | as_expr=expr | |
11595 | else | |
11596 | as_expr=false | |
11597 | fi | |
11598 | ||
11599 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
11600 | as_basename=basename | |
11601 | else | |
11602 | as_basename=false | |
11603 | fi | |
11604 | ||
11605 | ||
11606 | # Name of the executable. | |
11607 | as_me=`$as_basename "$0" || | |
11608 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
11609 | X"$0" : 'X\(//\)$' \| \ | |
11610 | X"$0" : 'X\(/\)$' \| \ | |
11611 | . : '\(.\)' 2>/dev/null || | |
11612 | echo X/"$0" | | |
11613 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
11614 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
11615 | /^X\/\(\/\).*/{ s//\1/; q; } | |
11616 | s/.*/./; q'` | |
11617 | ||
11618 | ||
11619 | # PATH needs CR, and LINENO needs CR and PATH. | |
11620 | # Avoid depending upon Character Ranges. | |
11621 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
11622 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
11623 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
11624 | as_cr_digits='0123456789' | |
11625 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
11626 | ||
11627 | # The user is always right. | |
11628 | if test "${PATH_SEPARATOR+set}" != set; then | |
11629 | echo "#! /bin/sh" >conf$$.sh | |
11630 | echo "exit 0" >>conf$$.sh | |
11631 | chmod +x conf$$.sh | |
11632 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11633 | PATH_SEPARATOR=';' | |
11634 | else | |
11635 | PATH_SEPARATOR=: | |
11636 | fi | |
11637 | rm -f conf$$.sh | |
11638 | fi | |
11639 | ||
11640 | ||
11641 | as_lineno_1=$LINENO | |
11642 | as_lineno_2=$LINENO | |
11643 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11644 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11645 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
11646 | # Find who we are. Look in the path if we contain no path at all | |
11647 | # relative or not. | |
11648 | case $0 in | |
11649 | *[\\/]* ) as_myself=$0 ;; | |
11650 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11651 | for as_dir in $PATH | |
11652 | do | |
11653 | IFS=$as_save_IFS | |
11654 | test -z "$as_dir" && as_dir=. | |
11655 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
11656 | done | |
11657 | ||
11658 | ;; | |
11659 | esac | |
11660 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
11661 | # in which case we are not to be found in the path. | |
11662 | if test "x$as_myself" = x; then | |
11663 | as_myself=$0 | |
11664 | fi | |
11665 | if test ! -f "$as_myself"; then | |
11666 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
11667 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
11668 | { (exit 1); exit 1; }; } | |
11669 | fi | |
11670 | case $CONFIG_SHELL in | |
11671 | '') | |
11672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11673 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
11674 | do | |
11675 | IFS=$as_save_IFS | |
11676 | test -z "$as_dir" && as_dir=. | |
11677 | for as_base in sh bash ksh sh5; do | |
11678 | case $as_dir in | |
11679 | /*) | |
11680 | if ("$as_dir/$as_base" -c ' | |
11681 | as_lineno_1=$LINENO | |
11682 | as_lineno_2=$LINENO | |
11683 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
11684 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
11685 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
11686 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
11687 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
11688 | CONFIG_SHELL=$as_dir/$as_base | |
11689 | export CONFIG_SHELL | |
11690 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
11691 | fi;; | |
11692 | esac | |
11693 | done | |
11694 | done | |
11695 | ;; | |
11696 | esac | |
11697 | ||
11698 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
11699 | # uniformly replaced by the line number. The first 'sed' inserts a | |
11700 | # line-number line before each line; the second 'sed' does the real | |
11701 | # work. The second script uses 'N' to pair each line-number line | |
11702 | # with the numbered line, and appends trailing '-' during | |
11703 | # substitution so that $LINENO is not a special case at line end. | |
11704 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
11705 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
11706 | sed '=' <$as_myself | | |
11707 | sed ' | |
11708 | N | |
11709 | s,$,-, | |
11710 | : loop | |
11711 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
11712 | t loop | |
11713 | s,-$,, | |
11714 | s,^['$as_cr_digits']*\n,, | |
11715 | ' >$as_me.lineno && | |
11716 | chmod +x $as_me.lineno || | |
11717 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
11718 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
11719 | { (exit 1); exit 1; }; } | |
11720 | ||
11721 | # Don't try to exec as it changes $[0], causing all sort of problems | |
11722 | # (the dirname of $[0] is not the place where we might find the | |
11723 | # original and so on. Autoconf is especially sensible to this). | |
11724 | . ./$as_me.lineno | |
11725 | # Exit status is that of the last command. | |
11726 | exit | |
11727 | } | |
11728 | ||
11729 | ||
11730 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
11731 | *c*,-n*) ECHO_N= ECHO_C=' | |
11732 | ' ECHO_T=' ' ;; | |
11733 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
11734 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
11735 | esac | |
11736 | ||
11737 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
11738 | as_expr=expr | |
11739 | else | |
11740 | as_expr=false | |
11741 | fi | |
11742 | ||
11743 | rm -f conf$$ conf$$.exe conf$$.file | |
11744 | echo >conf$$.file | |
11745 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
11746 | # We could just check for DJGPP; but this test a) works b) is more generic | |
11747 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
11748 | if test -f conf$$.exe; then | |
11749 | # Don't use ln at all; we don't have any links | |
11750 | as_ln_s='cp -p' | |
11751 | else | |
11752 | as_ln_s='ln -s' | |
11753 | fi | |
11754 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
11755 | as_ln_s=ln | |
11756 | else | |
11757 | as_ln_s='cp -p' | |
11758 | fi | |
11759 | rm -f conf$$ conf$$.exe conf$$.file | |
11760 | ||
11761 | if mkdir -p . 2>/dev/null; then | |
11762 | as_mkdir_p=: | |
11763 | else | |
11764 | test -d ./-p && rmdir ./-p | |
11765 | as_mkdir_p=false | |
11766 | fi | |
11767 | ||
11768 | as_executable_p="test -f" | |
11769 | ||
11770 | # Sed expression to map a string onto a valid CPP name. | |
11771 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
11772 | ||
11773 | # Sed expression to map a string onto a valid variable name. | |
11774 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
11775 | ||
11776 | ||
11777 | # IFS | |
11778 | # We need space, tab and new line, in precisely that order. | |
11779 | as_nl=' | |
11780 | ' | |
11781 | IFS=" $as_nl" | |
11782 | ||
11783 | # CDPATH. | |
11784 | $as_unset CDPATH | |
11785 | ||
11786 | exec 6>&1 | |
11787 | ||
11788 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
11789 | # report actual input values of CONFIG_FILES etc. instead of their | |
11790 | # values after options handling. Logging --version etc. is OK. | |
11791 | exec 5>>config.log | |
11792 | { | |
11793 | echo | |
11794 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11795 | ## Running $as_me. ## | |
11796 | _ASBOX | |
11797 | } >&5 | |
11798 | cat >&5 <<_CSEOF | |
11799 | ||
11800 | This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was | |
11801 | generated by GNU Autoconf 2.59. Invocation command line was | |
11802 | ||
11803 | CONFIG_FILES = $CONFIG_FILES | |
11804 | CONFIG_HEADERS = $CONFIG_HEADERS | |
11805 | CONFIG_LINKS = $CONFIG_LINKS | |
11806 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
11807 | $ $0 $@ | |
11808 | ||
11809 | _CSEOF | |
11810 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
11811 | echo >&5 | |
11812 | _ACEOF | |
11813 | ||
11814 | # Files that config.status was made for. | |
11815 | if test -n "$ac_config_files"; then | |
11816 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
11817 | fi | |
11818 | ||
11819 | if test -n "$ac_config_headers"; then | |
11820 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
11821 | fi | |
11822 | ||
11823 | if test -n "$ac_config_links"; then | |
11824 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
11825 | fi | |
11826 | ||
11827 | if test -n "$ac_config_commands"; then | |
11828 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
11829 | fi | |
11830 | ||
11831 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11832 | ||
11833 | ac_cs_usage="\ | |
11834 | \`$as_me' instantiates files from templates according to the | |
11835 | current configuration. | |
11836 | ||
11837 | Usage: $0 [OPTIONS] [FILE]... | |
11838 | ||
11839 | -h, --help print this help, then exit | |
11840 | -V, --version print version number, then exit | |
11841 | -q, --quiet do not print progress messages | |
11842 | -d, --debug don't remove temporary files | |
11843 | --recheck update $as_me by reconfiguring in the same conditions | |
11844 | --file=FILE[:TEMPLATE] | |
11845 | instantiate the configuration file FILE | |
11846 | --header=FILE[:TEMPLATE] | |
11847 | instantiate the configuration header FILE | |
11848 | ||
11849 | Configuration files: | |
11850 | $config_files | |
11851 | ||
11852 | Configuration headers: | |
11853 | $config_headers | |
11854 | ||
11855 | Configuration commands: | |
11856 | $config_commands | |
11857 | ||
11858 | Report bugs to <bug-autoconf@gnu.org>." | |
11859 | _ACEOF | |
11860 | ||
11861 | cat >>$CONFIG_STATUS <<_ACEOF | |
11862 | ac_cs_version="\\ | |
11863 | GNU Fortran Runtime Library config.status 0.2 | |
11864 | configured by $0, generated by GNU Autoconf 2.59, | |
11865 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
11866 | ||
11867 | Copyright (C) 2003 Free Software Foundation, Inc. | |
11868 | This config.status script is free software; the Free Software Foundation | |
11869 | gives unlimited permission to copy, distribute and modify it." | |
11870 | srcdir=$srcdir | |
11871 | INSTALL="$INSTALL" | |
11872 | _ACEOF | |
11873 | ||
11874 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11875 | # If no file are specified by the user, then we need to provide default | |
11876 | # value. By we need to know if files were specified by the user. | |
11877 | ac_need_defaults=: | |
11878 | while test $# != 0 | |
11879 | do | |
11880 | case $1 in | |
11881 | --*=*) | |
11882 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
11883 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
11884 | ac_shift=: | |
11885 | ;; | |
11886 | -*) | |
11887 | ac_option=$1 | |
11888 | ac_optarg=$2 | |
11889 | ac_shift=shift | |
11890 | ;; | |
11891 | *) # This is not an option, so the user has probably given explicit | |
11892 | # arguments. | |
11893 | ac_option=$1 | |
11894 | ac_need_defaults=false;; | |
11895 | esac | |
11896 | ||
11897 | case $ac_option in | |
11898 | # Handling of the options. | |
11899 | _ACEOF | |
11900 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11901 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11902 | ac_cs_recheck=: ;; | |
11903 | --version | --vers* | -V ) | |
11904 | echo "$ac_cs_version"; exit 0 ;; | |
11905 | --he | --h) | |
11906 | # Conflict between --help and --header | |
11907 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
11908 | Try \`$0 --help' for more information." >&5 | |
11909 | echo "$as_me: error: ambiguous option: $1 | |
11910 | Try \`$0 --help' for more information." >&2;} | |
11911 | { (exit 1); exit 1; }; };; | |
11912 | --help | --hel | -h ) | |
11913 | echo "$ac_cs_usage"; exit 0 ;; | |
11914 | --debug | --d* | -d ) | |
11915 | debug=: ;; | |
11916 | --file | --fil | --fi | --f ) | |
11917 | $ac_shift | |
11918 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
11919 | ac_need_defaults=false;; | |
11920 | --header | --heade | --head | --hea ) | |
11921 | $ac_shift | |
11922 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
11923 | ac_need_defaults=false;; | |
11924 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
11925 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11926 | ac_cs_silent=: ;; | |
11927 | ||
11928 | # This is an error. | |
11929 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
11930 | Try \`$0 --help' for more information." >&5 | |
11931 | echo "$as_me: error: unrecognized option: $1 | |
11932 | Try \`$0 --help' for more information." >&2;} | |
11933 | { (exit 1); exit 1; }; } ;; | |
11934 | ||
11935 | *) ac_config_targets="$ac_config_targets $1" ;; | |
11936 | ||
11937 | esac | |
11938 | shift | |
11939 | done | |
11940 | ||
11941 | ac_configure_extra_args= | |
11942 | ||
11943 | if $ac_cs_silent; then | |
11944 | exec 6>/dev/null | |
11945 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11946 | fi | |
11947 | ||
11948 | _ACEOF | |
11949 | cat >>$CONFIG_STATUS <<_ACEOF | |
11950 | if \$ac_cs_recheck; then | |
11951 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
11952 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
11953 | fi | |
11954 | ||
11955 | _ACEOF | |
11956 | ||
11957 | cat >>$CONFIG_STATUS <<_ACEOF | |
11958 | # | |
11959 | # INIT-COMMANDS section. | |
11960 | # | |
11961 | ||
96b8a615 AJ |
11962 | |
11963 | srcdir="$srcdir" | |
11964 | host="$host" | |
11965 | target="$target" | |
11966 | with_multisubdir="$with_multisubdir" | |
11967 | with_multisrctop="$with_multisrctop" | |
11968 | with_target_subdir="$with_target_subdir" | |
11969 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
11970 | multi_basedir="$multi_basedir" | |
11971 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
11972 | CC="$CC" | |
6de9cd9a DN |
11973 | |
11974 | _ACEOF | |
11975 | ||
11976 | ||
11977 | ||
11978 | cat >>$CONFIG_STATUS <<\_ACEOF | |
11979 | for ac_config_target in $ac_config_targets | |
11980 | do | |
11981 | case "$ac_config_target" in | |
11982 | # Handling of arguments. | |
11983 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
96b8a615 | 11984 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
6de9cd9a DN |
11985 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
11986 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
11987 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
11988 | { (exit 1); exit 1; }; };; | |
11989 | esac | |
11990 | done | |
11991 | ||
11992 | # If the user did not use the arguments to specify the items to instantiate, | |
11993 | # then the envvar interface is used. Set only those that are not. | |
11994 | # We use the long form for the default assignment because of an extremely | |
11995 | # bizarre bug on SunOS 4.1.3. | |
11996 | if $ac_need_defaults; then | |
11997 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
11998 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
11999 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12000 | fi | |
12001 | ||
12002 | # Have a temporary directory for convenience. Make it in the build tree | |
12003 | # simply because there is no reason to put it here, and in addition, | |
12004 | # creating and moving files from /tmp can sometimes cause problems. | |
12005 | # Create a temporary directory, and hook for its removal unless debugging. | |
12006 | $debug || | |
12007 | { | |
12008 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
12009 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
12010 | } | |
12011 | ||
12012 | # Create a (secure) tmp directory for tmp files. | |
12013 | ||
12014 | { | |
12015 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
12016 | test -n "$tmp" && test -d "$tmp" | |
12017 | } || | |
12018 | { | |
12019 | tmp=./confstat$$-$RANDOM | |
12020 | (umask 077 && mkdir $tmp) | |
12021 | } || | |
12022 | { | |
12023 | echo "$me: cannot create a temporary directory in ." >&2 | |
12024 | { (exit 1); exit 1; } | |
12025 | } | |
12026 | ||
12027 | _ACEOF | |
12028 | ||
12029 | cat >>$CONFIG_STATUS <<_ACEOF | |
12030 | ||
12031 | # | |
12032 | # CONFIG_FILES section. | |
12033 | # | |
12034 | ||
12035 | # No need to generate the scripts if there are no CONFIG_FILES. | |
12036 | # This happens for instance when ./config.status config.h | |
12037 | if test -n "\$CONFIG_FILES"; then | |
12038 | # Protect against being on the right side of a sed subst in config.status. | |
12039 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
12040 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
12041 | s,@SHELL@,$SHELL,;t t | |
12042 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
12043 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
12044 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
12045 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
12046 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
12047 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
12048 | s,@exec_prefix@,$exec_prefix,;t t | |
12049 | s,@prefix@,$prefix,;t t | |
12050 | s,@program_transform_name@,$program_transform_name,;t t | |
12051 | s,@bindir@,$bindir,;t t | |
12052 | s,@sbindir@,$sbindir,;t t | |
12053 | s,@libexecdir@,$libexecdir,;t t | |
12054 | s,@datadir@,$datadir,;t t | |
12055 | s,@sysconfdir@,$sysconfdir,;t t | |
12056 | s,@sharedstatedir@,$sharedstatedir,;t t | |
12057 | s,@localstatedir@,$localstatedir,;t t | |
12058 | s,@libdir@,$libdir,;t t | |
12059 | s,@includedir@,$includedir,;t t | |
12060 | s,@oldincludedir@,$oldincludedir,;t t | |
12061 | s,@infodir@,$infodir,;t t | |
12062 | s,@mandir@,$mandir,;t t | |
12063 | s,@build_alias@,$build_alias,;t t | |
12064 | s,@host_alias@,$host_alias,;t t | |
12065 | s,@target_alias@,$target_alias,;t t | |
12066 | s,@DEFS@,$DEFS,;t t | |
12067 | s,@ECHO_C@,$ECHO_C,;t t | |
12068 | s,@ECHO_N@,$ECHO_N,;t t | |
12069 | s,@ECHO_T@,$ECHO_T,;t t | |
12070 | s,@LIBS@,$LIBS,;t t | |
96b8a615 AJ |
12071 | s,@build@,$build,;t t |
12072 | s,@build_cpu@,$build_cpu,;t t | |
12073 | s,@build_vendor@,$build_vendor,;t t | |
12074 | s,@build_os@,$build_os,;t t | |
12075 | s,@host@,$host,;t t | |
12076 | s,@host_cpu@,$host_cpu,;t t | |
12077 | s,@host_vendor@,$host_vendor,;t t | |
12078 | s,@host_os@,$host_os,;t t | |
12079 | s,@target@,$target,;t t | |
12080 | s,@target_cpu@,$target_cpu,;t t | |
12081 | s,@target_vendor@,$target_vendor,;t t | |
12082 | s,@target_os@,$target_os,;t t | |
6de9cd9a DN |
12083 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
12084 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
12085 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
12086 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
12087 | s,@PACKAGE@,$PACKAGE,;t t | |
12088 | s,@VERSION@,$VERSION,;t t | |
12089 | s,@ACLOCAL@,$ACLOCAL,;t t | |
12090 | s,@AUTOCONF@,$AUTOCONF,;t t | |
12091 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
12092 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
12093 | s,@MAKEINFO@,$MAKEINFO,;t t | |
6de9cd9a DN |
12094 | s,@install_sh@,$install_sh,;t t |
12095 | s,@STRIP@,$STRIP,;t t | |
12096 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
12097 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
12098 | s,@mkdir_p@,$mkdir_p,;t t | |
12099 | s,@AWK@,$AWK,;t t | |
12100 | s,@SET_MAKE@,$SET_MAKE,;t t | |
12101 | s,@am__leading_dot@,$am__leading_dot,;t t | |
d49ec2d1 KC |
12102 | s,@AMTAR@,$AMTAR,;t t |
12103 | s,@am__tar@,$am__tar,;t t | |
12104 | s,@am__untar@,$am__untar,;t t | |
6de9cd9a DN |
12105 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
12106 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
12107 | s,@MAINT@,$MAINT,;t t | |
96b8a615 | 12108 | s,@multi_basedir@,$multi_basedir,;t t |
96b8a615 AJ |
12109 | s,@toolexecdir@,$toolexecdir,;t t |
12110 | s,@toolexeclibdir@,$toolexeclibdir,;t t | |
6de9cd9a | 12111 | s,@CC@,$CC,;t t |
6de9cd9a DN |
12112 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
12113 | s,@EXEEXT@,$EXEEXT,;t t | |
12114 | s,@OBJEXT@,$OBJEXT,;t t | |
96b8a615 AJ |
12115 | s,@CFLAGS@,$CFLAGS,;t t |
12116 | s,@AS@,$AS,;t t | |
12117 | s,@ac_ct_AS@,$ac_ct_AS,;t t | |
12118 | s,@AR@,$AR,;t t | |
12119 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
12120 | s,@RANLIB@,$RANLIB,;t t | |
12121 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
12122 | s,@LN_S@,$LN_S,;t t | |
12123 | s,@LIBTOOL@,$LIBTOOL,;t t | |
12124 | s,@enable_shared@,$enable_shared,;t t | |
12125 | s,@enable_static@,$enable_static,;t t | |
c7a35fe9 AS |
12126 | s,@FC@,$FC,;t t |
12127 | s,@FCFLAGS@,$FCFLAGS,;t t | |
96b8a615 | 12128 | s,@LDFLAGS@,$LDFLAGS,;t t |
c7a35fe9 | 12129 | s,@ac_ct_FC@,$ac_ct_FC,;t t |
e87045f3 | 12130 | s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t |
6de9cd9a | 12131 | s,@CPP@,$CPP,;t t |
96b8a615 | 12132 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
6de9cd9a DN |
12133 | s,@EGREP@,$EGREP,;t t |
12134 | s,@MATH_OBJ@,$MATH_OBJ,;t t | |
6de9cd9a DN |
12135 | s,@LIBOBJS@,$LIBOBJS,;t t |
12136 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
12137 | CEOF | |
12138 | ||
12139 | _ACEOF | |
12140 | ||
12141 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12142 | # Split the substitutions into bite-sized pieces for seds with | |
12143 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
12144 | ac_max_sed_lines=48 | |
12145 | ac_sed_frag=1 # Number of current file. | |
12146 | ac_beg=1 # First line for current file. | |
12147 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
12148 | ac_more_lines=: | |
12149 | ac_sed_cmds= | |
12150 | while $ac_more_lines; do | |
12151 | if test $ac_beg -gt 1; then | |
12152 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
12153 | else | |
12154 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
12155 | fi | |
12156 | if test ! -s $tmp/subs.frag; then | |
12157 | ac_more_lines=false | |
12158 | else | |
12159 | # The purpose of the label and of the branching condition is to | |
12160 | # speed up the sed processing (if there are no `@' at all, there | |
12161 | # is no need to browse any of the substitutions). | |
12162 | # These are the two extra sed commands mentioned above. | |
12163 | (echo ':t | |
12164 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
12165 | if test -z "$ac_sed_cmds"; then | |
12166 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
12167 | else | |
12168 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
12169 | fi | |
12170 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
12171 | ac_beg=$ac_end | |
12172 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
12173 | fi | |
12174 | done | |
12175 | if test -z "$ac_sed_cmds"; then | |
12176 | ac_sed_cmds=cat | |
12177 | fi | |
12178 | fi # test -n "$CONFIG_FILES" | |
12179 | ||
12180 | _ACEOF | |
12181 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12182 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
12183 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12184 | case $ac_file in | |
12185 | - | *:- | *:-:* ) # input from stdin | |
12186 | cat >$tmp/stdin | |
12187 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12188 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12189 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12190 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12191 | * ) ac_file_in=$ac_file.in ;; | |
12192 | esac | |
12193 | ||
12194 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
12195 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
12196 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12197 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12198 | X"$ac_file" : 'X\(//\)$' \| \ | |
12199 | X"$ac_file" : 'X\(/\)' \| \ | |
12200 | . : '\(.\)' 2>/dev/null || | |
12201 | echo X"$ac_file" | | |
12202 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12203 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12204 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12205 | /^X\(\/\).*/{ s//\1/; q; } | |
12206 | s/.*/./; q'` | |
12207 | { if $as_mkdir_p; then | |
12208 | mkdir -p "$ac_dir" | |
12209 | else | |
12210 | as_dir="$ac_dir" | |
12211 | as_dirs= | |
12212 | while test ! -d "$as_dir"; do | |
12213 | as_dirs="$as_dir $as_dirs" | |
12214 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12215 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12216 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12217 | X"$as_dir" : 'X\(//\)$' \| \ | |
12218 | X"$as_dir" : 'X\(/\)' \| \ | |
12219 | . : '\(.\)' 2>/dev/null || | |
12220 | echo X"$as_dir" | | |
12221 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12222 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12223 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12224 | /^X\(\/\).*/{ s//\1/; q; } | |
12225 | s/.*/./; q'` | |
12226 | done | |
12227 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12228 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12229 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12230 | { (exit 1); exit 1; }; }; } | |
12231 | ||
12232 | ac_builddir=. | |
12233 | ||
12234 | if test "$ac_dir" != .; then | |
12235 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
12236 | # A "../" for each directory in $ac_dir_suffix. | |
12237 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
12238 | else | |
12239 | ac_dir_suffix= ac_top_builddir= | |
12240 | fi | |
12241 | ||
12242 | case $srcdir in | |
12243 | .) # No --srcdir option. We are building in place. | |
12244 | ac_srcdir=. | |
12245 | if test -z "$ac_top_builddir"; then | |
12246 | ac_top_srcdir=. | |
12247 | else | |
12248 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
12249 | fi ;; | |
12250 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
12251 | ac_srcdir=$srcdir$ac_dir_suffix; | |
12252 | ac_top_srcdir=$srcdir ;; | |
12253 | *) # Relative path. | |
12254 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
12255 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
12256 | esac | |
12257 | ||
12258 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
12259 | # the directories may not exist. | |
12260 | case `pwd` in | |
12261 | .) ac_abs_builddir="$ac_dir";; | |
12262 | *) | |
12263 | case "$ac_dir" in | |
12264 | .) ac_abs_builddir=`pwd`;; | |
12265 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
12266 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
12267 | esac;; | |
12268 | esac | |
12269 | case $ac_abs_builddir in | |
12270 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12271 | *) | |
12272 | case ${ac_top_builddir}. in | |
12273 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
12274 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12275 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
12276 | esac;; | |
12277 | esac | |
12278 | case $ac_abs_builddir in | |
12279 | .) ac_abs_srcdir=$ac_srcdir;; | |
12280 | *) | |
12281 | case $ac_srcdir in | |
12282 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
12283 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
12284 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
12285 | esac;; | |
12286 | esac | |
12287 | case $ac_abs_builddir in | |
12288 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12289 | *) | |
12290 | case $ac_top_srcdir in | |
12291 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
12292 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12293 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
12294 | esac;; | |
12295 | esac | |
12296 | ||
12297 | ||
12298 | case $INSTALL in | |
12299 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
12300 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
12301 | esac | |
12302 | ||
12303 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12304 | # use $as_me), people would be surprised to read: | |
12305 | # /* config.h. Generated by config.status. */ | |
12306 | if test x"$ac_file" = x-; then | |
12307 | configure_input= | |
12308 | else | |
12309 | configure_input="$ac_file. " | |
12310 | fi | |
12311 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
12312 | sed 's,.*/,,'` by configure." | |
12313 | ||
12314 | # First look for the input files in the build tree, otherwise in the | |
12315 | # src tree. | |
12316 | ac_file_inputs=`IFS=: | |
12317 | for f in $ac_file_in; do | |
12318 | case $f in | |
12319 | -) echo $tmp/stdin ;; | |
12320 | [\\/$]*) | |
12321 | # Absolute (can't be DOS-style, as IFS=:) | |
12322 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12323 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12324 | { (exit 1); exit 1; }; } | |
12325 | echo "$f";; | |
12326 | *) # Relative | |
12327 | if test -f "$f"; then | |
12328 | # Build tree | |
12329 | echo "$f" | |
12330 | elif test -f "$srcdir/$f"; then | |
12331 | # Source tree | |
12332 | echo "$srcdir/$f" | |
12333 | else | |
12334 | # /dev/null tree | |
12335 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12336 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12337 | { (exit 1); exit 1; }; } | |
12338 | fi;; | |
12339 | esac | |
12340 | done` || { (exit 1); exit 1; } | |
1fb2002d FXC |
12341 | |
12342 | if test x"$ac_file" != x-; then | |
12343 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
12344 | echo "$as_me: creating $ac_file" >&6;} | |
12345 | rm -f "$ac_file" | |
12346 | fi | |
6de9cd9a DN |
12347 | _ACEOF |
12348 | cat >>$CONFIG_STATUS <<_ACEOF | |
12349 | sed "$ac_vpsub | |
12350 | $extrasub | |
12351 | _ACEOF | |
12352 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12353 | :t | |
12354 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
12355 | s,@configure_input@,$configure_input,;t t | |
12356 | s,@srcdir@,$ac_srcdir,;t t | |
12357 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
12358 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
12359 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
12360 | s,@builddir@,$ac_builddir,;t t | |
12361 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
12362 | s,@top_builddir@,$ac_top_builddir,;t t | |
12363 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
12364 | s,@INSTALL@,$ac_INSTALL,;t t | |
12365 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
12366 | rm -f $tmp/stdin | |
12367 | if test x"$ac_file" != x-; then | |
12368 | mv $tmp/out $ac_file | |
12369 | else | |
12370 | cat $tmp/out | |
12371 | rm -f $tmp/out | |
12372 | fi | |
12373 | ||
12374 | done | |
12375 | _ACEOF | |
12376 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12377 | ||
12378 | # | |
12379 | # CONFIG_HEADER section. | |
12380 | # | |
12381 | ||
12382 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
12383 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
12384 | # | |
12385 | # ac_d sets the value in "#define NAME VALUE" lines. | |
12386 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
12387 | ac_dB='[ ].*$,\1#\2' | |
12388 | ac_dC=' ' | |
12389 | ac_dD=',;t' | |
12390 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
12391 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
12392 | ac_uB='$,\1#\2define\3' | |
12393 | ac_uC=' ' | |
12394 | ac_uD=',;t' | |
12395 | ||
12396 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
12397 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
12398 | case $ac_file in | |
12399 | - | *:- | *:-:* ) # input from stdin | |
12400 | cat >$tmp/stdin | |
12401 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12402 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12403 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12404 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
12405 | * ) ac_file_in=$ac_file.in ;; | |
12406 | esac | |
12407 | ||
12408 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
12409 | echo "$as_me: creating $ac_file" >&6;} | |
12410 | ||
12411 | # First look for the input files in the build tree, otherwise in the | |
12412 | # src tree. | |
12413 | ac_file_inputs=`IFS=: | |
12414 | for f in $ac_file_in; do | |
12415 | case $f in | |
12416 | -) echo $tmp/stdin ;; | |
12417 | [\\/$]*) | |
12418 | # Absolute (can't be DOS-style, as IFS=:) | |
12419 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12420 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12421 | { (exit 1); exit 1; }; } | |
12422 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
12423 | echo "$f";; | |
12424 | *) # Relative | |
12425 | if test -f "$f"; then | |
12426 | # Build tree | |
12427 | echo "$f" | |
12428 | elif test -f "$srcdir/$f"; then | |
12429 | # Source tree | |
12430 | echo "$srcdir/$f" | |
12431 | else | |
12432 | # /dev/null tree | |
12433 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
12434 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
12435 | { (exit 1); exit 1; }; } | |
12436 | fi;; | |
12437 | esac | |
12438 | done` || { (exit 1); exit 1; } | |
12439 | # Remove the trailing spaces. | |
12440 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
12441 | ||
12442 | _ACEOF | |
12443 | ||
12444 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
12445 | # `conftest.undefs', that substitutes the proper values into | |
12446 | # config.h.in to produce config.h. The first handles `#define' | |
12447 | # templates, and the second `#undef' templates. | |
12448 | # And first: Protect against being on the right side of a sed subst in | |
12449 | # config.status. Protect against being in an unquoted here document | |
12450 | # in config.status. | |
12451 | rm -f conftest.defines conftest.undefs | |
12452 | # Using a here document instead of a string reduces the quoting nightmare. | |
12453 | # Putting comments in sed scripts is not portable. | |
12454 | # | |
12455 | # `end' is used to avoid that the second main sed command (meant for | |
12456 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
12457 | # See the Autoconf documentation for `clear'. | |
12458 | cat >confdef2sed.sed <<\_ACEOF | |
12459 | s/[\\&,]/\\&/g | |
12460 | s,[\\$`],\\&,g | |
12461 | t clear | |
12462 | : clear | |
12463 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
12464 | t end | |
12465 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
12466 | : end | |
12467 | _ACEOF | |
12468 | # If some macros were called several times there might be several times | |
12469 | # the same #defines, which is useless. Nevertheless, we may not want to | |
12470 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
12471 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
12472 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
12473 | rm -f confdef2sed.sed | |
12474 | ||
12475 | # This sed command replaces #undef with comments. This is necessary, for | |
12476 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
12477 | # on some systems where configure will not decide to define it. | |
12478 | cat >>conftest.undefs <<\_ACEOF | |
12479 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
12480 | _ACEOF | |
12481 | ||
12482 | # Break up conftest.defines because some shells have a limit on the size | |
12483 | # of here documents, and old seds have small limits too (100 cmds). | |
12484 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
12485 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
12486 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
12487 | echo ' :' >>$CONFIG_STATUS | |
12488 | rm -f conftest.tail | |
12489 | while grep . conftest.defines >/dev/null | |
12490 | do | |
12491 | # Write a limited-size here document to $tmp/defines.sed. | |
12492 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
12493 | # Speed up: don't consider the non `#define' lines. | |
12494 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
12495 | # Work around the forget-to-reset-the-flag bug. | |
12496 | echo 't clr' >>$CONFIG_STATUS | |
12497 | echo ': clr' >>$CONFIG_STATUS | |
12498 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
12499 | echo 'CEOF | |
12500 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
12501 | rm -f $tmp/in | |
12502 | mv $tmp/out $tmp/in | |
12503 | ' >>$CONFIG_STATUS | |
12504 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
12505 | rm -f conftest.defines | |
12506 | mv conftest.tail conftest.defines | |
12507 | done | |
12508 | rm -f conftest.defines | |
12509 | echo ' fi # grep' >>$CONFIG_STATUS | |
12510 | echo >>$CONFIG_STATUS | |
12511 | ||
12512 | # Break up conftest.undefs because some shells have a limit on the size | |
12513 | # of here documents, and old seds have small limits too (100 cmds). | |
12514 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
12515 | rm -f conftest.tail | |
12516 | while grep . conftest.undefs >/dev/null | |
12517 | do | |
12518 | # Write a limited-size here document to $tmp/undefs.sed. | |
12519 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
12520 | # Speed up: don't consider the non `#undef' | |
12521 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
12522 | # Work around the forget-to-reset-the-flag bug. | |
12523 | echo 't clr' >>$CONFIG_STATUS | |
12524 | echo ': clr' >>$CONFIG_STATUS | |
12525 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
12526 | echo 'CEOF | |
12527 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
12528 | rm -f $tmp/in | |
12529 | mv $tmp/out $tmp/in | |
12530 | ' >>$CONFIG_STATUS | |
12531 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
12532 | rm -f conftest.undefs | |
12533 | mv conftest.tail conftest.undefs | |
12534 | done | |
12535 | rm -f conftest.undefs | |
12536 | ||
12537 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12538 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
12539 | # use $as_me), people would be surprised to read: | |
12540 | # /* config.h. Generated by config.status. */ | |
12541 | if test x"$ac_file" = x-; then | |
12542 | echo "/* Generated by configure. */" >$tmp/config.h | |
12543 | else | |
12544 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
12545 | fi | |
12546 | cat $tmp/in >>$tmp/config.h | |
12547 | rm -f $tmp/in | |
12548 | if test x"$ac_file" != x-; then | |
12549 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
12550 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
12551 | echo "$as_me: $ac_file is unchanged" >&6;} | |
12552 | else | |
12553 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
12554 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12555 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
12556 | X"$ac_file" : 'X\(//\)$' \| \ | |
12557 | X"$ac_file" : 'X\(/\)' \| \ | |
12558 | . : '\(.\)' 2>/dev/null || | |
12559 | echo X"$ac_file" | | |
12560 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12561 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12562 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12563 | /^X\(\/\).*/{ s//\1/; q; } | |
12564 | s/.*/./; q'` | |
12565 | { if $as_mkdir_p; then | |
12566 | mkdir -p "$ac_dir" | |
12567 | else | |
12568 | as_dir="$ac_dir" | |
12569 | as_dirs= | |
12570 | while test ! -d "$as_dir"; do | |
12571 | as_dirs="$as_dir $as_dirs" | |
12572 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12573 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12574 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12575 | X"$as_dir" : 'X\(//\)$' \| \ | |
12576 | X"$as_dir" : 'X\(/\)' \| \ | |
12577 | . : '\(.\)' 2>/dev/null || | |
12578 | echo X"$as_dir" | | |
12579 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12580 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12581 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12582 | /^X\(\/\).*/{ s//\1/; q; } | |
12583 | s/.*/./; q'` | |
12584 | done | |
12585 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12586 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12587 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12588 | { (exit 1); exit 1; }; }; } | |
12589 | ||
12590 | rm -f $ac_file | |
12591 | mv $tmp/config.h $ac_file | |
12592 | fi | |
12593 | else | |
12594 | cat $tmp/config.h | |
12595 | rm -f $tmp/config.h | |
12596 | fi | |
12597 | # Compute $ac_file's index in $config_headers. | |
12598 | _am_stamp_count=1 | |
12599 | for _am_header in $config_headers :; do | |
12600 | case $_am_header in | |
12601 | $ac_file | $ac_file:* ) | |
12602 | break ;; | |
12603 | * ) | |
12604 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
12605 | esac | |
12606 | done | |
12607 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
12608 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12609 | X$ac_file : 'X\(//\)[^/]' \| \ | |
12610 | X$ac_file : 'X\(//\)$' \| \ | |
12611 | X$ac_file : 'X\(/\)' \| \ | |
12612 | . : '\(.\)' 2>/dev/null || | |
12613 | echo X$ac_file | | |
12614 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12615 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12616 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12617 | /^X\(\/\).*/{ s//\1/; q; } | |
12618 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
12619 | done | |
12620 | _ACEOF | |
12621 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12622 | ||
12623 | # | |
12624 | # CONFIG_COMMANDS section. | |
12625 | # | |
12626 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
12627 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
12628 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
12629 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
12630 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12631 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
12632 | X"$ac_dest" : 'X\(//\)$' \| \ | |
12633 | X"$ac_dest" : 'X\(/\)' \| \ | |
12634 | . : '\(.\)' 2>/dev/null || | |
12635 | echo X"$ac_dest" | | |
12636 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12637 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12638 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12639 | /^X\(\/\).*/{ s//\1/; q; } | |
12640 | s/.*/./; q'` | |
12641 | { if $as_mkdir_p; then | |
12642 | mkdir -p "$ac_dir" | |
12643 | else | |
12644 | as_dir="$ac_dir" | |
12645 | as_dirs= | |
12646 | while test ! -d "$as_dir"; do | |
12647 | as_dirs="$as_dir $as_dirs" | |
12648 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
12649 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12650 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12651 | X"$as_dir" : 'X\(//\)$' \| \ | |
12652 | X"$as_dir" : 'X\(/\)' \| \ | |
12653 | . : '\(.\)' 2>/dev/null || | |
12654 | echo X"$as_dir" | | |
12655 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
12656 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
12657 | /^X\(\/\/\)$/{ s//\1/; q; } | |
12658 | /^X\(\/\).*/{ s//\1/; q; } | |
12659 | s/.*/./; q'` | |
12660 | done | |
12661 | test ! -n "$as_dirs" || mkdir $as_dirs | |
12662 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
12663 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
12664 | { (exit 1); exit 1; }; }; } | |
12665 | ||
12666 | ac_builddir=. | |
12667 | ||
12668 | if test "$ac_dir" != .; then | |
12669 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
12670 | # A "../" for each directory in $ac_dir_suffix. | |
12671 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
12672 | else | |
12673 | ac_dir_suffix= ac_top_builddir= | |
12674 | fi | |
12675 | ||
12676 | case $srcdir in | |
12677 | .) # No --srcdir option. We are building in place. | |
12678 | ac_srcdir=. | |
12679 | if test -z "$ac_top_builddir"; then | |
12680 | ac_top_srcdir=. | |
12681 | else | |
12682 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
12683 | fi ;; | |
12684 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
12685 | ac_srcdir=$srcdir$ac_dir_suffix; | |
12686 | ac_top_srcdir=$srcdir ;; | |
12687 | *) # Relative path. | |
12688 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
12689 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
12690 | esac | |
12691 | ||
12692 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
12693 | # the directories may not exist. | |
12694 | case `pwd` in | |
12695 | .) ac_abs_builddir="$ac_dir";; | |
12696 | *) | |
12697 | case "$ac_dir" in | |
12698 | .) ac_abs_builddir=`pwd`;; | |
12699 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
12700 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
12701 | esac;; | |
12702 | esac | |
12703 | case $ac_abs_builddir in | |
12704 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12705 | *) | |
12706 | case ${ac_top_builddir}. in | |
12707 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
12708 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
12709 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
12710 | esac;; | |
12711 | esac | |
12712 | case $ac_abs_builddir in | |
12713 | .) ac_abs_srcdir=$ac_srcdir;; | |
12714 | *) | |
12715 | case $ac_srcdir in | |
12716 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
12717 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
12718 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
12719 | esac;; | |
12720 | esac | |
12721 | case $ac_abs_builddir in | |
12722 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12723 | *) | |
12724 | case $ac_top_srcdir in | |
12725 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
12726 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
12727 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
12728 | esac;; | |
12729 | esac | |
12730 | ||
12731 | ||
12732 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
12733 | echo "$as_me: executing $ac_dest commands" >&6;} | |
12734 | case $ac_dest in | |
96b8a615 AJ |
12735 | default-1 ) |
12736 | # Only add multilib support code if we just rebuilt the top-level | |
12737 | # Makefile. | |
12738 | case " $CONFIG_FILES " in | |
12739 | *" Makefile "*) | |
12740 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
12741 | ;; | |
12742 | esac ;; | |
6de9cd9a DN |
12743 | esac |
12744 | done | |
12745 | _ACEOF | |
12746 | ||
12747 | cat >>$CONFIG_STATUS <<\_ACEOF | |
12748 | ||
12749 | { (exit 0); exit 0; } | |
12750 | _ACEOF | |
12751 | chmod +x $CONFIG_STATUS | |
12752 | ac_clean_files=$ac_clean_files_save | |
12753 | ||
12754 | ||
12755 | # configure is writing to config.log, and then calls config.status. | |
12756 | # config.status does its own redirection, appending to config.log. | |
12757 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
12758 | # by configure, so config.status won't be able to write to it; its | |
12759 | # output is simply discarded. So we exec the FD to /dev/null, | |
12760 | # effectively closing config.log, so it can be properly (re)opened and | |
12761 | # appended to by config.status. When coming back to configure, we | |
12762 | # need to make the FD available again. | |
12763 | if test "$no_create" != yes; then | |
12764 | ac_cs_success=: | |
12765 | ac_config_status_args= | |
12766 | test "$silent" = yes && | |
12767 | ac_config_status_args="$ac_config_status_args --quiet" | |
12768 | exec 5>/dev/null | |
12769 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
12770 | exec 5>>config.log | |
12771 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
12772 | # would make configure fail if this is the last instruction. | |
12773 | $ac_cs_success || { (exit 1); exit 1; } | |
12774 | fi | |
12775 |