]>
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 | ||
944b8b35 | 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 AM_FCFLAGS AM_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 FPU_HOST_HEADER 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 |
6de9cd9a DN |
863 | |
864 | Optional Packages: | |
865 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
866 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
867 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
868 | --with-pic try to use only PIC/non-PIC objects default=use both | |
869 | ||
870 | Some influential environment variables: | |
871 | CC C compiler command | |
872 | CFLAGS C compiler flags | |
873 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
874 | nonstandard directory <lib dir> | |
875 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
876 | headers in a nonstandard directory <include dir> | |
c7a35fe9 AS |
877 | FC Fortran compiler command |
878 | FCFLAGS Fortran compiler flags | |
6de9cd9a DN |
879 | CPP C preprocessor |
880 | ||
881 | Use these variables to override the choices made by `configure' or to help | |
882 | it to find libraries and programs with nonstandard names/locations. | |
883 | ||
884 | _ACEOF | |
885 | fi | |
886 | ||
887 | if test "$ac_init_help" = "recursive"; then | |
888 | # If there are subdirs, report their specific --help. | |
889 | ac_popdir=`pwd` | |
890 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
891 | test -d $ac_dir || continue | |
892 | ac_builddir=. | |
893 | ||
894 | if test "$ac_dir" != .; then | |
895 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
896 | # A "../" for each directory in $ac_dir_suffix. | |
897 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
898 | else | |
899 | ac_dir_suffix= ac_top_builddir= | |
900 | fi | |
901 | ||
902 | case $srcdir in | |
903 | .) # No --srcdir option. We are building in place. | |
904 | ac_srcdir=. | |
905 | if test -z "$ac_top_builddir"; then | |
906 | ac_top_srcdir=. | |
907 | else | |
908 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
909 | fi ;; | |
910 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
911 | ac_srcdir=$srcdir$ac_dir_suffix; | |
912 | ac_top_srcdir=$srcdir ;; | |
913 | *) # Relative path. | |
914 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
915 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
916 | esac | |
917 | ||
918 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
919 | # the directories may not exist. | |
920 | case `pwd` in | |
921 | .) ac_abs_builddir="$ac_dir";; | |
922 | *) | |
923 | case "$ac_dir" in | |
924 | .) ac_abs_builddir=`pwd`;; | |
925 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
926 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
927 | esac;; | |
928 | esac | |
929 | case $ac_abs_builddir in | |
930 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
931 | *) | |
932 | case ${ac_top_builddir}. in | |
933 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
934 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
935 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
936 | esac;; | |
937 | esac | |
938 | case $ac_abs_builddir in | |
939 | .) ac_abs_srcdir=$ac_srcdir;; | |
940 | *) | |
941 | case $ac_srcdir in | |
942 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
943 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
944 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
945 | esac;; | |
946 | esac | |
947 | case $ac_abs_builddir in | |
948 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
949 | *) | |
950 | case $ac_top_srcdir in | |
951 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
952 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
953 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
954 | esac;; | |
955 | esac | |
956 | ||
957 | cd $ac_dir | |
958 | # Check for guested configure; otherwise get Cygnus style configure. | |
959 | if test -f $ac_srcdir/configure.gnu; then | |
960 | echo | |
961 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
962 | elif test -f $ac_srcdir/configure; then | |
963 | echo | |
964 | $SHELL $ac_srcdir/configure --help=recursive | |
965 | elif test -f $ac_srcdir/configure.ac || | |
966 | test -f $ac_srcdir/configure.in; then | |
967 | echo | |
968 | $ac_configure --help | |
969 | else | |
970 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
971 | fi | |
1409cd0b | 972 | cd $ac_popdir |
6de9cd9a DN |
973 | done |
974 | fi | |
975 | ||
976 | test -n "$ac_init_help" && exit 0 | |
977 | if $ac_init_version; then | |
978 | cat <<\_ACEOF | |
979 | GNU Fortran Runtime Library configure 0.2 | |
980 | generated by GNU Autoconf 2.59 | |
981 | ||
982 | Copyright (C) 2003 Free Software Foundation, Inc. | |
983 | This configure script is free software; the Free Software Foundation | |
984 | gives unlimited permission to copy, distribute and modify it. | |
985 | _ACEOF | |
986 | exit 0 | |
987 | fi | |
988 | exec 5>config.log | |
989 | cat >&5 <<_ACEOF | |
990 | This file contains any messages produced by compilers while | |
991 | running configure, to aid debugging if configure makes a mistake. | |
992 | ||
993 | It was created by GNU Fortran Runtime Library $as_me 0.2, which was | |
994 | generated by GNU Autoconf 2.59. Invocation command line was | |
995 | ||
996 | $ $0 $@ | |
997 | ||
998 | _ACEOF | |
999 | { | |
1000 | cat <<_ASUNAME | |
1001 | ## --------- ## | |
1002 | ## Platform. ## | |
1003 | ## --------- ## | |
1004 | ||
1005 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1006 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1007 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1008 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1009 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1010 | ||
1011 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1012 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1013 | ||
1014 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1015 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1016 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1017 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1018 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1019 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1020 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1021 | ||
1022 | _ASUNAME | |
1023 | ||
1024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1025 | for as_dir in $PATH | |
1026 | do | |
1027 | IFS=$as_save_IFS | |
1028 | test -z "$as_dir" && as_dir=. | |
1029 | echo "PATH: $as_dir" | |
1030 | done | |
1031 | ||
1032 | } >&5 | |
1033 | ||
1034 | cat >&5 <<_ACEOF | |
1035 | ||
1036 | ||
1037 | ## ----------- ## | |
1038 | ## Core tests. ## | |
1039 | ## ----------- ## | |
1040 | ||
1041 | _ACEOF | |
1042 | ||
1043 | ||
1044 | # Keep a trace of the command line. | |
1045 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1046 | # Strip out --silent because we don't want to record it for future runs. | |
1047 | # Also quote any args containing shell meta-characters. | |
1048 | # Make two passes to allow for proper duplicate-argument suppression. | |
1049 | ac_configure_args= | |
1050 | ac_configure_args0= | |
1051 | ac_configure_args1= | |
1052 | ac_sep= | |
1053 | ac_must_keep_next=false | |
1054 | for ac_pass in 1 2 | |
1055 | do | |
1056 | for ac_arg | |
1057 | do | |
1058 | case $ac_arg in | |
1059 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1060 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1061 | | -silent | --silent | --silen | --sile | --sil) | |
1062 | continue ;; | |
1063 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1064 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1065 | esac | |
1066 | case $ac_pass in | |
1067 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1068 | 2) | |
1069 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1070 | if test $ac_must_keep_next = true; then | |
1071 | ac_must_keep_next=false # Got value, back to normal. | |
1072 | else | |
1073 | case $ac_arg in | |
1074 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1075 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1076 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1077 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1078 | case "$ac_configure_args0 " in | |
1079 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1080 | esac | |
1081 | ;; | |
1082 | -* ) ac_must_keep_next=true ;; | |
1083 | esac | |
1084 | fi | |
1085 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1086 | # Get rid of the leading space. | |
1087 | ac_sep=" " | |
1088 | ;; | |
1089 | esac | |
1090 | done | |
1091 | done | |
1092 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1093 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1094 | ||
1095 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1096 | # config.log. We remove comments because anyway the quotes in there | |
1097 | # would cause problems or look ugly. | |
1098 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1099 | # such as our DU 5.0 friend, will then `close' the trap. | |
1100 | trap 'exit_status=$? | |
1101 | # Save into config.log some information that might help in debugging. | |
1102 | { | |
1103 | echo | |
1104 | ||
1105 | cat <<\_ASBOX | |
1106 | ## ---------------- ## | |
1107 | ## Cache variables. ## | |
1108 | ## ---------------- ## | |
1109 | _ASBOX | |
1110 | echo | |
1111 | # The following way of writing the cache mishandles newlines in values, | |
1112 | { | |
1113 | (set) 2>&1 | | |
1114 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1115 | *ac_space=\ *) | |
1116 | sed -n \ | |
1117 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1118 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1119 | ;; | |
1120 | *) | |
1121 | sed -n \ | |
1122 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1123 | ;; | |
1124 | esac; | |
1125 | } | |
1126 | echo | |
1127 | ||
1128 | cat <<\_ASBOX | |
1129 | ## ----------------- ## | |
1130 | ## Output variables. ## | |
1131 | ## ----------------- ## | |
1132 | _ASBOX | |
1133 | echo | |
1134 | for ac_var in $ac_subst_vars | |
1135 | do | |
1136 | eval ac_val=$`echo $ac_var` | |
1137 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1138 | done | sort | |
1139 | echo | |
1140 | ||
1141 | if test -n "$ac_subst_files"; then | |
1142 | cat <<\_ASBOX | |
1143 | ## ------------- ## | |
1144 | ## Output files. ## | |
1145 | ## ------------- ## | |
1146 | _ASBOX | |
1147 | echo | |
1148 | for ac_var in $ac_subst_files | |
1149 | do | |
1150 | eval ac_val=$`echo $ac_var` | |
1151 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1152 | done | sort | |
1153 | echo | |
1154 | fi | |
1155 | ||
1156 | if test -s confdefs.h; then | |
1157 | cat <<\_ASBOX | |
1158 | ## ----------- ## | |
1159 | ## confdefs.h. ## | |
1160 | ## ----------- ## | |
1161 | _ASBOX | |
1162 | echo | |
1163 | sed "/^$/d" confdefs.h | sort | |
1164 | echo | |
1165 | fi | |
1166 | test "$ac_signal" != 0 && | |
1167 | echo "$as_me: caught signal $ac_signal" | |
1168 | echo "$as_me: exit $exit_status" | |
1169 | } >&5 | |
1170 | rm -f core *.core && | |
1171 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1172 | exit $exit_status | |
1173 | ' 0 | |
1174 | for ac_signal in 1 2 13 15; do | |
1175 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1176 | done | |
1177 | ac_signal=0 | |
1178 | ||
1179 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1180 | rm -rf conftest* confdefs.h | |
1181 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1182 | echo >confdefs.h | |
1183 | ||
1184 | # Predefined preprocessor variables. | |
1185 | ||
1186 | cat >>confdefs.h <<_ACEOF | |
1187 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1188 | _ACEOF | |
1189 | ||
1190 | ||
1191 | cat >>confdefs.h <<_ACEOF | |
1192 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1193 | _ACEOF | |
1194 | ||
1195 | ||
1196 | cat >>confdefs.h <<_ACEOF | |
1197 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1198 | _ACEOF | |
1199 | ||
1200 | ||
1201 | cat >>confdefs.h <<_ACEOF | |
1202 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1203 | _ACEOF | |
1204 | ||
1205 | ||
1206 | cat >>confdefs.h <<_ACEOF | |
1207 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1208 | _ACEOF | |
1209 | ||
1210 | ||
1211 | # Let the site file select an alternate cache file if it wants to. | |
1212 | # Prefer explicitly selected file to automatically selected ones. | |
1213 | if test -z "$CONFIG_SITE"; then | |
1214 | if test "x$prefix" != xNONE; then | |
1215 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1216 | else | |
1217 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1218 | fi | |
1219 | fi | |
1220 | for ac_site_file in $CONFIG_SITE; do | |
1221 | if test -r "$ac_site_file"; then | |
1222 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1223 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1224 | sed 's/^/| /' "$ac_site_file" >&5 | |
1225 | . "$ac_site_file" | |
1226 | fi | |
1227 | done | |
1228 | ||
1229 | if test -r "$cache_file"; then | |
1230 | # Some versions of bash will fail to source /dev/null (special | |
1231 | # files actually), so we avoid doing that. | |
1232 | if test -f "$cache_file"; then | |
1233 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1234 | echo "$as_me: loading cache $cache_file" >&6;} | |
1235 | case $cache_file in | |
1236 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1237 | *) . ./$cache_file;; | |
1238 | esac | |
1239 | fi | |
1240 | else | |
1241 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1242 | echo "$as_me: creating cache $cache_file" >&6;} | |
1243 | >$cache_file | |
1244 | fi | |
1245 | ||
1246 | # Check that the precious variables saved in the cache have kept the same | |
1247 | # value. | |
1248 | ac_cache_corrupted=false | |
1249 | for ac_var in `(set) 2>&1 | | |
1250 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1251 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1252 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1253 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1254 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1255 | case $ac_old_set,$ac_new_set in | |
1256 | set,) | |
1257 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1258 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1259 | ac_cache_corrupted=: ;; | |
1260 | ,set) | |
1261 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1262 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1263 | ac_cache_corrupted=: ;; | |
1264 | ,);; | |
1265 | *) | |
1266 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1267 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1268 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1269 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1270 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1271 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1272 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1273 | ac_cache_corrupted=: | |
1274 | fi;; | |
1275 | esac | |
1276 | # Pass precious variables to config.status. | |
1277 | if test "$ac_new_set" = set; then | |
1278 | case $ac_new_val in | |
1279 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1280 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1281 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1282 | esac | |
1283 | case " $ac_configure_args " in | |
1284 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1285 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1286 | esac | |
1287 | fi | |
1288 | done | |
1289 | if $ac_cache_corrupted; then | |
1290 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1291 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1292 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1293 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1294 | { (exit 1); exit 1; }; } | |
1295 | fi | |
1296 | ||
1297 | ac_ext=c | |
1298 | ac_cpp='$CPP $CPPFLAGS' | |
1299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1302 | ||
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 | ||
96b8a615 AJ |
1329 | ac_config_headers="$ac_config_headers config.h" |
1330 | ||
1331 | ||
96b8a615 AJ |
1332 | # ------- |
1333 | # Options | |
1334 | # ------- | |
1335 | ||
1336 | echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5 | |
1337 | echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6 | |
1338 | # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. | |
1339 | if test "${enable_version_specific_runtime_libs+set}" = set; then | |
1340 | enableval="$enable_version_specific_runtime_libs" | |
1341 | case "$enableval" in | |
1342 | yes) version_specific_libs=yes ;; | |
1343 | no) version_specific_libs=no ;; | |
1344 | *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5 | |
1345 | echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;} | |
1346 | { (exit 1); exit 1; }; };; | |
1347 | esac | |
1348 | else | |
1349 | version_specific_libs=no | |
1350 | fi; | |
1351 | echo "$as_me:$LINENO: result: $version_specific_libs" >&5 | |
1352 | echo "${ECHO_T}$version_specific_libs" >&6 | |
1353 | ||
1354 | ||
1355 | # Gets build, host, target, *_vendor, *_cpu, *_os, etc. | |
1356 | # | |
1357 | # You will slowly go insane if you do not grok the following fact: when | |
1358 | # building this library, the top-level /target/ becomes the library's /host/. | |
1359 | # | |
1360 | # configure then causes --target to default to --host, exactly like any | |
1361 | # other package using autoconf. Therefore, 'target' and 'host' will | |
1362 | # always be the same. This makes sense both for native and cross compilers | |
1363 | # just think about it for a little while. :-) | |
1364 | # | |
1365 | # Also, if this library is being configured as part of a cross compiler, the | |
1366 | # top-level configure script will pass the "real" host as $with_cross_host. | |
1367 | # | |
1368 | # Do not delete or change the following two lines. For why, see | |
1369 | # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html | |
6de9cd9a DN |
1370 | ac_aux_dir= |
1371 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1372 | if test -f $ac_dir/install-sh; then | |
1373 | ac_aux_dir=$ac_dir | |
1374 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1375 | break | |
1376 | elif test -f $ac_dir/install.sh; then | |
1377 | ac_aux_dir=$ac_dir | |
1378 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1379 | break | |
1380 | elif test -f $ac_dir/shtool; then | |
1381 | ac_aux_dir=$ac_dir | |
1382 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1383 | break | |
1384 | fi | |
1385 | done | |
1386 | if test -z "$ac_aux_dir"; then | |
1387 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1388 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1389 | { (exit 1); exit 1; }; } | |
1390 | fi | |
1391 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1392 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1393 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1394 | ||
96b8a615 AJ |
1395 | # Make sure we can run config.sub. |
1396 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1397 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1398 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1399 | { (exit 1); exit 1; }; } | |
1400 | ||
1401 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1402 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1403 | if test "${ac_cv_build+set}" = set; then | |
1404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1405 | else | |
1406 | ac_cv_build_alias=$build_alias | |
1407 | test -z "$ac_cv_build_alias" && | |
1408 | ac_cv_build_alias=`$ac_config_guess` | |
1409 | test -z "$ac_cv_build_alias" && | |
1410 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1411 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1412 | { (exit 1); exit 1; }; } | |
1413 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1414 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1415 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1416 | { (exit 1); exit 1; }; } | |
1417 | ||
1418 | fi | |
1419 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1420 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1421 | build=$ac_cv_build | |
1422 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1423 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1424 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1425 | ||
1426 | ||
1427 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1428 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1429 | if test "${ac_cv_host+set}" = set; then | |
1430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1431 | else | |
1432 | ac_cv_host_alias=$host_alias | |
1433 | test -z "$ac_cv_host_alias" && | |
1434 | ac_cv_host_alias=$ac_cv_build_alias | |
1435 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1436 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1437 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1438 | { (exit 1); exit 1; }; } | |
1439 | ||
1440 | fi | |
1441 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1442 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1443 | host=$ac_cv_host | |
1444 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1445 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1446 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1447 | ||
1448 | ||
1449 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1450 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1451 | if test "${ac_cv_target+set}" = set; then | |
1452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1453 | else | |
1454 | ac_cv_target_alias=$target_alias | |
1455 | test "x$ac_cv_target_alias" = "x" && | |
1456 | ac_cv_target_alias=$ac_cv_host_alias | |
1457 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1458 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1459 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1460 | { (exit 1); exit 1; }; } | |
1461 | ||
1462 | fi | |
1463 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1464 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1465 | target=$ac_cv_target | |
1466 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1467 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1468 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1469 | ||
1470 | ||
1471 | # The aliases save the names the user supplied, while $host etc. | |
1472 | # will get canonicalized. | |
1473 | test -n "$target_alias" && | |
1474 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1475 | NONENONEs,x,x, && | |
1476 | program_prefix=${target_alias}- | |
1477 | target_alias=${target_alias-$host_alias} | |
1478 | ||
1479 | # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the | |
1480 | # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. | |
1481 | # 1.8.2: minimum required version | |
1482 | # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch | |
1483 | # of other PACKAGE_* variables will, however, and there's nothing | |
1484 | # we can do about that; they come from AC_INIT). | |
1485 | # foreign: we don't follow the normal rules for GNU packages (no COPYING | |
1486 | # file in the top srcdir, etc, etc), so stop complaining. | |
1487 | # no-dependencies: turns off auto dependency generation (just for now) | |
1488 | # -Wall: turns on all automake warnings... | |
1489 | # -Wno-portability: ...except this one, since GNU make is required. | |
d49ec2d1 | 1490 | am__api_version="1.9" |
6de9cd9a DN |
1491 | # Find a good install program. We prefer a C program (faster), |
1492 | # so one script is as good as another. But avoid the broken or | |
1493 | # incompatible versions: | |
1494 | # SysV /etc/install, /usr/sbin/install | |
1495 | # SunOS /usr/etc/install | |
1496 | # IRIX /sbin/install | |
1497 | # AIX /bin/install | |
1498 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1499 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1500 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1501 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1502 | # OS/2's system install, which has a completely different semantic | |
1503 | # ./install, which can be erroneously created by make from ./install.sh. | |
1504 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1505 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1506 | if test -z "$INSTALL"; then | |
1507 | if test "${ac_cv_path_install+set}" = set; then | |
1508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1509 | else | |
1510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1511 | for as_dir in $PATH | |
1512 | do | |
1513 | IFS=$as_save_IFS | |
1514 | test -z "$as_dir" && as_dir=. | |
1515 | # Account for people who put trailing slashes in PATH elements. | |
1516 | case $as_dir/ in | |
1517 | ./ | .// | /cC/* | \ | |
1518 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1519 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1520 | /usr/ucb/* ) ;; | |
1521 | *) | |
1522 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1523 | # Don't use installbsd from OSF since it installs stuff as root | |
1524 | # by default. | |
1525 | for ac_prog in ginstall scoinst install; do | |
1526 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1527 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1528 | if test $ac_prog = install && | |
1529 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1530 | # AIX install. It has an incompatible calling convention. | |
1531 | : | |
1532 | elif test $ac_prog = install && | |
1533 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1534 | # program-specific install script used by HP pwplus--don't use. | |
1535 | : | |
1536 | else | |
1537 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1538 | break 3 | |
1539 | fi | |
1540 | fi | |
1541 | done | |
1542 | done | |
1543 | ;; | |
1544 | esac | |
1545 | done | |
1546 | ||
1547 | ||
1548 | fi | |
1549 | if test "${ac_cv_path_install+set}" = set; then | |
1550 | INSTALL=$ac_cv_path_install | |
1551 | else | |
1552 | # As a last resort, use the slow shell script. We don't cache a | |
1553 | # path for INSTALL within a source directory, because that will | |
1554 | # break other packages using the cache if that directory is | |
1555 | # removed, or if the path is relative. | |
1556 | INSTALL=$ac_install_sh | |
1557 | fi | |
1558 | fi | |
1559 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1560 | echo "${ECHO_T}$INSTALL" >&6 | |
1561 | ||
1562 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1563 | # It thinks the first close brace ends the variable substitution. | |
1564 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1565 | ||
1566 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1567 | ||
1568 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1569 | ||
1570 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1571 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1572 | # Just in case | |
1573 | sleep 1 | |
1574 | echo timestamp > conftest.file | |
1575 | # Do `set' in a subshell so we don't clobber the current shell's | |
1576 | # arguments. Must try -L first in case configure is actually a | |
1577 | # symlink; some systems play weird games with the mod time of symlinks | |
1578 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1579 | # directory). | |
1580 | if ( | |
1581 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1582 | if test "$*" = "X"; then | |
1583 | # -L didn't work. | |
1584 | set X `ls -t $srcdir/configure conftest.file` | |
1585 | fi | |
1586 | rm -f conftest.file | |
1587 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1588 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1589 | ||
1590 | # If neither matched, then we have a broken ls. This can happen | |
1591 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1592 | # broken ls alias from the environment. This has actually | |
1593 | # happened. Such a system could not be considered "sane". | |
1594 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1595 | alias in your environment" >&5 | |
1596 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1597 | alias in your environment" >&2;} | |
1598 | { (exit 1); exit 1; }; } | |
1599 | fi | |
1600 | ||
1601 | test "$2" = conftest.file | |
1602 | ) | |
1603 | then | |
1604 | # Ok. | |
1605 | : | |
1606 | else | |
1607 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1608 | Check your system clock" >&5 | |
1609 | echo "$as_me: error: newly created file is older than distributed files! | |
1610 | Check your system clock" >&2;} | |
1611 | { (exit 1); exit 1; }; } | |
1612 | fi | |
1613 | echo "$as_me:$LINENO: result: yes" >&5 | |
1614 | echo "${ECHO_T}yes" >&6 | |
1615 | test "$program_prefix" != NONE && | |
1616 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1617 | # Use a double $ so make ignores it. | |
1618 | test "$program_suffix" != NONE && | |
1619 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1620 | # Double any \ or $. echo might interpret backslashes. | |
1621 | # By default was `s,x,x', remove it if useless. | |
1622 | cat <<\_ACEOF >conftest.sed | |
1623 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1624 | _ACEOF | |
1625 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1626 | rm conftest.sed | |
1627 | ||
1628 | # expand $ac_aux_dir to an absolute path | |
1629 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1630 | ||
1631 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1632 | # Use eval to expand $SHELL | |
1633 | if eval "$MISSING --run true"; then | |
1634 | am_missing_run="$MISSING --run " | |
1635 | else | |
1636 | am_missing_run= | |
1637 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1638 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1639 | fi | |
1640 | ||
c9e66eda | 1641 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
d49ec2d1 KC |
1642 | # We used to keeping the `.' as first argument, in order to |
1643 | # allow $(mkdir_p) to be used without argument. As in | |
6de9cd9a | 1644 | # $(mkdir_p) $(somedir) |
d49ec2d1 KC |
1645 | # where $(somedir) is conditionally defined. However this is wrong |
1646 | # for two reasons: | |
1647 | # 1. if the package is installed by a user who cannot write `.' | |
1648 | # make install will fail, | |
1649 | # 2. the above comment should most certainly read | |
1650 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1651 | # so it does not work when $(somedir) is undefined and | |
1652 | # $(DESTDIR) is not. | |
1653 | # To support the latter case, we have to write | |
1654 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1655 | # so the `.' trick is pointless. | |
1656 | mkdir_p='mkdir -p --' | |
6de9cd9a DN |
1657 | else |
1658 | # On NextStep and OpenStep, the `mkdir' command does not | |
1659 | # recognize any option. It will interpret all options as | |
1660 | # directories to create, and then abort because `.' already | |
1661 | # exists. | |
c9e66eda | 1662 | for d in ./-p ./--version; |
6de9cd9a DN |
1663 | do |
1664 | test -d $d && rmdir $d | |
1665 | done | |
1666 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1667 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1668 | mkdir_p='$(mkinstalldirs)' | |
1669 | else | |
1670 | mkdir_p='$(install_sh) -d' | |
1671 | fi | |
1672 | fi | |
1673 | ||
1674 | for ac_prog in gawk mawk nawk awk | |
1675 | do | |
1676 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1677 | set dummy $ac_prog; ac_word=$2 | |
1678 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1679 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1680 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1682 | else | |
1683 | if test -n "$AWK"; then | |
1684 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1685 | else | |
1686 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1687 | for as_dir in $PATH | |
1688 | do | |
1689 | IFS=$as_save_IFS | |
1690 | test -z "$as_dir" && as_dir=. | |
1691 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1692 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1693 | ac_cv_prog_AWK="$ac_prog" | |
1694 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1695 | break 2 | |
1696 | fi | |
1697 | done | |
1698 | done | |
1699 | ||
1700 | fi | |
1701 | fi | |
1702 | AWK=$ac_cv_prog_AWK | |
1703 | if test -n "$AWK"; then | |
1704 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1705 | echo "${ECHO_T}$AWK" >&6 | |
1706 | else | |
1707 | echo "$as_me:$LINENO: result: no" >&5 | |
1708 | echo "${ECHO_T}no" >&6 | |
1709 | fi | |
1710 | ||
1711 | test -n "$AWK" && break | |
1712 | done | |
1713 | ||
1714 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1715 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1716 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1717 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1719 | else | |
1720 | cat >conftest.make <<\_ACEOF | |
1721 | all: | |
1722 | @echo 'ac_maketemp="$(MAKE)"' | |
1723 | _ACEOF | |
1724 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1725 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1726 | if test -n "$ac_maketemp"; then | |
1727 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1728 | else | |
1729 | eval ac_cv_prog_make_${ac_make}_set=no | |
1730 | fi | |
1731 | rm -f conftest.make | |
1732 | fi | |
1733 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1734 | echo "$as_me:$LINENO: result: yes" >&5 | |
1735 | echo "${ECHO_T}yes" >&6 | |
1736 | SET_MAKE= | |
1737 | else | |
1738 | echo "$as_me:$LINENO: result: no" >&5 | |
1739 | echo "${ECHO_T}no" >&6 | |
1740 | SET_MAKE="MAKE=${MAKE-make}" | |
1741 | fi | |
1742 | ||
1743 | rm -rf .tst 2>/dev/null | |
1744 | mkdir .tst 2>/dev/null | |
1745 | if test -d .tst; then | |
1746 | am__leading_dot=. | |
1747 | else | |
1748 | am__leading_dot=_ | |
1749 | fi | |
1750 | rmdir .tst 2>/dev/null | |
1751 | ||
1752 | # test to see if srcdir already configured | |
1753 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1754 | test -f $srcdir/config.status; then | |
1755 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1756 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1757 | { (exit 1); exit 1; }; } | |
1758 | fi | |
1759 | ||
1760 | # test whether we have cygpath | |
1761 | if test -z "$CYGPATH_W"; then | |
1762 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1763 | CYGPATH_W='cygpath -w' | |
1764 | else | |
1765 | CYGPATH_W=echo | |
1766 | fi | |
1767 | fi | |
1768 | ||
1769 | ||
1770 | # Define the identity of the package. | |
1771 | PACKAGE='libgfortran' | |
1772 | VERSION='0.2' | |
1773 | ||
1774 | ||
6de9cd9a DN |
1775 | # Some tools Automake needs. |
1776 | ||
1777 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1778 | ||
1779 | ||
1780 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1781 | ||
1782 | ||
1783 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1784 | ||
1785 | ||
1786 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1787 | ||
1788 | ||
1789 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1790 | ||
6de9cd9a DN |
1791 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
1792 | ||
1793 | # Installed binaries are usually stripped using `strip' when the user | |
1794 | # run `make install-strip'. However `strip' might not be the right | |
1795 | # tool to use in cross-compilation environments, therefore Automake | |
1796 | # will honor the `STRIP' environment variable to overrule this program. | |
1797 | if test "$cross_compiling" != no; then | |
1798 | if test -n "$ac_tool_prefix"; then | |
1799 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1800 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1801 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1802 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1803 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1805 | else | |
1806 | if test -n "$STRIP"; then | |
1807 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1808 | else | |
1809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1810 | for as_dir in $PATH | |
1811 | do | |
1812 | IFS=$as_save_IFS | |
1813 | test -z "$as_dir" && as_dir=. | |
1814 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1815 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1816 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1817 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1818 | break 2 | |
1819 | fi | |
1820 | done | |
1821 | done | |
1822 | ||
1823 | fi | |
1824 | fi | |
1825 | STRIP=$ac_cv_prog_STRIP | |
1826 | if test -n "$STRIP"; then | |
1827 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1828 | echo "${ECHO_T}$STRIP" >&6 | |
1829 | else | |
1830 | echo "$as_me:$LINENO: result: no" >&5 | |
1831 | echo "${ECHO_T}no" >&6 | |
1832 | fi | |
1833 | ||
1834 | fi | |
1835 | if test -z "$ac_cv_prog_STRIP"; then | |
1836 | ac_ct_STRIP=$STRIP | |
1837 | # Extract the first word of "strip", so it can be a program name with args. | |
1838 | set dummy strip; ac_word=$2 | |
1839 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1841 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1843 | else | |
1844 | if test -n "$ac_ct_STRIP"; then | |
1845 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1846 | else | |
1847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1848 | for as_dir in $PATH | |
1849 | do | |
1850 | IFS=$as_save_IFS | |
1851 | test -z "$as_dir" && as_dir=. | |
1852 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1853 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1854 | ac_cv_prog_ac_ct_STRIP="strip" | |
1855 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1856 | break 2 | |
1857 | fi | |
1858 | done | |
1859 | done | |
1860 | ||
1861 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1862 | fi | |
1863 | fi | |
1864 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1865 | if test -n "$ac_ct_STRIP"; then | |
1866 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1867 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1868 | else | |
1869 | echo "$as_me:$LINENO: result: no" >&5 | |
1870 | echo "${ECHO_T}no" >&6 | |
1871 | fi | |
1872 | ||
1873 | STRIP=$ac_ct_STRIP | |
1874 | else | |
1875 | STRIP="$ac_cv_prog_STRIP" | |
1876 | fi | |
1877 | ||
1878 | fi | |
1879 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1880 | ||
1881 | # We need awk for the "check" target. The system "awk" is bad on | |
1882 | # some platforms. | |
d49ec2d1 KC |
1883 | # Always define AMTAR for backward compatibility. |
1884 | ||
1885 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1886 | ||
1887 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
1888 | ||
1889 | ||
6de9cd9a DN |
1890 | |
1891 | ||
1892 | ||
6de9cd9a DN |
1893 | |
1894 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1895 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1896 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
1897 | if test "${enable_maintainer_mode+set}" = set; then | |
1898 | enableval="$enable_maintainer_mode" | |
1899 | USE_MAINTAINER_MODE=$enableval | |
1900 | else | |
1901 | USE_MAINTAINER_MODE=no | |
1902 | fi; | |
1903 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1904 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
1905 | ||
1906 | ||
1907 | if test $USE_MAINTAINER_MODE = yes; then | |
1908 | MAINTAINER_MODE_TRUE= | |
1909 | MAINTAINER_MODE_FALSE='#' | |
1910 | else | |
1911 | MAINTAINER_MODE_TRUE='#' | |
1912 | MAINTAINER_MODE_FALSE= | |
1913 | fi | |
1914 | ||
1915 | MAINT=$MAINTAINER_MODE_TRUE | |
1916 | ||
1917 | ||
96b8a615 AJ |
1918 | # Default to --enable-multilib |
1919 | # Check whether --enable-multilib or --disable-multilib was given. | |
1920 | if test "${enable_multilib+set}" = set; then | |
1921 | enableval="$enable_multilib" | |
1922 | case "$enableval" in | |
1923 | yes) multilib=yes ;; | |
1924 | no) multilib=no ;; | |
1925 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 | |
1926 | echo "$as_me: error: bad value $enableval for multilib option" >&2;} | |
1927 | { (exit 1); exit 1; }; } ;; | |
1928 | esac | |
1929 | else | |
1930 | multilib=yes | |
1931 | fi; | |
1932 | ||
1933 | # We may get other options which we leave undocumented: | |
1934 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
1935 | # See config-ml.in if you want the gory details. | |
1936 | ||
1937 | if test "$srcdir" = "."; then | |
1938 | if test "$with_target_subdir" != "."; then | |
1939 | multi_basedir="$srcdir/$with_multisrctop../.." | |
1940 | else | |
1941 | multi_basedir="$srcdir/$with_multisrctop.." | |
1942 | fi | |
1943 | else | |
1944 | multi_basedir="$srcdir/.." | |
1945 | fi | |
1946 | ||
1947 | ||
1948 | ac_config_commands="$ac_config_commands default-1" | |
1949 | ||
1950 | ||
1951 | # Handy for debugging: | |
1952 | #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5 | |
1953 | ||
1954 | # Are we being configured with some form of cross compiler? | |
1955 | # NB: We don't actually need to know this just now, but when, say, a test | |
1956 | # suite is included, we'll have to know. | |
1957 | if test "$build" != "$host"; then | |
1958 | LIBGFOR_IS_NATIVE=false | |
f02d008e | 1959 | |
96b8a615 AJ |
1960 | else |
1961 | LIBGFOR_IS_NATIVE=true | |
1962 | fi | |
1963 | ||
96b8a615 AJ |
1964 | # Calculate toolexeclibdir |
1965 | # Also toolexecdir, though it's only used in toolexeclibdir | |
1966 | case ${version_specific_libs} in | |
1967 | yes) | |
1968 | # Need the gcc compiler version to know where to install libraries | |
1969 | # and header files if --enable-version-specific-runtime-libs option | |
1970 | # is selected. | |
1971 | toolexecdir='$(libdir)/gcc/$(target_alias)' | |
140e859c | 1972 | toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' |
96b8a615 AJ |
1973 | ;; |
1974 | no) | |
1975 | if test -n "$with_cross_host" && | |
1976 | test x"$with_cross_host" != x"no"; then | |
1977 | # Install a library built with a cross compiler in tooldir, not libdir. | |
1978 | toolexecdir='$(exec_prefix)/$(target_alias)' | |
1979 | toolexeclibdir='$(toolexecdir)/lib' | |
1980 | else | |
1981 | toolexecdir='$(libdir)/gcc-lib/$(target_alias)' | |
1982 | toolexeclibdir='$(libdir)' | |
1983 | fi | |
1984 | multi_os_directory=`$CC -print-multi-os-directory` | |
1985 | case $multi_os_directory in | |
1986 | .) ;; # Avoid trailing /. | |
1987 | *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; | |
1988 | esac | |
1989 | ;; | |
1990 | esac | |
1991 | ||
1992 | ||
6de9cd9a | 1993 | |
96b8a615 AJ |
1994 | # Check the compiler. |
1995 | # The same as in boehm-gc and libstdc++. Have to borrow it from there. | |
1996 | # We must force CC to /not/ be precious variables; otherwise | |
1997 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
1998 | # As a side effect, we have to subst CFLAGS ourselves. | |
6de9cd9a DN |
1999 | |
2000 | ||
2001 | ||
6de9cd9a DN |
2002 | ac_ext=c |
2003 | ac_cpp='$CPP $CPPFLAGS' | |
2004 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2005 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2006 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2007 | if test -n "$ac_tool_prefix"; then | |
2008 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2009 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2010 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2012 | if test "${ac_cv_prog_CC+set}" = set; then | |
2013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2014 | else | |
2015 | if test -n "$CC"; then | |
2016 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2017 | else | |
2018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2019 | for as_dir in $PATH | |
2020 | do | |
2021 | IFS=$as_save_IFS | |
2022 | test -z "$as_dir" && as_dir=. | |
2023 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2024 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2025 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2026 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2027 | break 2 | |
2028 | fi | |
2029 | done | |
2030 | done | |
2031 | ||
2032 | fi | |
2033 | fi | |
2034 | CC=$ac_cv_prog_CC | |
2035 | if test -n "$CC"; then | |
2036 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2037 | echo "${ECHO_T}$CC" >&6 | |
2038 | else | |
2039 | echo "$as_me:$LINENO: result: no" >&5 | |
2040 | echo "${ECHO_T}no" >&6 | |
2041 | fi | |
2042 | ||
2043 | fi | |
2044 | if test -z "$ac_cv_prog_CC"; then | |
2045 | ac_ct_CC=$CC | |
2046 | # Extract the first word of "gcc", so it can be a program name with args. | |
2047 | set dummy gcc; ac_word=$2 | |
2048 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2049 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2050 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2052 | else | |
2053 | if test -n "$ac_ct_CC"; then | |
2054 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2055 | else | |
2056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2057 | for as_dir in $PATH | |
2058 | do | |
2059 | IFS=$as_save_IFS | |
2060 | test -z "$as_dir" && as_dir=. | |
2061 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2062 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2063 | ac_cv_prog_ac_ct_CC="gcc" | |
2064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2065 | break 2 | |
2066 | fi | |
2067 | done | |
2068 | done | |
2069 | ||
2070 | fi | |
2071 | fi | |
2072 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2073 | if test -n "$ac_ct_CC"; then | |
2074 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2075 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2076 | else | |
2077 | echo "$as_me:$LINENO: result: no" >&5 | |
2078 | echo "${ECHO_T}no" >&6 | |
2079 | fi | |
2080 | ||
2081 | CC=$ac_ct_CC | |
2082 | else | |
2083 | CC="$ac_cv_prog_CC" | |
2084 | fi | |
2085 | ||
2086 | if test -z "$CC"; then | |
2087 | if test -n "$ac_tool_prefix"; then | |
2088 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2089 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2090 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2092 | if test "${ac_cv_prog_CC+set}" = set; then | |
2093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2094 | else | |
2095 | if test -n "$CC"; then | |
2096 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2097 | else | |
2098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2099 | for as_dir in $PATH | |
2100 | do | |
2101 | IFS=$as_save_IFS | |
2102 | test -z "$as_dir" && as_dir=. | |
2103 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2104 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2105 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2106 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2107 | break 2 | |
2108 | fi | |
2109 | done | |
2110 | done | |
2111 | ||
2112 | fi | |
2113 | fi | |
2114 | CC=$ac_cv_prog_CC | |
2115 | if test -n "$CC"; then | |
2116 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2117 | echo "${ECHO_T}$CC" >&6 | |
2118 | else | |
2119 | echo "$as_me:$LINENO: result: no" >&5 | |
2120 | echo "${ECHO_T}no" >&6 | |
2121 | fi | |
2122 | ||
2123 | fi | |
2124 | if test -z "$ac_cv_prog_CC"; then | |
2125 | ac_ct_CC=$CC | |
2126 | # Extract the first word of "cc", so it can be a program name with args. | |
2127 | set dummy cc; ac_word=$2 | |
2128 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2130 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2132 | else | |
2133 | if test -n "$ac_ct_CC"; then | |
2134 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2135 | else | |
2136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2137 | for as_dir in $PATH | |
2138 | do | |
2139 | IFS=$as_save_IFS | |
2140 | test -z "$as_dir" && as_dir=. | |
2141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2142 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2143 | ac_cv_prog_ac_ct_CC="cc" | |
2144 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2145 | break 2 | |
2146 | fi | |
2147 | done | |
2148 | done | |
2149 | ||
2150 | fi | |
2151 | fi | |
2152 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2153 | if test -n "$ac_ct_CC"; then | |
2154 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2155 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2156 | else | |
2157 | echo "$as_me:$LINENO: result: no" >&5 | |
2158 | echo "${ECHO_T}no" >&6 | |
2159 | fi | |
2160 | ||
2161 | CC=$ac_ct_CC | |
2162 | else | |
2163 | CC="$ac_cv_prog_CC" | |
2164 | fi | |
2165 | ||
2166 | fi | |
2167 | if test -z "$CC"; then | |
2168 | # Extract the first word of "cc", so it can be a program name with args. | |
2169 | set dummy cc; ac_word=$2 | |
2170 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2172 | if test "${ac_cv_prog_CC+set}" = set; then | |
2173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2174 | else | |
2175 | if test -n "$CC"; then | |
2176 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2177 | else | |
2178 | ac_prog_rejected=no | |
2179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2180 | for as_dir in $PATH | |
2181 | do | |
2182 | IFS=$as_save_IFS | |
2183 | test -z "$as_dir" && as_dir=. | |
2184 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2185 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2186 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2187 | ac_prog_rejected=yes | |
2188 | continue | |
2189 | fi | |
2190 | ac_cv_prog_CC="cc" | |
2191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2192 | break 2 | |
2193 | fi | |
2194 | done | |
2195 | done | |
2196 | ||
2197 | if test $ac_prog_rejected = yes; then | |
2198 | # We found a bogon in the path, so make sure we never use it. | |
2199 | set dummy $ac_cv_prog_CC | |
2200 | shift | |
2201 | if test $# != 0; then | |
2202 | # We chose a different compiler from the bogus one. | |
2203 | # However, it has the same basename, so the bogon will be chosen | |
2204 | # first if we set CC to just the basename; use the full file name. | |
2205 | shift | |
2206 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2207 | fi | |
2208 | fi | |
2209 | fi | |
2210 | fi | |
2211 | CC=$ac_cv_prog_CC | |
2212 | if test -n "$CC"; then | |
2213 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2214 | echo "${ECHO_T}$CC" >&6 | |
2215 | else | |
2216 | echo "$as_me:$LINENO: result: no" >&5 | |
2217 | echo "${ECHO_T}no" >&6 | |
2218 | fi | |
2219 | ||
2220 | fi | |
2221 | if test -z "$CC"; then | |
2222 | if test -n "$ac_tool_prefix"; then | |
2223 | for ac_prog in cl | |
2224 | do | |
2225 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2226 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2227 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2229 | if test "${ac_cv_prog_CC+set}" = set; then | |
2230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2231 | else | |
2232 | if test -n "$CC"; then | |
2233 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2234 | else | |
2235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2236 | for as_dir in $PATH | |
2237 | do | |
2238 | IFS=$as_save_IFS | |
2239 | test -z "$as_dir" && as_dir=. | |
2240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2241 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2242 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2244 | break 2 | |
2245 | fi | |
2246 | done | |
2247 | done | |
2248 | ||
2249 | fi | |
2250 | fi | |
2251 | CC=$ac_cv_prog_CC | |
2252 | if test -n "$CC"; then | |
2253 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2254 | echo "${ECHO_T}$CC" >&6 | |
2255 | else | |
2256 | echo "$as_me:$LINENO: result: no" >&5 | |
2257 | echo "${ECHO_T}no" >&6 | |
2258 | fi | |
2259 | ||
2260 | test -n "$CC" && break | |
2261 | done | |
2262 | fi | |
2263 | if test -z "$CC"; then | |
2264 | ac_ct_CC=$CC | |
2265 | for ac_prog in cl | |
2266 | do | |
2267 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2268 | set dummy $ac_prog; ac_word=$2 | |
2269 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2271 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2273 | else | |
2274 | if test -n "$ac_ct_CC"; then | |
2275 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2276 | else | |
2277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2278 | for as_dir in $PATH | |
2279 | do | |
2280 | IFS=$as_save_IFS | |
2281 | test -z "$as_dir" && as_dir=. | |
2282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2283 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2284 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2286 | break 2 | |
2287 | fi | |
2288 | done | |
2289 | done | |
2290 | ||
2291 | fi | |
2292 | fi | |
2293 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2294 | if test -n "$ac_ct_CC"; then | |
2295 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2296 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2297 | else | |
2298 | echo "$as_me:$LINENO: result: no" >&5 | |
2299 | echo "${ECHO_T}no" >&6 | |
2300 | fi | |
2301 | ||
2302 | test -n "$ac_ct_CC" && break | |
2303 | done | |
2304 | ||
2305 | CC=$ac_ct_CC | |
2306 | fi | |
2307 | ||
2308 | fi | |
2309 | ||
2310 | ||
2311 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2312 | See \`config.log' for more details." >&5 | |
2313 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2314 | See \`config.log' for more details." >&2;} | |
2315 | { (exit 1); exit 1; }; } | |
2316 | ||
2317 | # Provide some information about the compiler. | |
2318 | echo "$as_me:$LINENO:" \ | |
2319 | "checking for C compiler version" >&5 | |
2320 | ac_compiler=`set X $ac_compile; echo $2` | |
2321 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2322 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2323 | ac_status=$? | |
2324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2325 | (exit $ac_status); } | |
2326 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2327 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2328 | ac_status=$? | |
2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2330 | (exit $ac_status); } | |
2331 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2332 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2333 | ac_status=$? | |
2334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2335 | (exit $ac_status); } | |
2336 | ||
2337 | cat >conftest.$ac_ext <<_ACEOF | |
2338 | /* confdefs.h. */ | |
2339 | _ACEOF | |
2340 | cat confdefs.h >>conftest.$ac_ext | |
2341 | cat >>conftest.$ac_ext <<_ACEOF | |
2342 | /* end confdefs.h. */ | |
2343 | ||
f02d008e JD |
2344 | int |
2345 | main () | |
2346 | { | |
2347 | ||
2348 | ; | |
2349 | return 0; | |
2350 | } | |
2351 | _ACEOF | |
2352 | # FIXME: Cleanup? | |
2353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2354 | (eval $ac_link) 2>&5 | |
2355 | ac_status=$? | |
2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2357 | (exit $ac_status); }; then | |
2358 | gcc_no_link=no | |
2359 | else | |
2360 | gcc_no_link=yes | |
2361 | fi | |
2362 | ||
2363 | if test x$gcc_no_link = xyes; then | |
2364 | # Setting cross_compile will disable run tests; it will | |
2365 | # also disable AC_CHECK_FILE but that's generally | |
2366 | # correct if we can't link. | |
2367 | cross_compiling=yes | |
2368 | EXEEXT= | |
2369 | else | |
2370 | cat >conftest.$ac_ext <<_ACEOF | |
2371 | /* confdefs.h. */ | |
2372 | _ACEOF | |
2373 | cat confdefs.h >>conftest.$ac_ext | |
2374 | cat >>conftest.$ac_ext <<_ACEOF | |
2375 | /* end confdefs.h. */ | |
2376 | ||
6de9cd9a DN |
2377 | int |
2378 | main () | |
2379 | { | |
2380 | ||
2381 | ; | |
2382 | return 0; | |
2383 | } | |
2384 | _ACEOF | |
2385 | ac_clean_files_save=$ac_clean_files | |
2386 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2387 | # Try to create an executable without -o first, disregard a.out. | |
2388 | # It will help us diagnose broken compilers, and finding out an intuition | |
2389 | # of exeext. | |
2390 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2391 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2392 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2393 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2394 | (eval $ac_link_default) 2>&5 | |
2395 | ac_status=$? | |
2396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2397 | (exit $ac_status); }; then | |
2398 | # Find the output, starting from the most likely. This scheme is | |
2399 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2400 | # resort. | |
2401 | ||
2402 | # Be careful to initialize this variable, since it used to be cached. | |
2403 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2404 | ac_cv_exeext= | |
2405 | # b.out is created by i960 compilers. | |
2406 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2407 | do | |
2408 | test -f "$ac_file" || continue | |
2409 | case $ac_file in | |
2410 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2411 | ;; | |
2412 | conftest.$ac_ext ) | |
2413 | # This is the source file. | |
2414 | ;; | |
2415 | [ab].out ) | |
2416 | # We found the default executable, but exeext='' is most | |
2417 | # certainly right. | |
2418 | break;; | |
2419 | *.* ) | |
2420 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2421 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2422 | # but it would be cool to find out if it's true. Does anybody | |
2423 | # maintain Libtool? --akim. | |
2424 | export ac_cv_exeext | |
2425 | break;; | |
2426 | * ) | |
2427 | break;; | |
2428 | esac | |
2429 | done | |
2430 | else | |
2431 | echo "$as_me: failed program was:" >&5 | |
2432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2433 | ||
2434 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2435 | See \`config.log' for more details." >&5 | |
2436 | echo "$as_me: error: C compiler cannot create executables | |
2437 | See \`config.log' for more details." >&2;} | |
2438 | { (exit 77); exit 77; }; } | |
2439 | fi | |
2440 | ||
2441 | ac_exeext=$ac_cv_exeext | |
2442 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2443 | echo "${ECHO_T}$ac_file" >&6 | |
2444 | ||
2445 | # Check the compiler produces executables we can run. If not, either | |
2446 | # the compiler is broken, or we cross compile. | |
2447 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2448 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2449 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2450 | # If not cross compiling, check that we can run a simple program. | |
2451 | if test "$cross_compiling" != yes; then | |
2452 | if { ac_try='./$ac_file' | |
2453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2454 | (eval $ac_try) 2>&5 | |
2455 | ac_status=$? | |
2456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2457 | (exit $ac_status); }; }; then | |
2458 | cross_compiling=no | |
2459 | else | |
2460 | if test "$cross_compiling" = maybe; then | |
2461 | cross_compiling=yes | |
2462 | else | |
2463 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2464 | If you meant to cross compile, use \`--host'. | |
2465 | See \`config.log' for more details." >&5 | |
2466 | echo "$as_me: error: cannot run C compiled programs. | |
2467 | If you meant to cross compile, use \`--host'. | |
2468 | See \`config.log' for more details." >&2;} | |
2469 | { (exit 1); exit 1; }; } | |
2470 | fi | |
2471 | fi | |
2472 | fi | |
2473 | echo "$as_me:$LINENO: result: yes" >&5 | |
2474 | echo "${ECHO_T}yes" >&6 | |
2475 | ||
2476 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2477 | ac_clean_files=$ac_clean_files_save | |
2478 | # Check the compiler produces executables we can run. If not, either | |
2479 | # the compiler is broken, or we cross compile. | |
2480 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2481 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2482 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2483 | echo "${ECHO_T}$cross_compiling" >&6 | |
2484 | ||
2485 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2486 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2487 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2488 | (eval $ac_link) 2>&5 | |
2489 | ac_status=$? | |
2490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2491 | (exit $ac_status); }; then | |
2492 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2493 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2494 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2495 | # `rm'. | |
2496 | for ac_file in conftest.exe conftest conftest.*; do | |
2497 | test -f "$ac_file" || continue | |
2498 | case $ac_file in | |
2499 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2500 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2501 | export ac_cv_exeext | |
2502 | break;; | |
2503 | * ) break;; | |
2504 | esac | |
2505 | done | |
2506 | else | |
2507 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2508 | See \`config.log' for more details." >&5 | |
2509 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2510 | See \`config.log' for more details." >&2;} | |
2511 | { (exit 1); exit 1; }; } | |
2512 | fi | |
2513 | ||
2514 | rm -f conftest$ac_cv_exeext | |
2515 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2516 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2517 | ||
2518 | rm -f conftest.$ac_ext | |
2519 | EXEEXT=$ac_cv_exeext | |
2520 | ac_exeext=$EXEEXT | |
f02d008e | 2521 | fi |
6de9cd9a DN |
2522 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2523 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2524 | if test "${ac_cv_objext+set}" = set; then | |
2525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2526 | else | |
2527 | cat >conftest.$ac_ext <<_ACEOF | |
2528 | /* confdefs.h. */ | |
2529 | _ACEOF | |
2530 | cat confdefs.h >>conftest.$ac_ext | |
2531 | cat >>conftest.$ac_ext <<_ACEOF | |
2532 | /* end confdefs.h. */ | |
2533 | ||
2534 | int | |
2535 | main () | |
2536 | { | |
2537 | ||
2538 | ; | |
2539 | return 0; | |
2540 | } | |
2541 | _ACEOF | |
2542 | rm -f conftest.o conftest.obj | |
2543 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2544 | (eval $ac_compile) 2>&5 | |
2545 | ac_status=$? | |
2546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2547 | (exit $ac_status); }; then | |
2548 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2549 | case $ac_file in | |
2550 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2551 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2552 | break;; | |
2553 | esac | |
2554 | done | |
2555 | else | |
2556 | echo "$as_me: failed program was:" >&5 | |
2557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2558 | ||
2559 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2560 | See \`config.log' for more details." >&5 | |
2561 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2562 | See \`config.log' for more details." >&2;} | |
2563 | { (exit 1); exit 1; }; } | |
2564 | fi | |
2565 | ||
2566 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2567 | fi | |
2568 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2569 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2570 | OBJEXT=$ac_cv_objext | |
2571 | ac_objext=$OBJEXT | |
2572 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2573 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2574 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2576 | else | |
2577 | cat >conftest.$ac_ext <<_ACEOF | |
2578 | /* confdefs.h. */ | |
2579 | _ACEOF | |
2580 | cat confdefs.h >>conftest.$ac_ext | |
2581 | cat >>conftest.$ac_ext <<_ACEOF | |
2582 | /* end confdefs.h. */ | |
2583 | ||
2584 | int | |
2585 | main () | |
2586 | { | |
2587 | #ifndef __GNUC__ | |
2588 | choke me | |
2589 | #endif | |
2590 | ||
2591 | ; | |
2592 | return 0; | |
2593 | } | |
2594 | _ACEOF | |
2595 | rm -f conftest.$ac_objext | |
2596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2597 | (eval $ac_compile) 2>conftest.er1 | |
2598 | ac_status=$? | |
2599 | grep -v '^ *+' conftest.er1 >conftest.err | |
2600 | rm -f conftest.er1 | |
2601 | cat conftest.err >&5 | |
2602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2603 | (exit $ac_status); } && | |
1409cd0b FXC |
2604 | { ac_try='test -z "$ac_c_werror_flag" |
2605 | || test ! -s conftest.err' | |
6de9cd9a DN |
2606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2607 | (eval $ac_try) 2>&5 | |
2608 | ac_status=$? | |
2609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2610 | (exit $ac_status); }; } && | |
2611 | { ac_try='test -s conftest.$ac_objext' | |
2612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2613 | (eval $ac_try) 2>&5 | |
2614 | ac_status=$? | |
2615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2616 | (exit $ac_status); }; }; then | |
2617 | ac_compiler_gnu=yes | |
2618 | else | |
2619 | echo "$as_me: failed program was:" >&5 | |
2620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2621 | ||
2622 | ac_compiler_gnu=no | |
2623 | fi | |
2624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2625 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2626 | ||
2627 | fi | |
2628 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2629 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2630 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2631 | ac_test_CFLAGS=${CFLAGS+set} | |
2632 | ac_save_CFLAGS=$CFLAGS | |
2633 | CFLAGS="-g" | |
2634 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2635 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2636 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2638 | else | |
2639 | cat >conftest.$ac_ext <<_ACEOF | |
2640 | /* confdefs.h. */ | |
2641 | _ACEOF | |
2642 | cat confdefs.h >>conftest.$ac_ext | |
2643 | cat >>conftest.$ac_ext <<_ACEOF | |
2644 | /* end confdefs.h. */ | |
2645 | ||
2646 | int | |
2647 | main () | |
2648 | { | |
2649 | ||
2650 | ; | |
2651 | return 0; | |
2652 | } | |
2653 | _ACEOF | |
2654 | rm -f conftest.$ac_objext | |
2655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2656 | (eval $ac_compile) 2>conftest.er1 | |
2657 | ac_status=$? | |
2658 | grep -v '^ *+' conftest.er1 >conftest.err | |
2659 | rm -f conftest.er1 | |
2660 | cat conftest.err >&5 | |
2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2662 | (exit $ac_status); } && | |
1409cd0b FXC |
2663 | { ac_try='test -z "$ac_c_werror_flag" |
2664 | || test ! -s conftest.err' | |
6de9cd9a DN |
2665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2666 | (eval $ac_try) 2>&5 | |
2667 | ac_status=$? | |
2668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2669 | (exit $ac_status); }; } && | |
2670 | { ac_try='test -s conftest.$ac_objext' | |
2671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2672 | (eval $ac_try) 2>&5 | |
2673 | ac_status=$? | |
2674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2675 | (exit $ac_status); }; }; then | |
2676 | ac_cv_prog_cc_g=yes | |
2677 | else | |
2678 | echo "$as_me: failed program was:" >&5 | |
2679 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2680 | ||
2681 | ac_cv_prog_cc_g=no | |
2682 | fi | |
2683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2684 | fi | |
2685 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2686 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2687 | if test "$ac_test_CFLAGS" = set; then | |
2688 | CFLAGS=$ac_save_CFLAGS | |
2689 | elif test $ac_cv_prog_cc_g = yes; then | |
2690 | if test "$GCC" = yes; then | |
2691 | CFLAGS="-g -O2" | |
2692 | else | |
2693 | CFLAGS="-g" | |
2694 | fi | |
2695 | else | |
2696 | if test "$GCC" = yes; then | |
2697 | CFLAGS="-O2" | |
2698 | else | |
2699 | CFLAGS= | |
2700 | fi | |
2701 | fi | |
2702 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2703 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2704 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2706 | else | |
2707 | ac_cv_prog_cc_stdc=no | |
2708 | ac_save_CC=$CC | |
2709 | cat >conftest.$ac_ext <<_ACEOF | |
2710 | /* confdefs.h. */ | |
2711 | _ACEOF | |
2712 | cat confdefs.h >>conftest.$ac_ext | |
2713 | cat >>conftest.$ac_ext <<_ACEOF | |
2714 | /* end confdefs.h. */ | |
2715 | #include <stdarg.h> | |
2716 | #include <stdio.h> | |
2717 | #include <sys/types.h> | |
2718 | #include <sys/stat.h> | |
2719 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2720 | struct buf { int x; }; | |
2721 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2722 | static char *e (p, i) | |
2723 | char **p; | |
2724 | int i; | |
2725 | { | |
2726 | return p[i]; | |
2727 | } | |
2728 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2729 | { | |
2730 | char *s; | |
2731 | va_list v; | |
2732 | va_start (v,p); | |
2733 | s = g (p, va_arg (v,int)); | |
2734 | va_end (v); | |
2735 | return s; | |
2736 | } | |
2737 | ||
2738 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2739 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2740 | These don't provoke an error unfortunately, instead are silently treated | |
2741 | as 'x'. The following induces an error, until -std1 is added to get | |
2742 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2743 | array size at least. It's necessary to write '\x00'==0 to get something | |
2744 | that's true only with -std1. */ | |
2745 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2746 | ||
2747 | int test (int i, double x); | |
2748 | struct s1 {int (*f) (int a);}; | |
2749 | struct s2 {int (*f) (double a);}; | |
2750 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2751 | int argc; | |
2752 | char **argv; | |
2753 | int | |
2754 | main () | |
2755 | { | |
2756 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2757 | ; | |
2758 | return 0; | |
2759 | } | |
2760 | _ACEOF | |
2761 | # Don't try gcc -ansi; that turns off useful extensions and | |
2762 | # breaks some systems' header files. | |
2763 | # AIX -qlanglvl=ansi | |
2764 | # Ultrix and OSF/1 -std1 | |
2765 | # HP-UX 10.20 and later -Ae | |
2766 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2767 | # SVR4 -Xc -D__EXTENSIONS__ | |
2768 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2769 | do | |
2770 | CC="$ac_save_CC $ac_arg" | |
2771 | rm -f conftest.$ac_objext | |
2772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2773 | (eval $ac_compile) 2>conftest.er1 | |
2774 | ac_status=$? | |
2775 | grep -v '^ *+' conftest.er1 >conftest.err | |
2776 | rm -f conftest.er1 | |
2777 | cat conftest.err >&5 | |
2778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2779 | (exit $ac_status); } && | |
1409cd0b FXC |
2780 | { ac_try='test -z "$ac_c_werror_flag" |
2781 | || test ! -s conftest.err' | |
6de9cd9a DN |
2782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2783 | (eval $ac_try) 2>&5 | |
2784 | ac_status=$? | |
2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2786 | (exit $ac_status); }; } && | |
2787 | { ac_try='test -s conftest.$ac_objext' | |
2788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2789 | (eval $ac_try) 2>&5 | |
2790 | ac_status=$? | |
2791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2792 | (exit $ac_status); }; }; then | |
2793 | ac_cv_prog_cc_stdc=$ac_arg | |
2794 | break | |
2795 | else | |
2796 | echo "$as_me: failed program was:" >&5 | |
2797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2798 | ||
2799 | fi | |
2800 | rm -f conftest.err conftest.$ac_objext | |
2801 | done | |
2802 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2803 | CC=$ac_save_CC | |
2804 | ||
2805 | fi | |
2806 | ||
2807 | case "x$ac_cv_prog_cc_stdc" in | |
2808 | x|xno) | |
2809 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2810 | echo "${ECHO_T}none needed" >&6 ;; | |
2811 | *) | |
2812 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2813 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2814 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2815 | esac | |
2816 | ||
2817 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2818 | # in C++ we need to declare it. In case someone uses the same compiler | |
2819 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2820 | # the declaration of exit, since it's the most demanding environment. | |
2821 | cat >conftest.$ac_ext <<_ACEOF | |
2822 | #ifndef __cplusplus | |
2823 | choke me | |
2824 | #endif | |
2825 | _ACEOF | |
2826 | rm -f conftest.$ac_objext | |
2827 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2828 | (eval $ac_compile) 2>conftest.er1 | |
2829 | ac_status=$? | |
2830 | grep -v '^ *+' conftest.er1 >conftest.err | |
2831 | rm -f conftest.er1 | |
2832 | cat conftest.err >&5 | |
2833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2834 | (exit $ac_status); } && | |
1409cd0b FXC |
2835 | { ac_try='test -z "$ac_c_werror_flag" |
2836 | || test ! -s conftest.err' | |
6de9cd9a DN |
2837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2838 | (eval $ac_try) 2>&5 | |
2839 | ac_status=$? | |
2840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2841 | (exit $ac_status); }; } && | |
2842 | { ac_try='test -s conftest.$ac_objext' | |
2843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2844 | (eval $ac_try) 2>&5 | |
2845 | ac_status=$? | |
2846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2847 | (exit $ac_status); }; }; then | |
2848 | for ac_declaration in \ | |
2849 | '' \ | |
2850 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2851 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2852 | 'extern "C" void exit (int) throw ();' \ | |
2853 | 'extern "C" void exit (int);' \ | |
2854 | 'void exit (int);' | |
2855 | do | |
2856 | cat >conftest.$ac_ext <<_ACEOF | |
2857 | /* confdefs.h. */ | |
2858 | _ACEOF | |
2859 | cat confdefs.h >>conftest.$ac_ext | |
2860 | cat >>conftest.$ac_ext <<_ACEOF | |
2861 | /* end confdefs.h. */ | |
2862 | $ac_declaration | |
2863 | #include <stdlib.h> | |
2864 | int | |
2865 | main () | |
2866 | { | |
2867 | exit (42); | |
2868 | ; | |
2869 | return 0; | |
2870 | } | |
2871 | _ACEOF | |
2872 | rm -f conftest.$ac_objext | |
2873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2874 | (eval $ac_compile) 2>conftest.er1 | |
2875 | ac_status=$? | |
2876 | grep -v '^ *+' conftest.er1 >conftest.err | |
2877 | rm -f conftest.er1 | |
2878 | cat conftest.err >&5 | |
2879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2880 | (exit $ac_status); } && | |
1409cd0b FXC |
2881 | { ac_try='test -z "$ac_c_werror_flag" |
2882 | || test ! -s conftest.err' | |
6de9cd9a DN |
2883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2884 | (eval $ac_try) 2>&5 | |
2885 | ac_status=$? | |
2886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2887 | (exit $ac_status); }; } && | |
2888 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
2894 | : | |
2895 | else | |
2896 | echo "$as_me: failed program was:" >&5 | |
2897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2898 | ||
2899 | continue | |
2900 | fi | |
2901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2902 | cat >conftest.$ac_ext <<_ACEOF | |
2903 | /* confdefs.h. */ | |
2904 | _ACEOF | |
2905 | cat confdefs.h >>conftest.$ac_ext | |
2906 | cat >>conftest.$ac_ext <<_ACEOF | |
2907 | /* end confdefs.h. */ | |
2908 | $ac_declaration | |
2909 | int | |
2910 | main () | |
2911 | { | |
2912 | exit (42); | |
2913 | ; | |
2914 | return 0; | |
2915 | } | |
2916 | _ACEOF | |
2917 | rm -f conftest.$ac_objext | |
2918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2919 | (eval $ac_compile) 2>conftest.er1 | |
2920 | ac_status=$? | |
2921 | grep -v '^ *+' conftest.er1 >conftest.err | |
2922 | rm -f conftest.er1 | |
2923 | cat conftest.err >&5 | |
2924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2925 | (exit $ac_status); } && | |
1409cd0b FXC |
2926 | { ac_try='test -z "$ac_c_werror_flag" |
2927 | || test ! -s conftest.err' | |
6de9cd9a DN |
2928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2929 | (eval $ac_try) 2>&5 | |
2930 | ac_status=$? | |
2931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2932 | (exit $ac_status); }; } && | |
2933 | { ac_try='test -s conftest.$ac_objext' | |
2934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2935 | (eval $ac_try) 2>&5 | |
2936 | ac_status=$? | |
2937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2938 | (exit $ac_status); }; }; then | |
2939 | break | |
2940 | else | |
2941 | echo "$as_me: failed program was:" >&5 | |
2942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2943 | ||
2944 | fi | |
2945 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2946 | done | |
2947 | rm -f conftest* | |
2948 | if test -n "$ac_declaration"; then | |
2949 | echo '#ifdef __cplusplus' >>confdefs.h | |
2950 | echo $ac_declaration >>confdefs.h | |
2951 | echo '#endif' >>confdefs.h | |
2952 | fi | |
2953 | ||
2954 | else | |
2955 | echo "$as_me: failed program was:" >&5 | |
2956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2957 | ||
2958 | fi | |
2959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2960 | ac_ext=c | |
2961 | ac_cpp='$CPP $CPPFLAGS' | |
2962 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2963 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2964 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a | 2965 | |
6de9cd9a | 2966 | |
6de9cd9a | 2967 | |
17109ecb | 2968 | # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC. |
96b8a615 | 2969 | if test "x$GCC" = "xyes"; then |
17109ecb | 2970 | AM_FCFLAGS="-Wall -fno-repack-arrays -fno-underscoring" |
e606fb39 AJ |
2971 | ## We like to use C99 routines when available. This makes sure that |
2972 | ## __STDC_VERSION__ is set such that libc includes make them available. | |
69a2d125 | 2973 | AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings" |
6de9cd9a DN |
2974 | fi |
2975 | ||
e606fb39 AJ |
2976 | |
2977 | ||
96b8a615 AJ |
2978 | # Find other programs we need. |
2979 | if test -n "$ac_tool_prefix"; then | |
2980 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
2981 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
2982 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2983 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2984 | if test "${ac_cv_prog_AS+set}" = set; then | |
6de9cd9a DN |
2985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2986 | else | |
96b8a615 AJ |
2987 | if test -n "$AS"; then |
2988 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
2989 | else | |
2990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2991 | for as_dir in $PATH | |
2992 | do | |
2993 | IFS=$as_save_IFS | |
2994 | test -z "$as_dir" && as_dir=. | |
2995 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2996 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2997 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
2998 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2999 | break 2 | |
6de9cd9a | 3000 | fi |
96b8a615 AJ |
3001 | done |
3002 | done | |
6de9cd9a | 3003 | |
96b8a615 AJ |
3004 | fi |
3005 | fi | |
3006 | AS=$ac_cv_prog_AS | |
3007 | if test -n "$AS"; then | |
3008 | echo "$as_me:$LINENO: result: $AS" >&5 | |
3009 | echo "${ECHO_T}$AS" >&6 | |
6de9cd9a | 3010 | else |
96b8a615 AJ |
3011 | echo "$as_me:$LINENO: result: no" >&5 |
3012 | echo "${ECHO_T}no" >&6 | |
6de9cd9a DN |
3013 | fi |
3014 | ||
3015 | fi | |
96b8a615 AJ |
3016 | if test -z "$ac_cv_prog_AS"; then |
3017 | ac_ct_AS=$AS | |
3018 | # Extract the first word of "as", so it can be a program name with args. | |
3019 | set dummy as; ac_word=$2 | |
3020 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3021 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3022 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | |
3023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3024 | else | |
3025 | if test -n "$ac_ct_AS"; then | |
3026 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
3027 | else | |
3028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3029 | for as_dir in $PATH | |
3030 | do | |
3031 | IFS=$as_save_IFS | |
3032 | test -z "$as_dir" && as_dir=. | |
3033 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3034 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3035 | ac_cv_prog_ac_ct_AS="as" | |
3036 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3037 | break 2 | |
3038 | fi | |
3039 | done | |
3040 | done | |
6de9cd9a | 3041 | |
96b8a615 AJ |
3042 | fi |
3043 | fi | |
3044 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
3045 | if test -n "$ac_ct_AS"; then | |
3046 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | |
3047 | echo "${ECHO_T}$ac_ct_AS" >&6 | |
6de9cd9a | 3048 | else |
96b8a615 AJ |
3049 | echo "$as_me:$LINENO: result: no" >&5 |
3050 | echo "${ECHO_T}no" >&6 | |
6de9cd9a DN |
3051 | fi |
3052 | ||
96b8a615 AJ |
3053 | AS=$ac_ct_AS |
3054 | else | |
3055 | AS="$ac_cv_prog_AS" | |
6de9cd9a DN |
3056 | fi |
3057 | ||
6de9cd9a | 3058 | if test -n "$ac_tool_prefix"; then |
96b8a615 AJ |
3059 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
3060 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6de9cd9a DN |
3061 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3062 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
96b8a615 | 3063 | if test "${ac_cv_prog_AR+set}" = set; then |
6de9cd9a DN |
3064 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3065 | else | |
96b8a615 AJ |
3066 | if test -n "$AR"; then |
3067 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6de9cd9a DN |
3068 | else |
3069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3070 | for as_dir in $PATH | |
3071 | do | |
3072 | IFS=$as_save_IFS | |
3073 | test -z "$as_dir" && as_dir=. | |
3074 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3075 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
96b8a615 | 3076 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6de9cd9a DN |
3077 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3078 | break 2 | |
3079 | fi | |
3080 | done | |
3081 | done | |
3082 | ||
3083 | fi | |
3084 | fi | |
96b8a615 AJ |
3085 | AR=$ac_cv_prog_AR |
3086 | if test -n "$AR"; then | |
3087 | echo "$as_me:$LINENO: result: $AR" >&5 | |
3088 | echo "${ECHO_T}$AR" >&6 | |
6de9cd9a DN |
3089 | else |
3090 | echo "$as_me:$LINENO: result: no" >&5 | |
3091 | echo "${ECHO_T}no" >&6 | |
3092 | fi | |
3093 | ||
6de9cd9a | 3094 | fi |
96b8a615 AJ |
3095 | if test -z "$ac_cv_prog_AR"; then |
3096 | ac_ct_AR=$AR | |
3097 | # Extract the first word of "ar", so it can be a program name with args. | |
3098 | set dummy ar; ac_word=$2 | |
6de9cd9a DN |
3099 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3100 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
96b8a615 | 3101 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6de9cd9a DN |
3102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3103 | else | |
96b8a615 AJ |
3104 | if test -n "$ac_ct_AR"; then |
3105 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6de9cd9a DN |
3106 | else |
3107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3108 | for as_dir in $PATH | |
3109 | do | |
3110 | IFS=$as_save_IFS | |
3111 | test -z "$as_dir" && as_dir=. | |
3112 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3113 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
96b8a615 | 3114 | ac_cv_prog_ac_ct_AR="ar" |
6de9cd9a DN |
3115 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3116 | break 2 | |
3117 | fi | |
3118 | done | |
3119 | done | |
3120 | ||
3121 | fi | |
3122 | fi | |
96b8a615 AJ |
3123 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
3124 | if test -n "$ac_ct_AR"; then | |
3125 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3126 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
6de9cd9a DN |
3127 | else |
3128 | echo "$as_me:$LINENO: result: no" >&5 | |
3129 | echo "${ECHO_T}no" >&6 | |
3130 | fi | |
3131 | ||
96b8a615 AJ |
3132 | AR=$ac_ct_AR |
3133 | else | |
3134 | AR="$ac_cv_prog_AR" | |
6de9cd9a DN |
3135 | fi |
3136 | ||
96b8a615 AJ |
3137 | if test -n "$ac_tool_prefix"; then |
3138 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3139 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3140 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3141 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3142 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6de9cd9a DN |
3143 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3144 | else | |
96b8a615 AJ |
3145 | if test -n "$RANLIB"; then |
3146 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6de9cd9a | 3147 | else |
96b8a615 AJ |
3148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3149 | for as_dir in $PATH | |
3150 | do | |
3151 | IFS=$as_save_IFS | |
3152 | test -z "$as_dir" && as_dir=. | |
3153 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3154 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3155 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3156 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3157 | break 2 | |
3158 | fi | |
3159 | done | |
3160 | done | |
6de9cd9a | 3161 | |
6de9cd9a | 3162 | fi |
96b8a615 AJ |
3163 | fi |
3164 | RANLIB=$ac_cv_prog_RANLIB | |
3165 | if test -n "$RANLIB"; then | |
3166 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3167 | echo "${ECHO_T}$RANLIB" >&6 | |
3168 | else | |
3169 | echo "$as_me:$LINENO: result: no" >&5 | |
3170 | echo "${ECHO_T}no" >&6 | |
3171 | fi | |
6de9cd9a DN |
3172 | |
3173 | fi | |
96b8a615 AJ |
3174 | if test -z "$ac_cv_prog_RANLIB"; then |
3175 | ac_ct_RANLIB=$RANLIB | |
3176 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3177 | set dummy ranlib; ac_word=$2 | |
3178 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3179 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3180 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6de9cd9a DN |
3181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3182 | else | |
96b8a615 AJ |
3183 | if test -n "$ac_ct_RANLIB"; then |
3184 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6de9cd9a | 3185 | else |
96b8a615 AJ |
3186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3187 | for as_dir in $PATH | |
3188 | do | |
3189 | IFS=$as_save_IFS | |
3190 | test -z "$as_dir" && as_dir=. | |
3191 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3192 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3193 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3194 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3195 | break 2 | |
3196 | fi | |
3197 | done | |
3198 | done | |
6de9cd9a | 3199 | |
96b8a615 | 3200 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" |
6de9cd9a | 3201 | fi |
6de9cd9a | 3202 | fi |
96b8a615 AJ |
3203 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3204 | if test -n "$ac_ct_RANLIB"; then | |
3205 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3206 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
6de9cd9a | 3207 | else |
96b8a615 AJ |
3208 | echo "$as_me:$LINENO: result: no" >&5 |
3209 | echo "${ECHO_T}no" >&6 | |
6de9cd9a DN |
3210 | fi |
3211 | ||
96b8a615 AJ |
3212 | RANLIB=$ac_ct_RANLIB |
3213 | else | |
3214 | RANLIB="$ac_cv_prog_RANLIB" | |
6de9cd9a | 3215 | fi |
96b8a615 AJ |
3216 | |
3217 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3218 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3219 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3220 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
6de9cd9a DN |
3221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3222 | else | |
96b8a615 AJ |
3223 | cat >conftest.make <<\_ACEOF |
3224 | all: | |
3225 | @echo 'ac_maketemp="$(MAKE)"' | |
6de9cd9a | 3226 | _ACEOF |
96b8a615 AJ |
3227 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
3228 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3229 | if test -n "$ac_maketemp"; then | |
3230 | eval ac_cv_prog_make_${ac_make}_set=yes | |
6de9cd9a | 3231 | else |
96b8a615 | 3232 | eval ac_cv_prog_make_${ac_make}_set=no |
6de9cd9a | 3233 | fi |
96b8a615 AJ |
3234 | rm -f conftest.make |
3235 | fi | |
3236 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3237 | echo "$as_me:$LINENO: result: yes" >&5 | |
3238 | echo "${ECHO_T}yes" >&6 | |
3239 | SET_MAKE= | |
6de9cd9a | 3240 | else |
96b8a615 AJ |
3241 | echo "$as_me:$LINENO: result: no" >&5 |
3242 | echo "${ECHO_T}no" >&6 | |
3243 | SET_MAKE="MAKE=${MAKE-make}" | |
6de9cd9a | 3244 | fi |
6de9cd9a | 3245 | |
96b8a615 AJ |
3246 | # Find a good install program. We prefer a C program (faster), |
3247 | # so one script is as good as another. But avoid the broken or | |
3248 | # incompatible versions: | |
3249 | # SysV /etc/install, /usr/sbin/install | |
3250 | # SunOS /usr/etc/install | |
3251 | # IRIX /sbin/install | |
3252 | # AIX /bin/install | |
3253 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3254 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3255 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3256 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3257 | # OS/2's system install, which has a completely different semantic | |
3258 | # ./install, which can be erroneously created by make from ./install.sh. | |
3259 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
3260 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
3261 | if test -z "$INSTALL"; then | |
3262 | if test "${ac_cv_path_install+set}" = set; then | |
3263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6de9cd9a | 3264 | else |
96b8a615 AJ |
3265 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3266 | for as_dir in $PATH | |
3267 | do | |
3268 | IFS=$as_save_IFS | |
3269 | test -z "$as_dir" && as_dir=. | |
3270 | # Account for people who put trailing slashes in PATH elements. | |
3271 | case $as_dir/ in | |
3272 | ./ | .// | /cC/* | \ | |
3273 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3274 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
3275 | /usr/ucb/* ) ;; | |
3276 | *) | |
3277 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3278 | # Don't use installbsd from OSF since it installs stuff as root | |
3279 | # by default. | |
3280 | for ac_prog in ginstall scoinst install; do | |
3281 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3282 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
3283 | if test $ac_prog = install && | |
3284 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3285 | # AIX install. It has an incompatible calling convention. | |
3286 | : | |
3287 | elif test $ac_prog = install && | |
3288 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3289 | # program-specific install script used by HP pwplus--don't use. | |
3290 | : | |
3291 | else | |
3292 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3293 | break 3 | |
3294 | fi | |
3295 | fi | |
3296 | done | |
3297 | done | |
3298 | ;; | |
3299 | esac | |
6de9cd9a | 3300 | done |
6de9cd9a | 3301 | |
6de9cd9a DN |
3302 | |
3303 | fi | |
96b8a615 AJ |
3304 | if test "${ac_cv_path_install+set}" = set; then |
3305 | INSTALL=$ac_cv_path_install | |
6de9cd9a | 3306 | else |
96b8a615 AJ |
3307 | # As a last resort, use the slow shell script. We don't cache a |
3308 | # path for INSTALL within a source directory, because that will | |
3309 | # break other packages using the cache if that directory is | |
3310 | # removed, or if the path is relative. | |
3311 | INSTALL=$ac_install_sh | |
6de9cd9a | 3312 | fi |
6de9cd9a | 3313 | fi |
96b8a615 AJ |
3314 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3315 | echo "${ECHO_T}$INSTALL" >&6 | |
6de9cd9a | 3316 | |
96b8a615 AJ |
3317 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3318 | # It thinks the first close brace ends the variable substitution. | |
3319 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
6de9cd9a | 3320 | |
96b8a615 | 3321 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
6de9cd9a | 3322 | |
96b8a615 | 3323 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
6de9cd9a | 3324 | |
6de9cd9a | 3325 | |
96b8a615 AJ |
3326 | # Configure libtool |
3327 | #AC_MSG_NOTICE([====== Starting libtool configuration]) | |
6de9cd9a | 3328 | |
96b8a615 AJ |
3329 | # Check whether --enable-shared or --disable-shared was given. |
3330 | if test "${enable_shared+set}" = set; then | |
3331 | enableval="$enable_shared" | |
3332 | p=${PACKAGE-default} | |
3333 | case $enableval in | |
3334 | yes) enable_shared=yes ;; | |
3335 | no) enable_shared=no ;; | |
3336 | *) | |
3337 | enable_shared=no | |
3338 | # Look at the argument we got. We use all the common list separators. | |
3339 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3340 | for pkg in $enableval; do | |
3341 | if test "X$pkg" = "X$p"; then | |
3342 | enable_shared=yes | |
6de9cd9a | 3343 | fi |
96b8a615 AJ |
3344 | done |
3345 | IFS="$ac_save_ifs" | |
3346 | ;; | |
3347 | esac | |
6de9cd9a | 3348 | else |
96b8a615 AJ |
3349 | enable_shared=yes |
3350 | fi; | |
3351 | # Check whether --enable-static or --disable-static was given. | |
3352 | if test "${enable_static+set}" = set; then | |
3353 | enableval="$enable_static" | |
3354 | p=${PACKAGE-default} | |
3355 | case $enableval in | |
3356 | yes) enable_static=yes ;; | |
3357 | no) enable_static=no ;; | |
3358 | *) | |
3359 | enable_static=no | |
3360 | # Look at the argument we got. We use all the common list separators. | |
3361 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3362 | for pkg in $enableval; do | |
3363 | if test "X$pkg" = "X$p"; then | |
3364 | enable_static=yes | |
3365 | fi | |
3366 | done | |
3367 | IFS="$ac_save_ifs" | |
3368 | ;; | |
3369 | esac | |
3370 | else | |
3371 | enable_static=yes | |
3372 | fi; | |
3373 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
3374 | if test "${enable_fast_install+set}" = set; then | |
3375 | enableval="$enable_fast_install" | |
3376 | p=${PACKAGE-default} | |
3377 | case $enableval in | |
3378 | yes) enable_fast_install=yes ;; | |
3379 | no) enable_fast_install=no ;; | |
3380 | *) | |
3381 | enable_fast_install=no | |
3382 | # Look at the argument we got. We use all the common list separators. | |
3383 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3384 | for pkg in $enableval; do | |
3385 | if test "X$pkg" = "X$p"; then | |
3386 | enable_fast_install=yes | |
3387 | fi | |
3388 | done | |
3389 | IFS="$ac_save_ifs" | |
3390 | ;; | |
3391 | esac | |
3392 | else | |
3393 | enable_fast_install=yes | |
3394 | fi; | |
6de9cd9a | 3395 | |
96b8a615 AJ |
3396 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3397 | if test "${with_gnu_ld+set}" = set; then | |
3398 | withval="$with_gnu_ld" | |
3399 | test "$withval" = no || with_gnu_ld=yes | |
3400 | else | |
3401 | with_gnu_ld=no | |
3402 | fi; | |
3403 | ac_prog=ld | |
3404 | if test "$GCC" = yes; then | |
3405 | # Check if gcc -print-prog-name=ld gives a path. | |
3406 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
3407 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
3408 | case $host in | |
3409 | *-*-mingw*) | |
3410 | # gcc leaves a trailing carriage return which upsets mingw | |
3411 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3412 | *) | |
3413 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3414 | esac | |
3415 | case $ac_prog in | |
3416 | # Accept absolute paths. | |
3417 | [\\/]* | [A-Za-z]:[\\/]*) | |
3418 | re_direlt='/[^/][^/]*/\.\./' | |
3419 | # Canonicalize the path of ld | |
3420 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3421 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3422 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3423 | done | |
3424 | test -z "$LD" && LD="$ac_prog" | |
3425 | ;; | |
3426 | "") | |
3427 | # If it fails, then pretend we aren't using GCC. | |
3428 | ac_prog=ld | |
3429 | ;; | |
3430 | *) | |
3431 | # If it is relative, then search for the first ld in PATH. | |
3432 | with_gnu_ld=unknown | |
3433 | ;; | |
3434 | esac | |
3435 | elif test "$with_gnu_ld" = yes; then | |
3436 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
3437 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
3438 | else | |
3439 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
3440 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
3441 | fi | |
3442 | if test "${lt_cv_path_LD+set}" = set; then | |
3443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3444 | else | |
3445 | if test -z "$LD"; then | |
3446 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3447 | for ac_dir in $PATH; do | |
3448 | test -z "$ac_dir" && ac_dir=. | |
3449 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3450 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3451 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3452 | # but apparently some GNU ld's only accept -v. | |
3453 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3454 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
3455 | test "$with_gnu_ld" != no && break | |
3456 | else | |
3457 | test "$with_gnu_ld" != yes && break | |
3458 | fi | |
3459 | fi | |
3460 | done | |
3461 | IFS="$ac_save_ifs" | |
3462 | else | |
3463 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3464 | fi | |
3465 | fi | |
3466 | ||
3467 | LD="$lt_cv_path_LD" | |
3468 | if test -n "$LD"; then | |
3469 | echo "$as_me:$LINENO: result: $LD" >&5 | |
3470 | echo "${ECHO_T}$LD" >&6 | |
3471 | else | |
3472 | echo "$as_me:$LINENO: result: no" >&5 | |
3473 | echo "${ECHO_T}no" >&6 | |
3474 | fi | |
3475 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
3476 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3477 | { (exit 1); exit 1; }; } | |
3478 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3479 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3480 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3482 | else | |
3483 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3484 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
3485 | lt_cv_prog_gnu_ld=yes | |
3486 | else | |
3487 | lt_cv_prog_gnu_ld=no | |
3488 | fi | |
3489 | fi | |
3490 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
3491 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
3492 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3493 | ||
3494 | ||
3495 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
3496 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3497 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3499 | else | |
3500 | lt_cv_ld_reload_flag='-r' | |
3501 | fi | |
3502 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
3503 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
3504 | reload_flag=$lt_cv_ld_reload_flag | |
3505 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3506 | ||
3507 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
3508 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3509 | if test "${lt_cv_path_NM+set}" = set; then | |
3510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3511 | else | |
3512 | if test -n "$NM"; then | |
3513 | # Let the user override the test. | |
3514 | lt_cv_path_NM="$NM" | |
3515 | else | |
3516 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
3517 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
3518 | test -z "$ac_dir" && ac_dir=. | |
3519 | tmp_nm=$ac_dir/${ac_tool_prefix}nm | |
3520 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
3521 | # Check to see if the nm accepts a BSD-compat flag. | |
3522 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3523 | # nm: unknown option "B" ignored | |
3524 | # Tru64's nm complains that /dev/null is an invalid object file | |
3525 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
3526 | lt_cv_path_NM="$tmp_nm -B" | |
3527 | break | |
3528 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
3529 | lt_cv_path_NM="$tmp_nm -p" | |
3530 | break | |
3531 | else | |
3532 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3533 | continue # so that we can try to find one that supports BSD flags | |
3534 | fi | |
3535 | fi | |
3536 | done | |
3537 | IFS="$ac_save_ifs" | |
3538 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
3539 | fi | |
3540 | fi | |
3541 | ||
3542 | NM="$lt_cv_path_NM" | |
3543 | echo "$as_me:$LINENO: result: $NM" >&5 | |
3544 | echo "${ECHO_T}$NM" >&6 | |
3545 | ||
3546 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
3547 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3548 | LN_S=$as_ln_s | |
3549 | if test "$LN_S" = "ln -s"; then | |
3550 | echo "$as_me:$LINENO: result: yes" >&5 | |
3551 | echo "${ECHO_T}yes" >&6 | |
3552 | else | |
3553 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
3554 | echo "${ECHO_T}no, using $LN_S" >&6 | |
3555 | fi | |
3556 | ||
3557 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 | |
3558 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3559 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3561 | else | |
3562 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3563 | lt_cv_file_magic_test_file= | |
3564 | lt_cv_deplibs_check_method='unknown' | |
3565 | # Need to set the preceding variable on all platforms that support | |
3566 | # interlibrary dependencies. | |
3567 | # 'none' -- dependencies not supported. | |
3568 | # `unknown' -- same as none, but documents that we really don't know. | |
3569 | # 'pass_all' -- all dependencies passed with no checks. | |
3570 | # 'test_compile' -- check by making test program. | |
3571 | # 'file_magic [regex]' -- check by looking for files in library path | |
3572 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3573 | # If you have `file' or equivalent on your system and you're not sure | |
3574 | # whether `pass_all' will *always* work, you probably want this one. | |
3575 | ||
3576 | case $host_os in | |
3577 | aix*) | |
3578 | lt_cv_deplibs_check_method=pass_all | |
3579 | ;; | |
3580 | ||
3581 | beos*) | |
3582 | lt_cv_deplibs_check_method=pass_all | |
3583 | ;; | |
3584 | ||
3585 | bsdi4*) | |
3586 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
3587 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3588 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3589 | ;; | |
3590 | ||
3591 | cygwin* | mingw* |pw32*) | |
3592 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
3593 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3594 | ;; | |
3595 | ||
3596 | darwin* | rhapsody*) | |
3597 | # this will be overwritten by pass_all, but leave it in just in case | |
3598 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
3599 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3600 | case "$host_os" in | |
3601 | rhapsody* | darwin1.012) | |
3602 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3603 | ;; | |
3604 | *) # Darwin 1.3 on | |
3605 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3606 | ;; | |
3607 | esac | |
3608 | lt_cv_deplibs_check_method=pass_all | |
3609 | ;; | |
3610 | ||
3611 | freebsd* | kfreebsd*-gnu) | |
3612 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3613 | case $host_cpu in | |
3614 | i*86 ) | |
3615 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3616 | # Let's accept both of them until this is cleared up. | |
3617 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | |
3618 | lt_cv_file_magic_cmd=/usr/bin/file | |
3619 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3620 | ;; | |
3621 | esac | |
3622 | else | |
3623 | lt_cv_deplibs_check_method=pass_all | |
3624 | fi | |
3625 | ;; | |
3626 | ||
3627 | gnu*) | |
3628 | lt_cv_deplibs_check_method=pass_all | |
3629 | ;; | |
3630 | ||
3631 | hpux10.20*|hpux11*) | |
3632 | case $host_cpu in | |
3633 | hppa*) | |
3634 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3635 | lt_cv_file_magic_cmd=/usr/bin/file | |
3636 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3637 | ;; | |
3638 | ia64*) | |
3639 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3640 | lt_cv_file_magic_cmd=/usr/bin/file | |
3641 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3642 | ;; | |
3643 | esac | |
3644 | ;; | |
3645 | ||
3646 | irix5* | irix6*) | |
3647 | case $host_os in | |
3648 | irix5*) | |
3649 | # this will be overridden with pass_all, but let us keep it just in case | |
3650 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3651 | ;; | |
3652 | *) | |
3653 | case $LD in | |
3654 | *-32|*"-32 ") libmagic=32-bit;; | |
3655 | *-n32|*"-n32 ") libmagic=N32;; | |
3656 | *-64|*"-64 ") libmagic=64-bit;; | |
3657 | *) libmagic=never-match;; | |
3658 | esac | |
3659 | # this will be overridden with pass_all, but let us keep it just in case | |
3660 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" | |
3661 | ;; | |
3662 | esac | |
3663 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3664 | lt_cv_deplibs_check_method=pass_all | |
3665 | ;; | |
3666 | ||
3667 | # This must be Linux ELF. | |
3668 | linux-gnu*) | |
2c92e90f | 3669 | lt_cv_deplibs_check_method=pass_all |
96b8a615 AJ |
3670 | ;; |
3671 | ||
3672 | netbsd* | knetbsd*-gnu) | |
3673 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
3674 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | |
3675 | else | |
3676 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' | |
3677 | fi | |
3678 | ;; | |
3679 | ||
3680 | newsos6) | |
3681 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3682 | lt_cv_file_magic_cmd=/usr/bin/file | |
3683 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3684 | ;; | |
3685 | ||
3686 | osf3* | osf4* | osf5*) | |
3687 | # this will be overridden with pass_all, but let us keep it just in case | |
3688 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3689 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3690 | lt_cv_deplibs_check_method=pass_all | |
3691 | ;; | |
3692 | ||
3693 | sco3.2v5*) | |
3694 | lt_cv_deplibs_check_method=pass_all | |
3695 | ;; | |
3696 | ||
3697 | solaris*) | |
3698 | lt_cv_deplibs_check_method=pass_all | |
3699 | lt_cv_file_magic_test_file=/lib/libc.so | |
3700 | ;; | |
3701 | ||
3702 | sysv5uw[78]* | sysv4*uw2*) | |
3703 | lt_cv_deplibs_check_method=pass_all | |
3704 | ;; | |
3705 | ||
3706 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
3707 | case $host_vendor in | |
3708 | ncr) | |
3709 | lt_cv_deplibs_check_method=pass_all | |
3710 | ;; | |
3711 | motorola) | |
3712 | 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]' | |
3713 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3714 | ;; | |
3715 | esac | |
3716 | ;; | |
3717 | esac | |
3718 | ||
3719 | fi | |
3720 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
3721 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
3722 | file_magic_cmd=$lt_cv_file_magic_cmd | |
3723 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3724 | ||
3725 | ||
3726 | ||
3727 | ||
3728 | ||
3729 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3730 | ||
6dab073b MS |
3731 | # find the maximum length of command line arguments |
3732 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
3733 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
3734 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
3735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3736 | else | |
3737 | i=0 | |
3738 | teststring="ABCD" | |
3739 | ||
3740 | case $build_os in | |
3741 | msdosdjgpp*) | |
3742 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
3743 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
3744 | # during glob expansion). Even if it were fixed, the result of this | |
3745 | # check would be larger than it should be. | |
3746 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
3747 | ;; | |
3748 | ||
3749 | cygwin* | mingw*) | |
3750 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
3751 | # about 5 minutes as the teststring grows exponentially. | |
3752 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
3753 | # you end up with a "frozen" computer, even though with patience | |
3754 | # the test eventually succeeds (with a max line length of 256k). | |
3755 | # Instead, let's just punt: use the minimum linelength reported by | |
3756 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
3757 | lt_cv_sys_max_cmd_len=8192; | |
3758 | ;; | |
3759 | ||
3760 | amigaos*) | |
3761 | # On AmigaOS with pdksh, this test takes hours, literally. | |
3762 | # So we just punt and use a minimum line length of 8192. | |
3763 | lt_cv_sys_max_cmd_len=8192; | |
3764 | ;; | |
3765 | ||
3766 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
3767 | # This has been around since 386BSD, at least. Likely further. | |
3768 | if test -x /sbin/sysctl; then | |
3769 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
3770 | elif test -x /usr/sbin/sysctl; then | |
3771 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
3772 | else | |
3773 | lt_cv_sys_max_cmd_len=65536 # usable default for *BSD | |
3774 | fi | |
3775 | # And add a safety zone | |
3776 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
3777 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
3778 | ;; | |
3779 | esac | |
3780 | ||
3781 | fi | |
3782 | ||
f4c767fd | 3783 | if test -n "$lt_cv_sys_max_cmd_len" ; then |
6dab073b MS |
3784 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
3785 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
3786 | else | |
3787 | echo "$as_me:$LINENO: result: none" >&5 | |
3788 | echo "${ECHO_T}none" >&6 | |
3789 | fi | |
3790 | ||
3791 | ||
96b8a615 AJ |
3792 | # Only perform the check for file, if the check method requires it |
3793 | case $deplibs_check_method in | |
3794 | file_magic*) | |
3795 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
3796 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
3797 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3798 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3800 | else | |
3801 | case $MAGIC_CMD in | |
3802 | /*) | |
3803 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3804 | ;; | |
3805 | ?:/*) | |
3806 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3807 | ;; | |
3808 | *) | |
3809 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
3810 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3811 | ac_dummy="/usr/bin:$PATH" | |
3812 | for ac_dir in $ac_dummy; do | |
3813 | test -z "$ac_dir" && ac_dir=. | |
3814 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
3815 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
3816 | if test -n "$file_magic_test_file"; then | |
3817 | case $deplibs_check_method in | |
3818 | "file_magic "*) | |
3819 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3820 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3821 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3822 | egrep "$file_magic_regex" > /dev/null; then | |
3823 | : | |
3824 | else | |
3825 | cat <<EOF 1>&2 | |
3826 | ||
3827 | *** Warning: the command libtool uses to detect shared libraries, | |
3828 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3829 | *** The result is that libtool may fail to recognize shared libraries | |
3830 | *** as such. This will affect the creation of libtool libraries that | |
3831 | *** depend on shared libraries, but programs linked with such libtool | |
3832 | *** libraries will work regardless of this problem. Nevertheless, you | |
3833 | *** may want to report the problem to your system manager and/or to | |
3834 | *** bug-libtool@gnu.org | |
3835 | ||
3836 | EOF | |
3837 | fi ;; | |
3838 | esac | |
3839 | fi | |
3840 | break | |
3841 | fi | |
3842 | done | |
3843 | IFS="$ac_save_ifs" | |
3844 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
3845 | ;; | |
3846 | esac | |
3847 | fi | |
3848 | ||
3849 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3850 | if test -n "$MAGIC_CMD"; then | |
3851 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
3852 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
3853 | else | |
3854 | echo "$as_me:$LINENO: result: no" >&5 | |
3855 | echo "${ECHO_T}no" >&6 | |
3856 | fi | |
3857 | ||
3858 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
3859 | if test -n "$ac_tool_prefix"; then | |
3860 | echo "$as_me:$LINENO: checking for file" >&5 | |
3861 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3862 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3864 | else | |
3865 | case $MAGIC_CMD in | |
3866 | /*) | |
3867 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3868 | ;; | |
3869 | ?:/*) | |
3870 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3871 | ;; | |
3872 | *) | |
3873 | ac_save_MAGIC_CMD="$MAGIC_CMD" | |
3874 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3875 | ac_dummy="/usr/bin:$PATH" | |
3876 | for ac_dir in $ac_dummy; do | |
3877 | test -z "$ac_dir" && ac_dir=. | |
3878 | if test -f $ac_dir/file; then | |
3879 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
3880 | if test -n "$file_magic_test_file"; then | |
3881 | case $deplibs_check_method in | |
3882 | "file_magic "*) | |
3883 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
3884 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3885 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3886 | egrep "$file_magic_regex" > /dev/null; then | |
3887 | : | |
3888 | else | |
3889 | cat <<EOF 1>&2 | |
3890 | ||
3891 | *** Warning: the command libtool uses to detect shared libraries, | |
3892 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3893 | *** The result is that libtool may fail to recognize shared libraries | |
3894 | *** as such. This will affect the creation of libtool libraries that | |
3895 | *** depend on shared libraries, but programs linked with such libtool | |
3896 | *** libraries will work regardless of this problem. Nevertheless, you | |
3897 | *** may want to report the problem to your system manager and/or to | |
3898 | *** bug-libtool@gnu.org | |
3899 | ||
3900 | EOF | |
3901 | fi ;; | |
3902 | esac | |
3903 | fi | |
3904 | break | |
3905 | fi | |
3906 | done | |
3907 | IFS="$ac_save_ifs" | |
3908 | MAGIC_CMD="$ac_save_MAGIC_CMD" | |
3909 | ;; | |
3910 | esac | |
3911 | fi | |
6de9cd9a | 3912 | |
96b8a615 AJ |
3913 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3914 | if test -n "$MAGIC_CMD"; then | |
3915 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
3916 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6de9cd9a | 3917 | else |
96b8a615 AJ |
3918 | echo "$as_me:$LINENO: result: no" >&5 |
3919 | echo "${ECHO_T}no" >&6 | |
3920 | fi | |
6de9cd9a | 3921 | |
96b8a615 AJ |
3922 | else |
3923 | MAGIC_CMD=: | |
3924 | fi | |
6de9cd9a | 3925 | fi |
6de9cd9a | 3926 | |
96b8a615 AJ |
3927 | fi |
3928 | ;; | |
3929 | esac | |
6de9cd9a | 3930 | |
96b8a615 AJ |
3931 | if test -n "$ac_tool_prefix"; then |
3932 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3933 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3934 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3935 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3936 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6de9cd9a | 3938 | else |
96b8a615 AJ |
3939 | if test -n "$RANLIB"; then |
3940 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3941 | else | |
3942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3943 | for as_dir in $PATH | |
3944 | do | |
3945 | IFS=$as_save_IFS | |
3946 | test -z "$as_dir" && as_dir=. | |
3947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3948 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3949 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3950 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3951 | break 2 | |
3952 | fi | |
3953 | done | |
3954 | done | |
6de9cd9a | 3955 | |
96b8a615 AJ |
3956 | fi |
3957 | fi | |
3958 | RANLIB=$ac_cv_prog_RANLIB | |
3959 | if test -n "$RANLIB"; then | |
3960 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3961 | echo "${ECHO_T}$RANLIB" >&6 | |
3962 | else | |
3963 | echo "$as_me:$LINENO: result: no" >&5 | |
3964 | echo "${ECHO_T}no" >&6 | |
6de9cd9a DN |
3965 | fi |
3966 | ||
96b8a615 AJ |
3967 | fi |
3968 | if test -z "$ac_cv_prog_RANLIB"; then | |
3969 | ac_ct_RANLIB=$RANLIB | |
3970 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3971 | set dummy ranlib; 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_ac_ct_RANLIB+set}" = set; then | |
3975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3976 | else | |
3977 | if test -n "$ac_ct_RANLIB"; then | |
3978 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib" | |
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 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
3995 | fi | |
3996 | fi | |
3997 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3998 | if test -n "$ac_ct_RANLIB"; then | |
3999 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4000 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
6de9cd9a | 4001 | else |
96b8a615 AJ |
4002 | echo "$as_me:$LINENO: result: no" >&5 |
4003 | echo "${ECHO_T}no" >&6 | |
6de9cd9a | 4004 | fi |
6de9cd9a | 4005 | |
96b8a615 AJ |
4006 | RANLIB=$ac_ct_RANLIB |
4007 | else | |
4008 | RANLIB="$ac_cv_prog_RANLIB" | |
6de9cd9a DN |
4009 | fi |
4010 | ||
96b8a615 AJ |
4011 | if test -n "$ac_tool_prefix"; then |
4012 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
4013 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
4014 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4015 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4016 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
4017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6de9cd9a | 4018 | else |
96b8a615 AJ |
4019 | if test -n "$STRIP"; then |
4020 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
4021 | else | |
4022 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4023 | for as_dir in $PATH | |
4024 | do | |
4025 | IFS=$as_save_IFS | |
4026 | test -z "$as_dir" && as_dir=. | |
4027 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4028 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4029 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
4030 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4031 | break 2 | |
4032 | fi | |
4033 | done | |
4034 | done | |
6de9cd9a | 4035 | |
96b8a615 AJ |
4036 | fi |
4037 | fi | |
4038 | STRIP=$ac_cv_prog_STRIP | |
4039 | if test -n "$STRIP"; then | |
4040 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
4041 | echo "${ECHO_T}$STRIP" >&6 | |
6de9cd9a | 4042 | else |
96b8a615 AJ |
4043 | echo "$as_me:$LINENO: result: no" >&5 |
4044 | echo "${ECHO_T}no" >&6 | |
4045 | fi | |
6de9cd9a | 4046 | |
6de9cd9a | 4047 | fi |
96b8a615 AJ |
4048 | if test -z "$ac_cv_prog_STRIP"; then |
4049 | ac_ct_STRIP=$STRIP | |
4050 | # Extract the first word of "strip", so it can be a program name with args. | |
4051 | set dummy strip; ac_word=$2 | |
4052 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4053 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4054 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
4055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4056 | else | |
4057 | if test -n "$ac_ct_STRIP"; then | |
4058 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
4059 | else | |
4060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4061 | for as_dir in $PATH | |
4062 | do | |
4063 | IFS=$as_save_IFS | |
4064 | test -z "$as_dir" && as_dir=. | |
4065 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4066 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4067 | ac_cv_prog_ac_ct_STRIP="strip" | |
4068 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4069 | break 2 | |
4070 | fi | |
4071 | done | |
4072 | done | |
4073 | ||
4074 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
6de9cd9a DN |
4075 | fi |
4076 | fi | |
96b8a615 AJ |
4077 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
4078 | if test -n "$ac_ct_STRIP"; then | |
4079 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
4080 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
4081 | else | |
4082 | echo "$as_me:$LINENO: result: no" >&5 | |
4083 | echo "${ECHO_T}no" >&6 | |
6de9cd9a | 4084 | fi |
6de9cd9a | 4085 | |
96b8a615 AJ |
4086 | STRIP=$ac_ct_STRIP |
4087 | else | |
4088 | STRIP="$ac_cv_prog_STRIP" | |
6de9cd9a DN |
4089 | fi |
4090 | ||
6de9cd9a | 4091 | |
96b8a615 AJ |
4092 | # Check for any special flags to pass to ltconfig. |
4093 | libtool_flags="--cache-file=$cache_file" | |
4094 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
4095 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
4096 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
4097 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" | |
4098 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
6de9cd9a DN |
4099 | |
4100 | ||
96b8a615 AJ |
4101 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
4102 | if test "${enable_libtool_lock+set}" = set; then | |
4103 | enableval="$enable_libtool_lock" | |
6de9cd9a | 4104 | |
96b8a615 AJ |
4105 | fi; |
4106 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | |
4107 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
6de9cd9a DN |
4108 | |
4109 | ||
96b8a615 AJ |
4110 | # Check whether --with-pic or --without-pic was given. |
4111 | if test "${with_pic+set}" = set; then | |
4112 | withval="$with_pic" | |
4113 | pic_mode="$withval" | |
6de9cd9a | 4114 | else |
96b8a615 AJ |
4115 | pic_mode=default |
4116 | fi; | |
4117 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" | |
4118 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
6de9cd9a | 4119 | |
96b8a615 AJ |
4120 | # Some flags need to be propagated to the compiler or linker for good |
4121 | # libtool support. | |
4122 | case $host in | |
4123 | *-*-irix6*) | |
4124 | # Find out which ABI we are using. | |
1409cd0b | 4125 | echo '#line 4125 "configure"' > conftest.$ac_ext |
96b8a615 AJ |
4126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4127 | (eval $ac_compile) 2>&5 | |
6de9cd9a DN |
4128 | ac_status=$? |
4129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
4130 | (exit $ac_status); }; then |
4131 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
4132 | case `/usr/bin/file conftest.$ac_objext` in | |
4133 | *32-bit*) | |
4134 | LD="${LD-ld} -melf32bsmip" | |
4135 | ;; | |
4136 | *N32*) | |
4137 | LD="${LD-ld} -melf32bmipn32" | |
4138 | ;; | |
4139 | *64-bit*) | |
4140 | LD="${LD-ld} -melf64bmip" | |
4141 | ;; | |
4142 | esac | |
4143 | else | |
4144 | case `/usr/bin/file conftest.$ac_objext` in | |
4145 | *32-bit*) | |
4146 | LD="${LD-ld} -32" | |
4147 | ;; | |
4148 | *N32*) | |
4149 | LD="${LD-ld} -n32" | |
4150 | ;; | |
4151 | *64-bit*) | |
4152 | LD="${LD-ld} -64" | |
4153 | ;; | |
4154 | esac | |
4155 | fi | |
4156 | fi | |
4157 | rm -rf conftest* | |
4158 | ;; | |
6de9cd9a | 4159 | |
96b8a615 AJ |
4160 | ia64-*-hpux*) |
4161 | # Find out which ABI we are using. | |
4162 | echo 'int i;' > conftest.$ac_ext | |
4163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4164 | (eval $ac_compile) 2>&5 | |
6de9cd9a DN |
4165 | ac_status=$? |
4166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
4167 | (exit $ac_status); }; then |
4168 | case "`/usr/bin/file conftest.o`" in | |
4169 | *ELF-32*) | |
4170 | HPUX_IA64_MODE="32" | |
4171 | ;; | |
4172 | *ELF-64*) | |
4173 | HPUX_IA64_MODE="64" | |
4174 | ;; | |
4175 | esac | |
4176 | fi | |
4177 | rm -rf conftest* | |
4178 | ;; | |
6de9cd9a | 4179 | |
96b8a615 AJ |
4180 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4181 | # Find out which ABI we are using. | |
4182 | echo 'int i;' > conftest.$ac_ext | |
4183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4184 | (eval $ac_compile) 2>&5 | |
6de9cd9a | 4185 | ac_status=$? |
6de9cd9a | 4186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
96b8a615 AJ |
4187 | (exit $ac_status); }; then |
4188 | case "`/usr/bin/file conftest.o`" in | |
4189 | *32-bit*) | |
4190 | case $host in | |
4191 | x86_64-*linux*) | |
4192 | LD="${LD-ld} -m elf_i386" | |
4193 | ;; | |
4194 | ppc64-*linux*|powerpc64-*linux*) | |
4195 | LD="${LD-ld} -m elf32ppclinux" | |
4196 | ;; | |
4197 | s390x-*linux*) | |
4198 | LD="${LD-ld} -m elf_s390" | |
4199 | ;; | |
4200 | sparc64-*linux*) | |
4201 | LD="${LD-ld} -m elf32_sparc" | |
4202 | ;; | |
4203 | esac | |
4204 | ;; | |
4205 | *64-bit*) | |
4206 | case $host in | |
4207 | x86_64-*linux*) | |
4208 | LD="${LD-ld} -m elf_x86_64" | |
4209 | ;; | |
4210 | ppc*-*linux*|powerpc*-*linux*) | |
4211 | LD="${LD-ld} -m elf64ppc" | |
4212 | ;; | |
4213 | s390*-*linux*) | |
4214 | LD="${LD-ld} -m elf64_s390" | |
4215 | ;; | |
4216 | sparc*-*linux*) | |
4217 | LD="${LD-ld} -m elf64_sparc" | |
4218 | ;; | |
4219 | esac | |
4220 | ;; | |
4221 | esac | |
6de9cd9a | 4222 | fi |
96b8a615 AJ |
4223 | rm -rf conftest* |
4224 | ;; | |
6de9cd9a | 4225 | |
96b8a615 AJ |
4226 | *-*-sco3.2v5*) |
4227 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
4228 | SAVE_CFLAGS="$CFLAGS" | |
4229 | CFLAGS="$CFLAGS -belf" | |
4230 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
4231 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4232 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
6de9cd9a DN |
4233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4234 | else | |
6de9cd9a | 4235 | |
6de9cd9a | 4236 | |
96b8a615 AJ |
4237 | ac_ext=c |
4238 | ac_cpp='$CPP $CPPFLAGS' | |
4239 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4240 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4241 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a | 4242 | |
f02d008e JD |
4243 | if test x$gcc_no_link = xyes; then |
4244 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
4245 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
4246 | { (exit 1); exit 1; }; } | |
4247 | fi | |
4248 | cat >conftest.$ac_ext <<_ACEOF | |
6de9cd9a DN |
4249 | /* confdefs.h. */ |
4250 | _ACEOF | |
4251 | cat confdefs.h >>conftest.$ac_ext | |
4252 | cat >>conftest.$ac_ext <<_ACEOF | |
4253 | /* end confdefs.h. */ | |
6de9cd9a DN |
4254 | |
4255 | int | |
4256 | main () | |
4257 | { | |
96b8a615 | 4258 | |
6de9cd9a DN |
4259 | ; |
4260 | return 0; | |
4261 | } | |
4262 | _ACEOF | |
4263 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4265 | (eval $ac_link) 2>conftest.er1 | |
4266 | ac_status=$? | |
4267 | grep -v '^ *+' conftest.er1 >conftest.err | |
4268 | rm -f conftest.er1 | |
4269 | cat conftest.err >&5 | |
4270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4271 | (exit $ac_status); } && | |
1409cd0b FXC |
4272 | { ac_try='test -z "$ac_c_werror_flag" |
4273 | || test ! -s conftest.err' | |
6de9cd9a DN |
4274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4275 | (eval $ac_try) 2>&5 | |
4276 | ac_status=$? | |
4277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4278 | (exit $ac_status); }; } && | |
4279 | { ac_try='test -s conftest$ac_exeext' | |
4280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4281 | (eval $ac_try) 2>&5 | |
4282 | ac_status=$? | |
4283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4284 | (exit $ac_status); }; }; then | |
96b8a615 | 4285 | lt_cv_cc_needs_belf=yes |
6de9cd9a DN |
4286 | else |
4287 | echo "$as_me: failed program was:" >&5 | |
4288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4289 | ||
96b8a615 | 4290 | lt_cv_cc_needs_belf=no |
6de9cd9a DN |
4291 | fi |
4292 | rm -f conftest.err conftest.$ac_objext \ | |
4293 | conftest$ac_exeext conftest.$ac_ext | |
96b8a615 AJ |
4294 | ac_ext=c |
4295 | ac_cpp='$CPP $CPPFLAGS' | |
4296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4299 | ||
6de9cd9a | 4300 | fi |
96b8a615 AJ |
4301 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4302 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
4303 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
4304 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4305 | CFLAGS="$SAVE_CFLAGS" | |
4306 | fi | |
4307 | ;; | |
4308 | ||
4309 | ||
4310 | esac | |
4311 | ||
4312 | ||
4313 | # Save cache, so that ltconfig can load it | |
4314 | cat >confcache <<\_ACEOF | |
4315 | # This file is a shell script that caches the results of configure | |
4316 | # tests run on this system so they can be shared between configure | |
4317 | # scripts and configure runs, see configure's option --config-cache. | |
4318 | # It is not useful on other systems. If it contains results you don't | |
4319 | # want to keep, you may remove or edit it. | |
4320 | # | |
4321 | # config.status only pays attention to the cache file if you give it | |
4322 | # the --recheck option to rerun configure. | |
4323 | # | |
4324 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
4325 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4326 | # following values. | |
4327 | ||
6de9cd9a DN |
4328 | _ACEOF |
4329 | ||
96b8a615 AJ |
4330 | # The following way of writing the cache mishandles newlines in values, |
4331 | # but we know of no workaround that is simple, portable, and efficient. | |
4332 | # So, don't put newlines in cache variables' values. | |
4333 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4334 | # and sets the high bit in the cache file unless we assign to the vars. | |
4335 | { | |
4336 | (set) 2>&1 | | |
4337 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4338 | *ac_space=\ *) | |
4339 | # `set' does not quote correctly, so add quotes (double-quote | |
4340 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4341 | sed -n \ | |
4342 | "s/'/'\\\\''/g; | |
4343 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4344 | ;; | |
4345 | *) | |
4346 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4347 | sed -n \ | |
4348 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4349 | ;; | |
4350 | esac; | |
4351 | } | | |
4352 | sed ' | |
4353 | t clear | |
4354 | : clear | |
4355 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4356 | t end | |
4357 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4358 | : end' >>confcache | |
4359 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4360 | if test -w $cache_file; then | |
4361 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
4362 | cat confcache >$cache_file | |
4363 | else | |
4364 | echo "not updating unwritable cache $cache_file" | |
4365 | fi | |
6de9cd9a | 4366 | fi |
96b8a615 | 4367 | rm -f confcache |
6de9cd9a | 4368 | |
96b8a615 AJ |
4369 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
4370 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
4371 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | |
4372 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ | |
4373 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4374 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4375 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
4376 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
4377 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ | |
4378 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 | |
4379 | echo "$as_me: error: libtool configure failed" >&2;} | |
4380 | { (exit 1); exit 1; }; } | |
4381 | ||
4382 | # Reload cache, that may have been modified by ltconfig | |
4383 | if test -r "$cache_file"; then | |
4384 | # Some versions of bash will fail to source /dev/null (special | |
4385 | # files actually), so we avoid doing that. | |
4386 | if test -f "$cache_file"; then | |
4387 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4388 | echo "$as_me: loading cache $cache_file" >&6;} | |
4389 | case $cache_file in | |
4390 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4391 | *) . ./$cache_file;; | |
4392 | esac | |
4393 | fi | |
4394 | else | |
4395 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
4396 | echo "$as_me: creating cache $cache_file" >&6;} | |
4397 | >$cache_file | |
4398 | fi | |
6de9cd9a | 4399 | |
6de9cd9a | 4400 | |
96b8a615 AJ |
4401 | # This can be used to rebuild libtool when needed |
4402 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" | |
6de9cd9a | 4403 | |
96b8a615 AJ |
4404 | # Always use our own libtool. |
4405 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6de9cd9a | 4406 | |
96b8a615 AJ |
4407 | # Redirect the config.log output again, so that the ltconfig log is not |
4408 | # clobbered by the next message. | |
4409 | exec 5>>./config.log | |
6de9cd9a | 4410 | |
6de9cd9a | 4411 | |
6de9cd9a | 4412 | |
6de9cd9a | 4413 | |
6de9cd9a | 4414 | |
6de9cd9a | 4415 | |
6de9cd9a | 4416 | |
6de9cd9a | 4417 | |
96b8a615 AJ |
4418 | #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10 |
4419 | ||
4420 | # We need gfortran to compile parts of the library | |
c7a35fe9 AS |
4421 | #AC_PROG_FC(gfortran) |
4422 | FC="$GFORTRAN" | |
4423 | ac_ext=${FC_SRCEXT-f} | |
4424 | ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' | |
4425 | ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' | |
4426 | ac_compiler_gnu=$ac_cv_fc_compiler_gnu | |
96b8a615 AJ |
4427 | if test -n "$ac_tool_prefix"; then |
4428 | for ac_prog in gfortran | |
4429 | do | |
4430 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4431 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4432 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
c7a35fe9 | 4434 | if test "${ac_cv_prog_FC+set}" = set; then |
96b8a615 | 4435 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6de9cd9a | 4436 | else |
c7a35fe9 AS |
4437 | if test -n "$FC"; then |
4438 | ac_cv_prog_FC="$FC" # Let the user override the test. | |
96b8a615 AJ |
4439 | else |
4440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4441 | for as_dir in $PATH | |
4442 | do | |
4443 | IFS=$as_save_IFS | |
4444 | test -z "$as_dir" && as_dir=. | |
4445 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4446 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c7a35fe9 | 4447 | ac_cv_prog_FC="$ac_tool_prefix$ac_prog" |
96b8a615 AJ |
4448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4449 | break 2 | |
4450 | fi | |
4451 | done | |
4452 | done | |
6de9cd9a | 4453 | |
6de9cd9a | 4454 | fi |
6de9cd9a | 4455 | fi |
c7a35fe9 AS |
4456 | FC=$ac_cv_prog_FC |
4457 | if test -n "$FC"; then | |
4458 | echo "$as_me:$LINENO: result: $FC" >&5 | |
4459 | echo "${ECHO_T}$FC" >&6 | |
96b8a615 AJ |
4460 | else |
4461 | echo "$as_me:$LINENO: result: no" >&5 | |
4462 | echo "${ECHO_T}no" >&6 | |
6de9cd9a | 4463 | fi |
6de9cd9a | 4464 | |
c7a35fe9 | 4465 | test -n "$FC" && break |
96b8a615 AJ |
4466 | done |
4467 | fi | |
c7a35fe9 AS |
4468 | if test -z "$FC"; then |
4469 | ac_ct_FC=$FC | |
96b8a615 AJ |
4470 | for ac_prog in gfortran |
4471 | do | |
4472 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4473 | set dummy $ac_prog; ac_word=$2 | |
4474 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4475 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
c7a35fe9 | 4476 | if test "${ac_cv_prog_ac_ct_FC+set}" = set; then |
96b8a615 AJ |
4477 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4478 | else | |
c7a35fe9 AS |
4479 | if test -n "$ac_ct_FC"; then |
4480 | ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. | |
96b8a615 AJ |
4481 | else |
4482 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4483 | for as_dir in $PATH | |
4484 | do | |
4485 | IFS=$as_save_IFS | |
4486 | test -z "$as_dir" && as_dir=. | |
4487 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4488 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
c7a35fe9 | 4489 | ac_cv_prog_ac_ct_FC="$ac_prog" |
96b8a615 AJ |
4490 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4491 | break 2 | |
4492 | fi | |
4493 | done | |
4494 | done | |
6de9cd9a DN |
4495 | |
4496 | fi | |
96b8a615 | 4497 | fi |
c7a35fe9 AS |
4498 | ac_ct_FC=$ac_cv_prog_ac_ct_FC |
4499 | if test -n "$ac_ct_FC"; then | |
4500 | echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 | |
4501 | echo "${ECHO_T}$ac_ct_FC" >&6 | |
96b8a615 AJ |
4502 | else |
4503 | echo "$as_me:$LINENO: result: no" >&5 | |
4504 | echo "${ECHO_T}no" >&6 | |
4505 | fi | |
4506 | ||
c7a35fe9 | 4507 | test -n "$ac_ct_FC" && break |
96b8a615 AJ |
4508 | done |
4509 | ||
c7a35fe9 | 4510 | FC=$ac_ct_FC |
96b8a615 AJ |
4511 | fi |
4512 | ||
4513 | ||
4514 | # Provide some information about the compiler. | |
17109ecb | 4515 | echo "$as_me:4515:" \ |
c7a35fe9 | 4516 | "checking for Fortran compiler version" >&5 |
96b8a615 AJ |
4517 | ac_compiler=`set X $ac_compile; echo $2` |
4518 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4519 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4520 | ac_status=$? | |
4521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4522 | (exit $ac_status); } | |
4523 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4524 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4525 | ac_status=$? | |
4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4527 | (exit $ac_status); } | |
4528 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4529 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4530 | ac_status=$? | |
4531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4532 | (exit $ac_status); } | |
4533 | rm -f a.out | |
6de9cd9a | 4534 | |
96b8a615 AJ |
4535 | # If we don't use `.F' as extension, the preprocessor is not run on the |
4536 | # input file. (Note that this only needs to work for GNU compilers.) | |
4537 | ac_save_ext=$ac_ext | |
4538 | ac_ext=F | |
c7a35fe9 AS |
4539 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 |
4540 | echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 | |
4541 | if test "${ac_cv_fc_compiler_gnu+set}" = set; then | |
6de9cd9a DN |
4542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4543 | else | |
4544 | cat >conftest.$ac_ext <<_ACEOF | |
96b8a615 AJ |
4545 | program main |
4546 | #ifndef __GNUC__ | |
4547 | choke me | |
4548 | #endif | |
4549 | ||
4550 | end | |
6de9cd9a DN |
4551 | _ACEOF |
4552 | rm -f conftest.$ac_objext | |
4553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4554 | (eval $ac_compile) 2>conftest.er1 | |
4555 | ac_status=$? | |
4556 | grep -v '^ *+' conftest.er1 >conftest.err | |
4557 | rm -f conftest.er1 | |
4558 | cat conftest.err >&5 | |
4559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4560 | (exit $ac_status); } && | |
1409cd0b FXC |
4561 | { ac_try='test -z "$ac_fc_werror_flag" |
4562 | || test ! -s conftest.err' | |
6de9cd9a DN |
4563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4564 | (eval $ac_try) 2>&5 | |
4565 | ac_status=$? | |
4566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4567 | (exit $ac_status); }; } && | |
4568 | { ac_try='test -s conftest.$ac_objext' | |
4569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4570 | (eval $ac_try) 2>&5 | |
4571 | ac_status=$? | |
4572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4573 | (exit $ac_status); }; }; then | |
96b8a615 | 4574 | ac_compiler_gnu=yes |
6de9cd9a DN |
4575 | else |
4576 | echo "$as_me: failed program was:" >&5 | |
4577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4578 | ||
96b8a615 | 4579 | ac_compiler_gnu=no |
6de9cd9a DN |
4580 | fi |
4581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c7a35fe9 | 4582 | ac_cv_fc_compiler_gnu=$ac_compiler_gnu |
6de9cd9a DN |
4583 | |
4584 | fi | |
c7a35fe9 AS |
4585 | echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 |
4586 | echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 | |
96b8a615 | 4587 | ac_ext=$ac_save_ext |
c7a35fe9 AS |
4588 | ac_test_FFLAGS=${FCFLAGS+set} |
4589 | ac_save_FFLAGS=$FCFLAGS | |
4590 | FCFLAGS= | |
4591 | echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 | |
4592 | echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 | |
4593 | if test "${ac_cv_prog_fc_g+set}" = set; then | |
6de9cd9a DN |
4594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4595 | else | |
c7a35fe9 | 4596 | FCFLAGS=-g |
96b8a615 AJ |
4597 | cat >conftest.$ac_ext <<_ACEOF |
4598 | program main | |
6de9cd9a | 4599 | |
96b8a615 | 4600 | end |
6de9cd9a DN |
4601 | _ACEOF |
4602 | rm -f conftest.$ac_objext | |
4603 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4604 | (eval $ac_compile) 2>conftest.er1 | |
4605 | ac_status=$? | |
4606 | grep -v '^ *+' conftest.er1 >conftest.err | |
4607 | rm -f conftest.er1 | |
4608 | cat conftest.err >&5 | |
4609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4610 | (exit $ac_status); } && | |
1409cd0b FXC |
4611 | { ac_try='test -z "$ac_fc_werror_flag" |
4612 | || test ! -s conftest.err' | |
6de9cd9a DN |
4613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4614 | (eval $ac_try) 2>&5 | |
4615 | ac_status=$? | |
4616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4617 | (exit $ac_status); }; } && | |
4618 | { ac_try='test -s conftest.$ac_objext' | |
4619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4620 | (eval $ac_try) 2>&5 | |
4621 | ac_status=$? | |
4622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4623 | (exit $ac_status); }; }; then | |
c7a35fe9 | 4624 | ac_cv_prog_fc_g=yes |
6de9cd9a DN |
4625 | else |
4626 | echo "$as_me: failed program was:" >&5 | |
4627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4628 | ||
c7a35fe9 | 4629 | ac_cv_prog_fc_g=no |
6de9cd9a DN |
4630 | fi |
4631 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4632 | ||
6de9cd9a | 4633 | fi |
c7a35fe9 AS |
4634 | echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 |
4635 | echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 | |
96b8a615 | 4636 | if test "$ac_test_FFLAGS" = set; then |
c7a35fe9 AS |
4637 | FCFLAGS=$ac_save_FFLAGS |
4638 | elif test $ac_cv_prog_fc_g = yes; then | |
4639 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then | |
4640 | FCFLAGS="-g -O2" | |
96b8a615 | 4641 | else |
c7a35fe9 | 4642 | FCFLAGS="-g" |
96b8a615 AJ |
4643 | fi |
4644 | else | |
c7a35fe9 AS |
4645 | if test "x$ac_cv_fc_compiler_gnu" = xyes; then |
4646 | FCFLAGS="-O2" | |
96b8a615 | 4647 | else |
c7a35fe9 | 4648 | FCFLAGS= |
96b8a615 | 4649 | fi |
6de9cd9a DN |
4650 | fi |
4651 | ||
96b8a615 AJ |
4652 | ac_ext=c |
4653 | ac_cpp='$CPP $CPPFLAGS' | |
4654 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4655 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4656 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a | 4657 | |
6de9cd9a | 4658 | |
e87045f3 AP |
4659 | # extra LD Flags which are required for targets |
4660 | case "${host}" in | |
4661 | *-darwin*) | |
4662 | # Darwin needs -single_module when linking libgfortran | |
4663 | extra_ldflags_libgfortran=-Wl,-single_module | |
4664 | ;; | |
4665 | esac | |
4666 | ||
4667 | ||
9cdc381b BD |
4668 | # Check whether --enable-largefile or --disable-largefile was given. |
4669 | if test "${enable_largefile+set}" = set; then | |
4670 | enableval="$enable_largefile" | |
4671 | ||
4672 | fi; | |
4673 | if test "$enable_largefile" != no; then | |
4674 | ||
4675 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
4676 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
4677 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4679 | else | |
4680 | ac_cv_sys_largefile_CC=no | |
4681 | if test "$GCC" != yes; then | |
4682 | ac_save_CC=$CC | |
4683 | while :; do | |
4684 | # IRIX 6.2 and later do not support large files by default, | |
4685 | # so use the C compiler's -n32 option if that helps. | |
4686 | cat >conftest.$ac_ext <<_ACEOF | |
4687 | /* confdefs.h. */ | |
4688 | _ACEOF | |
4689 | cat confdefs.h >>conftest.$ac_ext | |
4690 | cat >>conftest.$ac_ext <<_ACEOF | |
4691 | /* end confdefs.h. */ | |
4692 | #include <sys/types.h> | |
4693 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4694 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4695 | since some C++ compilers masquerading as C compilers | |
4696 | incorrectly reject 9223372036854775807. */ | |
4697 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4698 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4699 | && LARGE_OFF_T % 2147483647 == 1) | |
4700 | ? 1 : -1]; | |
4701 | int | |
4702 | main () | |
4703 | { | |
4704 | ||
4705 | ; | |
4706 | return 0; | |
4707 | } | |
4708 | _ACEOF | |
4709 | rm -f conftest.$ac_objext | |
4710 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4711 | (eval $ac_compile) 2>conftest.er1 | |
4712 | ac_status=$? | |
4713 | grep -v '^ *+' conftest.er1 >conftest.err | |
4714 | rm -f conftest.er1 | |
4715 | cat conftest.err >&5 | |
4716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4717 | (exit $ac_status); } && | |
1409cd0b FXC |
4718 | { ac_try='test -z "$ac_c_werror_flag" |
4719 | || test ! -s conftest.err' | |
9cdc381b BD |
4720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4721 | (eval $ac_try) 2>&5 | |
4722 | ac_status=$? | |
4723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4724 | (exit $ac_status); }; } && | |
4725 | { ac_try='test -s conftest.$ac_objext' | |
4726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4727 | (eval $ac_try) 2>&5 | |
4728 | ac_status=$? | |
4729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4730 | (exit $ac_status); }; }; then | |
4731 | break | |
4732 | else | |
4733 | echo "$as_me: failed program was:" >&5 | |
4734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4735 | ||
4736 | fi | |
4737 | rm -f conftest.err conftest.$ac_objext | |
4738 | CC="$CC -n32" | |
4739 | rm -f conftest.$ac_objext | |
4740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4741 | (eval $ac_compile) 2>conftest.er1 | |
4742 | ac_status=$? | |
4743 | grep -v '^ *+' conftest.er1 >conftest.err | |
4744 | rm -f conftest.er1 | |
4745 | cat conftest.err >&5 | |
4746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4747 | (exit $ac_status); } && | |
1409cd0b FXC |
4748 | { ac_try='test -z "$ac_c_werror_flag" |
4749 | || test ! -s conftest.err' | |
9cdc381b BD |
4750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4751 | (eval $ac_try) 2>&5 | |
4752 | ac_status=$? | |
4753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4754 | (exit $ac_status); }; } && | |
4755 | { ac_try='test -s conftest.$ac_objext' | |
4756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4757 | (eval $ac_try) 2>&5 | |
4758 | ac_status=$? | |
4759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4760 | (exit $ac_status); }; }; then | |
4761 | ac_cv_sys_largefile_CC=' -n32'; break | |
4762 | else | |
4763 | echo "$as_me: failed program was:" >&5 | |
4764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4765 | ||
4766 | fi | |
4767 | rm -f conftest.err conftest.$ac_objext | |
4768 | break | |
4769 | done | |
4770 | CC=$ac_save_CC | |
4771 | rm -f conftest.$ac_ext | |
4772 | fi | |
4773 | fi | |
4774 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
4775 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | |
4776 | if test "$ac_cv_sys_largefile_CC" != no; then | |
4777 | CC=$CC$ac_cv_sys_largefile_CC | |
4778 | fi | |
4779 | ||
4780 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
4781 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
4782 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
4783 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4784 | else | |
4785 | while :; do | |
4786 | ac_cv_sys_file_offset_bits=no | |
4787 | cat >conftest.$ac_ext <<_ACEOF | |
4788 | /* confdefs.h. */ | |
4789 | _ACEOF | |
4790 | cat confdefs.h >>conftest.$ac_ext | |
4791 | cat >>conftest.$ac_ext <<_ACEOF | |
4792 | /* end confdefs.h. */ | |
4793 | #include <sys/types.h> | |
4794 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4795 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4796 | since some C++ compilers masquerading as C compilers | |
4797 | incorrectly reject 9223372036854775807. */ | |
4798 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4799 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4800 | && LARGE_OFF_T % 2147483647 == 1) | |
4801 | ? 1 : -1]; | |
4802 | int | |
4803 | main () | |
4804 | { | |
4805 | ||
4806 | ; | |
4807 | return 0; | |
4808 | } | |
4809 | _ACEOF | |
4810 | rm -f conftest.$ac_objext | |
4811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4812 | (eval $ac_compile) 2>conftest.er1 | |
4813 | ac_status=$? | |
4814 | grep -v '^ *+' conftest.er1 >conftest.err | |
4815 | rm -f conftest.er1 | |
4816 | cat conftest.err >&5 | |
4817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4818 | (exit $ac_status); } && | |
1409cd0b FXC |
4819 | { ac_try='test -z "$ac_c_werror_flag" |
4820 | || test ! -s conftest.err' | |
9cdc381b BD |
4821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4822 | (eval $ac_try) 2>&5 | |
4823 | ac_status=$? | |
4824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4825 | (exit $ac_status); }; } && | |
4826 | { ac_try='test -s conftest.$ac_objext' | |
4827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4828 | (eval $ac_try) 2>&5 | |
4829 | ac_status=$? | |
4830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4831 | (exit $ac_status); }; }; then | |
4832 | break | |
4833 | else | |
4834 | echo "$as_me: failed program was:" >&5 | |
4835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4836 | ||
4837 | fi | |
4838 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4839 | cat >conftest.$ac_ext <<_ACEOF | |
4840 | /* confdefs.h. */ | |
4841 | _ACEOF | |
4842 | cat confdefs.h >>conftest.$ac_ext | |
4843 | cat >>conftest.$ac_ext <<_ACEOF | |
4844 | /* end confdefs.h. */ | |
4845 | #define _FILE_OFFSET_BITS 64 | |
4846 | #include <sys/types.h> | |
4847 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4848 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4849 | since some C++ compilers masquerading as C compilers | |
4850 | incorrectly reject 9223372036854775807. */ | |
4851 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4852 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4853 | && LARGE_OFF_T % 2147483647 == 1) | |
4854 | ? 1 : -1]; | |
4855 | int | |
4856 | main () | |
4857 | { | |
4858 | ||
4859 | ; | |
4860 | return 0; | |
4861 | } | |
4862 | _ACEOF | |
4863 | rm -f conftest.$ac_objext | |
4864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4865 | (eval $ac_compile) 2>conftest.er1 | |
4866 | ac_status=$? | |
4867 | grep -v '^ *+' conftest.er1 >conftest.err | |
4868 | rm -f conftest.er1 | |
4869 | cat conftest.err >&5 | |
4870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4871 | (exit $ac_status); } && | |
1409cd0b FXC |
4872 | { ac_try='test -z "$ac_c_werror_flag" |
4873 | || test ! -s conftest.err' | |
9cdc381b BD |
4874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4875 | (eval $ac_try) 2>&5 | |
4876 | ac_status=$? | |
4877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4878 | (exit $ac_status); }; } && | |
4879 | { ac_try='test -s conftest.$ac_objext' | |
4880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4881 | (eval $ac_try) 2>&5 | |
4882 | ac_status=$? | |
4883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4884 | (exit $ac_status); }; }; then | |
4885 | ac_cv_sys_file_offset_bits=64; break | |
4886 | else | |
4887 | echo "$as_me: failed program was:" >&5 | |
4888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4889 | ||
4890 | fi | |
4891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4892 | break | |
4893 | done | |
4894 | fi | |
4895 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
4896 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
4897 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
4898 | ||
4899 | cat >>confdefs.h <<_ACEOF | |
4900 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
4901 | _ACEOF | |
4902 | ||
4903 | fi | |
4904 | rm -f conftest* | |
4905 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
4906 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
4907 | if test "${ac_cv_sys_large_files+set}" = set; then | |
4908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4909 | else | |
4910 | while :; do | |
4911 | ac_cv_sys_large_files=no | |
4912 | cat >conftest.$ac_ext <<_ACEOF | |
4913 | /* confdefs.h. */ | |
4914 | _ACEOF | |
4915 | cat confdefs.h >>conftest.$ac_ext | |
4916 | cat >>conftest.$ac_ext <<_ACEOF | |
4917 | /* end confdefs.h. */ | |
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); } && | |
1409cd0b FXC |
4944 | { ac_try='test -z "$ac_c_werror_flag" |
4945 | || test ! -s conftest.err' | |
9cdc381b BD |
4946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4947 | (eval $ac_try) 2>&5 | |
4948 | ac_status=$? | |
4949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4950 | (exit $ac_status); }; } && | |
4951 | { ac_try='test -s conftest.$ac_objext' | |
4952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4953 | (eval $ac_try) 2>&5 | |
4954 | ac_status=$? | |
4955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4956 | (exit $ac_status); }; }; then | |
4957 | break | |
4958 | else | |
4959 | echo "$as_me: failed program was:" >&5 | |
4960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4961 | ||
4962 | fi | |
4963 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4964 | cat >conftest.$ac_ext <<_ACEOF | |
4965 | /* confdefs.h. */ | |
4966 | _ACEOF | |
4967 | cat confdefs.h >>conftest.$ac_ext | |
4968 | cat >>conftest.$ac_ext <<_ACEOF | |
4969 | /* end confdefs.h. */ | |
4970 | #define _LARGE_FILES 1 | |
4971 | #include <sys/types.h> | |
4972 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4973 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4974 | since some C++ compilers masquerading as C compilers | |
4975 | incorrectly reject 9223372036854775807. */ | |
4976 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4977 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4978 | && LARGE_OFF_T % 2147483647 == 1) | |
4979 | ? 1 : -1]; | |
4980 | int | |
4981 | main () | |
4982 | { | |
4983 | ||
4984 | ; | |
4985 | return 0; | |
4986 | } | |
4987 | _ACEOF | |
4988 | rm -f conftest.$ac_objext | |
4989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4990 | (eval $ac_compile) 2>conftest.er1 | |
4991 | ac_status=$? | |
4992 | grep -v '^ *+' conftest.er1 >conftest.err | |
4993 | rm -f conftest.er1 | |
4994 | cat conftest.err >&5 | |
4995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4996 | (exit $ac_status); } && | |
1409cd0b FXC |
4997 | { ac_try='test -z "$ac_c_werror_flag" |
4998 | || test ! -s conftest.err' | |
9cdc381b BD |
4999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5000 | (eval $ac_try) 2>&5 | |
5001 | ac_status=$? | |
5002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5003 | (exit $ac_status); }; } && | |
5004 | { ac_try='test -s conftest.$ac_objext' | |
5005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5006 | (eval $ac_try) 2>&5 | |
5007 | ac_status=$? | |
5008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5009 | (exit $ac_status); }; }; then | |
5010 | ac_cv_sys_large_files=1; break | |
5011 | else | |
5012 | echo "$as_me: failed program was:" >&5 | |
5013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5014 | ||
5015 | fi | |
5016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5017 | break | |
5018 | done | |
5019 | fi | |
5020 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
5021 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
5022 | if test "$ac_cv_sys_large_files" != no; then | |
5023 | ||
5024 | cat >>confdefs.h <<_ACEOF | |
5025 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5026 | _ACEOF | |
5027 | ||
5028 | fi | |
5029 | rm -f conftest* | |
5030 | fi | |
5031 | ||
f02d008e JD |
5032 | if test x$gcc_no_link = xyes; then |
5033 | if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then | |
5034 | ac_cv_func_mmap_fixed_mapped=no | |
5035 | fi | |
5036 | fi | |
5037 | if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then | |
5038 | ac_ext=c | |
96b8a615 AJ |
5039 | ac_cpp='$CPP $CPPFLAGS' |
5040 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5041 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5042 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5043 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5044 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5045 | # On Suns, sometimes $CPP names a directory. | |
5046 | if test -n "$CPP" && test -d "$CPP"; then | |
5047 | CPP= | |
6de9cd9a | 5048 | fi |
96b8a615 AJ |
5049 | if test -z "$CPP"; then |
5050 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6de9cd9a | 5052 | else |
96b8a615 AJ |
5053 | # Double quotes because CPP needs to be expanded |
5054 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5055 | do | |
5056 | ac_preproc_ok=false | |
5057 | for ac_c_preproc_warn_flag in '' yes | |
5058 | do | |
5059 | # Use a header file that comes with gcc, so configuring glibc | |
5060 | # with a fresh cross-compiler works. | |
5061 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5062 | # <limits.h> exists even on freestanding compilers. | |
5063 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5064 | # not just through cpp. "Syntax error" is here to catch this case. | |
6de9cd9a DN |
5065 | cat >conftest.$ac_ext <<_ACEOF |
5066 | /* confdefs.h. */ | |
5067 | _ACEOF | |
5068 | cat confdefs.h >>conftest.$ac_ext | |
5069 | cat >>conftest.$ac_ext <<_ACEOF | |
5070 | /* end confdefs.h. */ | |
96b8a615 AJ |
5071 | #ifdef __STDC__ |
5072 | # include <limits.h> | |
6de9cd9a | 5073 | #else |
96b8a615 | 5074 | # include <assert.h> |
6de9cd9a | 5075 | #endif |
96b8a615 | 5076 | Syntax error |
6de9cd9a | 5077 | _ACEOF |
96b8a615 AJ |
5078 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5079 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6de9cd9a | 5080 | ac_status=$? |
96b8a615 AJ |
5081 | grep -v '^ *+' conftest.er1 >conftest.err |
5082 | rm -f conftest.er1 | |
5083 | cat conftest.err >&5 | |
6de9cd9a | 5084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
96b8a615 AJ |
5085 | (exit $ac_status); } >/dev/null; then |
5086 | if test -s conftest.err; then | |
5087 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5088 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5089 | else | |
5090 | ac_cpp_err= | |
5091 | fi | |
5092 | else | |
5093 | ac_cpp_err=yes | |
5094 | fi | |
5095 | if test -z "$ac_cpp_err"; then | |
6de9cd9a DN |
5096 | : |
5097 | else | |
96b8a615 | 5098 | echo "$as_me: failed program was:" >&5 |
6de9cd9a DN |
5099 | sed 's/^/| /' conftest.$ac_ext >&5 |
5100 | ||
96b8a615 AJ |
5101 | # Broken: fails on valid input. |
5102 | continue | |
6de9cd9a | 5103 | fi |
96b8a615 | 5104 | rm -f conftest.err conftest.$ac_ext |
6de9cd9a | 5105 | |
96b8a615 AJ |
5106 | # OK, works on sane cases. Now check whether non-existent headers |
5107 | # can be detected and how. | |
5108 | cat >conftest.$ac_ext <<_ACEOF | |
6de9cd9a DN |
5109 | /* confdefs.h. */ |
5110 | _ACEOF | |
5111 | cat confdefs.h >>conftest.$ac_ext | |
5112 | cat >>conftest.$ac_ext <<_ACEOF | |
5113 | /* end confdefs.h. */ | |
96b8a615 | 5114 | #include <ac_nonexistent.h> |
6de9cd9a | 5115 | _ACEOF |
96b8a615 AJ |
5116 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5117 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6de9cd9a DN |
5118 | ac_status=$? |
5119 | grep -v '^ *+' conftest.er1 >conftest.err | |
5120 | rm -f conftest.er1 | |
5121 | cat conftest.err >&5 | |
5122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
5123 | (exit $ac_status); } >/dev/null; then |
5124 | if test -s conftest.err; then | |
5125 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5126 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5127 | else | |
5128 | ac_cpp_err= | |
5129 | fi | |
5130 | else | |
5131 | ac_cpp_err=yes | |
5132 | fi | |
5133 | if test -z "$ac_cpp_err"; then | |
5134 | # Broken: success on invalid input. | |
5135 | continue | |
6de9cd9a DN |
5136 | else |
5137 | echo "$as_me: failed program was:" >&5 | |
5138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5139 | ||
96b8a615 AJ |
5140 | # Passes both tests. |
5141 | ac_preproc_ok=: | |
5142 | break | |
6de9cd9a | 5143 | fi |
96b8a615 | 5144 | rm -f conftest.err conftest.$ac_ext |
6de9cd9a | 5145 | |
96b8a615 AJ |
5146 | done |
5147 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5148 | rm -f conftest.err conftest.$ac_ext | |
5149 | if $ac_preproc_ok; then | |
5150 | break | |
5151 | fi | |
5152 | ||
5153 | done | |
5154 | ac_cv_prog_CPP=$CPP | |
5155 | ||
5156 | fi | |
5157 | CPP=$ac_cv_prog_CPP | |
5158 | else | |
5159 | ac_cv_prog_CPP=$CPP | |
5160 | fi | |
5161 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5162 | echo "${ECHO_T}$CPP" >&6 | |
5163 | ac_preproc_ok=false | |
5164 | for ac_c_preproc_warn_flag in '' yes | |
5165 | do | |
5166 | # Use a header file that comes with gcc, so configuring glibc | |
5167 | # with a fresh cross-compiler works. | |
5168 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5169 | # <limits.h> exists even on freestanding compilers. | |
5170 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5171 | # not just through cpp. "Syntax error" is here to catch this case. | |
5172 | cat >conftest.$ac_ext <<_ACEOF | |
6de9cd9a DN |
5173 | /* confdefs.h. */ |
5174 | _ACEOF | |
5175 | cat confdefs.h >>conftest.$ac_ext | |
5176 | cat >>conftest.$ac_ext <<_ACEOF | |
5177 | /* end confdefs.h. */ | |
96b8a615 AJ |
5178 | #ifdef __STDC__ |
5179 | # include <limits.h> | |
5180 | #else | |
5181 | # include <assert.h> | |
5182 | #endif | |
5183 | Syntax error | |
6de9cd9a DN |
5184 | _ACEOF |
5185 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5186 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5187 | ac_status=$? | |
5188 | grep -v '^ *+' conftest.er1 >conftest.err | |
5189 | rm -f conftest.er1 | |
5190 | cat conftest.err >&5 | |
5191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5192 | (exit $ac_status); } >/dev/null; then | |
5193 | if test -s conftest.err; then | |
5194 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5195 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5196 | else | |
5197 | ac_cpp_err= | |
5198 | fi | |
5199 | else | |
5200 | ac_cpp_err=yes | |
5201 | fi | |
5202 | if test -z "$ac_cpp_err"; then | |
96b8a615 | 5203 | : |
6de9cd9a DN |
5204 | else |
5205 | echo "$as_me: failed program was:" >&5 | |
5206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5207 | ||
96b8a615 AJ |
5208 | # Broken: fails on valid input. |
5209 | continue | |
6de9cd9a DN |
5210 | fi |
5211 | rm -f conftest.err conftest.$ac_ext | |
6de9cd9a | 5212 | |
96b8a615 AJ |
5213 | # OK, works on sane cases. Now check whether non-existent headers |
5214 | # can be detected and how. | |
5215 | cat >conftest.$ac_ext <<_ACEOF | |
5216 | /* confdefs.h. */ | |
5217 | _ACEOF | |
5218 | cat confdefs.h >>conftest.$ac_ext | |
5219 | cat >>conftest.$ac_ext <<_ACEOF | |
5220 | /* end confdefs.h. */ | |
5221 | #include <ac_nonexistent.h> | |
6de9cd9a | 5222 | _ACEOF |
96b8a615 AJ |
5223 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
5224 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5225 | ac_status=$? | |
5226 | grep -v '^ *+' conftest.er1 >conftest.err | |
5227 | rm -f conftest.er1 | |
5228 | cat conftest.err >&5 | |
5229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5230 | (exit $ac_status); } >/dev/null; then | |
5231 | if test -s conftest.err; then | |
5232 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5233 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5234 | else | |
5235 | ac_cpp_err= | |
5236 | fi | |
5237 | else | |
5238 | ac_cpp_err=yes | |
5239 | fi | |
5240 | if test -z "$ac_cpp_err"; then | |
5241 | # Broken: success on invalid input. | |
5242 | continue | |
5243 | else | |
5244 | echo "$as_me: failed program was:" >&5 | |
5245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 5246 | |
96b8a615 AJ |
5247 | # Passes both tests. |
5248 | ac_preproc_ok=: | |
5249 | break | |
6de9cd9a | 5250 | fi |
96b8a615 | 5251 | rm -f conftest.err conftest.$ac_ext |
6de9cd9a DN |
5252 | |
5253 | done | |
96b8a615 AJ |
5254 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5255 | rm -f conftest.err conftest.$ac_ext | |
5256 | if $ac_preproc_ok; then | |
5257 | : | |
5258 | else | |
5259 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
5260 | See \`config.log' for more details." >&5 | |
5261 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5262 | See \`config.log' for more details." >&2;} | |
5263 | { (exit 1); exit 1; }; } | |
5264 | fi | |
6de9cd9a | 5265 | |
96b8a615 AJ |
5266 | ac_ext=c |
5267 | ac_cpp='$CPP $CPPFLAGS' | |
5268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6de9cd9a DN |
5271 | |
5272 | ||
96b8a615 AJ |
5273 | echo "$as_me:$LINENO: checking for egrep" >&5 |
5274 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5275 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5277 | else | |
5278 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
5279 | then ac_cv_prog_egrep='grep -E' | |
5280 | else ac_cv_prog_egrep='egrep' | |
5281 | fi | |
5282 | fi | |
5283 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
5284 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5285 | EGREP=$ac_cv_prog_egrep | |
6de9cd9a DN |
5286 | |
5287 | ||
96b8a615 AJ |
5288 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5289 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5290 | if test "${ac_cv_header_stdc+set}" = set; then | |
6de9cd9a | 5291 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6de9cd9a | 5292 | else |
96b8a615 | 5293 | cat >conftest.$ac_ext <<_ACEOF |
6de9cd9a DN |
5294 | /* confdefs.h. */ |
5295 | _ACEOF | |
5296 | cat confdefs.h >>conftest.$ac_ext | |
5297 | cat >>conftest.$ac_ext <<_ACEOF | |
5298 | /* end confdefs.h. */ | |
96b8a615 AJ |
5299 | #include <stdlib.h> |
5300 | #include <stdarg.h> | |
5301 | #include <string.h> | |
5302 | #include <float.h> | |
5303 | ||
5304 | int | |
5305 | main () | |
5306 | { | |
5307 | ||
5308 | ; | |
5309 | return 0; | |
5310 | } | |
6de9cd9a DN |
5311 | _ACEOF |
5312 | rm -f conftest.$ac_objext | |
5313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5314 | (eval $ac_compile) 2>conftest.er1 | |
5315 | ac_status=$? | |
5316 | grep -v '^ *+' conftest.er1 >conftest.err | |
5317 | rm -f conftest.er1 | |
5318 | cat conftest.err >&5 | |
5319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5320 | (exit $ac_status); } && | |
1409cd0b FXC |
5321 | { ac_try='test -z "$ac_c_werror_flag" |
5322 | || test ! -s conftest.err' | |
6de9cd9a DN |
5323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5324 | (eval $ac_try) 2>&5 | |
5325 | ac_status=$? | |
5326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5327 | (exit $ac_status); }; } && | |
5328 | { ac_try='test -s conftest.$ac_objext' | |
5329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5330 | (eval $ac_try) 2>&5 | |
5331 | ac_status=$? | |
5332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5333 | (exit $ac_status); }; }; then | |
96b8a615 | 5334 | ac_cv_header_stdc=yes |
6de9cd9a DN |
5335 | else |
5336 | echo "$as_me: failed program was:" >&5 | |
5337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5338 | ||
96b8a615 | 5339 | ac_cv_header_stdc=no |
6de9cd9a DN |
5340 | fi |
5341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6de9cd9a | 5342 | |
96b8a615 AJ |
5343 | if test $ac_cv_header_stdc = yes; then |
5344 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5345 | cat >conftest.$ac_ext <<_ACEOF | |
6de9cd9a DN |
5346 | /* confdefs.h. */ |
5347 | _ACEOF | |
5348 | cat confdefs.h >>conftest.$ac_ext | |
5349 | cat >>conftest.$ac_ext <<_ACEOF | |
5350 | /* end confdefs.h. */ | |
96b8a615 AJ |
5351 | #include <string.h> |
5352 | ||
6de9cd9a | 5353 | _ACEOF |
96b8a615 AJ |
5354 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5355 | $EGREP "memchr" >/dev/null 2>&1; then | |
5356 | : | |
6de9cd9a | 5357 | else |
96b8a615 | 5358 | ac_cv_header_stdc=no |
6de9cd9a | 5359 | fi |
96b8a615 AJ |
5360 | rm -f conftest* |
5361 | ||
5362 | fi | |
5363 | ||
5364 | if test $ac_cv_header_stdc = yes; then | |
5365 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5366 | cat >conftest.$ac_ext <<_ACEOF | |
5367 | /* confdefs.h. */ | |
5368 | _ACEOF | |
5369 | cat confdefs.h >>conftest.$ac_ext | |
5370 | cat >>conftest.$ac_ext <<_ACEOF | |
5371 | /* end confdefs.h. */ | |
5372 | #include <stdlib.h> | |
5373 | ||
5374 | _ACEOF | |
5375 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5376 | $EGREP "free" >/dev/null 2>&1; then | |
5377 | : | |
6de9cd9a | 5378 | else |
96b8a615 AJ |
5379 | ac_cv_header_stdc=no |
5380 | fi | |
5381 | rm -f conftest* | |
5382 | ||
5383 | fi | |
5384 | ||
5385 | if test $ac_cv_header_stdc = yes; then | |
5386 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5387 | if test "$cross_compiling" = yes; then | |
5388 | : | |
5389 | else | |
5390 | cat >conftest.$ac_ext <<_ACEOF | |
5391 | /* confdefs.h. */ | |
5392 | _ACEOF | |
5393 | cat confdefs.h >>conftest.$ac_ext | |
5394 | cat >>conftest.$ac_ext <<_ACEOF | |
5395 | /* end confdefs.h. */ | |
5396 | #include <ctype.h> | |
5397 | #if ((' ' & 0x0FF) == 0x020) | |
5398 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5399 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5400 | #else | |
5401 | # define ISLOWER(c) \ | |
5402 | (('a' <= (c) && (c) <= 'i') \ | |
5403 | || ('j' <= (c) && (c) <= 'r') \ | |
5404 | || ('s' <= (c) && (c) <= 'z')) | |
5405 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5406 | #endif | |
5407 | ||
5408 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5409 | int | |
5410 | main () | |
5411 | { | |
5412 | int i; | |
5413 | for (i = 0; i < 256; i++) | |
5414 | if (XOR (islower (i), ISLOWER (i)) | |
5415 | || toupper (i) != TOUPPER (i)) | |
5416 | exit(2); | |
5417 | exit (0); | |
5418 | } | |
5419 | _ACEOF | |
5420 | rm -f conftest$ac_exeext | |
5421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5422 | (eval $ac_link) 2>&5 | |
5423 | ac_status=$? | |
5424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5425 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5427 | (eval $ac_try) 2>&5 | |
5428 | ac_status=$? | |
5429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5430 | (exit $ac_status); }; }; then | |
5431 | : | |
5432 | else | |
5433 | echo "$as_me: program exited with status $ac_status" >&5 | |
5434 | echo "$as_me: failed program was:" >&5 | |
6de9cd9a DN |
5435 | sed 's/^/| /' conftest.$ac_ext >&5 |
5436 | ||
96b8a615 AJ |
5437 | ( exit $ac_status ) |
5438 | ac_cv_header_stdc=no | |
6de9cd9a | 5439 | fi |
96b8a615 AJ |
5440 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5441 | fi | |
5442 | fi | |
5443 | fi | |
5444 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
5445 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5446 | if test $ac_cv_header_stdc = yes; then | |
6de9cd9a | 5447 | |
96b8a615 AJ |
5448 | cat >>confdefs.h <<\_ACEOF |
5449 | #define STDC_HEADERS 1 | |
5450 | _ACEOF | |
5451 | ||
5452 | fi | |
5453 | ||
5454 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5455 | ||
5456 | ||
5457 | ||
5458 | ||
5459 | ||
5460 | ||
5461 | ||
5462 | ||
5463 | ||
5464 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5465 | inttypes.h stdint.h unistd.h | |
5466 | do | |
5467 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6de9cd9a DN |
5468 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5469 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5470 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5472 | else | |
96b8a615 AJ |
5473 | cat >conftest.$ac_ext <<_ACEOF |
5474 | /* confdefs.h. */ | |
5475 | _ACEOF | |
5476 | cat confdefs.h >>conftest.$ac_ext | |
5477 | cat >>conftest.$ac_ext <<_ACEOF | |
5478 | /* end confdefs.h. */ | |
5479 | $ac_includes_default | |
5480 | ||
5481 | #include <$ac_header> | |
5482 | _ACEOF | |
5483 | rm -f conftest.$ac_objext | |
5484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5485 | (eval $ac_compile) 2>conftest.er1 | |
5486 | ac_status=$? | |
5487 | grep -v '^ *+' conftest.er1 >conftest.err | |
5488 | rm -f conftest.er1 | |
5489 | cat conftest.err >&5 | |
5490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5491 | (exit $ac_status); } && | |
1409cd0b FXC |
5492 | { ac_try='test -z "$ac_c_werror_flag" |
5493 | || test ! -s conftest.err' | |
96b8a615 AJ |
5494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5495 | (eval $ac_try) 2>&5 | |
5496 | ac_status=$? | |
5497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5498 | (exit $ac_status); }; } && | |
5499 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
5505 | eval "$as_ac_Header=yes" | |
5506 | else | |
5507 | echo "$as_me: failed program was:" >&5 | |
5508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5509 | ||
5510 | eval "$as_ac_Header=no" | |
5511 | fi | |
5512 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6de9cd9a DN |
5513 | fi |
5514 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5515 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a DN |
5516 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5517 | cat >>confdefs.h <<_ACEOF | |
5518 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5519 | _ACEOF | |
5520 | ||
5521 | fi | |
5522 | ||
5523 | done | |
5524 | ||
96b8a615 AJ |
5525 | |
5526 | ||
5527 | ||
5528 | for ac_header in stdlib.h unistd.h | |
5529 | do | |
5530 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5531 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5532 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5533 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5534 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6de9cd9a DN |
5535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5536 | fi | |
96b8a615 AJ |
5537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5538 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a DN |
5539 | else |
5540 | # Is the header compilable? | |
96b8a615 AJ |
5541 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5542 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6de9cd9a DN |
5543 | cat >conftest.$ac_ext <<_ACEOF |
5544 | /* confdefs.h. */ | |
5545 | _ACEOF | |
5546 | cat confdefs.h >>conftest.$ac_ext | |
5547 | cat >>conftest.$ac_ext <<_ACEOF | |
5548 | /* end confdefs.h. */ | |
5549 | $ac_includes_default | |
96b8a615 | 5550 | #include <$ac_header> |
6de9cd9a DN |
5551 | _ACEOF |
5552 | rm -f conftest.$ac_objext | |
5553 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5554 | (eval $ac_compile) 2>conftest.er1 | |
5555 | ac_status=$? | |
5556 | grep -v '^ *+' conftest.er1 >conftest.err | |
5557 | rm -f conftest.er1 | |
5558 | cat conftest.err >&5 | |
5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5560 | (exit $ac_status); } && | |
1409cd0b FXC |
5561 | { ac_try='test -z "$ac_c_werror_flag" |
5562 | || test ! -s conftest.err' | |
6de9cd9a DN |
5563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5564 | (eval $ac_try) 2>&5 | |
5565 | ac_status=$? | |
5566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5567 | (exit $ac_status); }; } && | |
5568 | { ac_try='test -s conftest.$ac_objext' | |
5569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5570 | (eval $ac_try) 2>&5 | |
5571 | ac_status=$? | |
5572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5573 | (exit $ac_status); }; }; then | |
5574 | ac_header_compiler=yes | |
5575 | else | |
5576 | echo "$as_me: failed program was:" >&5 | |
5577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5578 | ||
5579 | ac_header_compiler=no | |
5580 | fi | |
5581 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5582 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5583 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5584 | ||
5585 | # Is the header present? | |
96b8a615 AJ |
5586 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5587 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6de9cd9a DN |
5588 | cat >conftest.$ac_ext <<_ACEOF |
5589 | /* confdefs.h. */ | |
5590 | _ACEOF | |
5591 | cat confdefs.h >>conftest.$ac_ext | |
5592 | cat >>conftest.$ac_ext <<_ACEOF | |
5593 | /* end confdefs.h. */ | |
96b8a615 | 5594 | #include <$ac_header> |
6de9cd9a DN |
5595 | _ACEOF |
5596 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5597 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5598 | ac_status=$? | |
5599 | grep -v '^ *+' conftest.er1 >conftest.err | |
5600 | rm -f conftest.er1 | |
5601 | cat conftest.err >&5 | |
5602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5603 | (exit $ac_status); } >/dev/null; then | |
5604 | if test -s conftest.err; then | |
5605 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5606 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5607 | else | |
5608 | ac_cpp_err= | |
5609 | fi | |
5610 | else | |
5611 | ac_cpp_err=yes | |
5612 | fi | |
5613 | if test -z "$ac_cpp_err"; then | |
5614 | ac_header_preproc=yes | |
5615 | else | |
5616 | echo "$as_me: failed program was:" >&5 | |
5617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5618 | ||
5619 | ac_header_preproc=no | |
5620 | fi | |
5621 | rm -f conftest.err conftest.$ac_ext | |
5622 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5623 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5624 | ||
5625 | # So? What about this header? | |
5626 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5627 | yes:no: ) | |
96b8a615 AJ |
5628 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5629 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5630 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5631 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6de9cd9a DN |
5632 | ac_header_preproc=yes |
5633 | ;; | |
5634 | no:yes:* ) | |
96b8a615 AJ |
5635 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5636 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5637 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5638 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5639 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5640 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5641 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5642 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5643 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5644 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5645 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5646 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6de9cd9a DN |
5647 | ( |
5648 | cat <<\_ASBOX | |
5649 | ## ------------------------------------------------------ ## | |
5650 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
5651 | ## ------------------------------------------------------ ## | |
5652 | _ASBOX | |
5653 | ) | | |
5654 | sed "s/^/$as_me: WARNING: /" >&2 | |
5655 | ;; | |
5656 | esac | |
96b8a615 AJ |
5657 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5658 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5659 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6de9cd9a DN |
5660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5661 | else | |
96b8a615 | 5662 | eval "$as_ac_Header=\$ac_header_preproc" |
6de9cd9a | 5663 | fi |
96b8a615 AJ |
5664 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
5665 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5666 | ||
5667 | fi | |
5668 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5669 | cat >>confdefs.h <<_ACEOF | |
5670 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5671 | _ACEOF | |
6de9cd9a | 5672 | |
96b8a615 | 5673 | fi |
6de9cd9a | 5674 | |
96b8a615 | 5675 | done |
6de9cd9a DN |
5676 | |
5677 | ||
96b8a615 | 5678 | for ac_func in getpagesize |
6de9cd9a DN |
5679 | do |
5680 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5681 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5682 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5683 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5685 | else | |
f02d008e JD |
5686 | if test x$gcc_no_link = xyes; then |
5687 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
5688 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
5689 | { (exit 1); exit 1; }; } | |
5690 | fi | |
5691 | cat >conftest.$ac_ext <<_ACEOF | |
6de9cd9a DN |
5692 | /* confdefs.h. */ |
5693 | _ACEOF | |
5694 | cat confdefs.h >>conftest.$ac_ext | |
5695 | cat >>conftest.$ac_ext <<_ACEOF | |
5696 | /* end confdefs.h. */ | |
5697 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5698 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5699 | #define $ac_func innocuous_$ac_func | |
5700 | ||
5701 | /* System header to define __stub macros and hopefully few prototypes, | |
5702 | which can conflict with char $ac_func (); below. | |
5703 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5704 | <limits.h> exists even on freestanding compilers. */ | |
5705 | ||
5706 | #ifdef __STDC__ | |
5707 | # include <limits.h> | |
5708 | #else | |
5709 | # include <assert.h> | |
5710 | #endif | |
5711 | ||
5712 | #undef $ac_func | |
5713 | ||
5714 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5715 | #ifdef __cplusplus | |
5716 | extern "C" | |
5717 | { | |
5718 | #endif | |
5719 | /* We use char because int might match the return type of a gcc2 | |
5720 | builtin and then its argument prototype would still apply. */ | |
5721 | char $ac_func (); | |
5722 | /* The GNU C library defines this for functions which it implements | |
5723 | to always fail with ENOSYS. Some functions are actually named | |
5724 | something starting with __ and the normal name is an alias. */ | |
5725 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5726 | choke me | |
5727 | #else | |
5728 | char (*f) () = $ac_func; | |
5729 | #endif | |
5730 | #ifdef __cplusplus | |
5731 | } | |
5732 | #endif | |
5733 | ||
5734 | int | |
5735 | main () | |
5736 | { | |
5737 | return f != $ac_func; | |
5738 | ; | |
5739 | return 0; | |
5740 | } | |
5741 | _ACEOF | |
5742 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5744 | (eval $ac_link) 2>conftest.er1 | |
5745 | ac_status=$? | |
5746 | grep -v '^ *+' conftest.er1 >conftest.err | |
5747 | rm -f conftest.er1 | |
5748 | cat conftest.err >&5 | |
5749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5750 | (exit $ac_status); } && | |
1409cd0b FXC |
5751 | { ac_try='test -z "$ac_c_werror_flag" |
5752 | || test ! -s conftest.err' | |
6de9cd9a DN |
5753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5754 | (eval $ac_try) 2>&5 | |
5755 | ac_status=$? | |
5756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5757 | (exit $ac_status); }; } && | |
5758 | { ac_try='test -s conftest$ac_exeext' | |
5759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5760 | (eval $ac_try) 2>&5 | |
5761 | ac_status=$? | |
5762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5763 | (exit $ac_status); }; }; then | |
5764 | eval "$as_ac_var=yes" | |
5765 | else | |
5766 | echo "$as_me: failed program was:" >&5 | |
5767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5768 | ||
5769 | eval "$as_ac_var=no" | |
5770 | fi | |
5771 | rm -f conftest.err conftest.$ac_objext \ | |
5772 | conftest$ac_exeext conftest.$ac_ext | |
5773 | fi | |
5774 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5775 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5776 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5777 | cat >>confdefs.h <<_ACEOF | |
5778 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5779 | _ACEOF | |
5780 | ||
5781 | fi | |
5782 | done | |
5783 | ||
96b8a615 AJ |
5784 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
5785 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
5786 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6de9cd9a | 5787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
96b8a615 AJ |
5788 | else |
5789 | if test "$cross_compiling" = yes; then | |
5790 | ac_cv_func_mmap_fixed_mapped=no | |
6de9cd9a DN |
5791 | else |
5792 | cat >conftest.$ac_ext <<_ACEOF | |
5793 | /* confdefs.h. */ | |
5794 | _ACEOF | |
5795 | cat confdefs.h >>conftest.$ac_ext | |
5796 | cat >>conftest.$ac_ext <<_ACEOF | |
5797 | /* end confdefs.h. */ | |
96b8a615 AJ |
5798 | $ac_includes_default |
5799 | /* malloc might have been renamed as rpl_malloc. */ | |
5800 | #undef malloc | |
5801 | ||
5802 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
5803 | Here is a matrix of mmap possibilities: | |
5804 | mmap private not fixed | |
5805 | mmap private fixed at somewhere currently unmapped | |
5806 | mmap private fixed at somewhere already mapped | |
5807 | mmap shared not fixed | |
5808 | mmap shared fixed at somewhere currently unmapped | |
5809 | mmap shared fixed at somewhere already mapped | |
5810 | For private mappings, we should verify that changes cannot be read() | |
5811 | back from the file, nor mmap's back from the file at a different | |
5812 | address. (There have been systems where private was not correctly | |
5813 | implemented like the infamous i386 svr4.0, and systems where the | |
5814 | VM page cache was not coherent with the file system buffer cache | |
5815 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
5816 | For shared mappings, we should conversely verify that changes get | |
5817 | propagated back to all the places they're supposed to be. | |
5818 | ||
5819 | Grep wants private fixed already mapped. | |
5820 | The main things grep needs to know about mmap are: | |
5821 | * does it exist and is it safe to write into the mmap'd area | |
5822 | * how to use it (BSD variants) */ | |
5823 | ||
5824 | #include <fcntl.h> | |
5825 | #include <sys/mman.h> | |
5826 | ||
5827 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
5828 | char *malloc (); | |
5829 | #endif | |
5830 | ||
5831 | /* This mess was copied from the GNU getpagesize.h. */ | |
5832 | #if !HAVE_GETPAGESIZE | |
5833 | /* Assume that all systems that can run configure have sys/param.h. */ | |
5834 | # if !HAVE_SYS_PARAM_H | |
5835 | # define HAVE_SYS_PARAM_H 1 | |
5836 | # endif | |
5837 | ||
5838 | # ifdef _SC_PAGESIZE | |
5839 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
5840 | # else /* no _SC_PAGESIZE */ | |
5841 | # if HAVE_SYS_PARAM_H | |
5842 | # include <sys/param.h> | |
5843 | # ifdef EXEC_PAGESIZE | |
5844 | # define getpagesize() EXEC_PAGESIZE | |
5845 | # else /* no EXEC_PAGESIZE */ | |
5846 | # ifdef NBPG | |
5847 | # define getpagesize() NBPG * CLSIZE | |
5848 | # ifndef CLSIZE | |
5849 | # define CLSIZE 1 | |
5850 | # endif /* no CLSIZE */ | |
5851 | # else /* no NBPG */ | |
5852 | # ifdef NBPC | |
5853 | # define getpagesize() NBPC | |
5854 | # else /* no NBPC */ | |
5855 | # ifdef PAGESIZE | |
5856 | # define getpagesize() PAGESIZE | |
5857 | # endif /* PAGESIZE */ | |
5858 | # endif /* no NBPC */ | |
5859 | # endif /* no NBPG */ | |
5860 | # endif /* no EXEC_PAGESIZE */ | |
5861 | # else /* no HAVE_SYS_PARAM_H */ | |
5862 | # define getpagesize() 8192 /* punt totally */ | |
5863 | # endif /* no HAVE_SYS_PARAM_H */ | |
5864 | # endif /* no _SC_PAGESIZE */ | |
5865 | ||
5866 | #endif /* no HAVE_GETPAGESIZE */ | |
6de9cd9a DN |
5867 | |
5868 | int | |
5869 | main () | |
5870 | { | |
96b8a615 AJ |
5871 | char *data, *data2, *data3; |
5872 | int i, pagesize; | |
5873 | int fd; | |
5874 | ||
5875 | pagesize = getpagesize (); | |
5876 | ||
5877 | /* First, make a file with some known garbage in it. */ | |
5878 | data = (char *) malloc (pagesize); | |
5879 | if (!data) | |
5880 | exit (1); | |
5881 | for (i = 0; i < pagesize; ++i) | |
5882 | *(data + i) = rand (); | |
5883 | umask (0); | |
5884 | fd = creat ("conftest.mmap", 0600); | |
5885 | if (fd < 0) | |
5886 | exit (1); | |
5887 | if (write (fd, data, pagesize) != pagesize) | |
5888 | exit (1); | |
5889 | close (fd); | |
5890 | ||
5891 | /* Next, try to mmap the file at a fixed address which already has | |
5892 | something else allocated at it. If we can, also make sure that | |
5893 | we see the same garbage. */ | |
5894 | fd = open ("conftest.mmap", O_RDWR); | |
5895 | if (fd < 0) | |
5896 | exit (1); | |
5897 | data2 = (char *) malloc (2 * pagesize); | |
5898 | if (!data2) | |
5899 | exit (1); | |
5900 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
5901 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5902 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5903 | exit (1); | |
5904 | for (i = 0; i < pagesize; ++i) | |
5905 | if (*(data + i) != *(data2 + i)) | |
5906 | exit (1); | |
5907 | ||
5908 | /* Finally, make sure that changes to the mapped area do not | |
5909 | percolate back to the file as seen by read(). (This is a bug on | |
5910 | some variants of i386 svr4.0.) */ | |
5911 | for (i = 0; i < pagesize; ++i) | |
5912 | *(data2 + i) = *(data2 + i) + 1; | |
5913 | data3 = (char *) malloc (pagesize); | |
5914 | if (!data3) | |
5915 | exit (1); | |
5916 | if (read (fd, data3, pagesize) != pagesize) | |
5917 | exit (1); | |
5918 | for (i = 0; i < pagesize; ++i) | |
5919 | if (*(data + i) != *(data3 + i)) | |
5920 | exit (1); | |
5921 | close (fd); | |
5922 | exit (0); | |
6de9cd9a DN |
5923 | } |
5924 | _ACEOF | |
96b8a615 AJ |
5925 | rm -f conftest$ac_exeext |
5926 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5927 | (eval $ac_link) 2>&5 | |
6de9cd9a DN |
5928 | ac_status=$? |
5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 | 5930 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6de9cd9a DN |
5931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5932 | (eval $ac_try) 2>&5 | |
5933 | ac_status=$? | |
5934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5935 | (exit $ac_status); }; }; then | |
96b8a615 | 5936 | ac_cv_func_mmap_fixed_mapped=yes |
6de9cd9a | 5937 | else |
96b8a615 AJ |
5938 | echo "$as_me: program exited with status $ac_status" >&5 |
5939 | echo "$as_me: failed program was:" >&5 | |
6de9cd9a DN |
5940 | sed 's/^/| /' conftest.$ac_ext >&5 |
5941 | ||
96b8a615 AJ |
5942 | ( exit $ac_status ) |
5943 | ac_cv_func_mmap_fixed_mapped=no | |
6de9cd9a | 5944 | fi |
96b8a615 | 5945 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 5946 | fi |
96b8a615 AJ |
5947 | fi |
5948 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
5949 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
5950 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
6de9cd9a DN |
5951 | |
5952 | cat >>confdefs.h <<\_ACEOF | |
96b8a615 | 5953 | #define HAVE_MMAP 1 |
6de9cd9a DN |
5954 | _ACEOF |
5955 | ||
5956 | fi | |
96b8a615 | 5957 | rm -f conftest.mmap |
6de9cd9a | 5958 | |
f02d008e | 5959 | fi |
96b8a615 AJ |
5960 | echo "$as_me:$LINENO: checking for off_t" >&5 |
5961 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5962 | if test "${ac_cv_type_off_t+set}" = set; then | |
6de9cd9a DN |
5963 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5964 | else | |
96b8a615 AJ |
5965 | cat >conftest.$ac_ext <<_ACEOF |
5966 | /* confdefs.h. */ | |
5967 | _ACEOF | |
5968 | cat confdefs.h >>conftest.$ac_ext | |
5969 | cat >>conftest.$ac_ext <<_ACEOF | |
5970 | /* end confdefs.h. */ | |
5971 | $ac_includes_default | |
6de9cd9a DN |
5972 | int |
5973 | main () | |
5974 | { | |
96b8a615 AJ |
5975 | if ((off_t *) 0) |
5976 | return 0; | |
5977 | if (sizeof (off_t)) | |
5978 | return 0; | |
6de9cd9a DN |
5979 | ; |
5980 | return 0; | |
5981 | } | |
5982 | _ACEOF | |
96b8a615 AJ |
5983 | rm -f conftest.$ac_objext |
5984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5985 | (eval $ac_compile) 2>conftest.er1 | |
6de9cd9a DN |
5986 | ac_status=$? |
5987 | grep -v '^ *+' conftest.er1 >conftest.err | |
5988 | rm -f conftest.er1 | |
5989 | cat conftest.err >&5 | |
5990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5991 | (exit $ac_status); } && | |
1409cd0b FXC |
5992 | { ac_try='test -z "$ac_c_werror_flag" |
5993 | || test ! -s conftest.err' | |
6de9cd9a DN |
5994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5995 | (eval $ac_try) 2>&5 | |
5996 | ac_status=$? | |
5997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5998 | (exit $ac_status); }; } && | |
96b8a615 | 5999 | { ac_try='test -s conftest.$ac_objext' |
6de9cd9a DN |
6000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6001 | (eval $ac_try) 2>&5 | |
6002 | ac_status=$? | |
6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6004 | (exit $ac_status); }; }; then | |
96b8a615 | 6005 | ac_cv_type_off_t=yes |
6de9cd9a DN |
6006 | else |
6007 | echo "$as_me: failed program was:" >&5 | |
6008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6009 | ||
96b8a615 | 6010 | ac_cv_type_off_t=no |
6de9cd9a | 6011 | fi |
96b8a615 | 6012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 6013 | fi |
96b8a615 AJ |
6014 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
6015 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
6016 | if test $ac_cv_type_off_t = yes; then | |
6017 | : | |
6018 | else | |
6019 | ||
6020 | cat >>confdefs.h <<_ACEOF | |
6021 | #define off_t long | |
6de9cd9a DN |
6022 | _ACEOF |
6023 | ||
6024 | fi | |
6de9cd9a | 6025 | |
96b8a615 AJ |
6026 | |
6027 | # check header files | |
6028 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
6029 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
6030 | if test "${ac_cv_header_stdc+set}" = set; then | |
6de9cd9a DN |
6031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6032 | else | |
6033 | cat >conftest.$ac_ext <<_ACEOF | |
6034 | /* confdefs.h. */ | |
6035 | _ACEOF | |
6036 | cat confdefs.h >>conftest.$ac_ext | |
6037 | cat >>conftest.$ac_ext <<_ACEOF | |
6038 | /* end confdefs.h. */ | |
96b8a615 AJ |
6039 | #include <stdlib.h> |
6040 | #include <stdarg.h> | |
6041 | #include <string.h> | |
6042 | #include <float.h> | |
6043 | ||
6de9cd9a DN |
6044 | int |
6045 | main () | |
6046 | { | |
96b8a615 | 6047 | |
6de9cd9a DN |
6048 | ; |
6049 | return 0; | |
6050 | } | |
6051 | _ACEOF | |
6052 | rm -f conftest.$ac_objext | |
6053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6054 | (eval $ac_compile) 2>conftest.er1 | |
6055 | ac_status=$? | |
6056 | grep -v '^ *+' conftest.er1 >conftest.err | |
6057 | rm -f conftest.er1 | |
6058 | cat conftest.err >&5 | |
6059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6060 | (exit $ac_status); } && | |
1409cd0b FXC |
6061 | { ac_try='test -z "$ac_c_werror_flag" |
6062 | || test ! -s conftest.err' | |
6de9cd9a DN |
6063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6064 | (eval $ac_try) 2>&5 | |
6065 | ac_status=$? | |
6066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6067 | (exit $ac_status); }; } && | |
6068 | { ac_try='test -s conftest.$ac_objext' | |
6069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6070 | (eval $ac_try) 2>&5 | |
6071 | ac_status=$? | |
6072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6073 | (exit $ac_status); }; }; then | |
96b8a615 | 6074 | ac_cv_header_stdc=yes |
6de9cd9a DN |
6075 | else |
6076 | echo "$as_me: failed program was:" >&5 | |
6077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6078 | ||
96b8a615 | 6079 | ac_cv_header_stdc=no |
6de9cd9a DN |
6080 | fi |
6081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
96b8a615 AJ |
6082 | |
6083 | if test $ac_cv_header_stdc = yes; then | |
6084 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6de9cd9a DN |
6085 | cat >conftest.$ac_ext <<_ACEOF |
6086 | /* confdefs.h. */ | |
6087 | _ACEOF | |
6088 | cat confdefs.h >>conftest.$ac_ext | |
6089 | cat >>conftest.$ac_ext <<_ACEOF | |
6090 | /* end confdefs.h. */ | |
96b8a615 | 6091 | #include <string.h> |
6de9cd9a | 6092 | |
6de9cd9a | 6093 | _ACEOF |
96b8a615 AJ |
6094 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6095 | $EGREP "memchr" >/dev/null 2>&1; then | |
6096 | : | |
6de9cd9a | 6097 | else |
96b8a615 | 6098 | ac_cv_header_stdc=no |
6de9cd9a | 6099 | fi |
96b8a615 AJ |
6100 | rm -f conftest* |
6101 | ||
6de9cd9a | 6102 | fi |
6de9cd9a | 6103 | |
96b8a615 AJ |
6104 | if test $ac_cv_header_stdc = yes; then |
6105 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6106 | cat >conftest.$ac_ext <<_ACEOF | |
6107 | /* confdefs.h. */ | |
6108 | _ACEOF | |
6109 | cat confdefs.h >>conftest.$ac_ext | |
6110 | cat >>conftest.$ac_ext <<_ACEOF | |
6111 | /* end confdefs.h. */ | |
6112 | #include <stdlib.h> | |
6113 | ||
6de9cd9a | 6114 | _ACEOF |
96b8a615 AJ |
6115 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
6116 | $EGREP "free" >/dev/null 2>&1; then | |
6117 | : | |
6118 | else | |
6119 | ac_cv_header_stdc=no | |
6120 | fi | |
6121 | rm -f conftest* | |
6de9cd9a | 6122 | |
96b8a615 | 6123 | fi |
6de9cd9a | 6124 | |
96b8a615 AJ |
6125 | if test $ac_cv_header_stdc = yes; then |
6126 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6127 | if test "$cross_compiling" = yes; then | |
6128 | : | |
6de9cd9a DN |
6129 | else |
6130 | cat >conftest.$ac_ext <<_ACEOF | |
6131 | /* confdefs.h. */ | |
6132 | _ACEOF | |
6133 | cat confdefs.h >>conftest.$ac_ext | |
6134 | cat >>conftest.$ac_ext <<_ACEOF | |
6135 | /* end confdefs.h. */ | |
96b8a615 AJ |
6136 | #include <ctype.h> |
6137 | #if ((' ' & 0x0FF) == 0x020) | |
6138 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6139 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6de9cd9a | 6140 | #else |
96b8a615 AJ |
6141 | # define ISLOWER(c) \ |
6142 | (('a' <= (c) && (c) <= 'i') \ | |
6143 | || ('j' <= (c) && (c) <= 'r') \ | |
6144 | || ('s' <= (c) && (c) <= 'z')) | |
6145 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6de9cd9a DN |
6146 | #endif |
6147 | ||
96b8a615 | 6148 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
6de9cd9a DN |
6149 | int |
6150 | main () | |
6151 | { | |
96b8a615 AJ |
6152 | int i; |
6153 | for (i = 0; i < 256; i++) | |
6154 | if (XOR (islower (i), ISLOWER (i)) | |
6155 | || toupper (i) != TOUPPER (i)) | |
6156 | exit(2); | |
6157 | exit (0); | |
6de9cd9a DN |
6158 | } |
6159 | _ACEOF | |
96b8a615 | 6160 | rm -f conftest$ac_exeext |
6de9cd9a | 6161 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
96b8a615 | 6162 | (eval $ac_link) 2>&5 |
6de9cd9a DN |
6163 | ac_status=$? |
6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 | 6165 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
6de9cd9a DN |
6166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6167 | (eval $ac_try) 2>&5 | |
6168 | ac_status=$? | |
96b8a615 AJ |
6169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6170 | (exit $ac_status); }; }; then | |
6171 | : | |
6de9cd9a | 6172 | else |
96b8a615 AJ |
6173 | echo "$as_me: program exited with status $ac_status" >&5 |
6174 | echo "$as_me: failed program was:" >&5 | |
6175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 6176 | |
96b8a615 AJ |
6177 | ( exit $ac_status ) |
6178 | ac_cv_header_stdc=no | |
6de9cd9a | 6179 | fi |
96b8a615 | 6180 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6de9cd9a DN |
6181 | fi |
6182 | fi | |
6de9cd9a | 6183 | fi |
96b8a615 AJ |
6184 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
6185 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6186 | if test $ac_cv_header_stdc = yes; then | |
6de9cd9a | 6187 | |
96b8a615 AJ |
6188 | cat >>confdefs.h <<\_ACEOF |
6189 | #define STDC_HEADERS 1 | |
6190 | _ACEOF | |
6de9cd9a DN |
6191 | |
6192 | fi | |
6193 | ||
6de9cd9a DN |
6194 | |
6195 | ||
6de9cd9a | 6196 | |
6de9cd9a DN |
6197 | |
6198 | ||
6199 | ||
f77b6ca3 FXC |
6200 | |
6201 | for ac_header in stdlib.h stdio.h string.h stddef.h math.h unistd.h signal.h | |
96b8a615 AJ |
6202 | do |
6203 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6205 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6207 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6209 | fi | |
6210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a | 6212 | else |
96b8a615 AJ |
6213 | # Is the header compilable? |
6214 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6215 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6216 | cat >conftest.$ac_ext <<_ACEOF | |
6217 | /* confdefs.h. */ | |
6218 | _ACEOF | |
6219 | cat confdefs.h >>conftest.$ac_ext | |
6220 | cat >>conftest.$ac_ext <<_ACEOF | |
6221 | /* end confdefs.h. */ | |
6222 | $ac_includes_default | |
6223 | #include <$ac_header> | |
6224 | _ACEOF | |
6225 | rm -f conftest.$ac_objext | |
6226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6227 | (eval $ac_compile) 2>conftest.er1 | |
6228 | ac_status=$? | |
6229 | grep -v '^ *+' conftest.er1 >conftest.err | |
6230 | rm -f conftest.er1 | |
6231 | cat conftest.err >&5 | |
6232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6233 | (exit $ac_status); } && | |
1409cd0b FXC |
6234 | { ac_try='test -z "$ac_c_werror_flag" |
6235 | || test ! -s conftest.err' | |
96b8a615 AJ |
6236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6237 | (eval $ac_try) 2>&5 | |
6238 | ac_status=$? | |
6239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6240 | (exit $ac_status); }; } && | |
6241 | { ac_try='test -s conftest.$ac_objext' | |
6242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6243 | (eval $ac_try) 2>&5 | |
6244 | ac_status=$? | |
6245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6246 | (exit $ac_status); }; }; then | |
6247 | ac_header_compiler=yes | |
6de9cd9a | 6248 | else |
96b8a615 AJ |
6249 | echo "$as_me: failed program was:" >&5 |
6250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6251 | ||
6252 | ac_header_compiler=no | |
6de9cd9a | 6253 | fi |
96b8a615 AJ |
6254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6255 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6256 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6257 | ||
6258 | # Is the header present? | |
6259 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6260 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6261 | cat >conftest.$ac_ext <<_ACEOF | |
6262 | /* confdefs.h. */ | |
6263 | _ACEOF | |
6264 | cat confdefs.h >>conftest.$ac_ext | |
6265 | cat >>conftest.$ac_ext <<_ACEOF | |
6266 | /* end confdefs.h. */ | |
6267 | #include <$ac_header> | |
6268 | _ACEOF | |
6269 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6270 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6271 | ac_status=$? | |
6272 | grep -v '^ *+' conftest.er1 >conftest.err | |
6273 | rm -f conftest.er1 | |
6274 | cat conftest.err >&5 | |
6275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6276 | (exit $ac_status); } >/dev/null; then | |
6277 | if test -s conftest.err; then | |
6278 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6279 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6280 | else | |
6281 | ac_cpp_err= | |
6282 | fi | |
6de9cd9a | 6283 | else |
96b8a615 | 6284 | ac_cpp_err=yes |
6de9cd9a | 6285 | fi |
96b8a615 AJ |
6286 | if test -z "$ac_cpp_err"; then |
6287 | ac_header_preproc=yes | |
6de9cd9a | 6288 | else |
96b8a615 AJ |
6289 | echo "$as_me: failed program was:" >&5 |
6290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6291 | ||
6292 | ac_header_preproc=no | |
6de9cd9a | 6293 | fi |
96b8a615 AJ |
6294 | rm -f conftest.err conftest.$ac_ext |
6295 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6296 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6297 | ||
6298 | # So? What about this header? | |
6299 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6300 | yes:no: ) | |
6301 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6302 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6304 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6305 | ac_header_preproc=yes | |
6306 | ;; | |
6307 | no:yes:* ) | |
6308 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6309 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6310 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6311 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6312 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6313 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6314 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6315 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6316 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6317 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6318 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6319 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6320 | ( | |
6321 | cat <<\_ASBOX | |
6322 | ## ------------------------------------------------------ ## | |
6323 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6324 | ## ------------------------------------------------------ ## | |
6325 | _ASBOX | |
6326 | ) | | |
6327 | sed "s/^/$as_me: WARNING: /" >&2 | |
6328 | ;; | |
6329 | esac | |
6330 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6331 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6332 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6de9cd9a DN |
6333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6334 | else | |
96b8a615 | 6335 | eval "$as_ac_Header=\$ac_header_preproc" |
6de9cd9a | 6336 | fi |
96b8a615 AJ |
6337 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6338 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a | 6339 | |
96b8a615 AJ |
6340 | fi |
6341 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6342 | cat >>confdefs.h <<_ACEOF | |
6343 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6344 | _ACEOF | |
6de9cd9a | 6345 | |
6de9cd9a | 6346 | fi |
6de9cd9a | 6347 | |
96b8a615 AJ |
6348 | done |
6349 | ||
6350 | ||
6351 | ||
6352 | ||
6353 | ||
6354 | ||
6355 | for ac_header in time.h sys/params.h sys/time.h sys/times.h sys/resource.h | |
6356 | do | |
6357 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6358 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6359 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
f596fc98 AL |
6360 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6361 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6363 | fi | |
6364 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6365 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6366 | else | |
6367 | # Is the header compilable? | |
6368 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6369 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6370 | cat >conftest.$ac_ext <<_ACEOF | |
6371 | /* confdefs.h. */ | |
6372 | _ACEOF | |
6373 | cat confdefs.h >>conftest.$ac_ext | |
6374 | cat >>conftest.$ac_ext <<_ACEOF | |
6375 | /* end confdefs.h. */ | |
6376 | $ac_includes_default | |
6377 | #include <$ac_header> | |
6378 | _ACEOF | |
6379 | rm -f conftest.$ac_objext | |
6380 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6381 | (eval $ac_compile) 2>conftest.er1 | |
6382 | ac_status=$? | |
6383 | grep -v '^ *+' conftest.er1 >conftest.err | |
6384 | rm -f conftest.er1 | |
6385 | cat conftest.err >&5 | |
6386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6387 | (exit $ac_status); } && | |
1409cd0b FXC |
6388 | { ac_try='test -z "$ac_c_werror_flag" |
6389 | || test ! -s conftest.err' | |
f596fc98 AL |
6390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6391 | (eval $ac_try) 2>&5 | |
6392 | ac_status=$? | |
6393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6394 | (exit $ac_status); }; } && | |
6395 | { ac_try='test -s conftest.$ac_objext' | |
6396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6397 | (eval $ac_try) 2>&5 | |
6398 | ac_status=$? | |
6399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6400 | (exit $ac_status); }; }; then | |
6401 | ac_header_compiler=yes | |
6402 | else | |
6403 | echo "$as_me: failed program was:" >&5 | |
6404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6405 | ||
6406 | ac_header_compiler=no | |
6407 | fi | |
6408 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6409 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6410 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6411 | ||
6412 | # Is the header present? | |
6413 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6414 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6415 | cat >conftest.$ac_ext <<_ACEOF | |
6416 | /* confdefs.h. */ | |
6417 | _ACEOF | |
6418 | cat confdefs.h >>conftest.$ac_ext | |
6419 | cat >>conftest.$ac_ext <<_ACEOF | |
6420 | /* end confdefs.h. */ | |
6421 | #include <$ac_header> | |
6422 | _ACEOF | |
6423 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6424 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6425 | ac_status=$? | |
6426 | grep -v '^ *+' conftest.er1 >conftest.err | |
6427 | rm -f conftest.er1 | |
6428 | cat conftest.err >&5 | |
6429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6430 | (exit $ac_status); } >/dev/null; then | |
6431 | if test -s conftest.err; then | |
6432 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6433 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6434 | else | |
6435 | ac_cpp_err= | |
6436 | fi | |
6437 | else | |
6438 | ac_cpp_err=yes | |
6439 | fi | |
6440 | if test -z "$ac_cpp_err"; then | |
6441 | ac_header_preproc=yes | |
6442 | else | |
6443 | echo "$as_me: failed program was:" >&5 | |
6444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6445 | ||
6446 | ac_header_preproc=no | |
6447 | fi | |
6448 | rm -f conftest.err conftest.$ac_ext | |
6449 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6450 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6451 | ||
6452 | # So? What about this header? | |
6453 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6454 | yes:no: ) | |
6455 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6456 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6457 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6458 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6459 | ac_header_preproc=yes | |
6460 | ;; | |
6461 | no:yes:* ) | |
6462 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6463 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6464 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6465 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6466 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6467 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6468 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6469 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6470 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6471 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6472 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6473 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6474 | ( | |
6475 | cat <<\_ASBOX | |
6476 | ## ------------------------------------------------------ ## | |
6477 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6478 | ## ------------------------------------------------------ ## | |
6479 | _ASBOX | |
6480 | ) | | |
6481 | sed "s/^/$as_me: WARNING: /" >&2 | |
6482 | ;; | |
6483 | esac | |
6484 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6485 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6486 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6488 | else | |
6489 | eval "$as_ac_Header=\$ac_header_preproc" | |
6490 | fi | |
6491 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6492 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6493 | ||
6494 | fi | |
6495 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6496 | cat >>confdefs.h <<_ACEOF | |
6497 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6498 | _ACEOF | |
6499 | ||
6500 | fi | |
6501 | ||
6502 | done | |
6503 | ||
6504 | ||
df65f093 SK |
6505 | |
6506 | ||
6e4d9244 | 6507 | |
944b8b35 | 6508 | |
3b14f664 FXC |
6509 | for ac_header in sys/mman.h sys/types.h sys/stat.h floatingpoint.h ieeefp.h |
6510 | do | |
6511 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6512 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6513 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6514 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6517 | fi | |
6518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6519 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6520 | else | |
6521 | # Is the header compilable? | |
6522 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6523 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6524 | cat >conftest.$ac_ext <<_ACEOF | |
6525 | /* confdefs.h. */ | |
6526 | _ACEOF | |
6527 | cat confdefs.h >>conftest.$ac_ext | |
6528 | cat >>conftest.$ac_ext <<_ACEOF | |
6529 | /* end confdefs.h. */ | |
6530 | $ac_includes_default | |
6531 | #include <$ac_header> | |
6532 | _ACEOF | |
6533 | rm -f conftest.$ac_objext | |
6534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6535 | (eval $ac_compile) 2>conftest.er1 | |
6536 | ac_status=$? | |
6537 | grep -v '^ *+' conftest.er1 >conftest.err | |
6538 | rm -f conftest.er1 | |
6539 | cat conftest.err >&5 | |
6540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6541 | (exit $ac_status); } && | |
6542 | { ac_try='test -z "$ac_c_werror_flag" | |
6543 | || test ! -s conftest.err' | |
6544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6545 | (eval $ac_try) 2>&5 | |
6546 | ac_status=$? | |
6547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6548 | (exit $ac_status); }; } && | |
6549 | { ac_try='test -s conftest.$ac_objext' | |
6550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6551 | (eval $ac_try) 2>&5 | |
6552 | ac_status=$? | |
6553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6554 | (exit $ac_status); }; }; then | |
6555 | ac_header_compiler=yes | |
6556 | else | |
6557 | echo "$as_me: failed program was:" >&5 | |
6558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6559 | ||
6560 | ac_header_compiler=no | |
6561 | fi | |
6562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6563 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6564 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6565 | ||
6566 | # Is the header present? | |
6567 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6568 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6569 | cat >conftest.$ac_ext <<_ACEOF | |
6570 | /* confdefs.h. */ | |
6571 | _ACEOF | |
6572 | cat confdefs.h >>conftest.$ac_ext | |
6573 | cat >>conftest.$ac_ext <<_ACEOF | |
6574 | /* end confdefs.h. */ | |
6575 | #include <$ac_header> | |
6576 | _ACEOF | |
6577 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6578 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6579 | ac_status=$? | |
6580 | grep -v '^ *+' conftest.er1 >conftest.err | |
6581 | rm -f conftest.er1 | |
6582 | cat conftest.err >&5 | |
6583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6584 | (exit $ac_status); } >/dev/null; then | |
6585 | if test -s conftest.err; then | |
6586 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6587 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6588 | else | |
6589 | ac_cpp_err= | |
6590 | fi | |
6591 | else | |
6592 | ac_cpp_err=yes | |
6593 | fi | |
6594 | if test -z "$ac_cpp_err"; then | |
6595 | ac_header_preproc=yes | |
6596 | else | |
6597 | echo "$as_me: failed program was:" >&5 | |
6598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6599 | ||
6600 | ac_header_preproc=no | |
6601 | fi | |
6602 | rm -f conftest.err conftest.$ac_ext | |
6603 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6604 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6605 | ||
6606 | # So? What about this header? | |
6607 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6608 | yes:no: ) | |
6609 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6610 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6611 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6612 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6613 | ac_header_preproc=yes | |
6614 | ;; | |
6615 | no:yes:* ) | |
6616 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6617 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6618 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6619 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6620 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6621 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6622 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6623 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6624 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6625 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6626 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6627 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6628 | ( | |
6629 | cat <<\_ASBOX | |
6630 | ## ------------------------------------------------------ ## | |
6631 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6632 | ## ------------------------------------------------------ ## | |
6633 | _ASBOX | |
6634 | ) | | |
6635 | sed "s/^/$as_me: WARNING: /" >&2 | |
6636 | ;; | |
6637 | esac | |
6638 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6639 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6640 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6642 | else | |
6643 | eval "$as_ac_Header=\$ac_header_preproc" | |
6644 | fi | |
6645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6646 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6647 | ||
6648 | fi | |
6649 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6650 | cat >>confdefs.h <<_ACEOF | |
6651 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6652 | _ACEOF | |
6653 | ||
6654 | fi | |
6655 | ||
6656 | done | |
6657 | ||
6658 | ||
6659 | ||
6660 | ||
6661 | for ac_header in fenv.h fptrap.h float.h | |
f596fc98 AL |
6662 | do |
6663 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6664 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6665 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
96b8a615 AJ |
6666 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
6667 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6de9cd9a | 6668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
96b8a615 AJ |
6669 | fi |
6670 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6671 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a | 6672 | else |
96b8a615 AJ |
6673 | # Is the header compilable? |
6674 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6675 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6676 | cat >conftest.$ac_ext <<_ACEOF | |
6677 | /* confdefs.h. */ | |
6678 | _ACEOF | |
6679 | cat confdefs.h >>conftest.$ac_ext | |
6680 | cat >>conftest.$ac_ext <<_ACEOF | |
6681 | /* end confdefs.h. */ | |
6682 | $ac_includes_default | |
6683 | #include <$ac_header> | |
6684 | _ACEOF | |
6685 | rm -f conftest.$ac_objext | |
6686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6687 | (eval $ac_compile) 2>conftest.er1 | |
6688 | ac_status=$? | |
6689 | grep -v '^ *+' conftest.er1 >conftest.err | |
6690 | rm -f conftest.er1 | |
6691 | cat conftest.err >&5 | |
6692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6693 | (exit $ac_status); } && | |
1409cd0b FXC |
6694 | { ac_try='test -z "$ac_c_werror_flag" |
6695 | || test ! -s conftest.err' | |
96b8a615 AJ |
6696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6697 | (eval $ac_try) 2>&5 | |
6698 | ac_status=$? | |
6699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6700 | (exit $ac_status); }; } && | |
6701 | { ac_try='test -s conftest.$ac_objext' | |
6702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6703 | (eval $ac_try) 2>&5 | |
6704 | ac_status=$? | |
6705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6706 | (exit $ac_status); }; }; then | |
6707 | ac_header_compiler=yes | |
6de9cd9a | 6708 | else |
96b8a615 AJ |
6709 | echo "$as_me: failed program was:" >&5 |
6710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 6711 | |
96b8a615 AJ |
6712 | ac_header_compiler=no |
6713 | fi | |
6714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6715 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6716 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6de9cd9a | 6717 | |
96b8a615 AJ |
6718 | # Is the header present? |
6719 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6720 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6721 | cat >conftest.$ac_ext <<_ACEOF | |
6722 | /* confdefs.h. */ | |
6723 | _ACEOF | |
6724 | cat confdefs.h >>conftest.$ac_ext | |
6725 | cat >>conftest.$ac_ext <<_ACEOF | |
6726 | /* end confdefs.h. */ | |
6727 | #include <$ac_header> | |
6728 | _ACEOF | |
6729 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6730 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6731 | ac_status=$? | |
6732 | grep -v '^ *+' conftest.er1 >conftest.err | |
6733 | rm -f conftest.er1 | |
6734 | cat conftest.err >&5 | |
6735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6736 | (exit $ac_status); } >/dev/null; then | |
6737 | if test -s conftest.err; then | |
6738 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6739 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6740 | else | |
6741 | ac_cpp_err= | |
6742 | fi | |
6de9cd9a | 6743 | else |
96b8a615 | 6744 | ac_cpp_err=yes |
6de9cd9a | 6745 | fi |
96b8a615 AJ |
6746 | if test -z "$ac_cpp_err"; then |
6747 | ac_header_preproc=yes | |
6de9cd9a | 6748 | else |
96b8a615 AJ |
6749 | echo "$as_me: failed program was:" >&5 |
6750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 6751 | |
96b8a615 AJ |
6752 | ac_header_preproc=no |
6753 | fi | |
6754 | rm -f conftest.err conftest.$ac_ext | |
6755 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6756 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6de9cd9a | 6757 | |
96b8a615 AJ |
6758 | # So? What about this header? |
6759 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6760 | yes:no: ) | |
6761 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6762 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6763 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6764 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6765 | ac_header_preproc=yes | |
6de9cd9a | 6766 | ;; |
96b8a615 AJ |
6767 | no:yes:* ) |
6768 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6769 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6770 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6771 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6772 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6773 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6774 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6775 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6776 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6777 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6778 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6779 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6780 | ( | |
6781 | cat <<\_ASBOX | |
6782 | ## ------------------------------------------------------ ## | |
6783 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6784 | ## ------------------------------------------------------ ## | |
6785 | _ASBOX | |
6786 | ) | | |
6787 | sed "s/^/$as_me: WARNING: /" >&2 | |
6de9cd9a | 6788 | ;; |
96b8a615 AJ |
6789 | esac |
6790 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6791 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6792 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6794 | else | |
6795 | eval "$as_ac_Header=\$ac_header_preproc" | |
6796 | fi | |
6797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6798 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6de9cd9a | 6799 | |
96b8a615 AJ |
6800 | fi |
6801 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6802 | cat >>confdefs.h <<_ACEOF | |
6803 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6804 | _ACEOF | |
6de9cd9a | 6805 | |
96b8a615 | 6806 | fi |
6de9cd9a | 6807 | |
96b8a615 | 6808 | done |
6de9cd9a | 6809 | |
96b8a615 AJ |
6810 | if test "${ac_cv_header_complex_h+set}" = set; then |
6811 | echo "$as_me:$LINENO: checking for complex.h" >&5 | |
6812 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
6813 | if test "${ac_cv_header_complex_h+set}" = set; then | |
6814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6815 | fi | |
6816 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 | |
6817 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
6818 | else | |
6819 | # Is the header compilable? | |
6820 | echo "$as_me:$LINENO: checking complex.h usability" >&5 | |
6821 | echo $ECHO_N "checking complex.h usability... $ECHO_C" >&6 | |
6822 | cat >conftest.$ac_ext <<_ACEOF | |
6823 | /* confdefs.h. */ | |
6824 | _ACEOF | |
6825 | cat confdefs.h >>conftest.$ac_ext | |
6826 | cat >>conftest.$ac_ext <<_ACEOF | |
6827 | /* end confdefs.h. */ | |
6828 | $ac_includes_default | |
6829 | #include <complex.h> | |
6830 | _ACEOF | |
6831 | rm -f conftest.$ac_objext | |
6832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6833 | (eval $ac_compile) 2>conftest.er1 | |
6834 | ac_status=$? | |
6835 | grep -v '^ *+' conftest.er1 >conftest.err | |
6836 | rm -f conftest.er1 | |
6837 | cat conftest.err >&5 | |
6838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6839 | (exit $ac_status); } && | |
1409cd0b FXC |
6840 | { ac_try='test -z "$ac_c_werror_flag" |
6841 | || test ! -s conftest.err' | |
96b8a615 AJ |
6842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6843 | (eval $ac_try) 2>&5 | |
6844 | ac_status=$? | |
6845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6846 | (exit $ac_status); }; } && | |
6847 | { ac_try='test -s conftest.$ac_objext' | |
6848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6849 | (eval $ac_try) 2>&5 | |
6850 | ac_status=$? | |
6851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6852 | (exit $ac_status); }; }; then | |
6853 | ac_header_compiler=yes | |
6854 | else | |
6855 | echo "$as_me: failed program was:" >&5 | |
6856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 6857 | |
96b8a615 AJ |
6858 | ac_header_compiler=no |
6859 | fi | |
6860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6861 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6862 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6de9cd9a | 6863 | |
96b8a615 AJ |
6864 | # Is the header present? |
6865 | echo "$as_me:$LINENO: checking complex.h presence" >&5 | |
6866 | echo $ECHO_N "checking complex.h presence... $ECHO_C" >&6 | |
6867 | cat >conftest.$ac_ext <<_ACEOF | |
6868 | /* confdefs.h. */ | |
6869 | _ACEOF | |
6870 | cat confdefs.h >>conftest.$ac_ext | |
6871 | cat >>conftest.$ac_ext <<_ACEOF | |
6872 | /* end confdefs.h. */ | |
6873 | #include <complex.h> | |
6874 | _ACEOF | |
6875 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6876 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6877 | ac_status=$? | |
6878 | grep -v '^ *+' conftest.er1 >conftest.err | |
6879 | rm -f conftest.er1 | |
6880 | cat conftest.err >&5 | |
6881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6882 | (exit $ac_status); } >/dev/null; then | |
6883 | if test -s conftest.err; then | |
6884 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6885 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6de9cd9a | 6886 | else |
96b8a615 | 6887 | ac_cpp_err= |
6de9cd9a | 6888 | fi |
96b8a615 AJ |
6889 | else |
6890 | ac_cpp_err=yes | |
6891 | fi | |
6892 | if test -z "$ac_cpp_err"; then | |
6893 | ac_header_preproc=yes | |
6894 | else | |
6895 | echo "$as_me: failed program was:" >&5 | |
6896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 6897 | |
96b8a615 AJ |
6898 | ac_header_preproc=no |
6899 | fi | |
6900 | rm -f conftest.err conftest.$ac_ext | |
6901 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6902 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6de9cd9a | 6903 | |
96b8a615 AJ |
6904 | # So? What about this header? |
6905 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6906 | yes:no: ) | |
6907 | { echo "$as_me:$LINENO: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6908 | echo "$as_me: WARNING: complex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6909 | { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the compiler's result" >&5 | |
6910 | echo "$as_me: WARNING: complex.h: proceeding with the compiler's result" >&2;} | |
6911 | ac_header_preproc=yes | |
6de9cd9a | 6912 | ;; |
96b8a615 AJ |
6913 | no:yes:* ) |
6914 | { echo "$as_me:$LINENO: WARNING: complex.h: present but cannot be compiled" >&5 | |
6915 | echo "$as_me: WARNING: complex.h: present but cannot be compiled" >&2;} | |
6916 | { echo "$as_me:$LINENO: WARNING: complex.h: check for missing prerequisite headers?" >&5 | |
6917 | echo "$as_me: WARNING: complex.h: check for missing prerequisite headers?" >&2;} | |
6918 | { echo "$as_me:$LINENO: WARNING: complex.h: see the Autoconf documentation" >&5 | |
6919 | echo "$as_me: WARNING: complex.h: see the Autoconf documentation" >&2;} | |
6920 | { echo "$as_me:$LINENO: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&5 | |
6921 | echo "$as_me: WARNING: complex.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
6922 | { echo "$as_me:$LINENO: WARNING: complex.h: proceeding with the preprocessor's result" >&5 | |
6923 | echo "$as_me: WARNING: complex.h: proceeding with the preprocessor's result" >&2;} | |
6924 | { echo "$as_me:$LINENO: WARNING: complex.h: in the future, the compiler will take precedence" >&5 | |
6925 | echo "$as_me: WARNING: complex.h: in the future, the compiler will take precedence" >&2;} | |
6926 | ( | |
6927 | cat <<\_ASBOX | |
6928 | ## ------------------------------------------------------ ## | |
6929 | ## Report this to the GNU Fortran Runtime Library lists. ## | |
6930 | ## ------------------------------------------------------ ## | |
6931 | _ASBOX | |
6932 | ) | | |
6933 | sed "s/^/$as_me: WARNING: /" >&2 | |
6de9cd9a | 6934 | ;; |
6de9cd9a | 6935 | esac |
96b8a615 AJ |
6936 | echo "$as_me:$LINENO: checking for complex.h" >&5 |
6937 | echo $ECHO_N "checking for complex.h... $ECHO_C" >&6 | |
6938 | if test "${ac_cv_header_complex_h+set}" = set; then | |
6939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6940 | else | |
6941 | ac_cv_header_complex_h=$ac_header_preproc | |
6942 | fi | |
6943 | echo "$as_me:$LINENO: result: $ac_cv_header_complex_h" >&5 | |
6944 | echo "${ECHO_T}$ac_cv_header_complex_h" >&6 | |
6de9cd9a DN |
6945 | |
6946 | fi | |
96b8a615 | 6947 | if test $ac_cv_header_complex_h = yes; then |
6de9cd9a | 6948 | |
96b8a615 AJ |
6949 | cat >>confdefs.h <<\_ACEOF |
6950 | #define HAVE_COMPLEX_H 1 | |
6951 | _ACEOF | |
6de9cd9a | 6952 | |
96b8a615 | 6953 | fi |
6de9cd9a DN |
6954 | |
6955 | ||
6de9cd9a | 6956 | |
df65f093 SK |
6957 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
6958 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
6959 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | |
6960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6961 | else | |
6962 | cat >conftest.$ac_ext <<_ACEOF | |
6963 | /* confdefs.h. */ | |
6964 | _ACEOF | |
6965 | cat confdefs.h >>conftest.$ac_ext | |
6966 | cat >>conftest.$ac_ext <<_ACEOF | |
6967 | /* end confdefs.h. */ | |
6968 | $ac_includes_default | |
6969 | int | |
6970 | main () | |
6971 | { | |
6972 | static struct stat ac_aggr; | |
6973 | if (ac_aggr.st_blksize) | |
6974 | return 0; | |
6975 | ; | |
6976 | return 0; | |
6977 | } | |
6978 | _ACEOF | |
6979 | rm -f conftest.$ac_objext | |
6980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6981 | (eval $ac_compile) 2>conftest.er1 | |
6982 | ac_status=$? | |
6983 | grep -v '^ *+' conftest.er1 >conftest.err | |
6984 | rm -f conftest.er1 | |
6985 | cat conftest.err >&5 | |
6986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6987 | (exit $ac_status); } && | |
1409cd0b FXC |
6988 | { ac_try='test -z "$ac_c_werror_flag" |
6989 | || test ! -s conftest.err' | |
df65f093 SK |
6990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6991 | (eval $ac_try) 2>&5 | |
6992 | ac_status=$? | |
6993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6994 | (exit $ac_status); }; } && | |
6995 | { ac_try='test -s conftest.$ac_objext' | |
6996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6997 | (eval $ac_try) 2>&5 | |
6998 | ac_status=$? | |
6999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7000 | (exit $ac_status); }; }; then | |
7001 | ac_cv_member_struct_stat_st_blksize=yes | |
7002 | else | |
7003 | echo "$as_me: failed program was:" >&5 | |
7004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7005 | ||
7006 | cat >conftest.$ac_ext <<_ACEOF | |
7007 | /* confdefs.h. */ | |
7008 | _ACEOF | |
7009 | cat confdefs.h >>conftest.$ac_ext | |
7010 | cat >>conftest.$ac_ext <<_ACEOF | |
7011 | /* end confdefs.h. */ | |
7012 | $ac_includes_default | |
7013 | int | |
7014 | main () | |
7015 | { | |
7016 | static struct stat ac_aggr; | |
7017 | if (sizeof ac_aggr.st_blksize) | |
7018 | return 0; | |
7019 | ; | |
7020 | return 0; | |
7021 | } | |
7022 | _ACEOF | |
7023 | rm -f conftest.$ac_objext | |
7024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7025 | (eval $ac_compile) 2>conftest.er1 | |
7026 | ac_status=$? | |
7027 | grep -v '^ *+' conftest.er1 >conftest.err | |
7028 | rm -f conftest.er1 | |
7029 | cat conftest.err >&5 | |
7030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7031 | (exit $ac_status); } && | |
1409cd0b FXC |
7032 | { ac_try='test -z "$ac_c_werror_flag" |
7033 | || test ! -s conftest.err' | |
df65f093 SK |
7034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7035 | (eval $ac_try) 2>&5 | |
7036 | ac_status=$? | |
7037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7038 | (exit $ac_status); }; } && | |
7039 | { ac_try='test -s conftest.$ac_objext' | |
7040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7041 | (eval $ac_try) 2>&5 | |
7042 | ac_status=$? | |
7043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7044 | (exit $ac_status); }; }; then | |
7045 | ac_cv_member_struct_stat_st_blksize=yes | |
7046 | else | |
7047 | echo "$as_me: failed program was:" >&5 | |
7048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7049 | ||
7050 | ac_cv_member_struct_stat_st_blksize=no | |
7051 | fi | |
7052 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7053 | fi | |
7054 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7055 | fi | |
7056 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | |
7057 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
7058 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | |
7059 | ||
7060 | cat >>confdefs.h <<_ACEOF | |
7061 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
7062 | _ACEOF | |
7063 | ||
7064 | ||
7065 | fi | |
7066 | ||
7067 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 | |
7068 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
7069 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then | |
7070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7071 | else | |
7072 | cat >conftest.$ac_ext <<_ACEOF | |
7073 | /* confdefs.h. */ | |
7074 | _ACEOF | |
7075 | cat confdefs.h >>conftest.$ac_ext | |
7076 | cat >>conftest.$ac_ext <<_ACEOF | |
7077 | /* end confdefs.h. */ | |
7078 | $ac_includes_default | |
7079 | int | |
7080 | main () | |
7081 | { | |
7082 | static struct stat ac_aggr; | |
7083 | if (ac_aggr.st_blocks) | |
7084 | return 0; | |
7085 | ; | |
7086 | return 0; | |
7087 | } | |
7088 | _ACEOF | |
7089 | rm -f conftest.$ac_objext | |
7090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7091 | (eval $ac_compile) 2>conftest.er1 | |
7092 | ac_status=$? | |
7093 | grep -v '^ *+' conftest.er1 >conftest.err | |
7094 | rm -f conftest.er1 | |
7095 | cat conftest.err >&5 | |
7096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7097 | (exit $ac_status); } && | |
1409cd0b FXC |
7098 | { ac_try='test -z "$ac_c_werror_flag" |
7099 | || test ! -s conftest.err' | |
df65f093 SK |
7100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7101 | (eval $ac_try) 2>&5 | |
7102 | ac_status=$? | |
7103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7104 | (exit $ac_status); }; } && | |
7105 | { ac_try='test -s conftest.$ac_objext' | |
7106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7107 | (eval $ac_try) 2>&5 | |
7108 | ac_status=$? | |
7109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7110 | (exit $ac_status); }; }; then | |
7111 | ac_cv_member_struct_stat_st_blocks=yes | |
7112 | else | |
7113 | echo "$as_me: failed program was:" >&5 | |
7114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7115 | ||
7116 | cat >conftest.$ac_ext <<_ACEOF | |
7117 | /* confdefs.h. */ | |
7118 | _ACEOF | |
7119 | cat confdefs.h >>conftest.$ac_ext | |
7120 | cat >>conftest.$ac_ext <<_ACEOF | |
7121 | /* end confdefs.h. */ | |
7122 | $ac_includes_default | |
7123 | int | |
7124 | main () | |
7125 | { | |
7126 | static struct stat ac_aggr; | |
7127 | if (sizeof ac_aggr.st_blocks) | |
7128 | return 0; | |
7129 | ; | |
7130 | return 0; | |
7131 | } | |
7132 | _ACEOF | |
7133 | rm -f conftest.$ac_objext | |
7134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7135 | (eval $ac_compile) 2>conftest.er1 | |
7136 | ac_status=$? | |
7137 | grep -v '^ *+' conftest.er1 >conftest.err | |
7138 | rm -f conftest.er1 | |
7139 | cat conftest.err >&5 | |
7140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7141 | (exit $ac_status); } && | |
1409cd0b FXC |
7142 | { ac_try='test -z "$ac_c_werror_flag" |
7143 | || test ! -s conftest.err' | |
df65f093 SK |
7144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7145 | (eval $ac_try) 2>&5 | |
7146 | ac_status=$? | |
7147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7148 | (exit $ac_status); }; } && | |
7149 | { ac_try='test -s conftest.$ac_objext' | |
7150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7151 | (eval $ac_try) 2>&5 | |
7152 | ac_status=$? | |
7153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7154 | (exit $ac_status); }; }; then | |
7155 | ac_cv_member_struct_stat_st_blocks=yes | |
7156 | else | |
7157 | echo "$as_me: failed program was:" >&5 | |
7158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7159 | ||
7160 | ac_cv_member_struct_stat_st_blocks=no | |
7161 | fi | |
7162 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7163 | fi | |
7164 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7165 | fi | |
7166 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 | |
7167 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
7168 | if test $ac_cv_member_struct_stat_st_blocks = yes; then | |
7169 | ||
7170 | cat >>confdefs.h <<_ACEOF | |
7171 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
7172 | _ACEOF | |
7173 | ||
7174 | ||
7175 | fi | |
7176 | ||
7177 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
7178 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
7179 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
7180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7181 | else | |
7182 | cat >conftest.$ac_ext <<_ACEOF | |
7183 | /* confdefs.h. */ | |
7184 | _ACEOF | |
7185 | cat confdefs.h >>conftest.$ac_ext | |
7186 | cat >>conftest.$ac_ext <<_ACEOF | |
7187 | /* end confdefs.h. */ | |
7188 | $ac_includes_default | |
7189 | int | |
7190 | main () | |
7191 | { | |
7192 | static struct stat ac_aggr; | |
7193 | if (ac_aggr.st_rdev) | |
7194 | return 0; | |
7195 | ; | |
7196 | return 0; | |
7197 | } | |
7198 | _ACEOF | |
7199 | rm -f conftest.$ac_objext | |
7200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7201 | (eval $ac_compile) 2>conftest.er1 | |
7202 | ac_status=$? | |
7203 | grep -v '^ *+' conftest.er1 >conftest.err | |
7204 | rm -f conftest.er1 | |
7205 | cat conftest.err >&5 | |
7206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7207 | (exit $ac_status); } && | |
1409cd0b FXC |
7208 | { ac_try='test -z "$ac_c_werror_flag" |
7209 | || test ! -s conftest.err' | |
df65f093 SK |
7210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7211 | (eval $ac_try) 2>&5 | |
7212 | ac_status=$? | |
7213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7214 | (exit $ac_status); }; } && | |
7215 | { ac_try='test -s conftest.$ac_objext' | |
7216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7217 | (eval $ac_try) 2>&5 | |
7218 | ac_status=$? | |
7219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7220 | (exit $ac_status); }; }; then | |
7221 | ac_cv_member_struct_stat_st_rdev=yes | |
7222 | else | |
7223 | echo "$as_me: failed program was:" >&5 | |
7224 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7225 | ||
7226 | cat >conftest.$ac_ext <<_ACEOF | |
7227 | /* confdefs.h. */ | |
7228 | _ACEOF | |
7229 | cat confdefs.h >>conftest.$ac_ext | |
7230 | cat >>conftest.$ac_ext <<_ACEOF | |
7231 | /* end confdefs.h. */ | |
7232 | $ac_includes_default | |
7233 | int | |
7234 | main () | |
7235 | { | |
7236 | static struct stat ac_aggr; | |
7237 | if (sizeof ac_aggr.st_rdev) | |
7238 | return 0; | |
7239 | ; | |
7240 | return 0; | |
7241 | } | |
7242 | _ACEOF | |
7243 | rm -f conftest.$ac_objext | |
7244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7245 | (eval $ac_compile) 2>conftest.er1 | |
7246 | ac_status=$? | |
7247 | grep -v '^ *+' conftest.er1 >conftest.err | |
7248 | rm -f conftest.er1 | |
7249 | cat conftest.err >&5 | |
7250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7251 | (exit $ac_status); } && | |
1409cd0b FXC |
7252 | { ac_try='test -z "$ac_c_werror_flag" |
7253 | || test ! -s conftest.err' | |
df65f093 SK |
7254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7255 | (eval $ac_try) 2>&5 | |
7256 | ac_status=$? | |
7257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7258 | (exit $ac_status); }; } && | |
7259 | { ac_try='test -s conftest.$ac_objext' | |
7260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7261 | (eval $ac_try) 2>&5 | |
7262 | ac_status=$? | |
7263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7264 | (exit $ac_status); }; }; then | |
7265 | ac_cv_member_struct_stat_st_rdev=yes | |
7266 | else | |
7267 | echo "$as_me: failed program was:" >&5 | |
7268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7269 | ||
7270 | ac_cv_member_struct_stat_st_rdev=no | |
7271 | fi | |
7272 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7273 | fi | |
7274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7275 | fi | |
7276 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
7277 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
7278 | if test $ac_cv_member_struct_stat_st_rdev = yes; then | |
7279 | ||
7280 | cat >>confdefs.h <<_ACEOF | |
7281 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
7282 | _ACEOF | |
7283 | ||
7284 | ||
7285 | fi | |
7286 | ||
7287 | ||
96b8a615 AJ |
7288 | # Check for library functions. |
7289 | ||
7290 | ||
41724e6a | 7291 | |
2cbcdeba | 7292 | |
3969c39f | 7293 | |
1fb2002d FXC |
7294 | |
7295 | ||
32aa3bff FXC |
7296 | |
7297 | for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize | |
96b8a615 AJ |
7298 | do |
7299 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7300 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7301 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7302 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6de9cd9a DN |
7303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7304 | else | |
f02d008e JD |
7305 | if test x$gcc_no_link = xyes; then |
7306 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7307 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7308 | { (exit 1); exit 1; }; } | |
7309 | fi | |
7310 | cat >conftest.$ac_ext <<_ACEOF | |
f77b6ca3 FXC |
7311 | /* confdefs.h. */ |
7312 | _ACEOF | |
7313 | cat confdefs.h >>conftest.$ac_ext | |
7314 | cat >>conftest.$ac_ext <<_ACEOF | |
7315 | /* end confdefs.h. */ | |
7316 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7317 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7318 | #define $ac_func innocuous_$ac_func | |
7319 | ||
7320 | /* System header to define __stub macros and hopefully few prototypes, | |
7321 | which can conflict with char $ac_func (); below. | |
7322 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7323 | <limits.h> exists even on freestanding compilers. */ | |
7324 | ||
7325 | #ifdef __STDC__ | |
7326 | # include <limits.h> | |
7327 | #else | |
7328 | # include <assert.h> | |
7329 | #endif | |
7330 | ||
7331 | #undef $ac_func | |
7332 | ||
7333 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7334 | #ifdef __cplusplus | |
7335 | extern "C" | |
7336 | { | |
7337 | #endif | |
7338 | /* We use char because int might match the return type of a gcc2 | |
7339 | builtin and then its argument prototype would still apply. */ | |
7340 | char $ac_func (); | |
7341 | /* The GNU C library defines this for functions which it implements | |
7342 | to always fail with ENOSYS. Some functions are actually named | |
7343 | something starting with __ and the normal name is an alias. */ | |
7344 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7345 | choke me | |
7346 | #else | |
7347 | char (*f) () = $ac_func; | |
7348 | #endif | |
7349 | #ifdef __cplusplus | |
7350 | } | |
7351 | #endif | |
7352 | ||
7353 | int | |
7354 | main () | |
7355 | { | |
7356 | return f != $ac_func; | |
7357 | ; | |
7358 | return 0; | |
7359 | } | |
7360 | _ACEOF | |
7361 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7363 | (eval $ac_link) 2>conftest.er1 | |
7364 | ac_status=$? | |
7365 | grep -v '^ *+' conftest.er1 >conftest.err | |
7366 | rm -f conftest.er1 | |
7367 | cat conftest.err >&5 | |
7368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7369 | (exit $ac_status); } && | |
1409cd0b FXC |
7370 | { ac_try='test -z "$ac_c_werror_flag" |
7371 | || test ! -s conftest.err' | |
f77b6ca3 FXC |
7372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7373 | (eval $ac_try) 2>&5 | |
7374 | ac_status=$? | |
7375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7376 | (exit $ac_status); }; } && | |
7377 | { ac_try='test -s conftest$ac_exeext' | |
7378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7379 | (eval $ac_try) 2>&5 | |
7380 | ac_status=$? | |
7381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7382 | (exit $ac_status); }; }; then | |
7383 | eval "$as_ac_var=yes" | |
7384 | else | |
7385 | echo "$as_me: failed program was:" >&5 | |
7386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7387 | ||
7388 | eval "$as_ac_var=no" | |
d49ec2d1 | 7389 | fi |
f77b6ca3 FXC |
7390 | rm -f conftest.err conftest.$ac_objext \ |
7391 | conftest$ac_exeext conftest.$ac_ext | |
7392 | fi | |
7393 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7394 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7395 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7396 | cat >>confdefs.h <<_ACEOF | |
7397 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7398 | _ACEOF | |
7399 | ||
7400 | fi | |
7401 | done | |
7402 | ||
7403 | ||
7404 | ||
7405 | ||
7406 | ||
7407 | ||
7408 | ||
7409 | ||
7410 | ||
7411 | for ac_func in chdir strerror getlogin gethostname kill link symlink perror | |
7412 | do | |
7413 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7414 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7415 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7416 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7418 | else | |
f02d008e JD |
7419 | if test x$gcc_no_link = xyes; then |
7420 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7421 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7422 | { (exit 1); exit 1; }; } | |
7423 | fi | |
7424 | cat >conftest.$ac_ext <<_ACEOF | |
96b8a615 AJ |
7425 | /* confdefs.h. */ |
7426 | _ACEOF | |
7427 | cat confdefs.h >>conftest.$ac_ext | |
7428 | cat >>conftest.$ac_ext <<_ACEOF | |
7429 | /* end confdefs.h. */ | |
7430 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7431 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7432 | #define $ac_func innocuous_$ac_func | |
6de9cd9a | 7433 | |
96b8a615 AJ |
7434 | /* System header to define __stub macros and hopefully few prototypes, |
7435 | which can conflict with char $ac_func (); below. | |
7436 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7437 | <limits.h> exists even on freestanding compilers. */ | |
6de9cd9a | 7438 | |
96b8a615 AJ |
7439 | #ifdef __STDC__ |
7440 | # include <limits.h> | |
7441 | #else | |
7442 | # include <assert.h> | |
7443 | #endif | |
6de9cd9a | 7444 | |
96b8a615 AJ |
7445 | #undef $ac_func |
7446 | ||
7447 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7448 | #ifdef __cplusplus | |
7449 | extern "C" | |
7450 | { | |
7451 | #endif | |
7452 | /* We use char because int might match the return type of a gcc2 | |
7453 | builtin and then its argument prototype would still apply. */ | |
7454 | char $ac_func (); | |
7455 | /* The GNU C library defines this for functions which it implements | |
7456 | to always fail with ENOSYS. Some functions are actually named | |
7457 | something starting with __ and the normal name is an alias. */ | |
7458 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7459 | choke me | |
7460 | #else | |
7461 | char (*f) () = $ac_func; | |
7462 | #endif | |
7463 | #ifdef __cplusplus | |
7464 | } | |
7465 | #endif | |
7466 | ||
7467 | int | |
7468 | main () | |
7469 | { | |
7470 | return f != $ac_func; | |
7471 | ; | |
7472 | return 0; | |
7473 | } | |
7474 | _ACEOF | |
7475 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7477 | (eval $ac_link) 2>conftest.er1 | |
7478 | ac_status=$? | |
7479 | grep -v '^ *+' conftest.er1 >conftest.err | |
7480 | rm -f conftest.er1 | |
7481 | cat conftest.err >&5 | |
7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7483 | (exit $ac_status); } && | |
1409cd0b FXC |
7484 | { ac_try='test -z "$ac_c_werror_flag" |
7485 | || test ! -s conftest.err' | |
f77b6ca3 FXC |
7486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7487 | (eval $ac_try) 2>&5 | |
7488 | ac_status=$? | |
7489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7490 | (exit $ac_status); }; } && | |
7491 | { ac_try='test -s conftest$ac_exeext' | |
7492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7493 | (eval $ac_try) 2>&5 | |
7494 | ac_status=$? | |
7495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7496 | (exit $ac_status); }; }; then | |
7497 | eval "$as_ac_var=yes" | |
7498 | else | |
7499 | echo "$as_me: failed program was:" >&5 | |
7500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7501 | ||
7502 | eval "$as_ac_var=no" | |
7503 | fi | |
7504 | rm -f conftest.err conftest.$ac_objext \ | |
7505 | conftest$ac_exeext conftest.$ac_ext | |
7506 | fi | |
7507 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7508 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7509 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7510 | cat >>confdefs.h <<_ACEOF | |
7511 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7512 | _ACEOF | |
7513 | ||
7514 | fi | |
7515 | done | |
7516 | ||
7517 | ||
7518 | ||
8845001b | 7519 | |
185d7d97 FXC |
7520 | |
7521 | ||
7522 | for ac_func in sleep time ttyname signal alarm | |
f77b6ca3 FXC |
7523 | do |
7524 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
7525 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7526 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7527 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7529 | else | |
f02d008e JD |
7530 | if test x$gcc_no_link = xyes; then |
7531 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7532 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7533 | { (exit 1); exit 1; }; } | |
7534 | fi | |
7535 | cat >conftest.$ac_ext <<_ACEOF | |
f77b6ca3 FXC |
7536 | /* confdefs.h. */ |
7537 | _ACEOF | |
7538 | cat confdefs.h >>conftest.$ac_ext | |
7539 | cat >>conftest.$ac_ext <<_ACEOF | |
7540 | /* end confdefs.h. */ | |
7541 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7542 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7543 | #define $ac_func innocuous_$ac_func | |
7544 | ||
7545 | /* System header to define __stub macros and hopefully few prototypes, | |
7546 | which can conflict with char $ac_func (); below. | |
7547 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7548 | <limits.h> exists even on freestanding compilers. */ | |
7549 | ||
7550 | #ifdef __STDC__ | |
7551 | # include <limits.h> | |
7552 | #else | |
7553 | # include <assert.h> | |
7554 | #endif | |
7555 | ||
7556 | #undef $ac_func | |
7557 | ||
7558 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7559 | #ifdef __cplusplus | |
7560 | extern "C" | |
7561 | { | |
7562 | #endif | |
7563 | /* We use char because int might match the return type of a gcc2 | |
7564 | builtin and then its argument prototype would still apply. */ | |
7565 | char $ac_func (); | |
7566 | /* The GNU C library defines this for functions which it implements | |
7567 | to always fail with ENOSYS. Some functions are actually named | |
7568 | something starting with __ and the normal name is an alias. */ | |
7569 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7570 | choke me | |
7571 | #else | |
7572 | char (*f) () = $ac_func; | |
7573 | #endif | |
7574 | #ifdef __cplusplus | |
7575 | } | |
7576 | #endif | |
7577 | ||
7578 | int | |
7579 | main () | |
7580 | { | |
7581 | return f != $ac_func; | |
7582 | ; | |
7583 | return 0; | |
7584 | } | |
7585 | _ACEOF | |
7586 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7587 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7588 | (eval $ac_link) 2>conftest.er1 | |
7589 | ac_status=$? | |
7590 | grep -v '^ *+' conftest.er1 >conftest.err | |
7591 | rm -f conftest.er1 | |
7592 | cat conftest.err >&5 | |
7593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7594 | (exit $ac_status); } && | |
1409cd0b FXC |
7595 | { ac_try='test -z "$ac_c_werror_flag" |
7596 | || test ! -s conftest.err' | |
96b8a615 AJ |
7597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7598 | (eval $ac_try) 2>&5 | |
7599 | ac_status=$? | |
7600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7601 | (exit $ac_status); }; } && | |
7602 | { ac_try='test -s conftest$ac_exeext' | |
7603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7604 | (eval $ac_try) 2>&5 | |
7605 | ac_status=$? | |
7606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7607 | (exit $ac_status); }; }; then | |
7608 | eval "$as_ac_var=yes" | |
6de9cd9a | 7609 | else |
96b8a615 AJ |
7610 | echo "$as_me: failed program was:" >&5 |
7611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7612 | ||
7613 | eval "$as_ac_var=no" | |
7614 | fi | |
7615 | rm -f conftest.err conftest.$ac_objext \ | |
7616 | conftest$ac_exeext conftest.$ac_ext | |
6de9cd9a | 7617 | fi |
96b8a615 AJ |
7618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
7619 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7620 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7621 | cat >>confdefs.h <<_ACEOF | |
7622 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7623 | _ACEOF | |
6de9cd9a | 7624 | |
6de9cd9a | 7625 | fi |
96b8a615 | 7626 | done |
6de9cd9a | 7627 | |
6de9cd9a | 7628 | |
4c0c6b9f SK |
7629 | # Check libc for getgid, getpid, getuid |
7630 | echo "$as_me:$LINENO: checking for getgid in -lc" >&5 | |
7631 | echo $ECHO_N "checking for getgid in -lc... $ECHO_C" >&6 | |
7632 | if test "${ac_cv_lib_c_getgid+set}" = set; then | |
7633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7634 | else | |
7635 | ac_check_lib_save_LIBS=$LIBS | |
7636 | LIBS="-lc $LIBS" | |
f02d008e JD |
7637 | if test x$gcc_no_link = xyes; then |
7638 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7639 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7640 | { (exit 1); exit 1; }; } | |
7641 | fi | |
4c0c6b9f SK |
7642 | cat >conftest.$ac_ext <<_ACEOF |
7643 | /* confdefs.h. */ | |
7644 | _ACEOF | |
7645 | cat confdefs.h >>conftest.$ac_ext | |
7646 | cat >>conftest.$ac_ext <<_ACEOF | |
7647 | /* end confdefs.h. */ | |
7648 | ||
7649 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7650 | #ifdef __cplusplus | |
7651 | extern "C" | |
7652 | #endif | |
7653 | /* We use char because int might match the return type of a gcc2 | |
7654 | builtin and then its argument prototype would still apply. */ | |
7655 | char getgid (); | |
7656 | int | |
7657 | main () | |
7658 | { | |
7659 | getgid (); | |
7660 | ; | |
7661 | return 0; | |
7662 | } | |
7663 | _ACEOF | |
7664 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7665 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7666 | (eval $ac_link) 2>conftest.er1 | |
7667 | ac_status=$? | |
7668 | grep -v '^ *+' conftest.er1 >conftest.err | |
7669 | rm -f conftest.er1 | |
7670 | cat conftest.err >&5 | |
7671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7672 | (exit $ac_status); } && | |
1409cd0b FXC |
7673 | { ac_try='test -z "$ac_c_werror_flag" |
7674 | || test ! -s conftest.err' | |
4c0c6b9f SK |
7675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7676 | (eval $ac_try) 2>&5 | |
7677 | ac_status=$? | |
7678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7679 | (exit $ac_status); }; } && | |
7680 | { ac_try='test -s conftest$ac_exeext' | |
7681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7682 | (eval $ac_try) 2>&5 | |
7683 | ac_status=$? | |
7684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7685 | (exit $ac_status); }; }; then | |
7686 | ac_cv_lib_c_getgid=yes | |
7687 | else | |
7688 | echo "$as_me: failed program was:" >&5 | |
7689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7690 | ||
7691 | ac_cv_lib_c_getgid=no | |
7692 | fi | |
7693 | rm -f conftest.err conftest.$ac_objext \ | |
7694 | conftest$ac_exeext conftest.$ac_ext | |
7695 | LIBS=$ac_check_lib_save_LIBS | |
7696 | fi | |
7697 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getgid" >&5 | |
7698 | echo "${ECHO_T}$ac_cv_lib_c_getgid" >&6 | |
7699 | if test $ac_cv_lib_c_getgid = yes; then | |
7700 | ||
7701 | cat >>confdefs.h <<\_ACEOF | |
7702 | #define HAVE_GETGID 1 | |
7703 | _ACEOF | |
7704 | ||
7705 | fi | |
7706 | ||
7707 | echo "$as_me:$LINENO: checking for getpid in -lc" >&5 | |
7708 | echo $ECHO_N "checking for getpid in -lc... $ECHO_C" >&6 | |
7709 | if test "${ac_cv_lib_c_getpid+set}" = set; then | |
7710 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7711 | else | |
7712 | ac_check_lib_save_LIBS=$LIBS | |
7713 | LIBS="-lc $LIBS" | |
f02d008e JD |
7714 | if test x$gcc_no_link = xyes; then |
7715 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7716 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7717 | { (exit 1); exit 1; }; } | |
7718 | fi | |
4c0c6b9f SK |
7719 | cat >conftest.$ac_ext <<_ACEOF |
7720 | /* confdefs.h. */ | |
7721 | _ACEOF | |
7722 | cat confdefs.h >>conftest.$ac_ext | |
7723 | cat >>conftest.$ac_ext <<_ACEOF | |
7724 | /* end confdefs.h. */ | |
7725 | ||
7726 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7727 | #ifdef __cplusplus | |
7728 | extern "C" | |
7729 | #endif | |
7730 | /* We use char because int might match the return type of a gcc2 | |
7731 | builtin and then its argument prototype would still apply. */ | |
7732 | char getpid (); | |
7733 | int | |
7734 | main () | |
7735 | { | |
7736 | getpid (); | |
7737 | ; | |
7738 | return 0; | |
7739 | } | |
7740 | _ACEOF | |
7741 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7742 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7743 | (eval $ac_link) 2>conftest.er1 | |
7744 | ac_status=$? | |
7745 | grep -v '^ *+' conftest.er1 >conftest.err | |
7746 | rm -f conftest.er1 | |
7747 | cat conftest.err >&5 | |
7748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7749 | (exit $ac_status); } && | |
1409cd0b FXC |
7750 | { ac_try='test -z "$ac_c_werror_flag" |
7751 | || test ! -s conftest.err' | |
4c0c6b9f SK |
7752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7753 | (eval $ac_try) 2>&5 | |
7754 | ac_status=$? | |
7755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7756 | (exit $ac_status); }; } && | |
7757 | { ac_try='test -s conftest$ac_exeext' | |
7758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7759 | (eval $ac_try) 2>&5 | |
7760 | ac_status=$? | |
7761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7762 | (exit $ac_status); }; }; then | |
7763 | ac_cv_lib_c_getpid=yes | |
7764 | else | |
7765 | echo "$as_me: failed program was:" >&5 | |
7766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7767 | ||
7768 | ac_cv_lib_c_getpid=no | |
7769 | fi | |
7770 | rm -f conftest.err conftest.$ac_objext \ | |
7771 | conftest$ac_exeext conftest.$ac_ext | |
7772 | LIBS=$ac_check_lib_save_LIBS | |
7773 | fi | |
7774 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getpid" >&5 | |
7775 | echo "${ECHO_T}$ac_cv_lib_c_getpid" >&6 | |
7776 | if test $ac_cv_lib_c_getpid = yes; then | |
7777 | ||
7778 | cat >>confdefs.h <<\_ACEOF | |
7779 | #define HAVE_GETPID 1 | |
7780 | _ACEOF | |
7781 | ||
7782 | fi | |
7783 | ||
7784 | echo "$as_me:$LINENO: checking for getuid in -lc" >&5 | |
7785 | echo $ECHO_N "checking for getuid in -lc... $ECHO_C" >&6 | |
7786 | if test "${ac_cv_lib_c_getuid+set}" = set; then | |
7787 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7788 | else | |
7789 | ac_check_lib_save_LIBS=$LIBS | |
7790 | LIBS="-lc $LIBS" | |
f02d008e JD |
7791 | if test x$gcc_no_link = xyes; then |
7792 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7793 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7794 | { (exit 1); exit 1; }; } | |
7795 | fi | |
4c0c6b9f SK |
7796 | cat >conftest.$ac_ext <<_ACEOF |
7797 | /* confdefs.h. */ | |
7798 | _ACEOF | |
7799 | cat confdefs.h >>conftest.$ac_ext | |
7800 | cat >>conftest.$ac_ext <<_ACEOF | |
7801 | /* end confdefs.h. */ | |
7802 | ||
7803 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7804 | #ifdef __cplusplus | |
7805 | extern "C" | |
7806 | #endif | |
7807 | /* We use char because int might match the return type of a gcc2 | |
7808 | builtin and then its argument prototype would still apply. */ | |
7809 | char getuid (); | |
7810 | int | |
7811 | main () | |
7812 | { | |
7813 | getuid (); | |
7814 | ; | |
7815 | return 0; | |
7816 | } | |
7817 | _ACEOF | |
7818 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7820 | (eval $ac_link) 2>conftest.er1 | |
7821 | ac_status=$? | |
7822 | grep -v '^ *+' conftest.er1 >conftest.err | |
7823 | rm -f conftest.er1 | |
7824 | cat conftest.err >&5 | |
7825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7826 | (exit $ac_status); } && | |
1409cd0b FXC |
7827 | { ac_try='test -z "$ac_c_werror_flag" |
7828 | || test ! -s conftest.err' | |
4c0c6b9f SK |
7829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7830 | (eval $ac_try) 2>&5 | |
7831 | ac_status=$? | |
7832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7833 | (exit $ac_status); }; } && | |
7834 | { ac_try='test -s conftest$ac_exeext' | |
7835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7836 | (eval $ac_try) 2>&5 | |
7837 | ac_status=$? | |
7838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7839 | (exit $ac_status); }; }; then | |
7840 | ac_cv_lib_c_getuid=yes | |
7841 | else | |
7842 | echo "$as_me: failed program was:" >&5 | |
7843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7844 | ||
7845 | ac_cv_lib_c_getuid=no | |
7846 | fi | |
7847 | rm -f conftest.err conftest.$ac_objext \ | |
7848 | conftest$ac_exeext conftest.$ac_ext | |
7849 | LIBS=$ac_check_lib_save_LIBS | |
7850 | fi | |
7851 | echo "$as_me:$LINENO: result: $ac_cv_lib_c_getuid" >&5 | |
7852 | echo "${ECHO_T}$ac_cv_lib_c_getuid" >&6 | |
7853 | if test $ac_cv_lib_c_getuid = yes; then | |
7854 | ||
7855 | cat >>confdefs.h <<\_ACEOF | |
7856 | #define HAVE_GETUID 1 | |
7857 | _ACEOF | |
7858 | ||
7859 | fi | |
7860 | ||
7861 | ||
453310d8 | 7862 | # Check for C99 (and other IEEE) math functions |
e8525382 | 7863 | # ??? This list seems awful long. Is there a better way to test for these? |
453310d8 RS |
7864 | echo "$as_me:$LINENO: checking for acosf in -lm" >&5 |
7865 | echo $ECHO_N "checking for acosf in -lm... $ECHO_C" >&6 | |
7866 | if test "${ac_cv_lib_m_acosf+set}" = set; then | |
7867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7868 | else | |
7869 | ac_check_lib_save_LIBS=$LIBS | |
7870 | LIBS="-lm $LIBS" | |
f02d008e JD |
7871 | if test x$gcc_no_link = xyes; then |
7872 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7873 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7874 | { (exit 1); exit 1; }; } | |
7875 | fi | |
453310d8 RS |
7876 | cat >conftest.$ac_ext <<_ACEOF |
7877 | /* confdefs.h. */ | |
7878 | _ACEOF | |
7879 | cat confdefs.h >>conftest.$ac_ext | |
7880 | cat >>conftest.$ac_ext <<_ACEOF | |
7881 | /* end confdefs.h. */ | |
7882 | ||
7883 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7884 | #ifdef __cplusplus | |
7885 | extern "C" | |
7886 | #endif | |
7887 | /* We use char because int might match the return type of a gcc2 | |
7888 | builtin and then its argument prototype would still apply. */ | |
7889 | char acosf (); | |
7890 | int | |
7891 | main () | |
7892 | { | |
7893 | acosf (); | |
7894 | ; | |
7895 | return 0; | |
7896 | } | |
7897 | _ACEOF | |
7898 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7900 | (eval $ac_link) 2>conftest.er1 | |
7901 | ac_status=$? | |
7902 | grep -v '^ *+' conftest.er1 >conftest.err | |
7903 | rm -f conftest.er1 | |
7904 | cat conftest.err >&5 | |
7905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7906 | (exit $ac_status); } && | |
1409cd0b FXC |
7907 | { ac_try='test -z "$ac_c_werror_flag" |
7908 | || test ! -s conftest.err' | |
453310d8 RS |
7909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7910 | (eval $ac_try) 2>&5 | |
7911 | ac_status=$? | |
7912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7913 | (exit $ac_status); }; } && | |
7914 | { ac_try='test -s conftest$ac_exeext' | |
7915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7916 | (eval $ac_try) 2>&5 | |
7917 | ac_status=$? | |
7918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7919 | (exit $ac_status); }; }; then | |
7920 | ac_cv_lib_m_acosf=yes | |
7921 | else | |
7922 | echo "$as_me: failed program was:" >&5 | |
7923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7924 | ||
7925 | ac_cv_lib_m_acosf=no | |
7926 | fi | |
7927 | rm -f conftest.err conftest.$ac_objext \ | |
7928 | conftest$ac_exeext conftest.$ac_ext | |
7929 | LIBS=$ac_check_lib_save_LIBS | |
7930 | fi | |
7931 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosf" >&5 | |
7932 | echo "${ECHO_T}$ac_cv_lib_m_acosf" >&6 | |
7933 | if test $ac_cv_lib_m_acosf = yes; then | |
7934 | ||
7935 | cat >>confdefs.h <<\_ACEOF | |
7936 | #define HAVE_ACOSF 1 | |
7937 | _ACEOF | |
7938 | ||
7939 | fi | |
7940 | ||
1409cd0b FXC |
7941 | echo "$as_me:$LINENO: checking for acos in -lm" >&5 |
7942 | echo $ECHO_N "checking for acos in -lm... $ECHO_C" >&6 | |
7943 | if test "${ac_cv_lib_m_acos+set}" = set; then | |
f02d008e JD |
7944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7945 | else | |
7946 | ac_check_lib_save_LIBS=$LIBS | |
7947 | LIBS="-lm $LIBS" | |
7948 | if test x$gcc_no_link = xyes; then | |
7949 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
7950 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
7951 | { (exit 1); exit 1; }; } | |
7952 | fi | |
7953 | cat >conftest.$ac_ext <<_ACEOF | |
7954 | /* confdefs.h. */ | |
7955 | _ACEOF | |
7956 | cat confdefs.h >>conftest.$ac_ext | |
7957 | cat >>conftest.$ac_ext <<_ACEOF | |
7958 | /* end confdefs.h. */ | |
7959 | ||
7960 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7961 | #ifdef __cplusplus | |
7962 | extern "C" | |
7963 | #endif | |
7964 | /* We use char because int might match the return type of a gcc2 | |
7965 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 7966 | char acos (); |
f02d008e JD |
7967 | int |
7968 | main () | |
7969 | { | |
1409cd0b | 7970 | acos (); |
f02d008e JD |
7971 | ; |
7972 | return 0; | |
7973 | } | |
7974 | _ACEOF | |
7975 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7977 | (eval $ac_link) 2>conftest.er1 | |
7978 | ac_status=$? | |
7979 | grep -v '^ *+' conftest.er1 >conftest.err | |
7980 | rm -f conftest.er1 | |
7981 | cat conftest.err >&5 | |
7982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7983 | (exit $ac_status); } && | |
1409cd0b FXC |
7984 | { ac_try='test -z "$ac_c_werror_flag" |
7985 | || test ! -s conftest.err' | |
f02d008e JD |
7986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7987 | (eval $ac_try) 2>&5 | |
7988 | ac_status=$? | |
7989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7990 | (exit $ac_status); }; } && | |
7991 | { ac_try='test -s conftest$ac_exeext' | |
7992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7993 | (eval $ac_try) 2>&5 | |
7994 | ac_status=$? | |
7995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7996 | (exit $ac_status); }; }; then | |
1409cd0b | 7997 | ac_cv_lib_m_acos=yes |
f02d008e JD |
7998 | else |
7999 | echo "$as_me: failed program was:" >&5 | |
8000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8001 | ||
1409cd0b | 8002 | ac_cv_lib_m_acos=no |
f02d008e JD |
8003 | fi |
8004 | rm -f conftest.err conftest.$ac_objext \ | |
8005 | conftest$ac_exeext conftest.$ac_ext | |
8006 | LIBS=$ac_check_lib_save_LIBS | |
8007 | fi | |
1409cd0b FXC |
8008 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acos" >&5 |
8009 | echo "${ECHO_T}$ac_cv_lib_m_acos" >&6 | |
8010 | if test $ac_cv_lib_m_acos = yes; then | |
f02d008e JD |
8011 | |
8012 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 8013 | #define HAVE_ACOS 1 |
f02d008e JD |
8014 | _ACEOF |
8015 | ||
8016 | fi | |
8017 | ||
1409cd0b FXC |
8018 | echo "$as_me:$LINENO: checking for acosl in -lm" >&5 |
8019 | echo $ECHO_N "checking for acosl in -lm... $ECHO_C" >&6 | |
8020 | if test "${ac_cv_lib_m_acosl+set}" = set; then | |
453310d8 RS |
8021 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8022 | else | |
8023 | ac_check_lib_save_LIBS=$LIBS | |
8024 | LIBS="-lm $LIBS" | |
f02d008e JD |
8025 | if test x$gcc_no_link = xyes; then |
8026 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8027 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8028 | { (exit 1); exit 1; }; } | |
8029 | fi | |
453310d8 RS |
8030 | cat >conftest.$ac_ext <<_ACEOF |
8031 | /* confdefs.h. */ | |
8032 | _ACEOF | |
8033 | cat confdefs.h >>conftest.$ac_ext | |
8034 | cat >>conftest.$ac_ext <<_ACEOF | |
8035 | /* end confdefs.h. */ | |
8036 | ||
8037 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8038 | #ifdef __cplusplus | |
8039 | extern "C" | |
8040 | #endif | |
8041 | /* We use char because int might match the return type of a gcc2 | |
8042 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 8043 | char acosl (); |
453310d8 RS |
8044 | int |
8045 | main () | |
8046 | { | |
1409cd0b | 8047 | acosl (); |
453310d8 RS |
8048 | ; |
8049 | return 0; | |
8050 | } | |
8051 | _ACEOF | |
8052 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8054 | (eval $ac_link) 2>conftest.er1 | |
8055 | ac_status=$? | |
8056 | grep -v '^ *+' conftest.er1 >conftest.err | |
8057 | rm -f conftest.er1 | |
8058 | cat conftest.err >&5 | |
8059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8060 | (exit $ac_status); } && | |
1409cd0b FXC |
8061 | { ac_try='test -z "$ac_c_werror_flag" |
8062 | || test ! -s conftest.err' | |
453310d8 RS |
8063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8064 | (eval $ac_try) 2>&5 | |
8065 | ac_status=$? | |
8066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8067 | (exit $ac_status); }; } && | |
8068 | { ac_try='test -s conftest$ac_exeext' | |
8069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8070 | (eval $ac_try) 2>&5 | |
8071 | ac_status=$? | |
8072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8073 | (exit $ac_status); }; }; then | |
1409cd0b | 8074 | ac_cv_lib_m_acosl=yes |
453310d8 RS |
8075 | else |
8076 | echo "$as_me: failed program was:" >&5 | |
8077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8078 | ||
1409cd0b | 8079 | ac_cv_lib_m_acosl=no |
453310d8 RS |
8080 | fi |
8081 | rm -f conftest.err conftest.$ac_objext \ | |
8082 | conftest$ac_exeext conftest.$ac_ext | |
8083 | LIBS=$ac_check_lib_save_LIBS | |
8084 | fi | |
1409cd0b FXC |
8085 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosl" >&5 |
8086 | echo "${ECHO_T}$ac_cv_lib_m_acosl" >&6 | |
8087 | if test $ac_cv_lib_m_acosl = yes; then | |
453310d8 RS |
8088 | |
8089 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 8090 | #define HAVE_ACOSL 1 |
453310d8 RS |
8091 | _ACEOF |
8092 | ||
8093 | fi | |
8094 | ||
1409cd0b FXC |
8095 | echo "$as_me:$LINENO: checking for acoshf in -lm" >&5 |
8096 | echo $ECHO_N "checking for acoshf in -lm... $ECHO_C" >&6 | |
8097 | if test "${ac_cv_lib_m_acoshf+set}" = set; then | |
f02d008e JD |
8098 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8099 | else | |
8100 | ac_check_lib_save_LIBS=$LIBS | |
8101 | LIBS="-lm $LIBS" | |
8102 | if test x$gcc_no_link = xyes; then | |
8103 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8104 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8105 | { (exit 1); exit 1; }; } | |
8106 | fi | |
8107 | cat >conftest.$ac_ext <<_ACEOF | |
8108 | /* confdefs.h. */ | |
8109 | _ACEOF | |
8110 | cat confdefs.h >>conftest.$ac_ext | |
8111 | cat >>conftest.$ac_ext <<_ACEOF | |
8112 | /* end confdefs.h. */ | |
8113 | ||
8114 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8115 | #ifdef __cplusplus | |
8116 | extern "C" | |
8117 | #endif | |
8118 | /* We use char because int might match the return type of a gcc2 | |
8119 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 8120 | char acoshf (); |
f02d008e JD |
8121 | int |
8122 | main () | |
8123 | { | |
1409cd0b | 8124 | acoshf (); |
f02d008e JD |
8125 | ; |
8126 | return 0; | |
8127 | } | |
8128 | _ACEOF | |
8129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8131 | (eval $ac_link) 2>conftest.er1 | |
8132 | ac_status=$? | |
8133 | grep -v '^ *+' conftest.er1 >conftest.err | |
8134 | rm -f conftest.er1 | |
8135 | cat conftest.err >&5 | |
8136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8137 | (exit $ac_status); } && | |
1409cd0b FXC |
8138 | { ac_try='test -z "$ac_c_werror_flag" |
8139 | || test ! -s conftest.err' | |
f02d008e JD |
8140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8141 | (eval $ac_try) 2>&5 | |
8142 | ac_status=$? | |
8143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8144 | (exit $ac_status); }; } && | |
8145 | { ac_try='test -s conftest$ac_exeext' | |
8146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8147 | (eval $ac_try) 2>&5 | |
8148 | ac_status=$? | |
8149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8150 | (exit $ac_status); }; }; then | |
1409cd0b | 8151 | ac_cv_lib_m_acoshf=yes |
f02d008e JD |
8152 | else |
8153 | echo "$as_me: failed program was:" >&5 | |
8154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8155 | ||
1409cd0b | 8156 | ac_cv_lib_m_acoshf=no |
f02d008e JD |
8157 | fi |
8158 | rm -f conftest.err conftest.$ac_objext \ | |
8159 | conftest$ac_exeext conftest.$ac_ext | |
8160 | LIBS=$ac_check_lib_save_LIBS | |
8161 | fi | |
1409cd0b FXC |
8162 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshf" >&5 |
8163 | echo "${ECHO_T}$ac_cv_lib_m_acoshf" >&6 | |
8164 | if test $ac_cv_lib_m_acoshf = yes; then | |
f02d008e JD |
8165 | |
8166 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 8167 | #define HAVE_ACOSHF 1 |
f02d008e JD |
8168 | _ACEOF |
8169 | ||
8170 | fi | |
8171 | ||
1409cd0b FXC |
8172 | echo "$as_me:$LINENO: checking for acosh in -lm" >&5 |
8173 | echo $ECHO_N "checking for acosh in -lm... $ECHO_C" >&6 | |
8174 | if test "${ac_cv_lib_m_acosh+set}" = set; then | |
453310d8 RS |
8175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8176 | else | |
8177 | ac_check_lib_save_LIBS=$LIBS | |
8178 | LIBS="-lm $LIBS" | |
f02d008e JD |
8179 | if test x$gcc_no_link = xyes; then |
8180 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8181 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8182 | { (exit 1); exit 1; }; } | |
8183 | fi | |
453310d8 RS |
8184 | cat >conftest.$ac_ext <<_ACEOF |
8185 | /* confdefs.h. */ | |
8186 | _ACEOF | |
8187 | cat confdefs.h >>conftest.$ac_ext | |
8188 | cat >>conftest.$ac_ext <<_ACEOF | |
8189 | /* end confdefs.h. */ | |
8190 | ||
8191 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8192 | #ifdef __cplusplus | |
8193 | extern "C" | |
8194 | #endif | |
8195 | /* We use char because int might match the return type of a gcc2 | |
8196 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 8197 | char acosh (); |
453310d8 RS |
8198 | int |
8199 | main () | |
8200 | { | |
1409cd0b | 8201 | acosh (); |
453310d8 RS |
8202 | ; |
8203 | return 0; | |
8204 | } | |
8205 | _ACEOF | |
8206 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8208 | (eval $ac_link) 2>conftest.er1 | |
8209 | ac_status=$? | |
8210 | grep -v '^ *+' conftest.er1 >conftest.err | |
8211 | rm -f conftest.er1 | |
8212 | cat conftest.err >&5 | |
8213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8214 | (exit $ac_status); } && | |
1409cd0b FXC |
8215 | { ac_try='test -z "$ac_c_werror_flag" |
8216 | || test ! -s conftest.err' | |
453310d8 RS |
8217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8218 | (eval $ac_try) 2>&5 | |
8219 | ac_status=$? | |
8220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8221 | (exit $ac_status); }; } && | |
8222 | { ac_try='test -s conftest$ac_exeext' | |
8223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8224 | (eval $ac_try) 2>&5 | |
8225 | ac_status=$? | |
8226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8227 | (exit $ac_status); }; }; then | |
1409cd0b | 8228 | ac_cv_lib_m_acosh=yes |
453310d8 RS |
8229 | else |
8230 | echo "$as_me: failed program was:" >&5 | |
8231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8232 | ||
1409cd0b | 8233 | ac_cv_lib_m_acosh=no |
453310d8 RS |
8234 | fi |
8235 | rm -f conftest.err conftest.$ac_objext \ | |
8236 | conftest$ac_exeext conftest.$ac_ext | |
8237 | LIBS=$ac_check_lib_save_LIBS | |
8238 | fi | |
1409cd0b FXC |
8239 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acosh" >&5 |
8240 | echo "${ECHO_T}$ac_cv_lib_m_acosh" >&6 | |
8241 | if test $ac_cv_lib_m_acosh = yes; then | |
453310d8 RS |
8242 | |
8243 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 8244 | #define HAVE_ACOSH 1 |
453310d8 RS |
8245 | _ACEOF |
8246 | ||
8247 | fi | |
8248 | ||
1409cd0b FXC |
8249 | echo "$as_me:$LINENO: checking for acoshl in -lm" >&5 |
8250 | echo $ECHO_N "checking for acoshl in -lm... $ECHO_C" >&6 | |
8251 | if test "${ac_cv_lib_m_acoshl+set}" = set; then | |
453310d8 RS |
8252 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8253 | else | |
8254 | ac_check_lib_save_LIBS=$LIBS | |
8255 | LIBS="-lm $LIBS" | |
f02d008e JD |
8256 | if test x$gcc_no_link = xyes; then |
8257 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8258 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8259 | { (exit 1); exit 1; }; } | |
8260 | fi | |
453310d8 RS |
8261 | cat >conftest.$ac_ext <<_ACEOF |
8262 | /* confdefs.h. */ | |
8263 | _ACEOF | |
8264 | cat confdefs.h >>conftest.$ac_ext | |
8265 | cat >>conftest.$ac_ext <<_ACEOF | |
8266 | /* end confdefs.h. */ | |
8267 | ||
8268 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8269 | #ifdef __cplusplus | |
8270 | extern "C" | |
8271 | #endif | |
8272 | /* We use char because int might match the return type of a gcc2 | |
8273 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 8274 | char acoshl (); |
453310d8 RS |
8275 | int |
8276 | main () | |
8277 | { | |
1409cd0b | 8278 | acoshl (); |
453310d8 RS |
8279 | ; |
8280 | return 0; | |
8281 | } | |
8282 | _ACEOF | |
8283 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8285 | (eval $ac_link) 2>conftest.er1 | |
8286 | ac_status=$? | |
8287 | grep -v '^ *+' conftest.er1 >conftest.err | |
8288 | rm -f conftest.er1 | |
8289 | cat conftest.err >&5 | |
8290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8291 | (exit $ac_status); } && | |
1409cd0b FXC |
8292 | { ac_try='test -z "$ac_c_werror_flag" |
8293 | || test ! -s conftest.err' | |
453310d8 RS |
8294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8295 | (eval $ac_try) 2>&5 | |
8296 | ac_status=$? | |
8297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8298 | (exit $ac_status); }; } && | |
8299 | { ac_try='test -s conftest$ac_exeext' | |
8300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8301 | (eval $ac_try) 2>&5 | |
8302 | ac_status=$? | |
8303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8304 | (exit $ac_status); }; }; then | |
1409cd0b | 8305 | ac_cv_lib_m_acoshl=yes |
453310d8 RS |
8306 | else |
8307 | echo "$as_me: failed program was:" >&5 | |
8308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8309 | ||
1409cd0b | 8310 | ac_cv_lib_m_acoshl=no |
453310d8 RS |
8311 | fi |
8312 | rm -f conftest.err conftest.$ac_objext \ | |
8313 | conftest$ac_exeext conftest.$ac_ext | |
8314 | LIBS=$ac_check_lib_save_LIBS | |
8315 | fi | |
1409cd0b FXC |
8316 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_acoshl" >&5 |
8317 | echo "${ECHO_T}$ac_cv_lib_m_acoshl" >&6 | |
8318 | if test $ac_cv_lib_m_acoshl = yes; then | |
453310d8 RS |
8319 | |
8320 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 8321 | #define HAVE_ACOSHL 1 |
453310d8 RS |
8322 | _ACEOF |
8323 | ||
8324 | fi | |
8325 | ||
1409cd0b FXC |
8326 | echo "$as_me:$LINENO: checking for asinf in -lm" >&5 |
8327 | echo $ECHO_N "checking for asinf in -lm... $ECHO_C" >&6 | |
8328 | if test "${ac_cv_lib_m_asinf+set}" = set; then | |
f02d008e JD |
8329 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8330 | else | |
8331 | ac_check_lib_save_LIBS=$LIBS | |
8332 | LIBS="-lm $LIBS" | |
8333 | if test x$gcc_no_link = xyes; then | |
8334 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8335 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8336 | { (exit 1); exit 1; }; } | |
8337 | fi | |
8338 | cat >conftest.$ac_ext <<_ACEOF | |
8339 | /* confdefs.h. */ | |
8340 | _ACEOF | |
8341 | cat confdefs.h >>conftest.$ac_ext | |
8342 | cat >>conftest.$ac_ext <<_ACEOF | |
8343 | /* end confdefs.h. */ | |
8344 | ||
8345 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8346 | #ifdef __cplusplus | |
8347 | extern "C" | |
8348 | #endif | |
8349 | /* We use char because int might match the return type of a gcc2 | |
8350 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 8351 | char asinf (); |
f02d008e JD |
8352 | int |
8353 | main () | |
8354 | { | |
1409cd0b | 8355 | asinf (); |
f02d008e JD |
8356 | ; |
8357 | return 0; | |
8358 | } | |
8359 | _ACEOF | |
8360 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8362 | (eval $ac_link) 2>conftest.er1 | |
8363 | ac_status=$? | |
8364 | grep -v '^ *+' conftest.er1 >conftest.err | |
8365 | rm -f conftest.er1 | |
8366 | cat conftest.err >&5 | |
8367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8368 | (exit $ac_status); } && | |
1409cd0b FXC |
8369 | { ac_try='test -z "$ac_c_werror_flag" |
8370 | || test ! -s conftest.err' | |
f02d008e JD |
8371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8372 | (eval $ac_try) 2>&5 | |
8373 | ac_status=$? | |
8374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8375 | (exit $ac_status); }; } && | |
8376 | { ac_try='test -s conftest$ac_exeext' | |
8377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8378 | (eval $ac_try) 2>&5 | |
8379 | ac_status=$? | |
8380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8381 | (exit $ac_status); }; }; then | |
1409cd0b | 8382 | ac_cv_lib_m_asinf=yes |
f02d008e JD |
8383 | else |
8384 | echo "$as_me: failed program was:" >&5 | |
8385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8386 | ||
1409cd0b | 8387 | ac_cv_lib_m_asinf=no |
f02d008e JD |
8388 | fi |
8389 | rm -f conftest.err conftest.$ac_objext \ | |
8390 | conftest$ac_exeext conftest.$ac_ext | |
8391 | LIBS=$ac_check_lib_save_LIBS | |
8392 | fi | |
1409cd0b FXC |
8393 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinf" >&5 |
8394 | echo "${ECHO_T}$ac_cv_lib_m_asinf" >&6 | |
8395 | if test $ac_cv_lib_m_asinf = yes; then | |
f02d008e JD |
8396 | |
8397 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 8398 | #define HAVE_ASINF 1 |
f02d008e JD |
8399 | _ACEOF |
8400 | ||
8401 | fi | |
8402 | ||
1409cd0b FXC |
8403 | echo "$as_me:$LINENO: checking for asin in -lm" >&5 |
8404 | echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6 | |
8405 | if test "${ac_cv_lib_m_asin+set}" = set; then | |
453310d8 RS |
8406 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8407 | else | |
8408 | ac_check_lib_save_LIBS=$LIBS | |
8409 | LIBS="-lm $LIBS" | |
f02d008e JD |
8410 | if test x$gcc_no_link = xyes; then |
8411 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8412 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8413 | { (exit 1); exit 1; }; } | |
8414 | fi | |
453310d8 RS |
8415 | cat >conftest.$ac_ext <<_ACEOF |
8416 | /* confdefs.h. */ | |
8417 | _ACEOF | |
8418 | cat confdefs.h >>conftest.$ac_ext | |
8419 | cat >>conftest.$ac_ext <<_ACEOF | |
8420 | /* end confdefs.h. */ | |
8421 | ||
8422 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8423 | #ifdef __cplusplus | |
8424 | extern "C" | |
8425 | #endif | |
8426 | /* We use char because int might match the return type of a gcc2 | |
8427 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 8428 | char asin (); |
453310d8 RS |
8429 | int |
8430 | main () | |
8431 | { | |
1409cd0b | 8432 | asin (); |
453310d8 RS |
8433 | ; |
8434 | return 0; | |
8435 | } | |
8436 | _ACEOF | |
8437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8439 | (eval $ac_link) 2>conftest.er1 | |
8440 | ac_status=$? | |
8441 | grep -v '^ *+' conftest.er1 >conftest.err | |
8442 | rm -f conftest.er1 | |
8443 | cat conftest.err >&5 | |
8444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8445 | (exit $ac_status); } && | |
1409cd0b FXC |
8446 | { ac_try='test -z "$ac_c_werror_flag" |
8447 | || test ! -s conftest.err' | |
453310d8 RS |
8448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8449 | (eval $ac_try) 2>&5 | |
8450 | ac_status=$? | |
8451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8452 | (exit $ac_status); }; } && | |
8453 | { ac_try='test -s conftest$ac_exeext' | |
8454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8455 | (eval $ac_try) 2>&5 | |
8456 | ac_status=$? | |
8457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8458 | (exit $ac_status); }; }; then | |
1409cd0b | 8459 | ac_cv_lib_m_asin=yes |
453310d8 RS |
8460 | else |
8461 | echo "$as_me: failed program was:" >&5 | |
8462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8463 | ||
1409cd0b | 8464 | ac_cv_lib_m_asin=no |
453310d8 RS |
8465 | fi |
8466 | rm -f conftest.err conftest.$ac_objext \ | |
8467 | conftest$ac_exeext conftest.$ac_ext | |
8468 | LIBS=$ac_check_lib_save_LIBS | |
8469 | fi | |
1409cd0b FXC |
8470 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5 |
8471 | echo "${ECHO_T}$ac_cv_lib_m_asin" >&6 | |
8472 | if test $ac_cv_lib_m_asin = yes; then | |
453310d8 RS |
8473 | |
8474 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 8475 | #define HAVE_ASIN 1 |
453310d8 RS |
8476 | _ACEOF |
8477 | ||
8478 | fi | |
8479 | ||
1409cd0b FXC |
8480 | echo "$as_me:$LINENO: checking for asinl in -lm" >&5 |
8481 | echo $ECHO_N "checking for asinl in -lm... $ECHO_C" >&6 | |
8482 | if test "${ac_cv_lib_m_asinl+set}" = set; then | |
453310d8 RS |
8483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8484 | else | |
8485 | ac_check_lib_save_LIBS=$LIBS | |
8486 | LIBS="-lm $LIBS" | |
f02d008e JD |
8487 | if test x$gcc_no_link = xyes; then |
8488 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8489 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8490 | { (exit 1); exit 1; }; } | |
8491 | fi | |
453310d8 RS |
8492 | cat >conftest.$ac_ext <<_ACEOF |
8493 | /* confdefs.h. */ | |
8494 | _ACEOF | |
8495 | cat confdefs.h >>conftest.$ac_ext | |
8496 | cat >>conftest.$ac_ext <<_ACEOF | |
8497 | /* end confdefs.h. */ | |
8498 | ||
8499 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8500 | #ifdef __cplusplus | |
8501 | extern "C" | |
8502 | #endif | |
8503 | /* We use char because int might match the return type of a gcc2 | |
8504 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 8505 | char asinl (); |
453310d8 RS |
8506 | int |
8507 | main () | |
8508 | { | |
1409cd0b | 8509 | asinl (); |
453310d8 RS |
8510 | ; |
8511 | return 0; | |
8512 | } | |
8513 | _ACEOF | |
8514 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8515 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8516 | (eval $ac_link) 2>conftest.er1 | |
8517 | ac_status=$? | |
8518 | grep -v '^ *+' conftest.er1 >conftest.err | |
8519 | rm -f conftest.er1 | |
8520 | cat conftest.err >&5 | |
8521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8522 | (exit $ac_status); } && | |
1409cd0b FXC |
8523 | { ac_try='test -z "$ac_c_werror_flag" |
8524 | || test ! -s conftest.err' | |
453310d8 RS |
8525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8526 | (eval $ac_try) 2>&5 | |
8527 | ac_status=$? | |
8528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8529 | (exit $ac_status); }; } && | |
8530 | { ac_try='test -s conftest$ac_exeext' | |
8531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8532 | (eval $ac_try) 2>&5 | |
8533 | ac_status=$? | |
8534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8535 | (exit $ac_status); }; }; then | |
1409cd0b | 8536 | ac_cv_lib_m_asinl=yes |
453310d8 RS |
8537 | else |
8538 | echo "$as_me: failed program was:" >&5 | |
8539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8540 | ||
1409cd0b | 8541 | ac_cv_lib_m_asinl=no |
453310d8 RS |
8542 | fi |
8543 | rm -f conftest.err conftest.$ac_objext \ | |
8544 | conftest$ac_exeext conftest.$ac_ext | |
8545 | LIBS=$ac_check_lib_save_LIBS | |
8546 | fi | |
1409cd0b FXC |
8547 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinl" >&5 |
8548 | echo "${ECHO_T}$ac_cv_lib_m_asinl" >&6 | |
8549 | if test $ac_cv_lib_m_asinl = yes; then | |
453310d8 RS |
8550 | |
8551 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 8552 | #define HAVE_ASINL 1 |
453310d8 RS |
8553 | _ACEOF |
8554 | ||
8555 | fi | |
8556 | ||
1409cd0b FXC |
8557 | echo "$as_me:$LINENO: checking for asinhf in -lm" >&5 |
8558 | echo $ECHO_N "checking for asinhf in -lm... $ECHO_C" >&6 | |
8559 | if test "${ac_cv_lib_m_asinhf+set}" = set; then | |
453310d8 RS |
8560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8561 | else | |
8562 | ac_check_lib_save_LIBS=$LIBS | |
8563 | LIBS="-lm $LIBS" | |
f02d008e JD |
8564 | if test x$gcc_no_link = xyes; then |
8565 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8566 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8567 | { (exit 1); exit 1; }; } | |
8568 | fi | |
453310d8 RS |
8569 | cat >conftest.$ac_ext <<_ACEOF |
8570 | /* confdefs.h. */ | |
8571 | _ACEOF | |
8572 | cat confdefs.h >>conftest.$ac_ext | |
8573 | cat >>conftest.$ac_ext <<_ACEOF | |
8574 | /* end confdefs.h. */ | |
8575 | ||
8576 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8577 | #ifdef __cplusplus | |
8578 | extern "C" | |
8579 | #endif | |
8580 | /* We use char because int might match the return type of a gcc2 | |
8581 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 8582 | char asinhf (); |
453310d8 RS |
8583 | int |
8584 | main () | |
8585 | { | |
1409cd0b | 8586 | asinhf (); |
453310d8 RS |
8587 | ; |
8588 | return 0; | |
8589 | } | |
8590 | _ACEOF | |
8591 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8593 | (eval $ac_link) 2>conftest.er1 | |
8594 | ac_status=$? | |
8595 | grep -v '^ *+' conftest.er1 >conftest.err | |
8596 | rm -f conftest.er1 | |
8597 | cat conftest.err >&5 | |
8598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8599 | (exit $ac_status); } && | |
1409cd0b FXC |
8600 | { ac_try='test -z "$ac_c_werror_flag" |
8601 | || test ! -s conftest.err' | |
453310d8 RS |
8602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8603 | (eval $ac_try) 2>&5 | |
8604 | ac_status=$? | |
8605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8606 | (exit $ac_status); }; } && | |
8607 | { ac_try='test -s conftest$ac_exeext' | |
8608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8609 | (eval $ac_try) 2>&5 | |
8610 | ac_status=$? | |
8611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8612 | (exit $ac_status); }; }; then | |
1409cd0b | 8613 | ac_cv_lib_m_asinhf=yes |
453310d8 RS |
8614 | else |
8615 | echo "$as_me: failed program was:" >&5 | |
8616 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8617 | ||
1409cd0b | 8618 | ac_cv_lib_m_asinhf=no |
453310d8 RS |
8619 | fi |
8620 | rm -f conftest.err conftest.$ac_objext \ | |
8621 | conftest$ac_exeext conftest.$ac_ext | |
8622 | LIBS=$ac_check_lib_save_LIBS | |
8623 | fi | |
1409cd0b FXC |
8624 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhf" >&5 |
8625 | echo "${ECHO_T}$ac_cv_lib_m_asinhf" >&6 | |
8626 | if test $ac_cv_lib_m_asinhf = yes; then | |
453310d8 RS |
8627 | |
8628 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 8629 | #define HAVE_ASINHF 1 |
453310d8 RS |
8630 | _ACEOF |
8631 | ||
8632 | fi | |
8633 | ||
1409cd0b FXC |
8634 | echo "$as_me:$LINENO: checking for asinh in -lm" >&5 |
8635 | echo $ECHO_N "checking for asinh in -lm... $ECHO_C" >&6 | |
8636 | if test "${ac_cv_lib_m_asinh+set}" = set; then | |
453310d8 RS |
8637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8638 | else | |
8639 | ac_check_lib_save_LIBS=$LIBS | |
8640 | LIBS="-lm $LIBS" | |
f02d008e JD |
8641 | if test x$gcc_no_link = xyes; then |
8642 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8643 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8644 | { (exit 1); exit 1; }; } | |
8645 | fi | |
453310d8 RS |
8646 | cat >conftest.$ac_ext <<_ACEOF |
8647 | /* confdefs.h. */ | |
8648 | _ACEOF | |
8649 | cat confdefs.h >>conftest.$ac_ext | |
8650 | cat >>conftest.$ac_ext <<_ACEOF | |
8651 | /* end confdefs.h. */ | |
8652 | ||
8653 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8654 | #ifdef __cplusplus | |
8655 | extern "C" | |
8656 | #endif | |
8657 | /* We use char because int might match the return type of a gcc2 | |
8658 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 8659 | char asinh (); |
453310d8 RS |
8660 | int |
8661 | main () | |
8662 | { | |
1409cd0b | 8663 | asinh (); |
453310d8 RS |
8664 | ; |
8665 | return 0; | |
8666 | } | |
8667 | _ACEOF | |
8668 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8670 | (eval $ac_link) 2>conftest.er1 | |
8671 | ac_status=$? | |
8672 | grep -v '^ *+' conftest.er1 >conftest.err | |
8673 | rm -f conftest.er1 | |
8674 | cat conftest.err >&5 | |
8675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8676 | (exit $ac_status); } && | |
1409cd0b FXC |
8677 | { ac_try='test -z "$ac_c_werror_flag" |
8678 | || test ! -s conftest.err' | |
453310d8 RS |
8679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8680 | (eval $ac_try) 2>&5 | |
8681 | ac_status=$? | |
8682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8683 | (exit $ac_status); }; } && | |
8684 | { ac_try='test -s conftest$ac_exeext' | |
8685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8686 | (eval $ac_try) 2>&5 | |
8687 | ac_status=$? | |
8688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8689 | (exit $ac_status); }; }; then | |
1409cd0b | 8690 | ac_cv_lib_m_asinh=yes |
453310d8 RS |
8691 | else |
8692 | echo "$as_me: failed program was:" >&5 | |
8693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8694 | ||
1409cd0b | 8695 | ac_cv_lib_m_asinh=no |
453310d8 RS |
8696 | fi |
8697 | rm -f conftest.err conftest.$ac_objext \ | |
8698 | conftest$ac_exeext conftest.$ac_ext | |
8699 | LIBS=$ac_check_lib_save_LIBS | |
8700 | fi | |
1409cd0b FXC |
8701 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinh" >&5 |
8702 | echo "${ECHO_T}$ac_cv_lib_m_asinh" >&6 | |
8703 | if test $ac_cv_lib_m_asinh = yes; then | |
453310d8 RS |
8704 | |
8705 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 8706 | #define HAVE_ASINH 1 |
453310d8 RS |
8707 | _ACEOF |
8708 | ||
8709 | fi | |
8710 | ||
1409cd0b FXC |
8711 | echo "$as_me:$LINENO: checking for asinhl in -lm" >&5 |
8712 | echo $ECHO_N "checking for asinhl in -lm... $ECHO_C" >&6 | |
8713 | if test "${ac_cv_lib_m_asinhl+set}" = set; then | |
453310d8 RS |
8714 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8715 | else | |
8716 | ac_check_lib_save_LIBS=$LIBS | |
8717 | LIBS="-lm $LIBS" | |
f02d008e JD |
8718 | if test x$gcc_no_link = xyes; then |
8719 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8720 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8721 | { (exit 1); exit 1; }; } | |
8722 | fi | |
453310d8 RS |
8723 | cat >conftest.$ac_ext <<_ACEOF |
8724 | /* confdefs.h. */ | |
8725 | _ACEOF | |
8726 | cat confdefs.h >>conftest.$ac_ext | |
8727 | cat >>conftest.$ac_ext <<_ACEOF | |
8728 | /* end confdefs.h. */ | |
8729 | ||
8730 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8731 | #ifdef __cplusplus | |
8732 | extern "C" | |
8733 | #endif | |
8734 | /* We use char because int might match the return type of a gcc2 | |
8735 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 8736 | char asinhl (); |
453310d8 RS |
8737 | int |
8738 | main () | |
8739 | { | |
1409cd0b | 8740 | asinhl (); |
453310d8 RS |
8741 | ; |
8742 | return 0; | |
8743 | } | |
8744 | _ACEOF | |
8745 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8746 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8747 | (eval $ac_link) 2>conftest.er1 | |
8748 | ac_status=$? | |
8749 | grep -v '^ *+' conftest.er1 >conftest.err | |
8750 | rm -f conftest.er1 | |
8751 | cat conftest.err >&5 | |
8752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8753 | (exit $ac_status); } && | |
1409cd0b FXC |
8754 | { ac_try='test -z "$ac_c_werror_flag" |
8755 | || test ! -s conftest.err' | |
453310d8 RS |
8756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8757 | (eval $ac_try) 2>&5 | |
8758 | ac_status=$? | |
8759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8760 | (exit $ac_status); }; } && | |
8761 | { ac_try='test -s conftest$ac_exeext' | |
8762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8763 | (eval $ac_try) 2>&5 | |
8764 | ac_status=$? | |
8765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8766 | (exit $ac_status); }; }; then | |
1409cd0b | 8767 | ac_cv_lib_m_asinhl=yes |
453310d8 RS |
8768 | else |
8769 | echo "$as_me: failed program was:" >&5 | |
8770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8771 | ||
1409cd0b | 8772 | ac_cv_lib_m_asinhl=no |
453310d8 RS |
8773 | fi |
8774 | rm -f conftest.err conftest.$ac_objext \ | |
8775 | conftest$ac_exeext conftest.$ac_ext | |
8776 | LIBS=$ac_check_lib_save_LIBS | |
8777 | fi | |
1409cd0b FXC |
8778 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_asinhl" >&5 |
8779 | echo "${ECHO_T}$ac_cv_lib_m_asinhl" >&6 | |
8780 | if test $ac_cv_lib_m_asinhl = yes; then | |
453310d8 RS |
8781 | |
8782 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 8783 | #define HAVE_ASINHL 1 |
453310d8 RS |
8784 | _ACEOF |
8785 | ||
8786 | fi | |
8787 | ||
1409cd0b FXC |
8788 | echo "$as_me:$LINENO: checking for atan2f in -lm" >&5 |
8789 | echo $ECHO_N "checking for atan2f in -lm... $ECHO_C" >&6 | |
8790 | if test "${ac_cv_lib_m_atan2f+set}" = set; then | |
6e4d9244 EB |
8791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8792 | else | |
8793 | ac_check_lib_save_LIBS=$LIBS | |
8794 | LIBS="-lm $LIBS" | |
f02d008e JD |
8795 | if test x$gcc_no_link = xyes; then |
8796 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8797 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8798 | { (exit 1); exit 1; }; } | |
8799 | fi | |
6e4d9244 EB |
8800 | cat >conftest.$ac_ext <<_ACEOF |
8801 | /* confdefs.h. */ | |
8802 | _ACEOF | |
8803 | cat confdefs.h >>conftest.$ac_ext | |
8804 | cat >>conftest.$ac_ext <<_ACEOF | |
8805 | /* end confdefs.h. */ | |
8806 | ||
8807 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8808 | #ifdef __cplusplus | |
8809 | extern "C" | |
8810 | #endif | |
8811 | /* We use char because int might match the return type of a gcc2 | |
8812 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 8813 | char atan2f (); |
6e4d9244 EB |
8814 | int |
8815 | main () | |
8816 | { | |
1409cd0b | 8817 | atan2f (); |
6e4d9244 EB |
8818 | ; |
8819 | return 0; | |
8820 | } | |
8821 | _ACEOF | |
8822 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8824 | (eval $ac_link) 2>conftest.er1 | |
8825 | ac_status=$? | |
8826 | grep -v '^ *+' conftest.er1 >conftest.err | |
8827 | rm -f conftest.er1 | |
8828 | cat conftest.err >&5 | |
8829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8830 | (exit $ac_status); } && | |
1409cd0b FXC |
8831 | { ac_try='test -z "$ac_c_werror_flag" |
8832 | || test ! -s conftest.err' | |
6e4d9244 EB |
8833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8834 | (eval $ac_try) 2>&5 | |
8835 | ac_status=$? | |
8836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8837 | (exit $ac_status); }; } && | |
8838 | { ac_try='test -s conftest$ac_exeext' | |
8839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8840 | (eval $ac_try) 2>&5 | |
8841 | ac_status=$? | |
8842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8843 | (exit $ac_status); }; }; then | |
1409cd0b | 8844 | ac_cv_lib_m_atan2f=yes |
6e4d9244 EB |
8845 | else |
8846 | echo "$as_me: failed program was:" >&5 | |
8847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8848 | ||
1409cd0b | 8849 | ac_cv_lib_m_atan2f=no |
6e4d9244 EB |
8850 | fi |
8851 | rm -f conftest.err conftest.$ac_objext \ | |
8852 | conftest$ac_exeext conftest.$ac_ext | |
8853 | LIBS=$ac_check_lib_save_LIBS | |
8854 | fi | |
1409cd0b FXC |
8855 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2f" >&5 |
8856 | echo "${ECHO_T}$ac_cv_lib_m_atan2f" >&6 | |
8857 | if test $ac_cv_lib_m_atan2f = yes; then | |
6e4d9244 EB |
8858 | |
8859 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 8860 | #define HAVE_ATAN2F 1 |
6e4d9244 EB |
8861 | _ACEOF |
8862 | ||
8863 | fi | |
8864 | ||
1409cd0b FXC |
8865 | echo "$as_me:$LINENO: checking for atan2 in -lm" >&5 |
8866 | echo $ECHO_N "checking for atan2 in -lm... $ECHO_C" >&6 | |
8867 | if test "${ac_cv_lib_m_atan2+set}" = set; then | |
453310d8 RS |
8868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8869 | else | |
8870 | ac_check_lib_save_LIBS=$LIBS | |
8871 | LIBS="-lm $LIBS" | |
f02d008e JD |
8872 | if test x$gcc_no_link = xyes; then |
8873 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8874 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8875 | { (exit 1); exit 1; }; } | |
8876 | fi | |
453310d8 RS |
8877 | cat >conftest.$ac_ext <<_ACEOF |
8878 | /* confdefs.h. */ | |
8879 | _ACEOF | |
8880 | cat confdefs.h >>conftest.$ac_ext | |
8881 | cat >>conftest.$ac_ext <<_ACEOF | |
8882 | /* end confdefs.h. */ | |
8883 | ||
8884 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8885 | #ifdef __cplusplus | |
8886 | extern "C" | |
8887 | #endif | |
8888 | /* We use char because int might match the return type of a gcc2 | |
8889 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 8890 | char atan2 (); |
453310d8 RS |
8891 | int |
8892 | main () | |
8893 | { | |
1409cd0b | 8894 | atan2 (); |
453310d8 RS |
8895 | ; |
8896 | return 0; | |
8897 | } | |
8898 | _ACEOF | |
8899 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8900 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8901 | (eval $ac_link) 2>conftest.er1 | |
8902 | ac_status=$? | |
8903 | grep -v '^ *+' conftest.er1 >conftest.err | |
8904 | rm -f conftest.er1 | |
8905 | cat conftest.err >&5 | |
8906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8907 | (exit $ac_status); } && | |
1409cd0b FXC |
8908 | { ac_try='test -z "$ac_c_werror_flag" |
8909 | || test ! -s conftest.err' | |
453310d8 RS |
8910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8911 | (eval $ac_try) 2>&5 | |
8912 | ac_status=$? | |
8913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8914 | (exit $ac_status); }; } && | |
8915 | { ac_try='test -s conftest$ac_exeext' | |
8916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8917 | (eval $ac_try) 2>&5 | |
8918 | ac_status=$? | |
8919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8920 | (exit $ac_status); }; }; then | |
1409cd0b | 8921 | ac_cv_lib_m_atan2=yes |
453310d8 RS |
8922 | else |
8923 | echo "$as_me: failed program was:" >&5 | |
8924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8925 | ||
1409cd0b | 8926 | ac_cv_lib_m_atan2=no |
453310d8 RS |
8927 | fi |
8928 | rm -f conftest.err conftest.$ac_objext \ | |
8929 | conftest$ac_exeext conftest.$ac_ext | |
8930 | LIBS=$ac_check_lib_save_LIBS | |
8931 | fi | |
1409cd0b FXC |
8932 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2" >&5 |
8933 | echo "${ECHO_T}$ac_cv_lib_m_atan2" >&6 | |
8934 | if test $ac_cv_lib_m_atan2 = yes; then | |
453310d8 RS |
8935 | |
8936 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 8937 | #define HAVE_ATAN2 1 |
453310d8 RS |
8938 | _ACEOF |
8939 | ||
8940 | fi | |
8941 | ||
1409cd0b FXC |
8942 | echo "$as_me:$LINENO: checking for atan2l in -lm" >&5 |
8943 | echo $ECHO_N "checking for atan2l in -lm... $ECHO_C" >&6 | |
8944 | if test "${ac_cv_lib_m_atan2l+set}" = set; then | |
453310d8 RS |
8945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8946 | else | |
8947 | ac_check_lib_save_LIBS=$LIBS | |
8948 | LIBS="-lm $LIBS" | |
f02d008e JD |
8949 | if test x$gcc_no_link = xyes; then |
8950 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
8951 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
8952 | { (exit 1); exit 1; }; } | |
8953 | fi | |
453310d8 RS |
8954 | cat >conftest.$ac_ext <<_ACEOF |
8955 | /* confdefs.h. */ | |
8956 | _ACEOF | |
8957 | cat confdefs.h >>conftest.$ac_ext | |
8958 | cat >>conftest.$ac_ext <<_ACEOF | |
8959 | /* end confdefs.h. */ | |
8960 | ||
8961 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8962 | #ifdef __cplusplus | |
8963 | extern "C" | |
8964 | #endif | |
8965 | /* We use char because int might match the return type of a gcc2 | |
8966 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 8967 | char atan2l (); |
453310d8 RS |
8968 | int |
8969 | main () | |
8970 | { | |
1409cd0b | 8971 | atan2l (); |
453310d8 RS |
8972 | ; |
8973 | return 0; | |
8974 | } | |
8975 | _ACEOF | |
8976 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8977 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8978 | (eval $ac_link) 2>conftest.er1 | |
8979 | ac_status=$? | |
8980 | grep -v '^ *+' conftest.er1 >conftest.err | |
8981 | rm -f conftest.er1 | |
8982 | cat conftest.err >&5 | |
8983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8984 | (exit $ac_status); } && | |
1409cd0b FXC |
8985 | { ac_try='test -z "$ac_c_werror_flag" |
8986 | || test ! -s conftest.err' | |
453310d8 RS |
8987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8988 | (eval $ac_try) 2>&5 | |
8989 | ac_status=$? | |
8990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8991 | (exit $ac_status); }; } && | |
8992 | { ac_try='test -s conftest$ac_exeext' | |
8993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8994 | (eval $ac_try) 2>&5 | |
8995 | ac_status=$? | |
8996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8997 | (exit $ac_status); }; }; then | |
1409cd0b | 8998 | ac_cv_lib_m_atan2l=yes |
453310d8 RS |
8999 | else |
9000 | echo "$as_me: failed program was:" >&5 | |
9001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9002 | ||
1409cd0b | 9003 | ac_cv_lib_m_atan2l=no |
453310d8 RS |
9004 | fi |
9005 | rm -f conftest.err conftest.$ac_objext \ | |
9006 | conftest$ac_exeext conftest.$ac_ext | |
9007 | LIBS=$ac_check_lib_save_LIBS | |
9008 | fi | |
1409cd0b FXC |
9009 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan2l" >&5 |
9010 | echo "${ECHO_T}$ac_cv_lib_m_atan2l" >&6 | |
9011 | if test $ac_cv_lib_m_atan2l = yes; then | |
453310d8 RS |
9012 | |
9013 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 9014 | #define HAVE_ATAN2L 1 |
453310d8 RS |
9015 | _ACEOF |
9016 | ||
9017 | fi | |
9018 | ||
1409cd0b FXC |
9019 | echo "$as_me:$LINENO: checking for atanf in -lm" >&5 |
9020 | echo $ECHO_N "checking for atanf in -lm... $ECHO_C" >&6 | |
9021 | if test "${ac_cv_lib_m_atanf+set}" = set; then | |
453310d8 RS |
9022 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9023 | else | |
9024 | ac_check_lib_save_LIBS=$LIBS | |
9025 | LIBS="-lm $LIBS" | |
f02d008e JD |
9026 | if test x$gcc_no_link = xyes; then |
9027 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9028 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9029 | { (exit 1); exit 1; }; } | |
9030 | fi | |
453310d8 RS |
9031 | cat >conftest.$ac_ext <<_ACEOF |
9032 | /* confdefs.h. */ | |
9033 | _ACEOF | |
9034 | cat confdefs.h >>conftest.$ac_ext | |
9035 | cat >>conftest.$ac_ext <<_ACEOF | |
9036 | /* end confdefs.h. */ | |
9037 | ||
9038 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9039 | #ifdef __cplusplus | |
9040 | extern "C" | |
9041 | #endif | |
9042 | /* We use char because int might match the return type of a gcc2 | |
9043 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 9044 | char atanf (); |
453310d8 RS |
9045 | int |
9046 | main () | |
9047 | { | |
1409cd0b | 9048 | atanf (); |
453310d8 RS |
9049 | ; |
9050 | return 0; | |
9051 | } | |
9052 | _ACEOF | |
9053 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9055 | (eval $ac_link) 2>conftest.er1 | |
9056 | ac_status=$? | |
9057 | grep -v '^ *+' conftest.er1 >conftest.err | |
9058 | rm -f conftest.er1 | |
9059 | cat conftest.err >&5 | |
9060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9061 | (exit $ac_status); } && | |
1409cd0b FXC |
9062 | { ac_try='test -z "$ac_c_werror_flag" |
9063 | || test ! -s conftest.err' | |
453310d8 RS |
9064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9065 | (eval $ac_try) 2>&5 | |
9066 | ac_status=$? | |
9067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9068 | (exit $ac_status); }; } && | |
9069 | { ac_try='test -s conftest$ac_exeext' | |
9070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9071 | (eval $ac_try) 2>&5 | |
9072 | ac_status=$? | |
9073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9074 | (exit $ac_status); }; }; then | |
1409cd0b | 9075 | ac_cv_lib_m_atanf=yes |
453310d8 RS |
9076 | else |
9077 | echo "$as_me: failed program was:" >&5 | |
9078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9079 | ||
1409cd0b | 9080 | ac_cv_lib_m_atanf=no |
453310d8 RS |
9081 | fi |
9082 | rm -f conftest.err conftest.$ac_objext \ | |
9083 | conftest$ac_exeext conftest.$ac_ext | |
9084 | LIBS=$ac_check_lib_save_LIBS | |
9085 | fi | |
1409cd0b FXC |
9086 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanf" >&5 |
9087 | echo "${ECHO_T}$ac_cv_lib_m_atanf" >&6 | |
9088 | if test $ac_cv_lib_m_atanf = yes; then | |
453310d8 RS |
9089 | |
9090 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 9091 | #define HAVE_ATANF 1 |
453310d8 RS |
9092 | _ACEOF |
9093 | ||
9094 | fi | |
9095 | ||
1409cd0b FXC |
9096 | echo "$as_me:$LINENO: checking for atan in -lm" >&5 |
9097 | echo $ECHO_N "checking for atan in -lm... $ECHO_C" >&6 | |
9098 | if test "${ac_cv_lib_m_atan+set}" = set; then | |
453310d8 RS |
9099 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9100 | else | |
9101 | ac_check_lib_save_LIBS=$LIBS | |
9102 | LIBS="-lm $LIBS" | |
f02d008e JD |
9103 | if test x$gcc_no_link = xyes; then |
9104 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9105 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9106 | { (exit 1); exit 1; }; } | |
9107 | fi | |
453310d8 RS |
9108 | cat >conftest.$ac_ext <<_ACEOF |
9109 | /* confdefs.h. */ | |
9110 | _ACEOF | |
9111 | cat confdefs.h >>conftest.$ac_ext | |
9112 | cat >>conftest.$ac_ext <<_ACEOF | |
9113 | /* end confdefs.h. */ | |
9114 | ||
9115 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9116 | #ifdef __cplusplus | |
9117 | extern "C" | |
9118 | #endif | |
9119 | /* We use char because int might match the return type of a gcc2 | |
9120 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 9121 | char atan (); |
453310d8 RS |
9122 | int |
9123 | main () | |
9124 | { | |
1409cd0b | 9125 | atan (); |
453310d8 RS |
9126 | ; |
9127 | return 0; | |
9128 | } | |
9129 | _ACEOF | |
9130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9132 | (eval $ac_link) 2>conftest.er1 | |
9133 | ac_status=$? | |
9134 | grep -v '^ *+' conftest.er1 >conftest.err | |
9135 | rm -f conftest.er1 | |
9136 | cat conftest.err >&5 | |
9137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9138 | (exit $ac_status); } && | |
1409cd0b FXC |
9139 | { ac_try='test -z "$ac_c_werror_flag" |
9140 | || test ! -s conftest.err' | |
453310d8 RS |
9141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9142 | (eval $ac_try) 2>&5 | |
9143 | ac_status=$? | |
9144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9145 | (exit $ac_status); }; } && | |
9146 | { ac_try='test -s conftest$ac_exeext' | |
9147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9148 | (eval $ac_try) 2>&5 | |
9149 | ac_status=$? | |
9150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9151 | (exit $ac_status); }; }; then | |
1409cd0b | 9152 | ac_cv_lib_m_atan=yes |
453310d8 RS |
9153 | else |
9154 | echo "$as_me: failed program was:" >&5 | |
9155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9156 | ||
1409cd0b | 9157 | ac_cv_lib_m_atan=no |
453310d8 RS |
9158 | fi |
9159 | rm -f conftest.err conftest.$ac_objext \ | |
9160 | conftest$ac_exeext conftest.$ac_ext | |
9161 | LIBS=$ac_check_lib_save_LIBS | |
9162 | fi | |
1409cd0b FXC |
9163 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atan" >&5 |
9164 | echo "${ECHO_T}$ac_cv_lib_m_atan" >&6 | |
9165 | if test $ac_cv_lib_m_atan = yes; then | |
453310d8 RS |
9166 | |
9167 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 9168 | #define HAVE_ATAN 1 |
453310d8 RS |
9169 | _ACEOF |
9170 | ||
9171 | fi | |
9172 | ||
1409cd0b FXC |
9173 | echo "$as_me:$LINENO: checking for atanl in -lm" >&5 |
9174 | echo $ECHO_N "checking for atanl in -lm... $ECHO_C" >&6 | |
9175 | if test "${ac_cv_lib_m_atanl+set}" = set; then | |
453310d8 RS |
9176 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9177 | else | |
9178 | ac_check_lib_save_LIBS=$LIBS | |
9179 | LIBS="-lm $LIBS" | |
f02d008e JD |
9180 | if test x$gcc_no_link = xyes; then |
9181 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9182 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9183 | { (exit 1); exit 1; }; } | |
9184 | fi | |
453310d8 RS |
9185 | cat >conftest.$ac_ext <<_ACEOF |
9186 | /* confdefs.h. */ | |
9187 | _ACEOF | |
9188 | cat confdefs.h >>conftest.$ac_ext | |
9189 | cat >>conftest.$ac_ext <<_ACEOF | |
9190 | /* end confdefs.h. */ | |
9191 | ||
9192 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9193 | #ifdef __cplusplus | |
9194 | extern "C" | |
9195 | #endif | |
9196 | /* We use char because int might match the return type of a gcc2 | |
9197 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 9198 | char atanl (); |
453310d8 RS |
9199 | int |
9200 | main () | |
9201 | { | |
1409cd0b | 9202 | atanl (); |
453310d8 RS |
9203 | ; |
9204 | return 0; | |
9205 | } | |
9206 | _ACEOF | |
9207 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9209 | (eval $ac_link) 2>conftest.er1 | |
9210 | ac_status=$? | |
9211 | grep -v '^ *+' conftest.er1 >conftest.err | |
9212 | rm -f conftest.er1 | |
9213 | cat conftest.err >&5 | |
9214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9215 | (exit $ac_status); } && | |
1409cd0b FXC |
9216 | { ac_try='test -z "$ac_c_werror_flag" |
9217 | || test ! -s conftest.err' | |
453310d8 RS |
9218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9219 | (eval $ac_try) 2>&5 | |
9220 | ac_status=$? | |
9221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9222 | (exit $ac_status); }; } && | |
9223 | { ac_try='test -s conftest$ac_exeext' | |
9224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9225 | (eval $ac_try) 2>&5 | |
9226 | ac_status=$? | |
9227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9228 | (exit $ac_status); }; }; then | |
1409cd0b | 9229 | ac_cv_lib_m_atanl=yes |
453310d8 RS |
9230 | else |
9231 | echo "$as_me: failed program was:" >&5 | |
9232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9233 | ||
1409cd0b | 9234 | ac_cv_lib_m_atanl=no |
453310d8 RS |
9235 | fi |
9236 | rm -f conftest.err conftest.$ac_objext \ | |
9237 | conftest$ac_exeext conftest.$ac_ext | |
9238 | LIBS=$ac_check_lib_save_LIBS | |
9239 | fi | |
1409cd0b FXC |
9240 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanl" >&5 |
9241 | echo "${ECHO_T}$ac_cv_lib_m_atanl" >&6 | |
9242 | if test $ac_cv_lib_m_atanl = yes; then | |
453310d8 RS |
9243 | |
9244 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 9245 | #define HAVE_ATANL 1 |
453310d8 RS |
9246 | _ACEOF |
9247 | ||
9248 | fi | |
9249 | ||
1409cd0b FXC |
9250 | echo "$as_me:$LINENO: checking for atanhf in -lm" >&5 |
9251 | echo $ECHO_N "checking for atanhf in -lm... $ECHO_C" >&6 | |
9252 | if test "${ac_cv_lib_m_atanhf+set}" = set; then | |
32aa3bff FXC |
9253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9254 | else | |
9255 | ac_check_lib_save_LIBS=$LIBS | |
9256 | LIBS="-lm $LIBS" | |
f02d008e JD |
9257 | if test x$gcc_no_link = xyes; then |
9258 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9259 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9260 | { (exit 1); exit 1; }; } | |
9261 | fi | |
32aa3bff FXC |
9262 | cat >conftest.$ac_ext <<_ACEOF |
9263 | /* confdefs.h. */ | |
9264 | _ACEOF | |
9265 | cat confdefs.h >>conftest.$ac_ext | |
9266 | cat >>conftest.$ac_ext <<_ACEOF | |
9267 | /* end confdefs.h. */ | |
9268 | ||
9269 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9270 | #ifdef __cplusplus | |
9271 | extern "C" | |
9272 | #endif | |
9273 | /* We use char because int might match the return type of a gcc2 | |
9274 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 9275 | char atanhf (); |
32aa3bff FXC |
9276 | int |
9277 | main () | |
9278 | { | |
1409cd0b | 9279 | atanhf (); |
32aa3bff FXC |
9280 | ; |
9281 | return 0; | |
9282 | } | |
9283 | _ACEOF | |
9284 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9285 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9286 | (eval $ac_link) 2>conftest.er1 | |
9287 | ac_status=$? | |
9288 | grep -v '^ *+' conftest.er1 >conftest.err | |
9289 | rm -f conftest.er1 | |
9290 | cat conftest.err >&5 | |
9291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9292 | (exit $ac_status); } && | |
1409cd0b FXC |
9293 | { ac_try='test -z "$ac_c_werror_flag" |
9294 | || test ! -s conftest.err' | |
32aa3bff FXC |
9295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9296 | (eval $ac_try) 2>&5 | |
9297 | ac_status=$? | |
9298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9299 | (exit $ac_status); }; } && | |
9300 | { ac_try='test -s conftest$ac_exeext' | |
9301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9302 | (eval $ac_try) 2>&5 | |
9303 | ac_status=$? | |
9304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9305 | (exit $ac_status); }; }; then | |
1409cd0b | 9306 | ac_cv_lib_m_atanhf=yes |
32aa3bff FXC |
9307 | else |
9308 | echo "$as_me: failed program was:" >&5 | |
9309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9310 | ||
1409cd0b | 9311 | ac_cv_lib_m_atanhf=no |
32aa3bff FXC |
9312 | fi |
9313 | rm -f conftest.err conftest.$ac_objext \ | |
9314 | conftest$ac_exeext conftest.$ac_ext | |
9315 | LIBS=$ac_check_lib_save_LIBS | |
9316 | fi | |
1409cd0b FXC |
9317 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhf" >&5 |
9318 | echo "${ECHO_T}$ac_cv_lib_m_atanhf" >&6 | |
9319 | if test $ac_cv_lib_m_atanhf = yes; then | |
32aa3bff FXC |
9320 | |
9321 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 9322 | #define HAVE_ATANHF 1 |
32aa3bff FXC |
9323 | _ACEOF |
9324 | ||
9325 | fi | |
9326 | ||
1409cd0b FXC |
9327 | echo "$as_me:$LINENO: checking for atanh in -lm" >&5 |
9328 | echo $ECHO_N "checking for atanh in -lm... $ECHO_C" >&6 | |
9329 | if test "${ac_cv_lib_m_atanh+set}" = set; then | |
453310d8 RS |
9330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9331 | else | |
9332 | ac_check_lib_save_LIBS=$LIBS | |
9333 | LIBS="-lm $LIBS" | |
f02d008e JD |
9334 | if test x$gcc_no_link = xyes; then |
9335 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9336 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9337 | { (exit 1); exit 1; }; } | |
9338 | fi | |
453310d8 RS |
9339 | cat >conftest.$ac_ext <<_ACEOF |
9340 | /* confdefs.h. */ | |
9341 | _ACEOF | |
9342 | cat confdefs.h >>conftest.$ac_ext | |
9343 | cat >>conftest.$ac_ext <<_ACEOF | |
9344 | /* end confdefs.h. */ | |
9345 | ||
9346 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9347 | #ifdef __cplusplus | |
9348 | extern "C" | |
9349 | #endif | |
9350 | /* We use char because int might match the return type of a gcc2 | |
9351 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 9352 | char atanh (); |
453310d8 RS |
9353 | int |
9354 | main () | |
9355 | { | |
1409cd0b | 9356 | atanh (); |
453310d8 RS |
9357 | ; |
9358 | return 0; | |
9359 | } | |
9360 | _ACEOF | |
9361 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9363 | (eval $ac_link) 2>conftest.er1 | |
9364 | ac_status=$? | |
9365 | grep -v '^ *+' conftest.er1 >conftest.err | |
9366 | rm -f conftest.er1 | |
9367 | cat conftest.err >&5 | |
9368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9369 | (exit $ac_status); } && | |
1409cd0b FXC |
9370 | { ac_try='test -z "$ac_c_werror_flag" |
9371 | || test ! -s conftest.err' | |
453310d8 RS |
9372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9373 | (eval $ac_try) 2>&5 | |
9374 | ac_status=$? | |
9375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9376 | (exit $ac_status); }; } && | |
9377 | { ac_try='test -s conftest$ac_exeext' | |
9378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9379 | (eval $ac_try) 2>&5 | |
9380 | ac_status=$? | |
9381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9382 | (exit $ac_status); }; }; then | |
1409cd0b | 9383 | ac_cv_lib_m_atanh=yes |
453310d8 RS |
9384 | else |
9385 | echo "$as_me: failed program was:" >&5 | |
9386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9387 | ||
1409cd0b | 9388 | ac_cv_lib_m_atanh=no |
453310d8 RS |
9389 | fi |
9390 | rm -f conftest.err conftest.$ac_objext \ | |
9391 | conftest$ac_exeext conftest.$ac_ext | |
9392 | LIBS=$ac_check_lib_save_LIBS | |
9393 | fi | |
1409cd0b FXC |
9394 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanh" >&5 |
9395 | echo "${ECHO_T}$ac_cv_lib_m_atanh" >&6 | |
9396 | if test $ac_cv_lib_m_atanh = yes; then | |
453310d8 RS |
9397 | |
9398 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 9399 | #define HAVE_ATANH 1 |
453310d8 RS |
9400 | _ACEOF |
9401 | ||
9402 | fi | |
9403 | ||
1409cd0b FXC |
9404 | echo "$as_me:$LINENO: checking for atanhl in -lm" >&5 |
9405 | echo $ECHO_N "checking for atanhl in -lm... $ECHO_C" >&6 | |
9406 | if test "${ac_cv_lib_m_atanhl+set}" = set; then | |
453310d8 RS |
9407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9408 | else | |
9409 | ac_check_lib_save_LIBS=$LIBS | |
9410 | LIBS="-lm $LIBS" | |
f02d008e JD |
9411 | if test x$gcc_no_link = xyes; then |
9412 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9413 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9414 | { (exit 1); exit 1; }; } | |
9415 | fi | |
453310d8 RS |
9416 | cat >conftest.$ac_ext <<_ACEOF |
9417 | /* confdefs.h. */ | |
9418 | _ACEOF | |
9419 | cat confdefs.h >>conftest.$ac_ext | |
9420 | cat >>conftest.$ac_ext <<_ACEOF | |
9421 | /* end confdefs.h. */ | |
9422 | ||
9423 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9424 | #ifdef __cplusplus | |
9425 | extern "C" | |
9426 | #endif | |
9427 | /* We use char because int might match the return type of a gcc2 | |
9428 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 9429 | char atanhl (); |
453310d8 RS |
9430 | int |
9431 | main () | |
9432 | { | |
1409cd0b | 9433 | atanhl (); |
453310d8 RS |
9434 | ; |
9435 | return 0; | |
9436 | } | |
9437 | _ACEOF | |
9438 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9440 | (eval $ac_link) 2>conftest.er1 | |
9441 | ac_status=$? | |
9442 | grep -v '^ *+' conftest.er1 >conftest.err | |
9443 | rm -f conftest.er1 | |
9444 | cat conftest.err >&5 | |
9445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9446 | (exit $ac_status); } && | |
1409cd0b FXC |
9447 | { ac_try='test -z "$ac_c_werror_flag" |
9448 | || test ! -s conftest.err' | |
453310d8 RS |
9449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9450 | (eval $ac_try) 2>&5 | |
9451 | ac_status=$? | |
9452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9453 | (exit $ac_status); }; } && | |
9454 | { ac_try='test -s conftest$ac_exeext' | |
9455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9456 | (eval $ac_try) 2>&5 | |
9457 | ac_status=$? | |
9458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9459 | (exit $ac_status); }; }; then | |
1409cd0b | 9460 | ac_cv_lib_m_atanhl=yes |
453310d8 RS |
9461 | else |
9462 | echo "$as_me: failed program was:" >&5 | |
9463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9464 | ||
1409cd0b | 9465 | ac_cv_lib_m_atanhl=no |
453310d8 RS |
9466 | fi |
9467 | rm -f conftest.err conftest.$ac_objext \ | |
9468 | conftest$ac_exeext conftest.$ac_ext | |
9469 | LIBS=$ac_check_lib_save_LIBS | |
9470 | fi | |
1409cd0b FXC |
9471 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_atanhl" >&5 |
9472 | echo "${ECHO_T}$ac_cv_lib_m_atanhl" >&6 | |
9473 | if test $ac_cv_lib_m_atanhl = yes; then | |
453310d8 RS |
9474 | |
9475 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 9476 | #define HAVE_ATANHL 1 |
453310d8 RS |
9477 | _ACEOF |
9478 | ||
9479 | fi | |
9480 | ||
1409cd0b FXC |
9481 | echo "$as_me:$LINENO: checking for cargf in -lm" >&5 |
9482 | echo $ECHO_N "checking for cargf in -lm... $ECHO_C" >&6 | |
9483 | if test "${ac_cv_lib_m_cargf+set}" = set; then | |
bf4d99cf TS |
9484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9485 | else | |
9486 | ac_check_lib_save_LIBS=$LIBS | |
9487 | LIBS="-lm $LIBS" | |
f02d008e JD |
9488 | if test x$gcc_no_link = xyes; then |
9489 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9490 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9491 | { (exit 1); exit 1; }; } | |
9492 | fi | |
bf4d99cf TS |
9493 | cat >conftest.$ac_ext <<_ACEOF |
9494 | /* confdefs.h. */ | |
9495 | _ACEOF | |
9496 | cat confdefs.h >>conftest.$ac_ext | |
9497 | cat >>conftest.$ac_ext <<_ACEOF | |
9498 | /* end confdefs.h. */ | |
9499 | ||
9500 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9501 | #ifdef __cplusplus | |
9502 | extern "C" | |
9503 | #endif | |
9504 | /* We use char because int might match the return type of a gcc2 | |
9505 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 9506 | char cargf (); |
bf4d99cf TS |
9507 | int |
9508 | main () | |
9509 | { | |
1409cd0b | 9510 | cargf (); |
bf4d99cf TS |
9511 | ; |
9512 | return 0; | |
9513 | } | |
9514 | _ACEOF | |
9515 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9517 | (eval $ac_link) 2>conftest.er1 | |
9518 | ac_status=$? | |
9519 | grep -v '^ *+' conftest.er1 >conftest.err | |
9520 | rm -f conftest.er1 | |
9521 | cat conftest.err >&5 | |
9522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9523 | (exit $ac_status); } && | |
1409cd0b FXC |
9524 | { ac_try='test -z "$ac_c_werror_flag" |
9525 | || test ! -s conftest.err' | |
bf4d99cf TS |
9526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9527 | (eval $ac_try) 2>&5 | |
9528 | ac_status=$? | |
9529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9530 | (exit $ac_status); }; } && | |
9531 | { ac_try='test -s conftest$ac_exeext' | |
9532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9533 | (eval $ac_try) 2>&5 | |
9534 | ac_status=$? | |
9535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9536 | (exit $ac_status); }; }; then | |
1409cd0b | 9537 | ac_cv_lib_m_cargf=yes |
bf4d99cf TS |
9538 | else |
9539 | echo "$as_me: failed program was:" >&5 | |
9540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9541 | ||
1409cd0b | 9542 | ac_cv_lib_m_cargf=no |
bf4d99cf TS |
9543 | fi |
9544 | rm -f conftest.err conftest.$ac_objext \ | |
9545 | conftest$ac_exeext conftest.$ac_ext | |
9546 | LIBS=$ac_check_lib_save_LIBS | |
9547 | fi | |
1409cd0b FXC |
9548 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cargf" >&5 |
9549 | echo "${ECHO_T}$ac_cv_lib_m_cargf" >&6 | |
9550 | if test $ac_cv_lib_m_cargf = yes; then | |
bf4d99cf TS |
9551 | |
9552 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 9553 | #define HAVE_CARGF 1 |
bf4d99cf TS |
9554 | _ACEOF |
9555 | ||
9556 | fi | |
9557 | ||
1409cd0b FXC |
9558 | echo "$as_me:$LINENO: checking for carg in -lm" >&5 |
9559 | echo $ECHO_N "checking for carg in -lm... $ECHO_C" >&6 | |
9560 | if test "${ac_cv_lib_m_carg+set}" = set; then | |
a2a2059f BD |
9561 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9562 | else | |
9563 | ac_check_lib_save_LIBS=$LIBS | |
9564 | LIBS="-lm $LIBS" | |
f02d008e JD |
9565 | if test x$gcc_no_link = xyes; then |
9566 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9567 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9568 | { (exit 1); exit 1; }; } | |
9569 | fi | |
a2a2059f BD |
9570 | cat >conftest.$ac_ext <<_ACEOF |
9571 | /* confdefs.h. */ | |
9572 | _ACEOF | |
9573 | cat confdefs.h >>conftest.$ac_ext | |
9574 | cat >>conftest.$ac_ext <<_ACEOF | |
9575 | /* end confdefs.h. */ | |
9576 | ||
9577 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9578 | #ifdef __cplusplus | |
9579 | extern "C" | |
9580 | #endif | |
9581 | /* We use char because int might match the return type of a gcc2 | |
9582 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 9583 | char carg (); |
453310d8 RS |
9584 | int |
9585 | main () | |
9586 | { | |
1409cd0b | 9587 | carg (); |
453310d8 RS |
9588 | ; |
9589 | return 0; | |
9590 | } | |
9591 | _ACEOF | |
9592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9594 | (eval $ac_link) 2>conftest.er1 | |
9595 | ac_status=$? | |
9596 | grep -v '^ *+' conftest.er1 >conftest.err | |
9597 | rm -f conftest.er1 | |
9598 | cat conftest.err >&5 | |
9599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9600 | (exit $ac_status); } && | |
1409cd0b FXC |
9601 | { ac_try='test -z "$ac_c_werror_flag" |
9602 | || test ! -s conftest.err' | |
453310d8 RS |
9603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9604 | (eval $ac_try) 2>&5 | |
9605 | ac_status=$? | |
9606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9607 | (exit $ac_status); }; } && | |
9608 | { ac_try='test -s conftest$ac_exeext' | |
9609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9610 | (eval $ac_try) 2>&5 | |
9611 | ac_status=$? | |
9612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9613 | (exit $ac_status); }; }; then | |
1409cd0b | 9614 | ac_cv_lib_m_carg=yes |
453310d8 RS |
9615 | else |
9616 | echo "$as_me: failed program was:" >&5 | |
9617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9618 | ||
1409cd0b | 9619 | ac_cv_lib_m_carg=no |
453310d8 RS |
9620 | fi |
9621 | rm -f conftest.err conftest.$ac_objext \ | |
9622 | conftest$ac_exeext conftest.$ac_ext | |
9623 | LIBS=$ac_check_lib_save_LIBS | |
9624 | fi | |
1409cd0b FXC |
9625 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_carg" >&5 |
9626 | echo "${ECHO_T}$ac_cv_lib_m_carg" >&6 | |
9627 | if test $ac_cv_lib_m_carg = yes; then | |
453310d8 RS |
9628 | |
9629 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 9630 | #define HAVE_CARG 1 |
453310d8 RS |
9631 | _ACEOF |
9632 | ||
9633 | fi | |
9634 | ||
1409cd0b FXC |
9635 | echo "$as_me:$LINENO: checking for cargl in -lm" >&5 |
9636 | echo $ECHO_N "checking for cargl in -lm... $ECHO_C" >&6 | |
9637 | if test "${ac_cv_lib_m_cargl+set}" = set; then | |
453310d8 RS |
9638 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9639 | else | |
9640 | ac_check_lib_save_LIBS=$LIBS | |
9641 | LIBS="-lm $LIBS" | |
f02d008e JD |
9642 | if test x$gcc_no_link = xyes; then |
9643 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9644 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9645 | { (exit 1); exit 1; }; } | |
9646 | fi | |
453310d8 RS |
9647 | cat >conftest.$ac_ext <<_ACEOF |
9648 | /* confdefs.h. */ | |
9649 | _ACEOF | |
9650 | cat confdefs.h >>conftest.$ac_ext | |
9651 | cat >>conftest.$ac_ext <<_ACEOF | |
9652 | /* end confdefs.h. */ | |
9653 | ||
9654 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9655 | #ifdef __cplusplus | |
9656 | extern "C" | |
9657 | #endif | |
9658 | /* We use char because int might match the return type of a gcc2 | |
9659 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 9660 | char cargl (); |
a2a2059f BD |
9661 | int |
9662 | main () | |
9663 | { | |
1409cd0b | 9664 | cargl (); |
a2a2059f BD |
9665 | ; |
9666 | return 0; | |
9667 | } | |
9668 | _ACEOF | |
9669 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9671 | (eval $ac_link) 2>conftest.er1 | |
9672 | ac_status=$? | |
9673 | grep -v '^ *+' conftest.er1 >conftest.err | |
9674 | rm -f conftest.er1 | |
9675 | cat conftest.err >&5 | |
9676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9677 | (exit $ac_status); } && | |
1409cd0b FXC |
9678 | { ac_try='test -z "$ac_c_werror_flag" |
9679 | || test ! -s conftest.err' | |
a2a2059f BD |
9680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9681 | (eval $ac_try) 2>&5 | |
9682 | ac_status=$? | |
9683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9684 | (exit $ac_status); }; } && | |
9685 | { ac_try='test -s conftest$ac_exeext' | |
9686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9687 | (eval $ac_try) 2>&5 | |
9688 | ac_status=$? | |
9689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9690 | (exit $ac_status); }; }; then | |
1409cd0b | 9691 | ac_cv_lib_m_cargl=yes |
a2a2059f BD |
9692 | else |
9693 | echo "$as_me: failed program was:" >&5 | |
9694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9695 | ||
1409cd0b | 9696 | ac_cv_lib_m_cargl=no |
a2a2059f BD |
9697 | fi |
9698 | rm -f conftest.err conftest.$ac_objext \ | |
9699 | conftest$ac_exeext conftest.$ac_ext | |
9700 | LIBS=$ac_check_lib_save_LIBS | |
9701 | fi | |
1409cd0b FXC |
9702 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cargl" >&5 |
9703 | echo "${ECHO_T}$ac_cv_lib_m_cargl" >&6 | |
9704 | if test $ac_cv_lib_m_cargl = yes; then | |
a2a2059f BD |
9705 | |
9706 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 9707 | #define HAVE_CARGL 1 |
a2a2059f BD |
9708 | _ACEOF |
9709 | ||
9710 | fi | |
9711 | ||
1409cd0b FXC |
9712 | echo "$as_me:$LINENO: checking for ceilf in -lm" >&5 |
9713 | echo $ECHO_N "checking for ceilf in -lm... $ECHO_C" >&6 | |
9714 | if test "${ac_cv_lib_m_ceilf+set}" = set; then | |
a2a2059f BD |
9715 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9716 | else | |
9717 | ac_check_lib_save_LIBS=$LIBS | |
9718 | LIBS="-lm $LIBS" | |
f02d008e JD |
9719 | if test x$gcc_no_link = xyes; then |
9720 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9721 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9722 | { (exit 1); exit 1; }; } | |
9723 | fi | |
a2a2059f BD |
9724 | cat >conftest.$ac_ext <<_ACEOF |
9725 | /* confdefs.h. */ | |
9726 | _ACEOF | |
9727 | cat confdefs.h >>conftest.$ac_ext | |
9728 | cat >>conftest.$ac_ext <<_ACEOF | |
9729 | /* end confdefs.h. */ | |
9730 | ||
9731 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9732 | #ifdef __cplusplus | |
9733 | extern "C" | |
9734 | #endif | |
9735 | /* We use char because int might match the return type of a gcc2 | |
9736 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 9737 | char ceilf (); |
a2a2059f BD |
9738 | int |
9739 | main () | |
9740 | { | |
1409cd0b | 9741 | ceilf (); |
a2a2059f BD |
9742 | ; |
9743 | return 0; | |
9744 | } | |
9745 | _ACEOF | |
9746 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9748 | (eval $ac_link) 2>conftest.er1 | |
9749 | ac_status=$? | |
9750 | grep -v '^ *+' conftest.er1 >conftest.err | |
9751 | rm -f conftest.er1 | |
9752 | cat conftest.err >&5 | |
9753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9754 | (exit $ac_status); } && | |
1409cd0b FXC |
9755 | { ac_try='test -z "$ac_c_werror_flag" |
9756 | || test ! -s conftest.err' | |
a2a2059f BD |
9757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9758 | (eval $ac_try) 2>&5 | |
9759 | ac_status=$? | |
9760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9761 | (exit $ac_status); }; } && | |
9762 | { ac_try='test -s conftest$ac_exeext' | |
9763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9764 | (eval $ac_try) 2>&5 | |
9765 | ac_status=$? | |
9766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9767 | (exit $ac_status); }; }; then | |
1409cd0b | 9768 | ac_cv_lib_m_ceilf=yes |
a2a2059f BD |
9769 | else |
9770 | echo "$as_me: failed program was:" >&5 | |
9771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9772 | ||
1409cd0b | 9773 | ac_cv_lib_m_ceilf=no |
a2a2059f BD |
9774 | fi |
9775 | rm -f conftest.err conftest.$ac_objext \ | |
9776 | conftest$ac_exeext conftest.$ac_ext | |
9777 | LIBS=$ac_check_lib_save_LIBS | |
9778 | fi | |
1409cd0b FXC |
9779 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceilf" >&5 |
9780 | echo "${ECHO_T}$ac_cv_lib_m_ceilf" >&6 | |
9781 | if test $ac_cv_lib_m_ceilf = yes; then | |
a2a2059f BD |
9782 | |
9783 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 9784 | #define HAVE_CEILF 1 |
a2a2059f BD |
9785 | _ACEOF |
9786 | ||
9787 | fi | |
9788 | ||
1409cd0b FXC |
9789 | echo "$as_me:$LINENO: checking for ceil in -lm" >&5 |
9790 | echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6 | |
9791 | if test "${ac_cv_lib_m_ceil+set}" = set; then | |
ae973d6a FXC |
9792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9793 | else | |
9794 | ac_check_lib_save_LIBS=$LIBS | |
9795 | LIBS="-lm $LIBS" | |
f02d008e JD |
9796 | if test x$gcc_no_link = xyes; then |
9797 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9798 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9799 | { (exit 1); exit 1; }; } | |
9800 | fi | |
ae973d6a FXC |
9801 | cat >conftest.$ac_ext <<_ACEOF |
9802 | /* confdefs.h. */ | |
9803 | _ACEOF | |
9804 | cat confdefs.h >>conftest.$ac_ext | |
9805 | cat >>conftest.$ac_ext <<_ACEOF | |
9806 | /* end confdefs.h. */ | |
9807 | ||
9808 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9809 | #ifdef __cplusplus | |
9810 | extern "C" | |
9811 | #endif | |
9812 | /* We use char because int might match the return type of a gcc2 | |
9813 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 9814 | char ceil (); |
ae973d6a FXC |
9815 | int |
9816 | main () | |
9817 | { | |
1409cd0b | 9818 | ceil (); |
ae973d6a FXC |
9819 | ; |
9820 | return 0; | |
9821 | } | |
9822 | _ACEOF | |
9823 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9825 | (eval $ac_link) 2>conftest.er1 | |
9826 | ac_status=$? | |
9827 | grep -v '^ *+' conftest.er1 >conftest.err | |
9828 | rm -f conftest.er1 | |
9829 | cat conftest.err >&5 | |
9830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9831 | (exit $ac_status); } && | |
1409cd0b FXC |
9832 | { ac_try='test -z "$ac_c_werror_flag" |
9833 | || test ! -s conftest.err' | |
ae973d6a FXC |
9834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9835 | (eval $ac_try) 2>&5 | |
9836 | ac_status=$? | |
9837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9838 | (exit $ac_status); }; } && | |
9839 | { ac_try='test -s conftest$ac_exeext' | |
9840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9841 | (eval $ac_try) 2>&5 | |
9842 | ac_status=$? | |
9843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9844 | (exit $ac_status); }; }; then | |
1409cd0b | 9845 | ac_cv_lib_m_ceil=yes |
ae973d6a FXC |
9846 | else |
9847 | echo "$as_me: failed program was:" >&5 | |
9848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9849 | ||
1409cd0b | 9850 | ac_cv_lib_m_ceil=no |
ae973d6a FXC |
9851 | fi |
9852 | rm -f conftest.err conftest.$ac_objext \ | |
9853 | conftest$ac_exeext conftest.$ac_ext | |
9854 | LIBS=$ac_check_lib_save_LIBS | |
9855 | fi | |
1409cd0b FXC |
9856 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceil" >&5 |
9857 | echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6 | |
9858 | if test $ac_cv_lib_m_ceil = yes; then | |
ae973d6a FXC |
9859 | |
9860 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 9861 | #define HAVE_CEIL 1 |
ae973d6a FXC |
9862 | _ACEOF |
9863 | ||
9864 | fi | |
9865 | ||
1409cd0b FXC |
9866 | echo "$as_me:$LINENO: checking for ceill in -lm" >&5 |
9867 | echo $ECHO_N "checking for ceill in -lm... $ECHO_C" >&6 | |
9868 | if test "${ac_cv_lib_m_ceill+set}" = set; then | |
a9e7b9d3 PB |
9869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9870 | else | |
9871 | ac_check_lib_save_LIBS=$LIBS | |
9872 | LIBS="-lm $LIBS" | |
f02d008e JD |
9873 | if test x$gcc_no_link = xyes; then |
9874 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9875 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9876 | { (exit 1); exit 1; }; } | |
9877 | fi | |
a9e7b9d3 PB |
9878 | cat >conftest.$ac_ext <<_ACEOF |
9879 | /* confdefs.h. */ | |
9880 | _ACEOF | |
9881 | cat confdefs.h >>conftest.$ac_ext | |
9882 | cat >>conftest.$ac_ext <<_ACEOF | |
9883 | /* end confdefs.h. */ | |
9884 | ||
9885 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9886 | #ifdef __cplusplus | |
9887 | extern "C" | |
9888 | #endif | |
9889 | /* We use char because int might match the return type of a gcc2 | |
9890 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 9891 | char ceill (); |
a9e7b9d3 PB |
9892 | int |
9893 | main () | |
9894 | { | |
1409cd0b | 9895 | ceill (); |
a9e7b9d3 PB |
9896 | ; |
9897 | return 0; | |
9898 | } | |
9899 | _ACEOF | |
9900 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9901 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9902 | (eval $ac_link) 2>conftest.er1 | |
9903 | ac_status=$? | |
9904 | grep -v '^ *+' conftest.er1 >conftest.err | |
9905 | rm -f conftest.er1 | |
9906 | cat conftest.err >&5 | |
9907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9908 | (exit $ac_status); } && | |
1409cd0b FXC |
9909 | { ac_try='test -z "$ac_c_werror_flag" |
9910 | || test ! -s conftest.err' | |
a9e7b9d3 PB |
9911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9912 | (eval $ac_try) 2>&5 | |
9913 | ac_status=$? | |
9914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9915 | (exit $ac_status); }; } && | |
9916 | { ac_try='test -s conftest$ac_exeext' | |
9917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9918 | (eval $ac_try) 2>&5 | |
9919 | ac_status=$? | |
9920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9921 | (exit $ac_status); }; }; then | |
1409cd0b | 9922 | ac_cv_lib_m_ceill=yes |
a9e7b9d3 PB |
9923 | else |
9924 | echo "$as_me: failed program was:" >&5 | |
9925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9926 | ||
1409cd0b | 9927 | ac_cv_lib_m_ceill=no |
a9e7b9d3 PB |
9928 | fi |
9929 | rm -f conftest.err conftest.$ac_objext \ | |
9930 | conftest$ac_exeext conftest.$ac_ext | |
9931 | LIBS=$ac_check_lib_save_LIBS | |
9932 | fi | |
1409cd0b FXC |
9933 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ceill" >&5 |
9934 | echo "${ECHO_T}$ac_cv_lib_m_ceill" >&6 | |
9935 | if test $ac_cv_lib_m_ceill = yes; then | |
a9e7b9d3 PB |
9936 | |
9937 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 9938 | #define HAVE_CEILL 1 |
a9e7b9d3 PB |
9939 | _ACEOF |
9940 | ||
9941 | fi | |
9942 | ||
1409cd0b FXC |
9943 | echo "$as_me:$LINENO: checking for copysignf in -lm" >&5 |
9944 | echo $ECHO_N "checking for copysignf in -lm... $ECHO_C" >&6 | |
9945 | if test "${ac_cv_lib_m_copysignf+set}" = set; then | |
a9e7b9d3 PB |
9946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9947 | else | |
9948 | ac_check_lib_save_LIBS=$LIBS | |
9949 | LIBS="-lm $LIBS" | |
f02d008e JD |
9950 | if test x$gcc_no_link = xyes; then |
9951 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
9952 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
9953 | { (exit 1); exit 1; }; } | |
9954 | fi | |
a9e7b9d3 PB |
9955 | cat >conftest.$ac_ext <<_ACEOF |
9956 | /* confdefs.h. */ | |
9957 | _ACEOF | |
9958 | cat confdefs.h >>conftest.$ac_ext | |
9959 | cat >>conftest.$ac_ext <<_ACEOF | |
9960 | /* end confdefs.h. */ | |
9961 | ||
9962 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9963 | #ifdef __cplusplus | |
9964 | extern "C" | |
9965 | #endif | |
9966 | /* We use char because int might match the return type of a gcc2 | |
9967 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 9968 | char copysignf (); |
a9e7b9d3 PB |
9969 | int |
9970 | main () | |
9971 | { | |
1409cd0b | 9972 | copysignf (); |
a9e7b9d3 PB |
9973 | ; |
9974 | return 0; | |
9975 | } | |
9976 | _ACEOF | |
9977 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9978 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9979 | (eval $ac_link) 2>conftest.er1 | |
9980 | ac_status=$? | |
9981 | grep -v '^ *+' conftest.er1 >conftest.err | |
9982 | rm -f conftest.er1 | |
9983 | cat conftest.err >&5 | |
9984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9985 | (exit $ac_status); } && | |
1409cd0b FXC |
9986 | { ac_try='test -z "$ac_c_werror_flag" |
9987 | || test ! -s conftest.err' | |
a9e7b9d3 PB |
9988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9989 | (eval $ac_try) 2>&5 | |
9990 | ac_status=$? | |
9991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9992 | (exit $ac_status); }; } && | |
9993 | { ac_try='test -s conftest$ac_exeext' | |
9994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9995 | (eval $ac_try) 2>&5 | |
9996 | ac_status=$? | |
9997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9998 | (exit $ac_status); }; }; then | |
1409cd0b | 9999 | ac_cv_lib_m_copysignf=yes |
a9e7b9d3 PB |
10000 | else |
10001 | echo "$as_me: failed program was:" >&5 | |
10002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10003 | ||
1409cd0b | 10004 | ac_cv_lib_m_copysignf=no |
a9e7b9d3 PB |
10005 | fi |
10006 | rm -f conftest.err conftest.$ac_objext \ | |
10007 | conftest$ac_exeext conftest.$ac_ext | |
10008 | LIBS=$ac_check_lib_save_LIBS | |
10009 | fi | |
1409cd0b FXC |
10010 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignf" >&5 |
10011 | echo "${ECHO_T}$ac_cv_lib_m_copysignf" >&6 | |
10012 | if test $ac_cv_lib_m_copysignf = yes; then | |
a9e7b9d3 PB |
10013 | |
10014 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 10015 | #define HAVE_COPYSIGNF 1 |
453310d8 RS |
10016 | _ACEOF |
10017 | ||
10018 | fi | |
10019 | ||
1409cd0b FXC |
10020 | echo "$as_me:$LINENO: checking for copysign in -lm" >&5 |
10021 | echo $ECHO_N "checking for copysign in -lm... $ECHO_C" >&6 | |
10022 | if test "${ac_cv_lib_m_copysign+set}" = set; then | |
453310d8 RS |
10023 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10024 | else | |
10025 | ac_check_lib_save_LIBS=$LIBS | |
10026 | LIBS="-lm $LIBS" | |
f02d008e JD |
10027 | if test x$gcc_no_link = xyes; then |
10028 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10029 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10030 | { (exit 1); exit 1; }; } | |
10031 | fi | |
453310d8 RS |
10032 | cat >conftest.$ac_ext <<_ACEOF |
10033 | /* confdefs.h. */ | |
10034 | _ACEOF | |
10035 | cat confdefs.h >>conftest.$ac_ext | |
10036 | cat >>conftest.$ac_ext <<_ACEOF | |
10037 | /* end confdefs.h. */ | |
10038 | ||
10039 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10040 | #ifdef __cplusplus | |
10041 | extern "C" | |
10042 | #endif | |
10043 | /* We use char because int might match the return type of a gcc2 | |
10044 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 10045 | char copysign (); |
453310d8 RS |
10046 | int |
10047 | main () | |
10048 | { | |
1409cd0b | 10049 | copysign (); |
453310d8 RS |
10050 | ; |
10051 | return 0; | |
10052 | } | |
10053 | _ACEOF | |
10054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10056 | (eval $ac_link) 2>conftest.er1 | |
10057 | ac_status=$? | |
10058 | grep -v '^ *+' conftest.er1 >conftest.err | |
10059 | rm -f conftest.er1 | |
10060 | cat conftest.err >&5 | |
10061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10062 | (exit $ac_status); } && | |
1409cd0b FXC |
10063 | { ac_try='test -z "$ac_c_werror_flag" |
10064 | || test ! -s conftest.err' | |
453310d8 RS |
10065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10066 | (eval $ac_try) 2>&5 | |
10067 | ac_status=$? | |
10068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10069 | (exit $ac_status); }; } && | |
10070 | { ac_try='test -s conftest$ac_exeext' | |
10071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10072 | (eval $ac_try) 2>&5 | |
10073 | ac_status=$? | |
10074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10075 | (exit $ac_status); }; }; then | |
1409cd0b | 10076 | ac_cv_lib_m_copysign=yes |
453310d8 RS |
10077 | else |
10078 | echo "$as_me: failed program was:" >&5 | |
10079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10080 | ||
1409cd0b | 10081 | ac_cv_lib_m_copysign=no |
453310d8 RS |
10082 | fi |
10083 | rm -f conftest.err conftest.$ac_objext \ | |
10084 | conftest$ac_exeext conftest.$ac_ext | |
10085 | LIBS=$ac_check_lib_save_LIBS | |
10086 | fi | |
1409cd0b FXC |
10087 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysign" >&5 |
10088 | echo "${ECHO_T}$ac_cv_lib_m_copysign" >&6 | |
10089 | if test $ac_cv_lib_m_copysign = yes; then | |
453310d8 RS |
10090 | |
10091 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 10092 | #define HAVE_COPYSIGN 1 |
453310d8 RS |
10093 | _ACEOF |
10094 | ||
10095 | fi | |
10096 | ||
1409cd0b FXC |
10097 | echo "$as_me:$LINENO: checking for copysignl in -lm" >&5 |
10098 | echo $ECHO_N "checking for copysignl in -lm... $ECHO_C" >&6 | |
10099 | if test "${ac_cv_lib_m_copysignl+set}" = set; then | |
453310d8 RS |
10100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10101 | else | |
10102 | ac_check_lib_save_LIBS=$LIBS | |
10103 | LIBS="-lm $LIBS" | |
f02d008e JD |
10104 | if test x$gcc_no_link = xyes; then |
10105 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10106 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10107 | { (exit 1); exit 1; }; } | |
10108 | fi | |
453310d8 RS |
10109 | cat >conftest.$ac_ext <<_ACEOF |
10110 | /* confdefs.h. */ | |
10111 | _ACEOF | |
10112 | cat confdefs.h >>conftest.$ac_ext | |
10113 | cat >>conftest.$ac_ext <<_ACEOF | |
10114 | /* end confdefs.h. */ | |
10115 | ||
10116 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10117 | #ifdef __cplusplus | |
10118 | extern "C" | |
10119 | #endif | |
10120 | /* We use char because int might match the return type of a gcc2 | |
10121 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 10122 | char copysignl (); |
453310d8 RS |
10123 | int |
10124 | main () | |
10125 | { | |
1409cd0b | 10126 | copysignl (); |
453310d8 RS |
10127 | ; |
10128 | return 0; | |
10129 | } | |
10130 | _ACEOF | |
10131 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10132 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10133 | (eval $ac_link) 2>conftest.er1 | |
10134 | ac_status=$? | |
10135 | grep -v '^ *+' conftest.er1 >conftest.err | |
10136 | rm -f conftest.er1 | |
10137 | cat conftest.err >&5 | |
10138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10139 | (exit $ac_status); } && | |
1409cd0b FXC |
10140 | { ac_try='test -z "$ac_c_werror_flag" |
10141 | || test ! -s conftest.err' | |
453310d8 RS |
10142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10143 | (eval $ac_try) 2>&5 | |
10144 | ac_status=$? | |
10145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10146 | (exit $ac_status); }; } && | |
10147 | { ac_try='test -s conftest$ac_exeext' | |
10148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10149 | (eval $ac_try) 2>&5 | |
10150 | ac_status=$? | |
10151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10152 | (exit $ac_status); }; }; then | |
1409cd0b | 10153 | ac_cv_lib_m_copysignl=yes |
453310d8 RS |
10154 | else |
10155 | echo "$as_me: failed program was:" >&5 | |
10156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10157 | ||
1409cd0b | 10158 | ac_cv_lib_m_copysignl=no |
453310d8 RS |
10159 | fi |
10160 | rm -f conftest.err conftest.$ac_objext \ | |
10161 | conftest$ac_exeext conftest.$ac_ext | |
10162 | LIBS=$ac_check_lib_save_LIBS | |
10163 | fi | |
1409cd0b FXC |
10164 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_copysignl" >&5 |
10165 | echo "${ECHO_T}$ac_cv_lib_m_copysignl" >&6 | |
10166 | if test $ac_cv_lib_m_copysignl = yes; then | |
453310d8 RS |
10167 | |
10168 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 10169 | #define HAVE_COPYSIGNL 1 |
453310d8 RS |
10170 | _ACEOF |
10171 | ||
10172 | fi | |
10173 | ||
1409cd0b FXC |
10174 | echo "$as_me:$LINENO: checking for cosf in -lm" >&5 |
10175 | echo $ECHO_N "checking for cosf in -lm... $ECHO_C" >&6 | |
10176 | if test "${ac_cv_lib_m_cosf+set}" = set; then | |
453310d8 RS |
10177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10178 | else | |
10179 | ac_check_lib_save_LIBS=$LIBS | |
10180 | LIBS="-lm $LIBS" | |
f02d008e JD |
10181 | if test x$gcc_no_link = xyes; then |
10182 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10183 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10184 | { (exit 1); exit 1; }; } | |
10185 | fi | |
453310d8 RS |
10186 | cat >conftest.$ac_ext <<_ACEOF |
10187 | /* confdefs.h. */ | |
10188 | _ACEOF | |
10189 | cat confdefs.h >>conftest.$ac_ext | |
10190 | cat >>conftest.$ac_ext <<_ACEOF | |
10191 | /* end confdefs.h. */ | |
10192 | ||
10193 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10194 | #ifdef __cplusplus | |
10195 | extern "C" | |
10196 | #endif | |
10197 | /* We use char because int might match the return type of a gcc2 | |
10198 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 10199 | char cosf (); |
453310d8 RS |
10200 | int |
10201 | main () | |
10202 | { | |
1409cd0b | 10203 | cosf (); |
453310d8 RS |
10204 | ; |
10205 | return 0; | |
10206 | } | |
10207 | _ACEOF | |
10208 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10209 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10210 | (eval $ac_link) 2>conftest.er1 | |
10211 | ac_status=$? | |
10212 | grep -v '^ *+' conftest.er1 >conftest.err | |
10213 | rm -f conftest.er1 | |
10214 | cat conftest.err >&5 | |
10215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10216 | (exit $ac_status); } && | |
1409cd0b FXC |
10217 | { ac_try='test -z "$ac_c_werror_flag" |
10218 | || test ! -s conftest.err' | |
453310d8 RS |
10219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10220 | (eval $ac_try) 2>&5 | |
10221 | ac_status=$? | |
10222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10223 | (exit $ac_status); }; } && | |
10224 | { ac_try='test -s conftest$ac_exeext' | |
10225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10226 | (eval $ac_try) 2>&5 | |
10227 | ac_status=$? | |
10228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10229 | (exit $ac_status); }; }; then | |
1409cd0b | 10230 | ac_cv_lib_m_cosf=yes |
453310d8 RS |
10231 | else |
10232 | echo "$as_me: failed program was:" >&5 | |
10233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10234 | ||
1409cd0b | 10235 | ac_cv_lib_m_cosf=no |
453310d8 RS |
10236 | fi |
10237 | rm -f conftest.err conftest.$ac_objext \ | |
10238 | conftest$ac_exeext conftest.$ac_ext | |
10239 | LIBS=$ac_check_lib_save_LIBS | |
10240 | fi | |
1409cd0b FXC |
10241 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosf" >&5 |
10242 | echo "${ECHO_T}$ac_cv_lib_m_cosf" >&6 | |
10243 | if test $ac_cv_lib_m_cosf = yes; then | |
453310d8 RS |
10244 | |
10245 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 10246 | #define HAVE_COSF 1 |
a9e7b9d3 PB |
10247 | _ACEOF |
10248 | ||
10249 | fi | |
10250 | ||
1409cd0b FXC |
10251 | echo "$as_me:$LINENO: checking for cos in -lm" >&5 |
10252 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 | |
10253 | if test "${ac_cv_lib_m_cos+set}" = set; then | |
69a2d125 EB |
10254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10255 | else | |
10256 | ac_check_lib_save_LIBS=$LIBS | |
10257 | LIBS="-lm $LIBS" | |
f02d008e JD |
10258 | if test x$gcc_no_link = xyes; then |
10259 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10260 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10261 | { (exit 1); exit 1; }; } | |
10262 | fi | |
69a2d125 EB |
10263 | cat >conftest.$ac_ext <<_ACEOF |
10264 | /* confdefs.h. */ | |
10265 | _ACEOF | |
10266 | cat confdefs.h >>conftest.$ac_ext | |
10267 | cat >>conftest.$ac_ext <<_ACEOF | |
10268 | /* end confdefs.h. */ | |
10269 | ||
10270 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10271 | #ifdef __cplusplus | |
10272 | extern "C" | |
10273 | #endif | |
10274 | /* We use char because int might match the return type of a gcc2 | |
10275 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 10276 | char cos (); |
69a2d125 EB |
10277 | int |
10278 | main () | |
10279 | { | |
1409cd0b | 10280 | cos (); |
69a2d125 EB |
10281 | ; |
10282 | return 0; | |
10283 | } | |
10284 | _ACEOF | |
10285 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10287 | (eval $ac_link) 2>conftest.er1 | |
10288 | ac_status=$? | |
10289 | grep -v '^ *+' conftest.er1 >conftest.err | |
10290 | rm -f conftest.er1 | |
10291 | cat conftest.err >&5 | |
10292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10293 | (exit $ac_status); } && | |
1409cd0b FXC |
10294 | { ac_try='test -z "$ac_c_werror_flag" |
10295 | || test ! -s conftest.err' | |
69a2d125 EB |
10296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10297 | (eval $ac_try) 2>&5 | |
10298 | ac_status=$? | |
10299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10300 | (exit $ac_status); }; } && | |
10301 | { ac_try='test -s conftest$ac_exeext' | |
10302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10303 | (eval $ac_try) 2>&5 | |
10304 | ac_status=$? | |
10305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10306 | (exit $ac_status); }; }; then | |
1409cd0b | 10307 | ac_cv_lib_m_cos=yes |
69a2d125 EB |
10308 | else |
10309 | echo "$as_me: failed program was:" >&5 | |
10310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10311 | ||
1409cd0b | 10312 | ac_cv_lib_m_cos=no |
69a2d125 EB |
10313 | fi |
10314 | rm -f conftest.err conftest.$ac_objext \ | |
10315 | conftest$ac_exeext conftest.$ac_ext | |
10316 | LIBS=$ac_check_lib_save_LIBS | |
10317 | fi | |
1409cd0b FXC |
10318 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 |
10319 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 | |
10320 | if test $ac_cv_lib_m_cos = yes; then | |
69a2d125 EB |
10321 | |
10322 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b FXC |
10323 | #define HAVE_COS 1 |
10324 | _ACEOF | |
10325 | ||
10326 | fi | |
10327 | ||
10328 | echo "$as_me:$LINENO: checking for cosl in -lm" >&5 | |
10329 | echo $ECHO_N "checking for cosl in -lm... $ECHO_C" >&6 | |
10330 | if test "${ac_cv_lib_m_cosl+set}" = set; then | |
10331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10332 | else | |
10333 | ac_check_lib_save_LIBS=$LIBS | |
10334 | LIBS="-lm $LIBS" | |
10335 | if test x$gcc_no_link = xyes; then | |
10336 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10337 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10338 | { (exit 1); exit 1; }; } | |
10339 | fi | |
10340 | cat >conftest.$ac_ext <<_ACEOF | |
10341 | /* confdefs.h. */ | |
10342 | _ACEOF | |
10343 | cat confdefs.h >>conftest.$ac_ext | |
10344 | cat >>conftest.$ac_ext <<_ACEOF | |
10345 | /* end confdefs.h. */ | |
10346 | ||
10347 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10348 | #ifdef __cplusplus | |
10349 | extern "C" | |
10350 | #endif | |
10351 | /* We use char because int might match the return type of a gcc2 | |
10352 | builtin and then its argument prototype would still apply. */ | |
10353 | char cosl (); | |
10354 | int | |
10355 | main () | |
10356 | { | |
10357 | cosl (); | |
10358 | ; | |
10359 | return 0; | |
10360 | } | |
10361 | _ACEOF | |
10362 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10364 | (eval $ac_link) 2>conftest.er1 | |
10365 | ac_status=$? | |
10366 | grep -v '^ *+' conftest.er1 >conftest.err | |
10367 | rm -f conftest.er1 | |
10368 | cat conftest.err >&5 | |
10369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10370 | (exit $ac_status); } && | |
10371 | { ac_try='test -z "$ac_c_werror_flag" | |
10372 | || test ! -s conftest.err' | |
10373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10374 | (eval $ac_try) 2>&5 | |
10375 | ac_status=$? | |
10376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10377 | (exit $ac_status); }; } && | |
10378 | { ac_try='test -s conftest$ac_exeext' | |
10379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10380 | (eval $ac_try) 2>&5 | |
10381 | ac_status=$? | |
10382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10383 | (exit $ac_status); }; }; then | |
10384 | ac_cv_lib_m_cosl=yes | |
10385 | else | |
10386 | echo "$as_me: failed program was:" >&5 | |
10387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10388 | ||
10389 | ac_cv_lib_m_cosl=no | |
10390 | fi | |
10391 | rm -f conftest.err conftest.$ac_objext \ | |
10392 | conftest$ac_exeext conftest.$ac_ext | |
10393 | LIBS=$ac_check_lib_save_LIBS | |
10394 | fi | |
10395 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosl" >&5 | |
10396 | echo "${ECHO_T}$ac_cv_lib_m_cosl" >&6 | |
10397 | if test $ac_cv_lib_m_cosl = yes; then | |
10398 | ||
10399 | cat >>confdefs.h <<\_ACEOF | |
10400 | #define HAVE_COSL 1 | |
10401 | _ACEOF | |
10402 | ||
10403 | fi | |
10404 | ||
10405 | echo "$as_me:$LINENO: checking for ccosf in -lm" >&5 | |
10406 | echo $ECHO_N "checking for ccosf in -lm... $ECHO_C" >&6 | |
10407 | if test "${ac_cv_lib_m_ccosf+set}" = set; then | |
10408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10409 | else | |
10410 | ac_check_lib_save_LIBS=$LIBS | |
10411 | LIBS="-lm $LIBS" | |
10412 | if test x$gcc_no_link = xyes; then | |
10413 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10414 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10415 | { (exit 1); exit 1; }; } | |
10416 | fi | |
10417 | cat >conftest.$ac_ext <<_ACEOF | |
10418 | /* confdefs.h. */ | |
10419 | _ACEOF | |
10420 | cat confdefs.h >>conftest.$ac_ext | |
10421 | cat >>conftest.$ac_ext <<_ACEOF | |
10422 | /* end confdefs.h. */ | |
10423 | ||
10424 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10425 | #ifdef __cplusplus | |
10426 | extern "C" | |
10427 | #endif | |
10428 | /* We use char because int might match the return type of a gcc2 | |
10429 | builtin and then its argument prototype would still apply. */ | |
10430 | char ccosf (); | |
10431 | int | |
10432 | main () | |
10433 | { | |
10434 | ccosf (); | |
10435 | ; | |
10436 | return 0; | |
10437 | } | |
10438 | _ACEOF | |
10439 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10441 | (eval $ac_link) 2>conftest.er1 | |
10442 | ac_status=$? | |
10443 | grep -v '^ *+' conftest.er1 >conftest.err | |
10444 | rm -f conftest.er1 | |
10445 | cat conftest.err >&5 | |
10446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10447 | (exit $ac_status); } && | |
10448 | { ac_try='test -z "$ac_c_werror_flag" | |
10449 | || test ! -s conftest.err' | |
10450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10451 | (eval $ac_try) 2>&5 | |
10452 | ac_status=$? | |
10453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10454 | (exit $ac_status); }; } && | |
10455 | { ac_try='test -s conftest$ac_exeext' | |
10456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10457 | (eval $ac_try) 2>&5 | |
10458 | ac_status=$? | |
10459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10460 | (exit $ac_status); }; }; then | |
10461 | ac_cv_lib_m_ccosf=yes | |
10462 | else | |
10463 | echo "$as_me: failed program was:" >&5 | |
10464 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10465 | ||
10466 | ac_cv_lib_m_ccosf=no | |
10467 | fi | |
10468 | rm -f conftest.err conftest.$ac_objext \ | |
10469 | conftest$ac_exeext conftest.$ac_ext | |
10470 | LIBS=$ac_check_lib_save_LIBS | |
10471 | fi | |
10472 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosf" >&5 | |
10473 | echo "${ECHO_T}$ac_cv_lib_m_ccosf" >&6 | |
10474 | if test $ac_cv_lib_m_ccosf = yes; then | |
10475 | ||
10476 | cat >>confdefs.h <<\_ACEOF | |
10477 | #define HAVE_CCOSF 1 | |
10478 | _ACEOF | |
10479 | ||
10480 | fi | |
10481 | ||
10482 | echo "$as_me:$LINENO: checking for ccos in -lm" >&5 | |
10483 | echo $ECHO_N "checking for ccos in -lm... $ECHO_C" >&6 | |
10484 | if test "${ac_cv_lib_m_ccos+set}" = set; then | |
10485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10486 | else | |
10487 | ac_check_lib_save_LIBS=$LIBS | |
10488 | LIBS="-lm $LIBS" | |
10489 | if test x$gcc_no_link = xyes; then | |
10490 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10491 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10492 | { (exit 1); exit 1; }; } | |
10493 | fi | |
10494 | cat >conftest.$ac_ext <<_ACEOF | |
10495 | /* confdefs.h. */ | |
10496 | _ACEOF | |
10497 | cat confdefs.h >>conftest.$ac_ext | |
10498 | cat >>conftest.$ac_ext <<_ACEOF | |
10499 | /* end confdefs.h. */ | |
10500 | ||
10501 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10502 | #ifdef __cplusplus | |
10503 | extern "C" | |
10504 | #endif | |
10505 | /* We use char because int might match the return type of a gcc2 | |
10506 | builtin and then its argument prototype would still apply. */ | |
10507 | char ccos (); | |
10508 | int | |
10509 | main () | |
10510 | { | |
10511 | ccos (); | |
10512 | ; | |
10513 | return 0; | |
10514 | } | |
10515 | _ACEOF | |
10516 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10518 | (eval $ac_link) 2>conftest.er1 | |
10519 | ac_status=$? | |
10520 | grep -v '^ *+' conftest.er1 >conftest.err | |
10521 | rm -f conftest.er1 | |
10522 | cat conftest.err >&5 | |
10523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10524 | (exit $ac_status); } && | |
10525 | { ac_try='test -z "$ac_c_werror_flag" | |
10526 | || test ! -s conftest.err' | |
10527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10528 | (eval $ac_try) 2>&5 | |
10529 | ac_status=$? | |
10530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10531 | (exit $ac_status); }; } && | |
10532 | { ac_try='test -s conftest$ac_exeext' | |
10533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10534 | (eval $ac_try) 2>&5 | |
10535 | ac_status=$? | |
10536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10537 | (exit $ac_status); }; }; then | |
10538 | ac_cv_lib_m_ccos=yes | |
10539 | else | |
10540 | echo "$as_me: failed program was:" >&5 | |
10541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10542 | ||
10543 | ac_cv_lib_m_ccos=no | |
10544 | fi | |
10545 | rm -f conftest.err conftest.$ac_objext \ | |
10546 | conftest$ac_exeext conftest.$ac_ext | |
10547 | LIBS=$ac_check_lib_save_LIBS | |
10548 | fi | |
10549 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccos" >&5 | |
10550 | echo "${ECHO_T}$ac_cv_lib_m_ccos" >&6 | |
10551 | if test $ac_cv_lib_m_ccos = yes; then | |
10552 | ||
10553 | cat >>confdefs.h <<\_ACEOF | |
10554 | #define HAVE_CCOS 1 | |
10555 | _ACEOF | |
10556 | ||
10557 | fi | |
10558 | ||
10559 | echo "$as_me:$LINENO: checking for ccosl in -lm" >&5 | |
10560 | echo $ECHO_N "checking for ccosl in -lm... $ECHO_C" >&6 | |
10561 | if test "${ac_cv_lib_m_ccosl+set}" = set; then | |
10562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10563 | else | |
10564 | ac_check_lib_save_LIBS=$LIBS | |
10565 | LIBS="-lm $LIBS" | |
10566 | if test x$gcc_no_link = xyes; then | |
10567 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10568 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10569 | { (exit 1); exit 1; }; } | |
10570 | fi | |
10571 | cat >conftest.$ac_ext <<_ACEOF | |
10572 | /* confdefs.h. */ | |
10573 | _ACEOF | |
10574 | cat confdefs.h >>conftest.$ac_ext | |
10575 | cat >>conftest.$ac_ext <<_ACEOF | |
10576 | /* end confdefs.h. */ | |
10577 | ||
10578 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10579 | #ifdef __cplusplus | |
10580 | extern "C" | |
10581 | #endif | |
10582 | /* We use char because int might match the return type of a gcc2 | |
10583 | builtin and then its argument prototype would still apply. */ | |
10584 | char ccosl (); | |
10585 | int | |
10586 | main () | |
10587 | { | |
10588 | ccosl (); | |
10589 | ; | |
10590 | return 0; | |
10591 | } | |
10592 | _ACEOF | |
10593 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10595 | (eval $ac_link) 2>conftest.er1 | |
10596 | ac_status=$? | |
10597 | grep -v '^ *+' conftest.er1 >conftest.err | |
10598 | rm -f conftest.er1 | |
10599 | cat conftest.err >&5 | |
10600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10601 | (exit $ac_status); } && | |
10602 | { ac_try='test -z "$ac_c_werror_flag" | |
10603 | || test ! -s conftest.err' | |
10604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10605 | (eval $ac_try) 2>&5 | |
10606 | ac_status=$? | |
10607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10608 | (exit $ac_status); }; } && | |
10609 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
10615 | ac_cv_lib_m_ccosl=yes | |
10616 | else | |
10617 | echo "$as_me: failed program was:" >&5 | |
10618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10619 | ||
10620 | ac_cv_lib_m_ccosl=no | |
10621 | fi | |
10622 | rm -f conftest.err conftest.$ac_objext \ | |
10623 | conftest$ac_exeext conftest.$ac_ext | |
10624 | LIBS=$ac_check_lib_save_LIBS | |
10625 | fi | |
10626 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosl" >&5 | |
10627 | echo "${ECHO_T}$ac_cv_lib_m_ccosl" >&6 | |
10628 | if test $ac_cv_lib_m_ccosl = yes; then | |
10629 | ||
10630 | cat >>confdefs.h <<\_ACEOF | |
10631 | #define HAVE_CCOSL 1 | |
10632 | _ACEOF | |
10633 | ||
10634 | fi | |
10635 | ||
10636 | echo "$as_me:$LINENO: checking for coshf in -lm" >&5 | |
10637 | echo $ECHO_N "checking for coshf in -lm... $ECHO_C" >&6 | |
10638 | if test "${ac_cv_lib_m_coshf+set}" = set; then | |
10639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10640 | else | |
10641 | ac_check_lib_save_LIBS=$LIBS | |
10642 | LIBS="-lm $LIBS" | |
10643 | if test x$gcc_no_link = xyes; then | |
10644 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10645 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10646 | { (exit 1); exit 1; }; } | |
10647 | fi | |
10648 | cat >conftest.$ac_ext <<_ACEOF | |
10649 | /* confdefs.h. */ | |
10650 | _ACEOF | |
10651 | cat confdefs.h >>conftest.$ac_ext | |
10652 | cat >>conftest.$ac_ext <<_ACEOF | |
10653 | /* end confdefs.h. */ | |
10654 | ||
10655 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10656 | #ifdef __cplusplus | |
10657 | extern "C" | |
10658 | #endif | |
10659 | /* We use char because int might match the return type of a gcc2 | |
10660 | builtin and then its argument prototype would still apply. */ | |
10661 | char coshf (); | |
10662 | int | |
10663 | main () | |
10664 | { | |
10665 | coshf (); | |
10666 | ; | |
10667 | return 0; | |
10668 | } | |
10669 | _ACEOF | |
10670 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10671 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10672 | (eval $ac_link) 2>conftest.er1 | |
10673 | ac_status=$? | |
10674 | grep -v '^ *+' conftest.er1 >conftest.err | |
10675 | rm -f conftest.er1 | |
10676 | cat conftest.err >&5 | |
10677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10678 | (exit $ac_status); } && | |
10679 | { ac_try='test -z "$ac_c_werror_flag" | |
10680 | || test ! -s conftest.err' | |
10681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10682 | (eval $ac_try) 2>&5 | |
10683 | ac_status=$? | |
10684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10685 | (exit $ac_status); }; } && | |
10686 | { ac_try='test -s conftest$ac_exeext' | |
10687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10688 | (eval $ac_try) 2>&5 | |
10689 | ac_status=$? | |
10690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10691 | (exit $ac_status); }; }; then | |
10692 | ac_cv_lib_m_coshf=yes | |
10693 | else | |
10694 | echo "$as_me: failed program was:" >&5 | |
10695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10696 | ||
10697 | ac_cv_lib_m_coshf=no | |
10698 | fi | |
10699 | rm -f conftest.err conftest.$ac_objext \ | |
10700 | conftest$ac_exeext conftest.$ac_ext | |
10701 | LIBS=$ac_check_lib_save_LIBS | |
10702 | fi | |
10703 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshf" >&5 | |
10704 | echo "${ECHO_T}$ac_cv_lib_m_coshf" >&6 | |
10705 | if test $ac_cv_lib_m_coshf = yes; then | |
10706 | ||
10707 | cat >>confdefs.h <<\_ACEOF | |
10708 | #define HAVE_COSHF 1 | |
10709 | _ACEOF | |
10710 | ||
10711 | fi | |
10712 | ||
10713 | echo "$as_me:$LINENO: checking for cosh in -lm" >&5 | |
10714 | echo $ECHO_N "checking for cosh in -lm... $ECHO_C" >&6 | |
10715 | if test "${ac_cv_lib_m_cosh+set}" = set; then | |
10716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10717 | else | |
10718 | ac_check_lib_save_LIBS=$LIBS | |
10719 | LIBS="-lm $LIBS" | |
10720 | if test x$gcc_no_link = xyes; then | |
10721 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10722 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10723 | { (exit 1); exit 1; }; } | |
10724 | fi | |
10725 | cat >conftest.$ac_ext <<_ACEOF | |
10726 | /* confdefs.h. */ | |
10727 | _ACEOF | |
10728 | cat confdefs.h >>conftest.$ac_ext | |
10729 | cat >>conftest.$ac_ext <<_ACEOF | |
10730 | /* end confdefs.h. */ | |
10731 | ||
10732 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10733 | #ifdef __cplusplus | |
10734 | extern "C" | |
10735 | #endif | |
10736 | /* We use char because int might match the return type of a gcc2 | |
10737 | builtin and then its argument prototype would still apply. */ | |
10738 | char cosh (); | |
10739 | int | |
10740 | main () | |
10741 | { | |
10742 | cosh (); | |
10743 | ; | |
10744 | return 0; | |
10745 | } | |
10746 | _ACEOF | |
10747 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10748 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10749 | (eval $ac_link) 2>conftest.er1 | |
10750 | ac_status=$? | |
10751 | grep -v '^ *+' conftest.er1 >conftest.err | |
10752 | rm -f conftest.er1 | |
10753 | cat conftest.err >&5 | |
10754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10755 | (exit $ac_status); } && | |
10756 | { ac_try='test -z "$ac_c_werror_flag" | |
10757 | || test ! -s conftest.err' | |
10758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10759 | (eval $ac_try) 2>&5 | |
10760 | ac_status=$? | |
10761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10762 | (exit $ac_status); }; } && | |
10763 | { ac_try='test -s conftest$ac_exeext' | |
10764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10765 | (eval $ac_try) 2>&5 | |
10766 | ac_status=$? | |
10767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10768 | (exit $ac_status); }; }; then | |
10769 | ac_cv_lib_m_cosh=yes | |
10770 | else | |
10771 | echo "$as_me: failed program was:" >&5 | |
10772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10773 | ||
10774 | ac_cv_lib_m_cosh=no | |
10775 | fi | |
10776 | rm -f conftest.err conftest.$ac_objext \ | |
10777 | conftest$ac_exeext conftest.$ac_ext | |
10778 | LIBS=$ac_check_lib_save_LIBS | |
10779 | fi | |
10780 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cosh" >&5 | |
10781 | echo "${ECHO_T}$ac_cv_lib_m_cosh" >&6 | |
10782 | if test $ac_cv_lib_m_cosh = yes; then | |
10783 | ||
10784 | cat >>confdefs.h <<\_ACEOF | |
10785 | #define HAVE_COSH 1 | |
10786 | _ACEOF | |
10787 | ||
10788 | fi | |
10789 | ||
10790 | echo "$as_me:$LINENO: checking for coshl in -lm" >&5 | |
10791 | echo $ECHO_N "checking for coshl in -lm... $ECHO_C" >&6 | |
10792 | if test "${ac_cv_lib_m_coshl+set}" = set; then | |
10793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10794 | else | |
10795 | ac_check_lib_save_LIBS=$LIBS | |
10796 | LIBS="-lm $LIBS" | |
10797 | if test x$gcc_no_link = xyes; then | |
10798 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10799 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10800 | { (exit 1); exit 1; }; } | |
10801 | fi | |
10802 | cat >conftest.$ac_ext <<_ACEOF | |
10803 | /* confdefs.h. */ | |
10804 | _ACEOF | |
10805 | cat confdefs.h >>conftest.$ac_ext | |
10806 | cat >>conftest.$ac_ext <<_ACEOF | |
10807 | /* end confdefs.h. */ | |
10808 | ||
10809 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10810 | #ifdef __cplusplus | |
10811 | extern "C" | |
10812 | #endif | |
10813 | /* We use char because int might match the return type of a gcc2 | |
10814 | builtin and then its argument prototype would still apply. */ | |
10815 | char coshl (); | |
10816 | int | |
10817 | main () | |
10818 | { | |
10819 | coshl (); | |
10820 | ; | |
10821 | return 0; | |
10822 | } | |
10823 | _ACEOF | |
10824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10826 | (eval $ac_link) 2>conftest.er1 | |
10827 | ac_status=$? | |
10828 | grep -v '^ *+' conftest.er1 >conftest.err | |
10829 | rm -f conftest.er1 | |
10830 | cat conftest.err >&5 | |
10831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10832 | (exit $ac_status); } && | |
10833 | { ac_try='test -z "$ac_c_werror_flag" | |
10834 | || test ! -s conftest.err' | |
10835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10836 | (eval $ac_try) 2>&5 | |
10837 | ac_status=$? | |
10838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10839 | (exit $ac_status); }; } && | |
10840 | { ac_try='test -s conftest$ac_exeext' | |
10841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10842 | (eval $ac_try) 2>&5 | |
10843 | ac_status=$? | |
10844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10845 | (exit $ac_status); }; }; then | |
10846 | ac_cv_lib_m_coshl=yes | |
10847 | else | |
10848 | echo "$as_me: failed program was:" >&5 | |
10849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10850 | ||
10851 | ac_cv_lib_m_coshl=no | |
10852 | fi | |
10853 | rm -f conftest.err conftest.$ac_objext \ | |
10854 | conftest$ac_exeext conftest.$ac_ext | |
10855 | LIBS=$ac_check_lib_save_LIBS | |
10856 | fi | |
10857 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_coshl" >&5 | |
10858 | echo "${ECHO_T}$ac_cv_lib_m_coshl" >&6 | |
10859 | if test $ac_cv_lib_m_coshl = yes; then | |
10860 | ||
10861 | cat >>confdefs.h <<\_ACEOF | |
10862 | #define HAVE_COSHL 1 | |
10863 | _ACEOF | |
10864 | ||
10865 | fi | |
10866 | ||
10867 | echo "$as_me:$LINENO: checking for ccoshf in -lm" >&5 | |
10868 | echo $ECHO_N "checking for ccoshf in -lm... $ECHO_C" >&6 | |
10869 | if test "${ac_cv_lib_m_ccoshf+set}" = set; then | |
10870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10871 | else | |
10872 | ac_check_lib_save_LIBS=$LIBS | |
10873 | LIBS="-lm $LIBS" | |
10874 | if test x$gcc_no_link = xyes; then | |
10875 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10876 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10877 | { (exit 1); exit 1; }; } | |
10878 | fi | |
10879 | cat >conftest.$ac_ext <<_ACEOF | |
10880 | /* confdefs.h. */ | |
10881 | _ACEOF | |
10882 | cat confdefs.h >>conftest.$ac_ext | |
10883 | cat >>conftest.$ac_ext <<_ACEOF | |
10884 | /* end confdefs.h. */ | |
10885 | ||
10886 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10887 | #ifdef __cplusplus | |
10888 | extern "C" | |
10889 | #endif | |
10890 | /* We use char because int might match the return type of a gcc2 | |
10891 | builtin and then its argument prototype would still apply. */ | |
10892 | char ccoshf (); | |
10893 | int | |
10894 | main () | |
10895 | { | |
10896 | ccoshf (); | |
10897 | ; | |
10898 | return 0; | |
10899 | } | |
10900 | _ACEOF | |
10901 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10902 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10903 | (eval $ac_link) 2>conftest.er1 | |
10904 | ac_status=$? | |
10905 | grep -v '^ *+' conftest.er1 >conftest.err | |
10906 | rm -f conftest.er1 | |
10907 | cat conftest.err >&5 | |
10908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10909 | (exit $ac_status); } && | |
10910 | { ac_try='test -z "$ac_c_werror_flag" | |
10911 | || test ! -s conftest.err' | |
10912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10913 | (eval $ac_try) 2>&5 | |
10914 | ac_status=$? | |
10915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10916 | (exit $ac_status); }; } && | |
10917 | { ac_try='test -s conftest$ac_exeext' | |
10918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10919 | (eval $ac_try) 2>&5 | |
10920 | ac_status=$? | |
10921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10922 | (exit $ac_status); }; }; then | |
10923 | ac_cv_lib_m_ccoshf=yes | |
10924 | else | |
10925 | echo "$as_me: failed program was:" >&5 | |
10926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10927 | ||
10928 | ac_cv_lib_m_ccoshf=no | |
10929 | fi | |
10930 | rm -f conftest.err conftest.$ac_objext \ | |
10931 | conftest$ac_exeext conftest.$ac_ext | |
10932 | LIBS=$ac_check_lib_save_LIBS | |
10933 | fi | |
10934 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccoshf" >&5 | |
10935 | echo "${ECHO_T}$ac_cv_lib_m_ccoshf" >&6 | |
10936 | if test $ac_cv_lib_m_ccoshf = yes; then | |
10937 | ||
10938 | cat >>confdefs.h <<\_ACEOF | |
10939 | #define HAVE_CCOSHF 1 | |
10940 | _ACEOF | |
10941 | ||
10942 | fi | |
10943 | ||
10944 | echo "$as_me:$LINENO: checking for ccosh in -lm" >&5 | |
10945 | echo $ECHO_N "checking for ccosh in -lm... $ECHO_C" >&6 | |
10946 | if test "${ac_cv_lib_m_ccosh+set}" = set; then | |
10947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10948 | else | |
10949 | ac_check_lib_save_LIBS=$LIBS | |
10950 | LIBS="-lm $LIBS" | |
10951 | if test x$gcc_no_link = xyes; then | |
10952 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
10953 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
10954 | { (exit 1); exit 1; }; } | |
10955 | fi | |
10956 | cat >conftest.$ac_ext <<_ACEOF | |
10957 | /* confdefs.h. */ | |
10958 | _ACEOF | |
10959 | cat confdefs.h >>conftest.$ac_ext | |
10960 | cat >>conftest.$ac_ext <<_ACEOF | |
10961 | /* end confdefs.h. */ | |
10962 | ||
10963 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10964 | #ifdef __cplusplus | |
10965 | extern "C" | |
10966 | #endif | |
10967 | /* We use char because int might match the return type of a gcc2 | |
10968 | builtin and then its argument prototype would still apply. */ | |
10969 | char ccosh (); | |
10970 | int | |
10971 | main () | |
10972 | { | |
10973 | ccosh (); | |
10974 | ; | |
10975 | return 0; | |
10976 | } | |
10977 | _ACEOF | |
10978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10980 | (eval $ac_link) 2>conftest.er1 | |
10981 | ac_status=$? | |
10982 | grep -v '^ *+' conftest.er1 >conftest.err | |
10983 | rm -f conftest.er1 | |
10984 | cat conftest.err >&5 | |
10985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10986 | (exit $ac_status); } && | |
10987 | { ac_try='test -z "$ac_c_werror_flag" | |
10988 | || test ! -s conftest.err' | |
10989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10990 | (eval $ac_try) 2>&5 | |
10991 | ac_status=$? | |
10992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10993 | (exit $ac_status); }; } && | |
10994 | { ac_try='test -s conftest$ac_exeext' | |
10995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10996 | (eval $ac_try) 2>&5 | |
10997 | ac_status=$? | |
10998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10999 | (exit $ac_status); }; }; then | |
11000 | ac_cv_lib_m_ccosh=yes | |
11001 | else | |
11002 | echo "$as_me: failed program was:" >&5 | |
11003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11004 | ||
11005 | ac_cv_lib_m_ccosh=no | |
11006 | fi | |
11007 | rm -f conftest.err conftest.$ac_objext \ | |
11008 | conftest$ac_exeext conftest.$ac_ext | |
11009 | LIBS=$ac_check_lib_save_LIBS | |
11010 | fi | |
11011 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccosh" >&5 | |
11012 | echo "${ECHO_T}$ac_cv_lib_m_ccosh" >&6 | |
11013 | if test $ac_cv_lib_m_ccosh = yes; then | |
11014 | ||
11015 | cat >>confdefs.h <<\_ACEOF | |
11016 | #define HAVE_CCOSH 1 | |
11017 | _ACEOF | |
11018 | ||
11019 | fi | |
11020 | ||
11021 | echo "$as_me:$LINENO: checking for ccoshl in -lm" >&5 | |
11022 | echo $ECHO_N "checking for ccoshl in -lm... $ECHO_C" >&6 | |
11023 | if test "${ac_cv_lib_m_ccoshl+set}" = set; then | |
11024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11025 | else | |
11026 | ac_check_lib_save_LIBS=$LIBS | |
11027 | LIBS="-lm $LIBS" | |
11028 | if test x$gcc_no_link = xyes; then | |
11029 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11030 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11031 | { (exit 1); exit 1; }; } | |
11032 | fi | |
11033 | cat >conftest.$ac_ext <<_ACEOF | |
11034 | /* confdefs.h. */ | |
11035 | _ACEOF | |
11036 | cat confdefs.h >>conftest.$ac_ext | |
11037 | cat >>conftest.$ac_ext <<_ACEOF | |
11038 | /* end confdefs.h. */ | |
11039 | ||
11040 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11041 | #ifdef __cplusplus | |
11042 | extern "C" | |
11043 | #endif | |
11044 | /* We use char because int might match the return type of a gcc2 | |
11045 | builtin and then its argument prototype would still apply. */ | |
11046 | char ccoshl (); | |
11047 | int | |
11048 | main () | |
11049 | { | |
11050 | ccoshl (); | |
11051 | ; | |
11052 | return 0; | |
11053 | } | |
11054 | _ACEOF | |
11055 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11057 | (eval $ac_link) 2>conftest.er1 | |
11058 | ac_status=$? | |
11059 | grep -v '^ *+' conftest.er1 >conftest.err | |
11060 | rm -f conftest.er1 | |
11061 | cat conftest.err >&5 | |
11062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11063 | (exit $ac_status); } && | |
11064 | { ac_try='test -z "$ac_c_werror_flag" | |
11065 | || test ! -s conftest.err' | |
11066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11067 | (eval $ac_try) 2>&5 | |
11068 | ac_status=$? | |
11069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11070 | (exit $ac_status); }; } && | |
11071 | { ac_try='test -s conftest$ac_exeext' | |
11072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11073 | (eval $ac_try) 2>&5 | |
11074 | ac_status=$? | |
11075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11076 | (exit $ac_status); }; }; then | |
11077 | ac_cv_lib_m_ccoshl=yes | |
11078 | else | |
11079 | echo "$as_me: failed program was:" >&5 | |
11080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11081 | ||
11082 | ac_cv_lib_m_ccoshl=no | |
11083 | fi | |
11084 | rm -f conftest.err conftest.$ac_objext \ | |
11085 | conftest$ac_exeext conftest.$ac_ext | |
11086 | LIBS=$ac_check_lib_save_LIBS | |
11087 | fi | |
11088 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ccoshl" >&5 | |
11089 | echo "${ECHO_T}$ac_cv_lib_m_ccoshl" >&6 | |
11090 | if test $ac_cv_lib_m_ccoshl = yes; then | |
11091 | ||
11092 | cat >>confdefs.h <<\_ACEOF | |
11093 | #define HAVE_CCOSHL 1 | |
11094 | _ACEOF | |
11095 | ||
11096 | fi | |
11097 | ||
11098 | echo "$as_me:$LINENO: checking for expf in -lm" >&5 | |
11099 | echo $ECHO_N "checking for expf in -lm... $ECHO_C" >&6 | |
11100 | if test "${ac_cv_lib_m_expf+set}" = set; then | |
11101 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11102 | else | |
11103 | ac_check_lib_save_LIBS=$LIBS | |
11104 | LIBS="-lm $LIBS" | |
11105 | if test x$gcc_no_link = xyes; then | |
11106 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11107 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11108 | { (exit 1); exit 1; }; } | |
11109 | fi | |
11110 | cat >conftest.$ac_ext <<_ACEOF | |
11111 | /* confdefs.h. */ | |
11112 | _ACEOF | |
11113 | cat confdefs.h >>conftest.$ac_ext | |
11114 | cat >>conftest.$ac_ext <<_ACEOF | |
11115 | /* end confdefs.h. */ | |
11116 | ||
11117 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11118 | #ifdef __cplusplus | |
11119 | extern "C" | |
11120 | #endif | |
11121 | /* We use char because int might match the return type of a gcc2 | |
11122 | builtin and then its argument prototype would still apply. */ | |
11123 | char expf (); | |
11124 | int | |
11125 | main () | |
11126 | { | |
11127 | expf (); | |
11128 | ; | |
11129 | return 0; | |
11130 | } | |
11131 | _ACEOF | |
11132 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11134 | (eval $ac_link) 2>conftest.er1 | |
11135 | ac_status=$? | |
11136 | grep -v '^ *+' conftest.er1 >conftest.err | |
11137 | rm -f conftest.er1 | |
11138 | cat conftest.err >&5 | |
11139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11140 | (exit $ac_status); } && | |
11141 | { ac_try='test -z "$ac_c_werror_flag" | |
11142 | || test ! -s conftest.err' | |
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); }; } && | |
11148 | { ac_try='test -s conftest$ac_exeext' | |
11149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11150 | (eval $ac_try) 2>&5 | |
11151 | ac_status=$? | |
11152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11153 | (exit $ac_status); }; }; then | |
11154 | ac_cv_lib_m_expf=yes | |
11155 | else | |
11156 | echo "$as_me: failed program was:" >&5 | |
11157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11158 | ||
11159 | ac_cv_lib_m_expf=no | |
11160 | fi | |
11161 | rm -f conftest.err conftest.$ac_objext \ | |
11162 | conftest$ac_exeext conftest.$ac_ext | |
11163 | LIBS=$ac_check_lib_save_LIBS | |
11164 | fi | |
11165 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_expf" >&5 | |
11166 | echo "${ECHO_T}$ac_cv_lib_m_expf" >&6 | |
11167 | if test $ac_cv_lib_m_expf = yes; then | |
11168 | ||
11169 | cat >>confdefs.h <<\_ACEOF | |
11170 | #define HAVE_EXPF 1 | |
11171 | _ACEOF | |
11172 | ||
11173 | fi | |
11174 | ||
11175 | echo "$as_me:$LINENO: checking for exp in -lm" >&5 | |
11176 | echo $ECHO_N "checking for exp in -lm... $ECHO_C" >&6 | |
11177 | if test "${ac_cv_lib_m_exp+set}" = set; then | |
11178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11179 | else | |
11180 | ac_check_lib_save_LIBS=$LIBS | |
11181 | LIBS="-lm $LIBS" | |
11182 | if test x$gcc_no_link = xyes; then | |
11183 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11184 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11185 | { (exit 1); exit 1; }; } | |
11186 | fi | |
11187 | cat >conftest.$ac_ext <<_ACEOF | |
11188 | /* confdefs.h. */ | |
11189 | _ACEOF | |
11190 | cat confdefs.h >>conftest.$ac_ext | |
11191 | cat >>conftest.$ac_ext <<_ACEOF | |
11192 | /* end confdefs.h. */ | |
11193 | ||
11194 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11195 | #ifdef __cplusplus | |
11196 | extern "C" | |
11197 | #endif | |
11198 | /* We use char because int might match the return type of a gcc2 | |
11199 | builtin and then its argument prototype would still apply. */ | |
11200 | char exp (); | |
11201 | int | |
11202 | main () | |
11203 | { | |
11204 | exp (); | |
11205 | ; | |
11206 | return 0; | |
11207 | } | |
11208 | _ACEOF | |
11209 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11210 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11211 | (eval $ac_link) 2>conftest.er1 | |
11212 | ac_status=$? | |
11213 | grep -v '^ *+' conftest.er1 >conftest.err | |
11214 | rm -f conftest.er1 | |
11215 | cat conftest.err >&5 | |
11216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11217 | (exit $ac_status); } && | |
11218 | { ac_try='test -z "$ac_c_werror_flag" | |
11219 | || test ! -s conftest.err' | |
11220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11221 | (eval $ac_try) 2>&5 | |
11222 | ac_status=$? | |
11223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11224 | (exit $ac_status); }; } && | |
11225 | { ac_try='test -s conftest$ac_exeext' | |
11226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11227 | (eval $ac_try) 2>&5 | |
11228 | ac_status=$? | |
11229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11230 | (exit $ac_status); }; }; then | |
11231 | ac_cv_lib_m_exp=yes | |
11232 | else | |
11233 | echo "$as_me: failed program was:" >&5 | |
11234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11235 | ||
11236 | ac_cv_lib_m_exp=no | |
11237 | fi | |
11238 | rm -f conftest.err conftest.$ac_objext \ | |
11239 | conftest$ac_exeext conftest.$ac_ext | |
11240 | LIBS=$ac_check_lib_save_LIBS | |
11241 | fi | |
11242 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_exp" >&5 | |
11243 | echo "${ECHO_T}$ac_cv_lib_m_exp" >&6 | |
11244 | if test $ac_cv_lib_m_exp = yes; then | |
11245 | ||
11246 | cat >>confdefs.h <<\_ACEOF | |
11247 | #define HAVE_EXP 1 | |
11248 | _ACEOF | |
11249 | ||
11250 | fi | |
11251 | ||
11252 | echo "$as_me:$LINENO: checking for expl in -lm" >&5 | |
11253 | echo $ECHO_N "checking for expl in -lm... $ECHO_C" >&6 | |
11254 | if test "${ac_cv_lib_m_expl+set}" = set; then | |
11255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11256 | else | |
11257 | ac_check_lib_save_LIBS=$LIBS | |
11258 | LIBS="-lm $LIBS" | |
11259 | if test x$gcc_no_link = xyes; then | |
11260 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11261 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11262 | { (exit 1); exit 1; }; } | |
11263 | fi | |
11264 | cat >conftest.$ac_ext <<_ACEOF | |
11265 | /* confdefs.h. */ | |
11266 | _ACEOF | |
11267 | cat confdefs.h >>conftest.$ac_ext | |
11268 | cat >>conftest.$ac_ext <<_ACEOF | |
11269 | /* end confdefs.h. */ | |
11270 | ||
11271 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11272 | #ifdef __cplusplus | |
11273 | extern "C" | |
11274 | #endif | |
11275 | /* We use char because int might match the return type of a gcc2 | |
11276 | builtin and then its argument prototype would still apply. */ | |
11277 | char expl (); | |
11278 | int | |
11279 | main () | |
11280 | { | |
11281 | expl (); | |
11282 | ; | |
11283 | return 0; | |
11284 | } | |
11285 | _ACEOF | |
11286 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11288 | (eval $ac_link) 2>conftest.er1 | |
11289 | ac_status=$? | |
11290 | grep -v '^ *+' conftest.er1 >conftest.err | |
11291 | rm -f conftest.er1 | |
11292 | cat conftest.err >&5 | |
11293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11294 | (exit $ac_status); } && | |
11295 | { ac_try='test -z "$ac_c_werror_flag" | |
11296 | || test ! -s conftest.err' | |
11297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11298 | (eval $ac_try) 2>&5 | |
11299 | ac_status=$? | |
11300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11301 | (exit $ac_status); }; } && | |
11302 | { ac_try='test -s conftest$ac_exeext' | |
11303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11304 | (eval $ac_try) 2>&5 | |
11305 | ac_status=$? | |
11306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11307 | (exit $ac_status); }; }; then | |
11308 | ac_cv_lib_m_expl=yes | |
11309 | else | |
11310 | echo "$as_me: failed program was:" >&5 | |
11311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11312 | ||
11313 | ac_cv_lib_m_expl=no | |
11314 | fi | |
11315 | rm -f conftest.err conftest.$ac_objext \ | |
11316 | conftest$ac_exeext conftest.$ac_ext | |
11317 | LIBS=$ac_check_lib_save_LIBS | |
11318 | fi | |
11319 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_expl" >&5 | |
11320 | echo "${ECHO_T}$ac_cv_lib_m_expl" >&6 | |
11321 | if test $ac_cv_lib_m_expl = yes; then | |
11322 | ||
11323 | cat >>confdefs.h <<\_ACEOF | |
11324 | #define HAVE_EXPL 1 | |
11325 | _ACEOF | |
11326 | ||
11327 | fi | |
11328 | ||
11329 | echo "$as_me:$LINENO: checking for cexpf in -lm" >&5 | |
11330 | echo $ECHO_N "checking for cexpf in -lm... $ECHO_C" >&6 | |
11331 | if test "${ac_cv_lib_m_cexpf+set}" = set; then | |
11332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11333 | else | |
11334 | ac_check_lib_save_LIBS=$LIBS | |
11335 | LIBS="-lm $LIBS" | |
11336 | if test x$gcc_no_link = xyes; then | |
11337 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11338 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11339 | { (exit 1); exit 1; }; } | |
11340 | fi | |
11341 | cat >conftest.$ac_ext <<_ACEOF | |
11342 | /* confdefs.h. */ | |
11343 | _ACEOF | |
11344 | cat confdefs.h >>conftest.$ac_ext | |
11345 | cat >>conftest.$ac_ext <<_ACEOF | |
11346 | /* end confdefs.h. */ | |
11347 | ||
11348 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11349 | #ifdef __cplusplus | |
11350 | extern "C" | |
11351 | #endif | |
11352 | /* We use char because int might match the return type of a gcc2 | |
11353 | builtin and then its argument prototype would still apply. */ | |
11354 | char cexpf (); | |
11355 | int | |
11356 | main () | |
11357 | { | |
11358 | cexpf (); | |
11359 | ; | |
11360 | return 0; | |
11361 | } | |
11362 | _ACEOF | |
11363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11365 | (eval $ac_link) 2>conftest.er1 | |
11366 | ac_status=$? | |
11367 | grep -v '^ *+' conftest.er1 >conftest.err | |
11368 | rm -f conftest.er1 | |
11369 | cat conftest.err >&5 | |
11370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11371 | (exit $ac_status); } && | |
11372 | { ac_try='test -z "$ac_c_werror_flag" | |
11373 | || test ! -s conftest.err' | |
11374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11375 | (eval $ac_try) 2>&5 | |
11376 | ac_status=$? | |
11377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11378 | (exit $ac_status); }; } && | |
11379 | { ac_try='test -s conftest$ac_exeext' | |
11380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11381 | (eval $ac_try) 2>&5 | |
11382 | ac_status=$? | |
11383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11384 | (exit $ac_status); }; }; then | |
11385 | ac_cv_lib_m_cexpf=yes | |
11386 | else | |
11387 | echo "$as_me: failed program was:" >&5 | |
11388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11389 | ||
11390 | ac_cv_lib_m_cexpf=no | |
11391 | fi | |
11392 | rm -f conftest.err conftest.$ac_objext \ | |
11393 | conftest$ac_exeext conftest.$ac_ext | |
11394 | LIBS=$ac_check_lib_save_LIBS | |
11395 | fi | |
11396 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexpf" >&5 | |
11397 | echo "${ECHO_T}$ac_cv_lib_m_cexpf" >&6 | |
11398 | if test $ac_cv_lib_m_cexpf = yes; then | |
11399 | ||
11400 | cat >>confdefs.h <<\_ACEOF | |
11401 | #define HAVE_CEXPF 1 | |
11402 | _ACEOF | |
11403 | ||
11404 | fi | |
11405 | ||
11406 | echo "$as_me:$LINENO: checking for cexp in -lm" >&5 | |
11407 | echo $ECHO_N "checking for cexp in -lm... $ECHO_C" >&6 | |
11408 | if test "${ac_cv_lib_m_cexp+set}" = set; then | |
11409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11410 | else | |
11411 | ac_check_lib_save_LIBS=$LIBS | |
11412 | LIBS="-lm $LIBS" | |
11413 | if test x$gcc_no_link = xyes; then | |
11414 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11415 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11416 | { (exit 1); exit 1; }; } | |
11417 | fi | |
11418 | cat >conftest.$ac_ext <<_ACEOF | |
11419 | /* confdefs.h. */ | |
11420 | _ACEOF | |
11421 | cat confdefs.h >>conftest.$ac_ext | |
11422 | cat >>conftest.$ac_ext <<_ACEOF | |
11423 | /* end confdefs.h. */ | |
11424 | ||
11425 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11426 | #ifdef __cplusplus | |
11427 | extern "C" | |
11428 | #endif | |
11429 | /* We use char because int might match the return type of a gcc2 | |
11430 | builtin and then its argument prototype would still apply. */ | |
11431 | char cexp (); | |
11432 | int | |
11433 | main () | |
11434 | { | |
11435 | cexp (); | |
11436 | ; | |
11437 | return 0; | |
11438 | } | |
11439 | _ACEOF | |
11440 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11442 | (eval $ac_link) 2>conftest.er1 | |
11443 | ac_status=$? | |
11444 | grep -v '^ *+' conftest.er1 >conftest.err | |
11445 | rm -f conftest.er1 | |
11446 | cat conftest.err >&5 | |
11447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11448 | (exit $ac_status); } && | |
11449 | { ac_try='test -z "$ac_c_werror_flag" | |
11450 | || test ! -s conftest.err' | |
11451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11452 | (eval $ac_try) 2>&5 | |
11453 | ac_status=$? | |
11454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11455 | (exit $ac_status); }; } && | |
11456 | { ac_try='test -s conftest$ac_exeext' | |
11457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11458 | (eval $ac_try) 2>&5 | |
11459 | ac_status=$? | |
11460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11461 | (exit $ac_status); }; }; then | |
11462 | ac_cv_lib_m_cexp=yes | |
11463 | else | |
11464 | echo "$as_me: failed program was:" >&5 | |
11465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11466 | ||
11467 | ac_cv_lib_m_cexp=no | |
11468 | fi | |
11469 | rm -f conftest.err conftest.$ac_objext \ | |
11470 | conftest$ac_exeext conftest.$ac_ext | |
11471 | LIBS=$ac_check_lib_save_LIBS | |
11472 | fi | |
11473 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexp" >&5 | |
11474 | echo "${ECHO_T}$ac_cv_lib_m_cexp" >&6 | |
11475 | if test $ac_cv_lib_m_cexp = yes; then | |
11476 | ||
11477 | cat >>confdefs.h <<\_ACEOF | |
11478 | #define HAVE_CEXP 1 | |
11479 | _ACEOF | |
11480 | ||
11481 | fi | |
11482 | ||
11483 | echo "$as_me:$LINENO: checking for cexpl in -lm" >&5 | |
11484 | echo $ECHO_N "checking for cexpl in -lm... $ECHO_C" >&6 | |
11485 | if test "${ac_cv_lib_m_cexpl+set}" = set; then | |
11486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11487 | else | |
11488 | ac_check_lib_save_LIBS=$LIBS | |
11489 | LIBS="-lm $LIBS" | |
11490 | if test x$gcc_no_link = xyes; then | |
11491 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11492 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11493 | { (exit 1); exit 1; }; } | |
11494 | fi | |
11495 | cat >conftest.$ac_ext <<_ACEOF | |
11496 | /* confdefs.h. */ | |
11497 | _ACEOF | |
11498 | cat confdefs.h >>conftest.$ac_ext | |
11499 | cat >>conftest.$ac_ext <<_ACEOF | |
11500 | /* end confdefs.h. */ | |
11501 | ||
11502 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11503 | #ifdef __cplusplus | |
11504 | extern "C" | |
11505 | #endif | |
11506 | /* We use char because int might match the return type of a gcc2 | |
11507 | builtin and then its argument prototype would still apply. */ | |
11508 | char cexpl (); | |
11509 | int | |
11510 | main () | |
11511 | { | |
11512 | cexpl (); | |
11513 | ; | |
11514 | return 0; | |
11515 | } | |
11516 | _ACEOF | |
11517 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11519 | (eval $ac_link) 2>conftest.er1 | |
11520 | ac_status=$? | |
11521 | grep -v '^ *+' conftest.er1 >conftest.err | |
11522 | rm -f conftest.er1 | |
11523 | cat conftest.err >&5 | |
11524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11525 | (exit $ac_status); } && | |
11526 | { ac_try='test -z "$ac_c_werror_flag" | |
11527 | || test ! -s conftest.err' | |
11528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11529 | (eval $ac_try) 2>&5 | |
11530 | ac_status=$? | |
11531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11532 | (exit $ac_status); }; } && | |
11533 | { ac_try='test -s conftest$ac_exeext' | |
11534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11535 | (eval $ac_try) 2>&5 | |
11536 | ac_status=$? | |
11537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11538 | (exit $ac_status); }; }; then | |
11539 | ac_cv_lib_m_cexpl=yes | |
11540 | else | |
11541 | echo "$as_me: failed program was:" >&5 | |
11542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11543 | ||
11544 | ac_cv_lib_m_cexpl=no | |
11545 | fi | |
11546 | rm -f conftest.err conftest.$ac_objext \ | |
11547 | conftest$ac_exeext conftest.$ac_ext | |
11548 | LIBS=$ac_check_lib_save_LIBS | |
11549 | fi | |
11550 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cexpl" >&5 | |
11551 | echo "${ECHO_T}$ac_cv_lib_m_cexpl" >&6 | |
11552 | if test $ac_cv_lib_m_cexpl = yes; then | |
11553 | ||
11554 | cat >>confdefs.h <<\_ACEOF | |
11555 | #define HAVE_CEXPL 1 | |
11556 | _ACEOF | |
11557 | ||
11558 | fi | |
11559 | ||
11560 | echo "$as_me:$LINENO: checking for fabsf in -lm" >&5 | |
11561 | echo $ECHO_N "checking for fabsf in -lm... $ECHO_C" >&6 | |
11562 | if test "${ac_cv_lib_m_fabsf+set}" = set; then | |
11563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11564 | else | |
11565 | ac_check_lib_save_LIBS=$LIBS | |
11566 | LIBS="-lm $LIBS" | |
11567 | if test x$gcc_no_link = xyes; then | |
11568 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11569 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11570 | { (exit 1); exit 1; }; } | |
11571 | fi | |
11572 | cat >conftest.$ac_ext <<_ACEOF | |
11573 | /* confdefs.h. */ | |
11574 | _ACEOF | |
11575 | cat confdefs.h >>conftest.$ac_ext | |
11576 | cat >>conftest.$ac_ext <<_ACEOF | |
11577 | /* end confdefs.h. */ | |
11578 | ||
11579 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11580 | #ifdef __cplusplus | |
11581 | extern "C" | |
11582 | #endif | |
11583 | /* We use char because int might match the return type of a gcc2 | |
11584 | builtin and then its argument prototype would still apply. */ | |
11585 | char fabsf (); | |
11586 | int | |
11587 | main () | |
11588 | { | |
11589 | fabsf (); | |
11590 | ; | |
11591 | return 0; | |
11592 | } | |
11593 | _ACEOF | |
11594 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11596 | (eval $ac_link) 2>conftest.er1 | |
11597 | ac_status=$? | |
11598 | grep -v '^ *+' conftest.er1 >conftest.err | |
11599 | rm -f conftest.er1 | |
11600 | cat conftest.err >&5 | |
11601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11602 | (exit $ac_status); } && | |
11603 | { ac_try='test -z "$ac_c_werror_flag" | |
11604 | || test ! -s conftest.err' | |
11605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11606 | (eval $ac_try) 2>&5 | |
11607 | ac_status=$? | |
11608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11609 | (exit $ac_status); }; } && | |
11610 | { ac_try='test -s conftest$ac_exeext' | |
11611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11612 | (eval $ac_try) 2>&5 | |
11613 | ac_status=$? | |
11614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11615 | (exit $ac_status); }; }; then | |
11616 | ac_cv_lib_m_fabsf=yes | |
11617 | else | |
11618 | echo "$as_me: failed program was:" >&5 | |
11619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11620 | ||
11621 | ac_cv_lib_m_fabsf=no | |
11622 | fi | |
11623 | rm -f conftest.err conftest.$ac_objext \ | |
11624 | conftest$ac_exeext conftest.$ac_ext | |
11625 | LIBS=$ac_check_lib_save_LIBS | |
11626 | fi | |
11627 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsf" >&5 | |
11628 | echo "${ECHO_T}$ac_cv_lib_m_fabsf" >&6 | |
11629 | if test $ac_cv_lib_m_fabsf = yes; then | |
11630 | ||
11631 | cat >>confdefs.h <<\_ACEOF | |
11632 | #define HAVE_FABSF 1 | |
11633 | _ACEOF | |
11634 | ||
11635 | fi | |
11636 | ||
11637 | echo "$as_me:$LINENO: checking for fabs in -lm" >&5 | |
11638 | echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6 | |
11639 | if test "${ac_cv_lib_m_fabs+set}" = set; then | |
11640 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11641 | else | |
11642 | ac_check_lib_save_LIBS=$LIBS | |
11643 | LIBS="-lm $LIBS" | |
11644 | if test x$gcc_no_link = xyes; then | |
11645 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11646 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11647 | { (exit 1); exit 1; }; } | |
11648 | fi | |
11649 | cat >conftest.$ac_ext <<_ACEOF | |
11650 | /* confdefs.h. */ | |
11651 | _ACEOF | |
11652 | cat confdefs.h >>conftest.$ac_ext | |
11653 | cat >>conftest.$ac_ext <<_ACEOF | |
11654 | /* end confdefs.h. */ | |
11655 | ||
11656 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11657 | #ifdef __cplusplus | |
11658 | extern "C" | |
11659 | #endif | |
11660 | /* We use char because int might match the return type of a gcc2 | |
11661 | builtin and then its argument prototype would still apply. */ | |
11662 | char fabs (); | |
11663 | int | |
11664 | main () | |
11665 | { | |
11666 | fabs (); | |
11667 | ; | |
11668 | return 0; | |
11669 | } | |
11670 | _ACEOF | |
11671 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11673 | (eval $ac_link) 2>conftest.er1 | |
11674 | ac_status=$? | |
11675 | grep -v '^ *+' conftest.er1 >conftest.err | |
11676 | rm -f conftest.er1 | |
11677 | cat conftest.err >&5 | |
11678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11679 | (exit $ac_status); } && | |
11680 | { ac_try='test -z "$ac_c_werror_flag" | |
11681 | || test ! -s conftest.err' | |
11682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11683 | (eval $ac_try) 2>&5 | |
11684 | ac_status=$? | |
11685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11686 | (exit $ac_status); }; } && | |
11687 | { ac_try='test -s conftest$ac_exeext' | |
11688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11689 | (eval $ac_try) 2>&5 | |
11690 | ac_status=$? | |
11691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11692 | (exit $ac_status); }; }; then | |
11693 | ac_cv_lib_m_fabs=yes | |
11694 | else | |
11695 | echo "$as_me: failed program was:" >&5 | |
11696 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11697 | ||
11698 | ac_cv_lib_m_fabs=no | |
11699 | fi | |
11700 | rm -f conftest.err conftest.$ac_objext \ | |
11701 | conftest$ac_exeext conftest.$ac_ext | |
11702 | LIBS=$ac_check_lib_save_LIBS | |
11703 | fi | |
11704 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5 | |
11705 | echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6 | |
11706 | if test $ac_cv_lib_m_fabs = yes; then | |
11707 | ||
11708 | cat >>confdefs.h <<\_ACEOF | |
11709 | #define HAVE_FABS 1 | |
11710 | _ACEOF | |
11711 | ||
11712 | fi | |
11713 | ||
11714 | echo "$as_me:$LINENO: checking for fabsl in -lm" >&5 | |
11715 | echo $ECHO_N "checking for fabsl in -lm... $ECHO_C" >&6 | |
11716 | if test "${ac_cv_lib_m_fabsl+set}" = set; then | |
11717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11718 | else | |
11719 | ac_check_lib_save_LIBS=$LIBS | |
11720 | LIBS="-lm $LIBS" | |
11721 | if test x$gcc_no_link = xyes; then | |
11722 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11723 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11724 | { (exit 1); exit 1; }; } | |
11725 | fi | |
11726 | cat >conftest.$ac_ext <<_ACEOF | |
11727 | /* confdefs.h. */ | |
11728 | _ACEOF | |
11729 | cat confdefs.h >>conftest.$ac_ext | |
11730 | cat >>conftest.$ac_ext <<_ACEOF | |
11731 | /* end confdefs.h. */ | |
11732 | ||
11733 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11734 | #ifdef __cplusplus | |
11735 | extern "C" | |
11736 | #endif | |
11737 | /* We use char because int might match the return type of a gcc2 | |
11738 | builtin and then its argument prototype would still apply. */ | |
11739 | char fabsl (); | |
11740 | int | |
11741 | main () | |
11742 | { | |
11743 | fabsl (); | |
11744 | ; | |
11745 | return 0; | |
11746 | } | |
11747 | _ACEOF | |
11748 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11750 | (eval $ac_link) 2>conftest.er1 | |
11751 | ac_status=$? | |
11752 | grep -v '^ *+' conftest.er1 >conftest.err | |
11753 | rm -f conftest.er1 | |
11754 | cat conftest.err >&5 | |
11755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11756 | (exit $ac_status); } && | |
11757 | { ac_try='test -z "$ac_c_werror_flag" | |
11758 | || test ! -s conftest.err' | |
11759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11760 | (eval $ac_try) 2>&5 | |
11761 | ac_status=$? | |
11762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11763 | (exit $ac_status); }; } && | |
11764 | { ac_try='test -s conftest$ac_exeext' | |
11765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11766 | (eval $ac_try) 2>&5 | |
11767 | ac_status=$? | |
11768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11769 | (exit $ac_status); }; }; then | |
11770 | ac_cv_lib_m_fabsl=yes | |
11771 | else | |
11772 | echo "$as_me: failed program was:" >&5 | |
11773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11774 | ||
11775 | ac_cv_lib_m_fabsl=no | |
11776 | fi | |
11777 | rm -f conftest.err conftest.$ac_objext \ | |
11778 | conftest$ac_exeext conftest.$ac_ext | |
11779 | LIBS=$ac_check_lib_save_LIBS | |
11780 | fi | |
11781 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabsl" >&5 | |
11782 | echo "${ECHO_T}$ac_cv_lib_m_fabsl" >&6 | |
11783 | if test $ac_cv_lib_m_fabsl = yes; then | |
11784 | ||
11785 | cat >>confdefs.h <<\_ACEOF | |
11786 | #define HAVE_FABSL 1 | |
11787 | _ACEOF | |
11788 | ||
11789 | fi | |
11790 | ||
11791 | echo "$as_me:$LINENO: checking for cabsf in -lm" >&5 | |
11792 | echo $ECHO_N "checking for cabsf in -lm... $ECHO_C" >&6 | |
11793 | if test "${ac_cv_lib_m_cabsf+set}" = set; then | |
11794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11795 | else | |
11796 | ac_check_lib_save_LIBS=$LIBS | |
11797 | LIBS="-lm $LIBS" | |
11798 | if test x$gcc_no_link = xyes; then | |
11799 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11800 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11801 | { (exit 1); exit 1; }; } | |
11802 | fi | |
11803 | cat >conftest.$ac_ext <<_ACEOF | |
11804 | /* confdefs.h. */ | |
11805 | _ACEOF | |
11806 | cat confdefs.h >>conftest.$ac_ext | |
11807 | cat >>conftest.$ac_ext <<_ACEOF | |
11808 | /* end confdefs.h. */ | |
11809 | ||
11810 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11811 | #ifdef __cplusplus | |
11812 | extern "C" | |
11813 | #endif | |
11814 | /* We use char because int might match the return type of a gcc2 | |
11815 | builtin and then its argument prototype would still apply. */ | |
11816 | char cabsf (); | |
11817 | int | |
11818 | main () | |
11819 | { | |
11820 | cabsf (); | |
11821 | ; | |
11822 | return 0; | |
11823 | } | |
11824 | _ACEOF | |
11825 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11826 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11827 | (eval $ac_link) 2>conftest.er1 | |
11828 | ac_status=$? | |
11829 | grep -v '^ *+' conftest.er1 >conftest.err | |
11830 | rm -f conftest.er1 | |
11831 | cat conftest.err >&5 | |
11832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11833 | (exit $ac_status); } && | |
11834 | { ac_try='test -z "$ac_c_werror_flag" | |
11835 | || test ! -s conftest.err' | |
11836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11837 | (eval $ac_try) 2>&5 | |
11838 | ac_status=$? | |
11839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11840 | (exit $ac_status); }; } && | |
11841 | { ac_try='test -s conftest$ac_exeext' | |
11842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11843 | (eval $ac_try) 2>&5 | |
11844 | ac_status=$? | |
11845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11846 | (exit $ac_status); }; }; then | |
11847 | ac_cv_lib_m_cabsf=yes | |
11848 | else | |
11849 | echo "$as_me: failed program was:" >&5 | |
11850 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11851 | ||
11852 | ac_cv_lib_m_cabsf=no | |
11853 | fi | |
11854 | rm -f conftest.err conftest.$ac_objext \ | |
11855 | conftest$ac_exeext conftest.$ac_ext | |
11856 | LIBS=$ac_check_lib_save_LIBS | |
11857 | fi | |
11858 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabsf" >&5 | |
11859 | echo "${ECHO_T}$ac_cv_lib_m_cabsf" >&6 | |
11860 | if test $ac_cv_lib_m_cabsf = yes; then | |
11861 | ||
11862 | cat >>confdefs.h <<\_ACEOF | |
11863 | #define HAVE_CABSF 1 | |
11864 | _ACEOF | |
11865 | ||
11866 | fi | |
11867 | ||
11868 | echo "$as_me:$LINENO: checking for cabs in -lm" >&5 | |
11869 | echo $ECHO_N "checking for cabs in -lm... $ECHO_C" >&6 | |
11870 | if test "${ac_cv_lib_m_cabs+set}" = set; then | |
11871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11872 | else | |
11873 | ac_check_lib_save_LIBS=$LIBS | |
11874 | LIBS="-lm $LIBS" | |
11875 | if test x$gcc_no_link = xyes; then | |
11876 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11877 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11878 | { (exit 1); exit 1; }; } | |
11879 | fi | |
11880 | cat >conftest.$ac_ext <<_ACEOF | |
11881 | /* confdefs.h. */ | |
11882 | _ACEOF | |
11883 | cat confdefs.h >>conftest.$ac_ext | |
11884 | cat >>conftest.$ac_ext <<_ACEOF | |
11885 | /* end confdefs.h. */ | |
11886 | ||
11887 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11888 | #ifdef __cplusplus | |
11889 | extern "C" | |
11890 | #endif | |
11891 | /* We use char because int might match the return type of a gcc2 | |
11892 | builtin and then its argument prototype would still apply. */ | |
11893 | char cabs (); | |
11894 | int | |
11895 | main () | |
11896 | { | |
11897 | cabs (); | |
11898 | ; | |
11899 | return 0; | |
11900 | } | |
11901 | _ACEOF | |
11902 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11903 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11904 | (eval $ac_link) 2>conftest.er1 | |
11905 | ac_status=$? | |
11906 | grep -v '^ *+' conftest.er1 >conftest.err | |
11907 | rm -f conftest.er1 | |
11908 | cat conftest.err >&5 | |
11909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11910 | (exit $ac_status); } && | |
11911 | { ac_try='test -z "$ac_c_werror_flag" | |
11912 | || test ! -s conftest.err' | |
11913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11914 | (eval $ac_try) 2>&5 | |
11915 | ac_status=$? | |
11916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11917 | (exit $ac_status); }; } && | |
11918 | { ac_try='test -s conftest$ac_exeext' | |
11919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11920 | (eval $ac_try) 2>&5 | |
11921 | ac_status=$? | |
11922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11923 | (exit $ac_status); }; }; then | |
11924 | ac_cv_lib_m_cabs=yes | |
11925 | else | |
11926 | echo "$as_me: failed program was:" >&5 | |
11927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11928 | ||
11929 | ac_cv_lib_m_cabs=no | |
11930 | fi | |
11931 | rm -f conftest.err conftest.$ac_objext \ | |
11932 | conftest$ac_exeext conftest.$ac_ext | |
11933 | LIBS=$ac_check_lib_save_LIBS | |
11934 | fi | |
11935 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabs" >&5 | |
11936 | echo "${ECHO_T}$ac_cv_lib_m_cabs" >&6 | |
11937 | if test $ac_cv_lib_m_cabs = yes; then | |
11938 | ||
11939 | cat >>confdefs.h <<\_ACEOF | |
11940 | #define HAVE_CABS 1 | |
11941 | _ACEOF | |
11942 | ||
11943 | fi | |
11944 | ||
11945 | echo "$as_me:$LINENO: checking for cabsl in -lm" >&5 | |
11946 | echo $ECHO_N "checking for cabsl in -lm... $ECHO_C" >&6 | |
11947 | if test "${ac_cv_lib_m_cabsl+set}" = set; then | |
11948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11949 | else | |
11950 | ac_check_lib_save_LIBS=$LIBS | |
11951 | LIBS="-lm $LIBS" | |
11952 | if test x$gcc_no_link = xyes; then | |
11953 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
11954 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
11955 | { (exit 1); exit 1; }; } | |
11956 | fi | |
11957 | cat >conftest.$ac_ext <<_ACEOF | |
11958 | /* confdefs.h. */ | |
11959 | _ACEOF | |
11960 | cat confdefs.h >>conftest.$ac_ext | |
11961 | cat >>conftest.$ac_ext <<_ACEOF | |
11962 | /* end confdefs.h. */ | |
11963 | ||
11964 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11965 | #ifdef __cplusplus | |
11966 | extern "C" | |
11967 | #endif | |
11968 | /* We use char because int might match the return type of a gcc2 | |
11969 | builtin and then its argument prototype would still apply. */ | |
11970 | char cabsl (); | |
11971 | int | |
11972 | main () | |
11973 | { | |
11974 | cabsl (); | |
11975 | ; | |
11976 | return 0; | |
11977 | } | |
11978 | _ACEOF | |
11979 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11981 | (eval $ac_link) 2>conftest.er1 | |
11982 | ac_status=$? | |
11983 | grep -v '^ *+' conftest.er1 >conftest.err | |
11984 | rm -f conftest.er1 | |
11985 | cat conftest.err >&5 | |
11986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11987 | (exit $ac_status); } && | |
11988 | { ac_try='test -z "$ac_c_werror_flag" | |
11989 | || test ! -s conftest.err' | |
11990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11991 | (eval $ac_try) 2>&5 | |
11992 | ac_status=$? | |
11993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11994 | (exit $ac_status); }; } && | |
11995 | { ac_try='test -s conftest$ac_exeext' | |
11996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11997 | (eval $ac_try) 2>&5 | |
11998 | ac_status=$? | |
11999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12000 | (exit $ac_status); }; }; then | |
12001 | ac_cv_lib_m_cabsl=yes | |
12002 | else | |
12003 | echo "$as_me: failed program was:" >&5 | |
12004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12005 | ||
12006 | ac_cv_lib_m_cabsl=no | |
12007 | fi | |
12008 | rm -f conftest.err conftest.$ac_objext \ | |
12009 | conftest$ac_exeext conftest.$ac_ext | |
12010 | LIBS=$ac_check_lib_save_LIBS | |
12011 | fi | |
12012 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cabsl" >&5 | |
12013 | echo "${ECHO_T}$ac_cv_lib_m_cabsl" >&6 | |
12014 | if test $ac_cv_lib_m_cabsl = yes; then | |
12015 | ||
12016 | cat >>confdefs.h <<\_ACEOF | |
12017 | #define HAVE_CABSL 1 | |
12018 | _ACEOF | |
12019 | ||
12020 | fi | |
12021 | ||
12022 | echo "$as_me:$LINENO: checking for floorf in -lm" >&5 | |
12023 | echo $ECHO_N "checking for floorf in -lm... $ECHO_C" >&6 | |
12024 | if test "${ac_cv_lib_m_floorf+set}" = set; then | |
12025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12026 | else | |
12027 | ac_check_lib_save_LIBS=$LIBS | |
12028 | LIBS="-lm $LIBS" | |
12029 | if test x$gcc_no_link = xyes; then | |
12030 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12031 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12032 | { (exit 1); exit 1; }; } | |
12033 | fi | |
12034 | cat >conftest.$ac_ext <<_ACEOF | |
12035 | /* confdefs.h. */ | |
12036 | _ACEOF | |
12037 | cat confdefs.h >>conftest.$ac_ext | |
12038 | cat >>conftest.$ac_ext <<_ACEOF | |
12039 | /* end confdefs.h. */ | |
12040 | ||
12041 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12042 | #ifdef __cplusplus | |
12043 | extern "C" | |
12044 | #endif | |
12045 | /* We use char because int might match the return type of a gcc2 | |
12046 | builtin and then its argument prototype would still apply. */ | |
12047 | char floorf (); | |
12048 | int | |
12049 | main () | |
12050 | { | |
12051 | floorf (); | |
12052 | ; | |
12053 | return 0; | |
12054 | } | |
12055 | _ACEOF | |
12056 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12057 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12058 | (eval $ac_link) 2>conftest.er1 | |
12059 | ac_status=$? | |
12060 | grep -v '^ *+' conftest.er1 >conftest.err | |
12061 | rm -f conftest.er1 | |
12062 | cat conftest.err >&5 | |
12063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12064 | (exit $ac_status); } && | |
12065 | { ac_try='test -z "$ac_c_werror_flag" | |
12066 | || test ! -s conftest.err' | |
12067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12068 | (eval $ac_try) 2>&5 | |
12069 | ac_status=$? | |
12070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12071 | (exit $ac_status); }; } && | |
12072 | { ac_try='test -s conftest$ac_exeext' | |
12073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12074 | (eval $ac_try) 2>&5 | |
12075 | ac_status=$? | |
12076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12077 | (exit $ac_status); }; }; then | |
12078 | ac_cv_lib_m_floorf=yes | |
12079 | else | |
12080 | echo "$as_me: failed program was:" >&5 | |
12081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12082 | ||
12083 | ac_cv_lib_m_floorf=no | |
12084 | fi | |
12085 | rm -f conftest.err conftest.$ac_objext \ | |
12086 | conftest$ac_exeext conftest.$ac_ext | |
12087 | LIBS=$ac_check_lib_save_LIBS | |
12088 | fi | |
12089 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorf" >&5 | |
12090 | echo "${ECHO_T}$ac_cv_lib_m_floorf" >&6 | |
12091 | if test $ac_cv_lib_m_floorf = yes; then | |
12092 | ||
12093 | cat >>confdefs.h <<\_ACEOF | |
12094 | #define HAVE_FLOORF 1 | |
12095 | _ACEOF | |
12096 | ||
12097 | fi | |
12098 | ||
12099 | echo "$as_me:$LINENO: checking for floor in -lm" >&5 | |
12100 | echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6 | |
12101 | if test "${ac_cv_lib_m_floor+set}" = set; then | |
12102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12103 | else | |
12104 | ac_check_lib_save_LIBS=$LIBS | |
12105 | LIBS="-lm $LIBS" | |
12106 | if test x$gcc_no_link = xyes; then | |
12107 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12108 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12109 | { (exit 1); exit 1; }; } | |
12110 | fi | |
12111 | cat >conftest.$ac_ext <<_ACEOF | |
12112 | /* confdefs.h. */ | |
12113 | _ACEOF | |
12114 | cat confdefs.h >>conftest.$ac_ext | |
12115 | cat >>conftest.$ac_ext <<_ACEOF | |
12116 | /* end confdefs.h. */ | |
12117 | ||
12118 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12119 | #ifdef __cplusplus | |
12120 | extern "C" | |
12121 | #endif | |
12122 | /* We use char because int might match the return type of a gcc2 | |
12123 | builtin and then its argument prototype would still apply. */ | |
12124 | char floor (); | |
12125 | int | |
12126 | main () | |
12127 | { | |
12128 | floor (); | |
12129 | ; | |
12130 | return 0; | |
12131 | } | |
12132 | _ACEOF | |
12133 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12135 | (eval $ac_link) 2>conftest.er1 | |
12136 | ac_status=$? | |
12137 | grep -v '^ *+' conftest.er1 >conftest.err | |
12138 | rm -f conftest.er1 | |
12139 | cat conftest.err >&5 | |
12140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12141 | (exit $ac_status); } && | |
12142 | { ac_try='test -z "$ac_c_werror_flag" | |
12143 | || test ! -s conftest.err' | |
12144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12145 | (eval $ac_try) 2>&5 | |
12146 | ac_status=$? | |
12147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12148 | (exit $ac_status); }; } && | |
12149 | { ac_try='test -s conftest$ac_exeext' | |
12150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12151 | (eval $ac_try) 2>&5 | |
12152 | ac_status=$? | |
12153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12154 | (exit $ac_status); }; }; then | |
12155 | ac_cv_lib_m_floor=yes | |
12156 | else | |
12157 | echo "$as_me: failed program was:" >&5 | |
12158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12159 | ||
12160 | ac_cv_lib_m_floor=no | |
12161 | fi | |
12162 | rm -f conftest.err conftest.$ac_objext \ | |
12163 | conftest$ac_exeext conftest.$ac_ext | |
12164 | LIBS=$ac_check_lib_save_LIBS | |
12165 | fi | |
12166 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5 | |
12167 | echo "${ECHO_T}$ac_cv_lib_m_floor" >&6 | |
12168 | if test $ac_cv_lib_m_floor = yes; then | |
12169 | ||
12170 | cat >>confdefs.h <<\_ACEOF | |
12171 | #define HAVE_FLOOR 1 | |
12172 | _ACEOF | |
12173 | ||
12174 | fi | |
12175 | ||
12176 | echo "$as_me:$LINENO: checking for floorl in -lm" >&5 | |
12177 | echo $ECHO_N "checking for floorl in -lm... $ECHO_C" >&6 | |
12178 | if test "${ac_cv_lib_m_floorl+set}" = set; then | |
12179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12180 | else | |
12181 | ac_check_lib_save_LIBS=$LIBS | |
12182 | LIBS="-lm $LIBS" | |
12183 | if test x$gcc_no_link = xyes; then | |
12184 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12185 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12186 | { (exit 1); exit 1; }; } | |
12187 | fi | |
12188 | cat >conftest.$ac_ext <<_ACEOF | |
12189 | /* confdefs.h. */ | |
12190 | _ACEOF | |
12191 | cat confdefs.h >>conftest.$ac_ext | |
12192 | cat >>conftest.$ac_ext <<_ACEOF | |
12193 | /* end confdefs.h. */ | |
12194 | ||
12195 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12196 | #ifdef __cplusplus | |
12197 | extern "C" | |
12198 | #endif | |
12199 | /* We use char because int might match the return type of a gcc2 | |
12200 | builtin and then its argument prototype would still apply. */ | |
12201 | char floorl (); | |
12202 | int | |
12203 | main () | |
12204 | { | |
12205 | floorl (); | |
12206 | ; | |
12207 | return 0; | |
12208 | } | |
12209 | _ACEOF | |
12210 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12211 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12212 | (eval $ac_link) 2>conftest.er1 | |
12213 | ac_status=$? | |
12214 | grep -v '^ *+' conftest.er1 >conftest.err | |
12215 | rm -f conftest.er1 | |
12216 | cat conftest.err >&5 | |
12217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12218 | (exit $ac_status); } && | |
12219 | { ac_try='test -z "$ac_c_werror_flag" | |
12220 | || test ! -s conftest.err' | |
12221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12222 | (eval $ac_try) 2>&5 | |
12223 | ac_status=$? | |
12224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12225 | (exit $ac_status); }; } && | |
12226 | { ac_try='test -s conftest$ac_exeext' | |
12227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12228 | (eval $ac_try) 2>&5 | |
12229 | ac_status=$? | |
12230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12231 | (exit $ac_status); }; }; then | |
12232 | ac_cv_lib_m_floorl=yes | |
12233 | else | |
12234 | echo "$as_me: failed program was:" >&5 | |
12235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12236 | ||
12237 | ac_cv_lib_m_floorl=no | |
12238 | fi | |
12239 | rm -f conftest.err conftest.$ac_objext \ | |
12240 | conftest$ac_exeext conftest.$ac_ext | |
12241 | LIBS=$ac_check_lib_save_LIBS | |
12242 | fi | |
12243 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_floorl" >&5 | |
12244 | echo "${ECHO_T}$ac_cv_lib_m_floorl" >&6 | |
12245 | if test $ac_cv_lib_m_floorl = yes; then | |
12246 | ||
12247 | cat >>confdefs.h <<\_ACEOF | |
12248 | #define HAVE_FLOORL 1 | |
12249 | _ACEOF | |
12250 | ||
12251 | fi | |
12252 | ||
12253 | echo "$as_me:$LINENO: checking for frexpf in -lm" >&5 | |
12254 | echo $ECHO_N "checking for frexpf in -lm... $ECHO_C" >&6 | |
12255 | if test "${ac_cv_lib_m_frexpf+set}" = set; then | |
12256 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12257 | else | |
12258 | ac_check_lib_save_LIBS=$LIBS | |
12259 | LIBS="-lm $LIBS" | |
12260 | if test x$gcc_no_link = xyes; then | |
12261 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12262 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12263 | { (exit 1); exit 1; }; } | |
12264 | fi | |
12265 | cat >conftest.$ac_ext <<_ACEOF | |
12266 | /* confdefs.h. */ | |
12267 | _ACEOF | |
12268 | cat confdefs.h >>conftest.$ac_ext | |
12269 | cat >>conftest.$ac_ext <<_ACEOF | |
12270 | /* end confdefs.h. */ | |
12271 | ||
12272 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12273 | #ifdef __cplusplus | |
12274 | extern "C" | |
12275 | #endif | |
12276 | /* We use char because int might match the return type of a gcc2 | |
12277 | builtin and then its argument prototype would still apply. */ | |
12278 | char frexpf (); | |
12279 | int | |
12280 | main () | |
12281 | { | |
12282 | frexpf (); | |
12283 | ; | |
12284 | return 0; | |
12285 | } | |
12286 | _ACEOF | |
12287 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12289 | (eval $ac_link) 2>conftest.er1 | |
12290 | ac_status=$? | |
12291 | grep -v '^ *+' conftest.er1 >conftest.err | |
12292 | rm -f conftest.er1 | |
12293 | cat conftest.err >&5 | |
12294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12295 | (exit $ac_status); } && | |
12296 | { ac_try='test -z "$ac_c_werror_flag" | |
12297 | || test ! -s conftest.err' | |
12298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12299 | (eval $ac_try) 2>&5 | |
12300 | ac_status=$? | |
12301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12302 | (exit $ac_status); }; } && | |
12303 | { ac_try='test -s conftest$ac_exeext' | |
12304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12305 | (eval $ac_try) 2>&5 | |
12306 | ac_status=$? | |
12307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12308 | (exit $ac_status); }; }; then | |
12309 | ac_cv_lib_m_frexpf=yes | |
12310 | else | |
12311 | echo "$as_me: failed program was:" >&5 | |
12312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12313 | ||
12314 | ac_cv_lib_m_frexpf=no | |
12315 | fi | |
12316 | rm -f conftest.err conftest.$ac_objext \ | |
12317 | conftest$ac_exeext conftest.$ac_ext | |
12318 | LIBS=$ac_check_lib_save_LIBS | |
12319 | fi | |
12320 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpf" >&5 | |
12321 | echo "${ECHO_T}$ac_cv_lib_m_frexpf" >&6 | |
12322 | if test $ac_cv_lib_m_frexpf = yes; then | |
12323 | ||
12324 | cat >>confdefs.h <<\_ACEOF | |
12325 | #define HAVE_FREXPF 1 | |
12326 | _ACEOF | |
12327 | ||
12328 | fi | |
12329 | ||
12330 | echo "$as_me:$LINENO: checking for frexp in -lm" >&5 | |
12331 | echo $ECHO_N "checking for frexp in -lm... $ECHO_C" >&6 | |
12332 | if test "${ac_cv_lib_m_frexp+set}" = set; then | |
12333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12334 | else | |
12335 | ac_check_lib_save_LIBS=$LIBS | |
12336 | LIBS="-lm $LIBS" | |
12337 | if test x$gcc_no_link = xyes; then | |
12338 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12339 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12340 | { (exit 1); exit 1; }; } | |
12341 | fi | |
12342 | cat >conftest.$ac_ext <<_ACEOF | |
12343 | /* confdefs.h. */ | |
12344 | _ACEOF | |
12345 | cat confdefs.h >>conftest.$ac_ext | |
12346 | cat >>conftest.$ac_ext <<_ACEOF | |
12347 | /* end confdefs.h. */ | |
12348 | ||
12349 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12350 | #ifdef __cplusplus | |
12351 | extern "C" | |
12352 | #endif | |
12353 | /* We use char because int might match the return type of a gcc2 | |
12354 | builtin and then its argument prototype would still apply. */ | |
12355 | char frexp (); | |
12356 | int | |
12357 | main () | |
12358 | { | |
12359 | frexp (); | |
12360 | ; | |
12361 | return 0; | |
12362 | } | |
12363 | _ACEOF | |
12364 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12366 | (eval $ac_link) 2>conftest.er1 | |
12367 | ac_status=$? | |
12368 | grep -v '^ *+' conftest.er1 >conftest.err | |
12369 | rm -f conftest.er1 | |
12370 | cat conftest.err >&5 | |
12371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12372 | (exit $ac_status); } && | |
12373 | { ac_try='test -z "$ac_c_werror_flag" | |
12374 | || test ! -s conftest.err' | |
12375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12376 | (eval $ac_try) 2>&5 | |
12377 | ac_status=$? | |
12378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12379 | (exit $ac_status); }; } && | |
12380 | { ac_try='test -s conftest$ac_exeext' | |
12381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12382 | (eval $ac_try) 2>&5 | |
12383 | ac_status=$? | |
12384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12385 | (exit $ac_status); }; }; then | |
12386 | ac_cv_lib_m_frexp=yes | |
12387 | else | |
12388 | echo "$as_me: failed program was:" >&5 | |
12389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12390 | ||
12391 | ac_cv_lib_m_frexp=no | |
12392 | fi | |
12393 | rm -f conftest.err conftest.$ac_objext \ | |
12394 | conftest$ac_exeext conftest.$ac_ext | |
12395 | LIBS=$ac_check_lib_save_LIBS | |
12396 | fi | |
12397 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexp" >&5 | |
12398 | echo "${ECHO_T}$ac_cv_lib_m_frexp" >&6 | |
12399 | if test $ac_cv_lib_m_frexp = yes; then | |
12400 | ||
12401 | cat >>confdefs.h <<\_ACEOF | |
12402 | #define HAVE_FREXP 1 | |
12403 | _ACEOF | |
12404 | ||
12405 | fi | |
12406 | ||
12407 | echo "$as_me:$LINENO: checking for frexpl in -lm" >&5 | |
12408 | echo $ECHO_N "checking for frexpl in -lm... $ECHO_C" >&6 | |
12409 | if test "${ac_cv_lib_m_frexpl+set}" = set; then | |
12410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12411 | else | |
12412 | ac_check_lib_save_LIBS=$LIBS | |
12413 | LIBS="-lm $LIBS" | |
12414 | if test x$gcc_no_link = xyes; then | |
12415 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12416 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12417 | { (exit 1); exit 1; }; } | |
12418 | fi | |
12419 | cat >conftest.$ac_ext <<_ACEOF | |
12420 | /* confdefs.h. */ | |
12421 | _ACEOF | |
12422 | cat confdefs.h >>conftest.$ac_ext | |
12423 | cat >>conftest.$ac_ext <<_ACEOF | |
12424 | /* end confdefs.h. */ | |
12425 | ||
12426 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12427 | #ifdef __cplusplus | |
12428 | extern "C" | |
12429 | #endif | |
12430 | /* We use char because int might match the return type of a gcc2 | |
12431 | builtin and then its argument prototype would still apply. */ | |
12432 | char frexpl (); | |
12433 | int | |
12434 | main () | |
12435 | { | |
12436 | frexpl (); | |
12437 | ; | |
12438 | return 0; | |
12439 | } | |
12440 | _ACEOF | |
12441 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12443 | (eval $ac_link) 2>conftest.er1 | |
12444 | ac_status=$? | |
12445 | grep -v '^ *+' conftest.er1 >conftest.err | |
12446 | rm -f conftest.er1 | |
12447 | cat conftest.err >&5 | |
12448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12449 | (exit $ac_status); } && | |
12450 | { ac_try='test -z "$ac_c_werror_flag" | |
12451 | || test ! -s conftest.err' | |
12452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12453 | (eval $ac_try) 2>&5 | |
12454 | ac_status=$? | |
12455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12456 | (exit $ac_status); }; } && | |
12457 | { ac_try='test -s conftest$ac_exeext' | |
12458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12459 | (eval $ac_try) 2>&5 | |
12460 | ac_status=$? | |
12461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12462 | (exit $ac_status); }; }; then | |
12463 | ac_cv_lib_m_frexpl=yes | |
12464 | else | |
12465 | echo "$as_me: failed program was:" >&5 | |
12466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12467 | ||
12468 | ac_cv_lib_m_frexpl=no | |
12469 | fi | |
12470 | rm -f conftest.err conftest.$ac_objext \ | |
12471 | conftest$ac_exeext conftest.$ac_ext | |
12472 | LIBS=$ac_check_lib_save_LIBS | |
12473 | fi | |
12474 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_frexpl" >&5 | |
12475 | echo "${ECHO_T}$ac_cv_lib_m_frexpl" >&6 | |
12476 | if test $ac_cv_lib_m_frexpl = yes; then | |
12477 | ||
12478 | cat >>confdefs.h <<\_ACEOF | |
12479 | #define HAVE_FREXPL 1 | |
12480 | _ACEOF | |
12481 | ||
12482 | fi | |
12483 | ||
12484 | echo "$as_me:$LINENO: checking for hypotf in -lm" >&5 | |
12485 | echo $ECHO_N "checking for hypotf in -lm... $ECHO_C" >&6 | |
12486 | if test "${ac_cv_lib_m_hypotf+set}" = set; then | |
12487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12488 | else | |
12489 | ac_check_lib_save_LIBS=$LIBS | |
12490 | LIBS="-lm $LIBS" | |
12491 | if test x$gcc_no_link = xyes; then | |
12492 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12493 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12494 | { (exit 1); exit 1; }; } | |
12495 | fi | |
12496 | cat >conftest.$ac_ext <<_ACEOF | |
12497 | /* confdefs.h. */ | |
12498 | _ACEOF | |
12499 | cat confdefs.h >>conftest.$ac_ext | |
12500 | cat >>conftest.$ac_ext <<_ACEOF | |
12501 | /* end confdefs.h. */ | |
12502 | ||
12503 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12504 | #ifdef __cplusplus | |
12505 | extern "C" | |
12506 | #endif | |
12507 | /* We use char because int might match the return type of a gcc2 | |
12508 | builtin and then its argument prototype would still apply. */ | |
12509 | char hypotf (); | |
12510 | int | |
12511 | main () | |
12512 | { | |
12513 | hypotf (); | |
12514 | ; | |
12515 | return 0; | |
12516 | } | |
12517 | _ACEOF | |
12518 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12520 | (eval $ac_link) 2>conftest.er1 | |
12521 | ac_status=$? | |
12522 | grep -v '^ *+' conftest.er1 >conftest.err | |
12523 | rm -f conftest.er1 | |
12524 | cat conftest.err >&5 | |
12525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12526 | (exit $ac_status); } && | |
12527 | { ac_try='test -z "$ac_c_werror_flag" | |
12528 | || test ! -s conftest.err' | |
12529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12530 | (eval $ac_try) 2>&5 | |
12531 | ac_status=$? | |
12532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12533 | (exit $ac_status); }; } && | |
12534 | { ac_try='test -s conftest$ac_exeext' | |
12535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12536 | (eval $ac_try) 2>&5 | |
12537 | ac_status=$? | |
12538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12539 | (exit $ac_status); }; }; then | |
12540 | ac_cv_lib_m_hypotf=yes | |
12541 | else | |
12542 | echo "$as_me: failed program was:" >&5 | |
12543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12544 | ||
12545 | ac_cv_lib_m_hypotf=no | |
12546 | fi | |
12547 | rm -f conftest.err conftest.$ac_objext \ | |
12548 | conftest$ac_exeext conftest.$ac_ext | |
12549 | LIBS=$ac_check_lib_save_LIBS | |
12550 | fi | |
12551 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotf" >&5 | |
12552 | echo "${ECHO_T}$ac_cv_lib_m_hypotf" >&6 | |
12553 | if test $ac_cv_lib_m_hypotf = yes; then | |
12554 | ||
12555 | cat >>confdefs.h <<\_ACEOF | |
12556 | #define HAVE_HYPOTF 1 | |
12557 | _ACEOF | |
12558 | ||
12559 | fi | |
12560 | ||
12561 | echo "$as_me:$LINENO: checking for hypot in -lm" >&5 | |
12562 | echo $ECHO_N "checking for hypot in -lm... $ECHO_C" >&6 | |
12563 | if test "${ac_cv_lib_m_hypot+set}" = set; then | |
12564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12565 | else | |
12566 | ac_check_lib_save_LIBS=$LIBS | |
12567 | LIBS="-lm $LIBS" | |
12568 | if test x$gcc_no_link = xyes; then | |
12569 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12570 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12571 | { (exit 1); exit 1; }; } | |
12572 | fi | |
12573 | cat >conftest.$ac_ext <<_ACEOF | |
12574 | /* confdefs.h. */ | |
12575 | _ACEOF | |
12576 | cat confdefs.h >>conftest.$ac_ext | |
12577 | cat >>conftest.$ac_ext <<_ACEOF | |
12578 | /* end confdefs.h. */ | |
12579 | ||
12580 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12581 | #ifdef __cplusplus | |
12582 | extern "C" | |
12583 | #endif | |
12584 | /* We use char because int might match the return type of a gcc2 | |
12585 | builtin and then its argument prototype would still apply. */ | |
12586 | char hypot (); | |
12587 | int | |
12588 | main () | |
12589 | { | |
12590 | hypot (); | |
12591 | ; | |
12592 | return 0; | |
12593 | } | |
12594 | _ACEOF | |
12595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12597 | (eval $ac_link) 2>conftest.er1 | |
12598 | ac_status=$? | |
12599 | grep -v '^ *+' conftest.er1 >conftest.err | |
12600 | rm -f conftest.er1 | |
12601 | cat conftest.err >&5 | |
12602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12603 | (exit $ac_status); } && | |
12604 | { ac_try='test -z "$ac_c_werror_flag" | |
12605 | || test ! -s conftest.err' | |
12606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12607 | (eval $ac_try) 2>&5 | |
12608 | ac_status=$? | |
12609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12610 | (exit $ac_status); }; } && | |
12611 | { ac_try='test -s conftest$ac_exeext' | |
12612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12613 | (eval $ac_try) 2>&5 | |
12614 | ac_status=$? | |
12615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12616 | (exit $ac_status); }; }; then | |
12617 | ac_cv_lib_m_hypot=yes | |
12618 | else | |
12619 | echo "$as_me: failed program was:" >&5 | |
12620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12621 | ||
12622 | ac_cv_lib_m_hypot=no | |
12623 | fi | |
12624 | rm -f conftest.err conftest.$ac_objext \ | |
12625 | conftest$ac_exeext conftest.$ac_ext | |
12626 | LIBS=$ac_check_lib_save_LIBS | |
12627 | fi | |
12628 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypot" >&5 | |
12629 | echo "${ECHO_T}$ac_cv_lib_m_hypot" >&6 | |
12630 | if test $ac_cv_lib_m_hypot = yes; then | |
12631 | ||
12632 | cat >>confdefs.h <<\_ACEOF | |
12633 | #define HAVE_HYPOT 1 | |
12634 | _ACEOF | |
12635 | ||
12636 | fi | |
12637 | ||
12638 | echo "$as_me:$LINENO: checking for hypotl in -lm" >&5 | |
12639 | echo $ECHO_N "checking for hypotl in -lm... $ECHO_C" >&6 | |
12640 | if test "${ac_cv_lib_m_hypotl+set}" = set; then | |
12641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12642 | else | |
12643 | ac_check_lib_save_LIBS=$LIBS | |
12644 | LIBS="-lm $LIBS" | |
12645 | if test x$gcc_no_link = xyes; then | |
12646 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12647 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12648 | { (exit 1); exit 1; }; } | |
12649 | fi | |
12650 | cat >conftest.$ac_ext <<_ACEOF | |
12651 | /* confdefs.h. */ | |
12652 | _ACEOF | |
12653 | cat confdefs.h >>conftest.$ac_ext | |
12654 | cat >>conftest.$ac_ext <<_ACEOF | |
12655 | /* end confdefs.h. */ | |
12656 | ||
12657 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12658 | #ifdef __cplusplus | |
12659 | extern "C" | |
12660 | #endif | |
12661 | /* We use char because int might match the return type of a gcc2 | |
12662 | builtin and then its argument prototype would still apply. */ | |
12663 | char hypotl (); | |
12664 | int | |
12665 | main () | |
12666 | { | |
12667 | hypotl (); | |
12668 | ; | |
12669 | return 0; | |
12670 | } | |
12671 | _ACEOF | |
12672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12674 | (eval $ac_link) 2>conftest.er1 | |
12675 | ac_status=$? | |
12676 | grep -v '^ *+' conftest.er1 >conftest.err | |
12677 | rm -f conftest.er1 | |
12678 | cat conftest.err >&5 | |
12679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12680 | (exit $ac_status); } && | |
12681 | { ac_try='test -z "$ac_c_werror_flag" | |
12682 | || test ! -s conftest.err' | |
12683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12684 | (eval $ac_try) 2>&5 | |
12685 | ac_status=$? | |
12686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12687 | (exit $ac_status); }; } && | |
12688 | { ac_try='test -s conftest$ac_exeext' | |
12689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12690 | (eval $ac_try) 2>&5 | |
12691 | ac_status=$? | |
12692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12693 | (exit $ac_status); }; }; then | |
12694 | ac_cv_lib_m_hypotl=yes | |
12695 | else | |
12696 | echo "$as_me: failed program was:" >&5 | |
12697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12698 | ||
12699 | ac_cv_lib_m_hypotl=no | |
12700 | fi | |
12701 | rm -f conftest.err conftest.$ac_objext \ | |
12702 | conftest$ac_exeext conftest.$ac_ext | |
12703 | LIBS=$ac_check_lib_save_LIBS | |
12704 | fi | |
12705 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_hypotl" >&5 | |
12706 | echo "${ECHO_T}$ac_cv_lib_m_hypotl" >&6 | |
12707 | if test $ac_cv_lib_m_hypotl = yes; then | |
12708 | ||
12709 | cat >>confdefs.h <<\_ACEOF | |
12710 | #define HAVE_HYPOTL 1 | |
12711 | _ACEOF | |
12712 | ||
12713 | fi | |
12714 | ||
12715 | echo "$as_me:$LINENO: checking for logf in -lm" >&5 | |
12716 | echo $ECHO_N "checking for logf in -lm... $ECHO_C" >&6 | |
12717 | if test "${ac_cv_lib_m_logf+set}" = set; then | |
12718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12719 | else | |
12720 | ac_check_lib_save_LIBS=$LIBS | |
12721 | LIBS="-lm $LIBS" | |
12722 | if test x$gcc_no_link = xyes; then | |
12723 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12724 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12725 | { (exit 1); exit 1; }; } | |
12726 | fi | |
12727 | cat >conftest.$ac_ext <<_ACEOF | |
12728 | /* confdefs.h. */ | |
12729 | _ACEOF | |
12730 | cat confdefs.h >>conftest.$ac_ext | |
12731 | cat >>conftest.$ac_ext <<_ACEOF | |
12732 | /* end confdefs.h. */ | |
12733 | ||
12734 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12735 | #ifdef __cplusplus | |
12736 | extern "C" | |
12737 | #endif | |
12738 | /* We use char because int might match the return type of a gcc2 | |
12739 | builtin and then its argument prototype would still apply. */ | |
12740 | char logf (); | |
12741 | int | |
12742 | main () | |
12743 | { | |
12744 | logf (); | |
12745 | ; | |
12746 | return 0; | |
12747 | } | |
12748 | _ACEOF | |
12749 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12751 | (eval $ac_link) 2>conftest.er1 | |
12752 | ac_status=$? | |
12753 | grep -v '^ *+' conftest.er1 >conftest.err | |
12754 | rm -f conftest.er1 | |
12755 | cat conftest.err >&5 | |
12756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12757 | (exit $ac_status); } && | |
12758 | { ac_try='test -z "$ac_c_werror_flag" | |
12759 | || test ! -s conftest.err' | |
12760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12761 | (eval $ac_try) 2>&5 | |
12762 | ac_status=$? | |
12763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12764 | (exit $ac_status); }; } && | |
12765 | { ac_try='test -s conftest$ac_exeext' | |
12766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12767 | (eval $ac_try) 2>&5 | |
12768 | ac_status=$? | |
12769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12770 | (exit $ac_status); }; }; then | |
12771 | ac_cv_lib_m_logf=yes | |
12772 | else | |
12773 | echo "$as_me: failed program was:" >&5 | |
12774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12775 | ||
12776 | ac_cv_lib_m_logf=no | |
12777 | fi | |
12778 | rm -f conftest.err conftest.$ac_objext \ | |
12779 | conftest$ac_exeext conftest.$ac_ext | |
12780 | LIBS=$ac_check_lib_save_LIBS | |
12781 | fi | |
12782 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_logf" >&5 | |
12783 | echo "${ECHO_T}$ac_cv_lib_m_logf" >&6 | |
12784 | if test $ac_cv_lib_m_logf = yes; then | |
12785 | ||
12786 | cat >>confdefs.h <<\_ACEOF | |
12787 | #define HAVE_LOGF 1 | |
12788 | _ACEOF | |
12789 | ||
12790 | fi | |
12791 | ||
12792 | echo "$as_me:$LINENO: checking for log in -lm" >&5 | |
12793 | echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6 | |
12794 | if test "${ac_cv_lib_m_log+set}" = set; then | |
12795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12796 | else | |
12797 | ac_check_lib_save_LIBS=$LIBS | |
12798 | LIBS="-lm $LIBS" | |
12799 | if test x$gcc_no_link = xyes; then | |
12800 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12801 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12802 | { (exit 1); exit 1; }; } | |
12803 | fi | |
12804 | cat >conftest.$ac_ext <<_ACEOF | |
12805 | /* confdefs.h. */ | |
12806 | _ACEOF | |
12807 | cat confdefs.h >>conftest.$ac_ext | |
12808 | cat >>conftest.$ac_ext <<_ACEOF | |
12809 | /* end confdefs.h. */ | |
12810 | ||
12811 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12812 | #ifdef __cplusplus | |
12813 | extern "C" | |
12814 | #endif | |
12815 | /* We use char because int might match the return type of a gcc2 | |
12816 | builtin and then its argument prototype would still apply. */ | |
12817 | char log (); | |
12818 | int | |
12819 | main () | |
12820 | { | |
12821 | log (); | |
12822 | ; | |
12823 | return 0; | |
12824 | } | |
12825 | _ACEOF | |
12826 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12827 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12828 | (eval $ac_link) 2>conftest.er1 | |
12829 | ac_status=$? | |
12830 | grep -v '^ *+' conftest.er1 >conftest.err | |
12831 | rm -f conftest.er1 | |
12832 | cat conftest.err >&5 | |
12833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12834 | (exit $ac_status); } && | |
12835 | { ac_try='test -z "$ac_c_werror_flag" | |
12836 | || test ! -s conftest.err' | |
12837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12838 | (eval $ac_try) 2>&5 | |
12839 | ac_status=$? | |
12840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12841 | (exit $ac_status); }; } && | |
12842 | { ac_try='test -s conftest$ac_exeext' | |
12843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12844 | (eval $ac_try) 2>&5 | |
12845 | ac_status=$? | |
12846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12847 | (exit $ac_status); }; }; then | |
12848 | ac_cv_lib_m_log=yes | |
12849 | else | |
12850 | echo "$as_me: failed program was:" >&5 | |
12851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12852 | ||
12853 | ac_cv_lib_m_log=no | |
12854 | fi | |
12855 | rm -f conftest.err conftest.$ac_objext \ | |
12856 | conftest$ac_exeext conftest.$ac_ext | |
12857 | LIBS=$ac_check_lib_save_LIBS | |
12858 | fi | |
12859 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5 | |
12860 | echo "${ECHO_T}$ac_cv_lib_m_log" >&6 | |
12861 | if test $ac_cv_lib_m_log = yes; then | |
12862 | ||
12863 | cat >>confdefs.h <<\_ACEOF | |
12864 | #define HAVE_LOG 1 | |
12865 | _ACEOF | |
12866 | ||
12867 | fi | |
12868 | ||
12869 | echo "$as_me:$LINENO: checking for logl in -lm" >&5 | |
12870 | echo $ECHO_N "checking for logl in -lm... $ECHO_C" >&6 | |
12871 | if test "${ac_cv_lib_m_logl+set}" = set; then | |
12872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12873 | else | |
12874 | ac_check_lib_save_LIBS=$LIBS | |
12875 | LIBS="-lm $LIBS" | |
12876 | if test x$gcc_no_link = xyes; then | |
12877 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12878 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12879 | { (exit 1); exit 1; }; } | |
12880 | fi | |
12881 | cat >conftest.$ac_ext <<_ACEOF | |
12882 | /* confdefs.h. */ | |
12883 | _ACEOF | |
12884 | cat confdefs.h >>conftest.$ac_ext | |
12885 | cat >>conftest.$ac_ext <<_ACEOF | |
12886 | /* end confdefs.h. */ | |
12887 | ||
12888 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12889 | #ifdef __cplusplus | |
12890 | extern "C" | |
12891 | #endif | |
12892 | /* We use char because int might match the return type of a gcc2 | |
12893 | builtin and then its argument prototype would still apply. */ | |
12894 | char logl (); | |
12895 | int | |
12896 | main () | |
12897 | { | |
12898 | logl (); | |
12899 | ; | |
12900 | return 0; | |
12901 | } | |
12902 | _ACEOF | |
12903 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12905 | (eval $ac_link) 2>conftest.er1 | |
12906 | ac_status=$? | |
12907 | grep -v '^ *+' conftest.er1 >conftest.err | |
12908 | rm -f conftest.er1 | |
12909 | cat conftest.err >&5 | |
12910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12911 | (exit $ac_status); } && | |
12912 | { ac_try='test -z "$ac_c_werror_flag" | |
12913 | || test ! -s conftest.err' | |
12914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12915 | (eval $ac_try) 2>&5 | |
12916 | ac_status=$? | |
12917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12918 | (exit $ac_status); }; } && | |
12919 | { ac_try='test -s conftest$ac_exeext' | |
12920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12921 | (eval $ac_try) 2>&5 | |
12922 | ac_status=$? | |
12923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12924 | (exit $ac_status); }; }; then | |
12925 | ac_cv_lib_m_logl=yes | |
12926 | else | |
12927 | echo "$as_me: failed program was:" >&5 | |
12928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12929 | ||
12930 | ac_cv_lib_m_logl=no | |
12931 | fi | |
12932 | rm -f conftest.err conftest.$ac_objext \ | |
12933 | conftest$ac_exeext conftest.$ac_ext | |
12934 | LIBS=$ac_check_lib_save_LIBS | |
12935 | fi | |
12936 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_logl" >&5 | |
12937 | echo "${ECHO_T}$ac_cv_lib_m_logl" >&6 | |
12938 | if test $ac_cv_lib_m_logl = yes; then | |
12939 | ||
12940 | cat >>confdefs.h <<\_ACEOF | |
12941 | #define HAVE_LOGL 1 | |
12942 | _ACEOF | |
12943 | ||
12944 | fi | |
12945 | ||
12946 | echo "$as_me:$LINENO: checking for clogf in -lm" >&5 | |
12947 | echo $ECHO_N "checking for clogf in -lm... $ECHO_C" >&6 | |
12948 | if test "${ac_cv_lib_m_clogf+set}" = set; then | |
12949 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12950 | else | |
12951 | ac_check_lib_save_LIBS=$LIBS | |
12952 | LIBS="-lm $LIBS" | |
12953 | if test x$gcc_no_link = xyes; then | |
12954 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
12955 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
12956 | { (exit 1); exit 1; }; } | |
12957 | fi | |
12958 | cat >conftest.$ac_ext <<_ACEOF | |
12959 | /* confdefs.h. */ | |
12960 | _ACEOF | |
12961 | cat confdefs.h >>conftest.$ac_ext | |
12962 | cat >>conftest.$ac_ext <<_ACEOF | |
12963 | /* end confdefs.h. */ | |
12964 | ||
12965 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12966 | #ifdef __cplusplus | |
12967 | extern "C" | |
12968 | #endif | |
12969 | /* We use char because int might match the return type of a gcc2 | |
12970 | builtin and then its argument prototype would still apply. */ | |
12971 | char clogf (); | |
12972 | int | |
12973 | main () | |
12974 | { | |
12975 | clogf (); | |
12976 | ; | |
12977 | return 0; | |
12978 | } | |
12979 | _ACEOF | |
12980 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12981 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12982 | (eval $ac_link) 2>conftest.er1 | |
12983 | ac_status=$? | |
12984 | grep -v '^ *+' conftest.er1 >conftest.err | |
12985 | rm -f conftest.er1 | |
12986 | cat conftest.err >&5 | |
12987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12988 | (exit $ac_status); } && | |
12989 | { ac_try='test -z "$ac_c_werror_flag" | |
12990 | || test ! -s conftest.err' | |
12991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12992 | (eval $ac_try) 2>&5 | |
12993 | ac_status=$? | |
12994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12995 | (exit $ac_status); }; } && | |
12996 | { ac_try='test -s conftest$ac_exeext' | |
12997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12998 | (eval $ac_try) 2>&5 | |
12999 | ac_status=$? | |
13000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13001 | (exit $ac_status); }; }; then | |
13002 | ac_cv_lib_m_clogf=yes | |
13003 | else | |
13004 | echo "$as_me: failed program was:" >&5 | |
13005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13006 | ||
13007 | ac_cv_lib_m_clogf=no | |
13008 | fi | |
13009 | rm -f conftest.err conftest.$ac_objext \ | |
13010 | conftest$ac_exeext conftest.$ac_ext | |
13011 | LIBS=$ac_check_lib_save_LIBS | |
13012 | fi | |
13013 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clogf" >&5 | |
13014 | echo "${ECHO_T}$ac_cv_lib_m_clogf" >&6 | |
13015 | if test $ac_cv_lib_m_clogf = yes; then | |
13016 | ||
13017 | cat >>confdefs.h <<\_ACEOF | |
13018 | #define HAVE_CLOGF 1 | |
13019 | _ACEOF | |
13020 | ||
13021 | fi | |
13022 | ||
13023 | echo "$as_me:$LINENO: checking for clog in -lm" >&5 | |
13024 | echo $ECHO_N "checking for clog in -lm... $ECHO_C" >&6 | |
13025 | if test "${ac_cv_lib_m_clog+set}" = set; then | |
13026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13027 | else | |
13028 | ac_check_lib_save_LIBS=$LIBS | |
13029 | LIBS="-lm $LIBS" | |
13030 | if test x$gcc_no_link = xyes; then | |
13031 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13032 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13033 | { (exit 1); exit 1; }; } | |
13034 | fi | |
13035 | cat >conftest.$ac_ext <<_ACEOF | |
13036 | /* confdefs.h. */ | |
13037 | _ACEOF | |
13038 | cat confdefs.h >>conftest.$ac_ext | |
13039 | cat >>conftest.$ac_ext <<_ACEOF | |
13040 | /* end confdefs.h. */ | |
13041 | ||
13042 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13043 | #ifdef __cplusplus | |
13044 | extern "C" | |
13045 | #endif | |
13046 | /* We use char because int might match the return type of a gcc2 | |
13047 | builtin and then its argument prototype would still apply. */ | |
13048 | char clog (); | |
13049 | int | |
13050 | main () | |
13051 | { | |
13052 | clog (); | |
13053 | ; | |
13054 | return 0; | |
13055 | } | |
13056 | _ACEOF | |
13057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13059 | (eval $ac_link) 2>conftest.er1 | |
13060 | ac_status=$? | |
13061 | grep -v '^ *+' conftest.er1 >conftest.err | |
13062 | rm -f conftest.er1 | |
13063 | cat conftest.err >&5 | |
13064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13065 | (exit $ac_status); } && | |
13066 | { ac_try='test -z "$ac_c_werror_flag" | |
13067 | || test ! -s conftest.err' | |
13068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13069 | (eval $ac_try) 2>&5 | |
13070 | ac_status=$? | |
13071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13072 | (exit $ac_status); }; } && | |
13073 | { ac_try='test -s conftest$ac_exeext' | |
13074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13075 | (eval $ac_try) 2>&5 | |
13076 | ac_status=$? | |
13077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13078 | (exit $ac_status); }; }; then | |
13079 | ac_cv_lib_m_clog=yes | |
13080 | else | |
13081 | echo "$as_me: failed program was:" >&5 | |
13082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13083 | ||
13084 | ac_cv_lib_m_clog=no | |
13085 | fi | |
13086 | rm -f conftest.err conftest.$ac_objext \ | |
13087 | conftest$ac_exeext conftest.$ac_ext | |
13088 | LIBS=$ac_check_lib_save_LIBS | |
13089 | fi | |
13090 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog" >&5 | |
13091 | echo "${ECHO_T}$ac_cv_lib_m_clog" >&6 | |
13092 | if test $ac_cv_lib_m_clog = yes; then | |
13093 | ||
13094 | cat >>confdefs.h <<\_ACEOF | |
13095 | #define HAVE_CLOG 1 | |
13096 | _ACEOF | |
13097 | ||
13098 | fi | |
13099 | ||
13100 | echo "$as_me:$LINENO: checking for clogl in -lm" >&5 | |
13101 | echo $ECHO_N "checking for clogl in -lm... $ECHO_C" >&6 | |
13102 | if test "${ac_cv_lib_m_clogl+set}" = set; then | |
13103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13104 | else | |
13105 | ac_check_lib_save_LIBS=$LIBS | |
13106 | LIBS="-lm $LIBS" | |
13107 | if test x$gcc_no_link = xyes; then | |
13108 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13109 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13110 | { (exit 1); exit 1; }; } | |
13111 | fi | |
13112 | cat >conftest.$ac_ext <<_ACEOF | |
13113 | /* confdefs.h. */ | |
13114 | _ACEOF | |
13115 | cat confdefs.h >>conftest.$ac_ext | |
13116 | cat >>conftest.$ac_ext <<_ACEOF | |
13117 | /* end confdefs.h. */ | |
13118 | ||
13119 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13120 | #ifdef __cplusplus | |
13121 | extern "C" | |
13122 | #endif | |
13123 | /* We use char because int might match the return type of a gcc2 | |
13124 | builtin and then its argument prototype would still apply. */ | |
13125 | char clogl (); | |
13126 | int | |
13127 | main () | |
13128 | { | |
13129 | clogl (); | |
13130 | ; | |
13131 | return 0; | |
13132 | } | |
13133 | _ACEOF | |
13134 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13135 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13136 | (eval $ac_link) 2>conftest.er1 | |
13137 | ac_status=$? | |
13138 | grep -v '^ *+' conftest.er1 >conftest.err | |
13139 | rm -f conftest.er1 | |
13140 | cat conftest.err >&5 | |
13141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13142 | (exit $ac_status); } && | |
13143 | { ac_try='test -z "$ac_c_werror_flag" | |
13144 | || test ! -s conftest.err' | |
13145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13146 | (eval $ac_try) 2>&5 | |
13147 | ac_status=$? | |
13148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13149 | (exit $ac_status); }; } && | |
13150 | { ac_try='test -s conftest$ac_exeext' | |
13151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13152 | (eval $ac_try) 2>&5 | |
13153 | ac_status=$? | |
13154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13155 | (exit $ac_status); }; }; then | |
13156 | ac_cv_lib_m_clogl=yes | |
13157 | else | |
13158 | echo "$as_me: failed program was:" >&5 | |
13159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13160 | ||
13161 | ac_cv_lib_m_clogl=no | |
13162 | fi | |
13163 | rm -f conftest.err conftest.$ac_objext \ | |
13164 | conftest$ac_exeext conftest.$ac_ext | |
13165 | LIBS=$ac_check_lib_save_LIBS | |
13166 | fi | |
13167 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clogl" >&5 | |
13168 | echo "${ECHO_T}$ac_cv_lib_m_clogl" >&6 | |
13169 | if test $ac_cv_lib_m_clogl = yes; then | |
13170 | ||
13171 | cat >>confdefs.h <<\_ACEOF | |
13172 | #define HAVE_CLOGL 1 | |
13173 | _ACEOF | |
13174 | ||
13175 | fi | |
13176 | ||
13177 | echo "$as_me:$LINENO: checking for log10f in -lm" >&5 | |
13178 | echo $ECHO_N "checking for log10f in -lm... $ECHO_C" >&6 | |
13179 | if test "${ac_cv_lib_m_log10f+set}" = set; then | |
13180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13181 | else | |
13182 | ac_check_lib_save_LIBS=$LIBS | |
13183 | LIBS="-lm $LIBS" | |
13184 | if test x$gcc_no_link = xyes; then | |
13185 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13186 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13187 | { (exit 1); exit 1; }; } | |
13188 | fi | |
13189 | cat >conftest.$ac_ext <<_ACEOF | |
13190 | /* confdefs.h. */ | |
13191 | _ACEOF | |
13192 | cat confdefs.h >>conftest.$ac_ext | |
13193 | cat >>conftest.$ac_ext <<_ACEOF | |
13194 | /* end confdefs.h. */ | |
13195 | ||
13196 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13197 | #ifdef __cplusplus | |
13198 | extern "C" | |
13199 | #endif | |
13200 | /* We use char because int might match the return type of a gcc2 | |
13201 | builtin and then its argument prototype would still apply. */ | |
13202 | char log10f (); | |
13203 | int | |
13204 | main () | |
13205 | { | |
13206 | log10f (); | |
13207 | ; | |
13208 | return 0; | |
13209 | } | |
13210 | _ACEOF | |
13211 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13212 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13213 | (eval $ac_link) 2>conftest.er1 | |
13214 | ac_status=$? | |
13215 | grep -v '^ *+' conftest.er1 >conftest.err | |
13216 | rm -f conftest.er1 | |
13217 | cat conftest.err >&5 | |
13218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13219 | (exit $ac_status); } && | |
13220 | { ac_try='test -z "$ac_c_werror_flag" | |
13221 | || test ! -s conftest.err' | |
13222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13223 | (eval $ac_try) 2>&5 | |
13224 | ac_status=$? | |
13225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13226 | (exit $ac_status); }; } && | |
13227 | { ac_try='test -s conftest$ac_exeext' | |
13228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13229 | (eval $ac_try) 2>&5 | |
13230 | ac_status=$? | |
13231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13232 | (exit $ac_status); }; }; then | |
13233 | ac_cv_lib_m_log10f=yes | |
13234 | else | |
13235 | echo "$as_me: failed program was:" >&5 | |
13236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13237 | ||
13238 | ac_cv_lib_m_log10f=no | |
13239 | fi | |
13240 | rm -f conftest.err conftest.$ac_objext \ | |
13241 | conftest$ac_exeext conftest.$ac_ext | |
13242 | LIBS=$ac_check_lib_save_LIBS | |
13243 | fi | |
13244 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10f" >&5 | |
13245 | echo "${ECHO_T}$ac_cv_lib_m_log10f" >&6 | |
13246 | if test $ac_cv_lib_m_log10f = yes; then | |
13247 | ||
13248 | cat >>confdefs.h <<\_ACEOF | |
13249 | #define HAVE_LOG10F 1 | |
13250 | _ACEOF | |
13251 | ||
13252 | fi | |
13253 | ||
13254 | echo "$as_me:$LINENO: checking for log10 in -lm" >&5 | |
13255 | echo $ECHO_N "checking for log10 in -lm... $ECHO_C" >&6 | |
13256 | if test "${ac_cv_lib_m_log10+set}" = set; then | |
13257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13258 | else | |
13259 | ac_check_lib_save_LIBS=$LIBS | |
13260 | LIBS="-lm $LIBS" | |
13261 | if test x$gcc_no_link = xyes; then | |
13262 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13263 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13264 | { (exit 1); exit 1; }; } | |
13265 | fi | |
13266 | cat >conftest.$ac_ext <<_ACEOF | |
13267 | /* confdefs.h. */ | |
13268 | _ACEOF | |
13269 | cat confdefs.h >>conftest.$ac_ext | |
13270 | cat >>conftest.$ac_ext <<_ACEOF | |
13271 | /* end confdefs.h. */ | |
13272 | ||
13273 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13274 | #ifdef __cplusplus | |
13275 | extern "C" | |
13276 | #endif | |
13277 | /* We use char because int might match the return type of a gcc2 | |
13278 | builtin and then its argument prototype would still apply. */ | |
13279 | char log10 (); | |
13280 | int | |
13281 | main () | |
13282 | { | |
13283 | log10 (); | |
13284 | ; | |
13285 | return 0; | |
13286 | } | |
13287 | _ACEOF | |
13288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13290 | (eval $ac_link) 2>conftest.er1 | |
13291 | ac_status=$? | |
13292 | grep -v '^ *+' conftest.er1 >conftest.err | |
13293 | rm -f conftest.er1 | |
13294 | cat conftest.err >&5 | |
13295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13296 | (exit $ac_status); } && | |
13297 | { ac_try='test -z "$ac_c_werror_flag" | |
13298 | || test ! -s conftest.err' | |
13299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13300 | (eval $ac_try) 2>&5 | |
13301 | ac_status=$? | |
13302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13303 | (exit $ac_status); }; } && | |
13304 | { ac_try='test -s conftest$ac_exeext' | |
13305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13306 | (eval $ac_try) 2>&5 | |
13307 | ac_status=$? | |
13308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13309 | (exit $ac_status); }; }; then | |
13310 | ac_cv_lib_m_log10=yes | |
13311 | else | |
13312 | echo "$as_me: failed program was:" >&5 | |
13313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13314 | ||
13315 | ac_cv_lib_m_log10=no | |
13316 | fi | |
13317 | rm -f conftest.err conftest.$ac_objext \ | |
13318 | conftest$ac_exeext conftest.$ac_ext | |
13319 | LIBS=$ac_check_lib_save_LIBS | |
13320 | fi | |
13321 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10" >&5 | |
13322 | echo "${ECHO_T}$ac_cv_lib_m_log10" >&6 | |
13323 | if test $ac_cv_lib_m_log10 = yes; then | |
13324 | ||
13325 | cat >>confdefs.h <<\_ACEOF | |
13326 | #define HAVE_LOG10 1 | |
13327 | _ACEOF | |
13328 | ||
13329 | fi | |
13330 | ||
13331 | echo "$as_me:$LINENO: checking for log10l in -lm" >&5 | |
13332 | echo $ECHO_N "checking for log10l in -lm... $ECHO_C" >&6 | |
13333 | if test "${ac_cv_lib_m_log10l+set}" = set; then | |
13334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13335 | else | |
13336 | ac_check_lib_save_LIBS=$LIBS | |
13337 | LIBS="-lm $LIBS" | |
13338 | if test x$gcc_no_link = xyes; then | |
13339 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13340 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13341 | { (exit 1); exit 1; }; } | |
13342 | fi | |
13343 | cat >conftest.$ac_ext <<_ACEOF | |
13344 | /* confdefs.h. */ | |
13345 | _ACEOF | |
13346 | cat confdefs.h >>conftest.$ac_ext | |
13347 | cat >>conftest.$ac_ext <<_ACEOF | |
13348 | /* end confdefs.h. */ | |
13349 | ||
13350 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13351 | #ifdef __cplusplus | |
13352 | extern "C" | |
13353 | #endif | |
13354 | /* We use char because int might match the return type of a gcc2 | |
13355 | builtin and then its argument prototype would still apply. */ | |
13356 | char log10l (); | |
13357 | int | |
13358 | main () | |
13359 | { | |
13360 | log10l (); | |
13361 | ; | |
13362 | return 0; | |
13363 | } | |
13364 | _ACEOF | |
13365 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13366 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13367 | (eval $ac_link) 2>conftest.er1 | |
13368 | ac_status=$? | |
13369 | grep -v '^ *+' conftest.er1 >conftest.err | |
13370 | rm -f conftest.er1 | |
13371 | cat conftest.err >&5 | |
13372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13373 | (exit $ac_status); } && | |
13374 | { ac_try='test -z "$ac_c_werror_flag" | |
13375 | || test ! -s conftest.err' | |
13376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13377 | (eval $ac_try) 2>&5 | |
13378 | ac_status=$? | |
13379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13380 | (exit $ac_status); }; } && | |
13381 | { ac_try='test -s conftest$ac_exeext' | |
13382 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13383 | (eval $ac_try) 2>&5 | |
13384 | ac_status=$? | |
13385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13386 | (exit $ac_status); }; }; then | |
13387 | ac_cv_lib_m_log10l=yes | |
13388 | else | |
13389 | echo "$as_me: failed program was:" >&5 | |
13390 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13391 | ||
13392 | ac_cv_lib_m_log10l=no | |
13393 | fi | |
13394 | rm -f conftest.err conftest.$ac_objext \ | |
13395 | conftest$ac_exeext conftest.$ac_ext | |
13396 | LIBS=$ac_check_lib_save_LIBS | |
13397 | fi | |
13398 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_log10l" >&5 | |
13399 | echo "${ECHO_T}$ac_cv_lib_m_log10l" >&6 | |
13400 | if test $ac_cv_lib_m_log10l = yes; then | |
13401 | ||
13402 | cat >>confdefs.h <<\_ACEOF | |
13403 | #define HAVE_LOG10L 1 | |
13404 | _ACEOF | |
13405 | ||
13406 | fi | |
13407 | ||
13408 | echo "$as_me:$LINENO: checking for clog10f in -lm" >&5 | |
13409 | echo $ECHO_N "checking for clog10f in -lm... $ECHO_C" >&6 | |
13410 | if test "${ac_cv_lib_m_clog10f+set}" = set; then | |
13411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13412 | else | |
13413 | ac_check_lib_save_LIBS=$LIBS | |
13414 | LIBS="-lm $LIBS" | |
13415 | if test x$gcc_no_link = xyes; then | |
13416 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13417 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13418 | { (exit 1); exit 1; }; } | |
13419 | fi | |
13420 | cat >conftest.$ac_ext <<_ACEOF | |
13421 | /* confdefs.h. */ | |
13422 | _ACEOF | |
13423 | cat confdefs.h >>conftest.$ac_ext | |
13424 | cat >>conftest.$ac_ext <<_ACEOF | |
13425 | /* end confdefs.h. */ | |
13426 | ||
13427 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13428 | #ifdef __cplusplus | |
13429 | extern "C" | |
13430 | #endif | |
13431 | /* We use char because int might match the return type of a gcc2 | |
13432 | builtin and then its argument prototype would still apply. */ | |
13433 | char clog10f (); | |
13434 | int | |
13435 | main () | |
13436 | { | |
13437 | clog10f (); | |
13438 | ; | |
13439 | return 0; | |
13440 | } | |
13441 | _ACEOF | |
13442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13444 | (eval $ac_link) 2>conftest.er1 | |
13445 | ac_status=$? | |
13446 | grep -v '^ *+' conftest.er1 >conftest.err | |
13447 | rm -f conftest.er1 | |
13448 | cat conftest.err >&5 | |
13449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13450 | (exit $ac_status); } && | |
13451 | { ac_try='test -z "$ac_c_werror_flag" | |
13452 | || test ! -s conftest.err' | |
13453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13454 | (eval $ac_try) 2>&5 | |
13455 | ac_status=$? | |
13456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13457 | (exit $ac_status); }; } && | |
13458 | { ac_try='test -s conftest$ac_exeext' | |
13459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13460 | (eval $ac_try) 2>&5 | |
13461 | ac_status=$? | |
13462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13463 | (exit $ac_status); }; }; then | |
13464 | ac_cv_lib_m_clog10f=yes | |
13465 | else | |
13466 | echo "$as_me: failed program was:" >&5 | |
13467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13468 | ||
13469 | ac_cv_lib_m_clog10f=no | |
13470 | fi | |
13471 | rm -f conftest.err conftest.$ac_objext \ | |
13472 | conftest$ac_exeext conftest.$ac_ext | |
13473 | LIBS=$ac_check_lib_save_LIBS | |
13474 | fi | |
13475 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10f" >&5 | |
13476 | echo "${ECHO_T}$ac_cv_lib_m_clog10f" >&6 | |
13477 | if test $ac_cv_lib_m_clog10f = yes; then | |
13478 | ||
13479 | cat >>confdefs.h <<\_ACEOF | |
13480 | #define HAVE_CLOG10F 1 | |
13481 | _ACEOF | |
13482 | ||
13483 | fi | |
13484 | ||
13485 | echo "$as_me:$LINENO: checking for clog10 in -lm" >&5 | |
13486 | echo $ECHO_N "checking for clog10 in -lm... $ECHO_C" >&6 | |
13487 | if test "${ac_cv_lib_m_clog10+set}" = set; then | |
13488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13489 | else | |
13490 | ac_check_lib_save_LIBS=$LIBS | |
13491 | LIBS="-lm $LIBS" | |
13492 | if test x$gcc_no_link = xyes; then | |
13493 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13494 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13495 | { (exit 1); exit 1; }; } | |
13496 | fi | |
13497 | cat >conftest.$ac_ext <<_ACEOF | |
13498 | /* confdefs.h. */ | |
13499 | _ACEOF | |
13500 | cat confdefs.h >>conftest.$ac_ext | |
13501 | cat >>conftest.$ac_ext <<_ACEOF | |
13502 | /* end confdefs.h. */ | |
13503 | ||
13504 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13505 | #ifdef __cplusplus | |
13506 | extern "C" | |
13507 | #endif | |
13508 | /* We use char because int might match the return type of a gcc2 | |
13509 | builtin and then its argument prototype would still apply. */ | |
13510 | char clog10 (); | |
13511 | int | |
13512 | main () | |
13513 | { | |
13514 | clog10 (); | |
13515 | ; | |
13516 | return 0; | |
13517 | } | |
13518 | _ACEOF | |
13519 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13520 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13521 | (eval $ac_link) 2>conftest.er1 | |
13522 | ac_status=$? | |
13523 | grep -v '^ *+' conftest.er1 >conftest.err | |
13524 | rm -f conftest.er1 | |
13525 | cat conftest.err >&5 | |
13526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13527 | (exit $ac_status); } && | |
13528 | { ac_try='test -z "$ac_c_werror_flag" | |
13529 | || test ! -s conftest.err' | |
13530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13531 | (eval $ac_try) 2>&5 | |
13532 | ac_status=$? | |
13533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13534 | (exit $ac_status); }; } && | |
13535 | { ac_try='test -s conftest$ac_exeext' | |
13536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13537 | (eval $ac_try) 2>&5 | |
13538 | ac_status=$? | |
13539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13540 | (exit $ac_status); }; }; then | |
13541 | ac_cv_lib_m_clog10=yes | |
13542 | else | |
13543 | echo "$as_me: failed program was:" >&5 | |
13544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13545 | ||
13546 | ac_cv_lib_m_clog10=no | |
13547 | fi | |
13548 | rm -f conftest.err conftest.$ac_objext \ | |
13549 | conftest$ac_exeext conftest.$ac_ext | |
13550 | LIBS=$ac_check_lib_save_LIBS | |
13551 | fi | |
13552 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10" >&5 | |
13553 | echo "${ECHO_T}$ac_cv_lib_m_clog10" >&6 | |
13554 | if test $ac_cv_lib_m_clog10 = yes; then | |
13555 | ||
13556 | cat >>confdefs.h <<\_ACEOF | |
13557 | #define HAVE_CLOG10 1 | |
13558 | _ACEOF | |
13559 | ||
13560 | fi | |
13561 | ||
13562 | echo "$as_me:$LINENO: checking for clog10l in -lm" >&5 | |
13563 | echo $ECHO_N "checking for clog10l in -lm... $ECHO_C" >&6 | |
13564 | if test "${ac_cv_lib_m_clog10l+set}" = set; then | |
13565 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13566 | else | |
13567 | ac_check_lib_save_LIBS=$LIBS | |
13568 | LIBS="-lm $LIBS" | |
13569 | if test x$gcc_no_link = xyes; then | |
13570 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13571 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13572 | { (exit 1); exit 1; }; } | |
13573 | fi | |
13574 | cat >conftest.$ac_ext <<_ACEOF | |
13575 | /* confdefs.h. */ | |
13576 | _ACEOF | |
13577 | cat confdefs.h >>conftest.$ac_ext | |
13578 | cat >>conftest.$ac_ext <<_ACEOF | |
13579 | /* end confdefs.h. */ | |
13580 | ||
13581 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13582 | #ifdef __cplusplus | |
13583 | extern "C" | |
13584 | #endif | |
13585 | /* We use char because int might match the return type of a gcc2 | |
13586 | builtin and then its argument prototype would still apply. */ | |
13587 | char clog10l (); | |
13588 | int | |
13589 | main () | |
13590 | { | |
13591 | clog10l (); | |
13592 | ; | |
13593 | return 0; | |
13594 | } | |
13595 | _ACEOF | |
13596 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13598 | (eval $ac_link) 2>conftest.er1 | |
13599 | ac_status=$? | |
13600 | grep -v '^ *+' conftest.er1 >conftest.err | |
13601 | rm -f conftest.er1 | |
13602 | cat conftest.err >&5 | |
13603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13604 | (exit $ac_status); } && | |
13605 | { ac_try='test -z "$ac_c_werror_flag" | |
13606 | || test ! -s conftest.err' | |
13607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13608 | (eval $ac_try) 2>&5 | |
13609 | ac_status=$? | |
13610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13611 | (exit $ac_status); }; } && | |
13612 | { ac_try='test -s conftest$ac_exeext' | |
13613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13614 | (eval $ac_try) 2>&5 | |
13615 | ac_status=$? | |
13616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13617 | (exit $ac_status); }; }; then | |
13618 | ac_cv_lib_m_clog10l=yes | |
13619 | else | |
13620 | echo "$as_me: failed program was:" >&5 | |
13621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13622 | ||
13623 | ac_cv_lib_m_clog10l=no | |
13624 | fi | |
13625 | rm -f conftest.err conftest.$ac_objext \ | |
13626 | conftest$ac_exeext conftest.$ac_ext | |
13627 | LIBS=$ac_check_lib_save_LIBS | |
13628 | fi | |
13629 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_clog10l" >&5 | |
13630 | echo "${ECHO_T}$ac_cv_lib_m_clog10l" >&6 | |
13631 | if test $ac_cv_lib_m_clog10l = yes; then | |
13632 | ||
13633 | cat >>confdefs.h <<\_ACEOF | |
13634 | #define HAVE_CLOG10L 1 | |
13635 | _ACEOF | |
13636 | ||
13637 | fi | |
13638 | ||
13639 | echo "$as_me:$LINENO: checking for nextafterf in -lm" >&5 | |
13640 | echo $ECHO_N "checking for nextafterf in -lm... $ECHO_C" >&6 | |
13641 | if test "${ac_cv_lib_m_nextafterf+set}" = set; then | |
13642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13643 | else | |
13644 | ac_check_lib_save_LIBS=$LIBS | |
13645 | LIBS="-lm $LIBS" | |
13646 | if test x$gcc_no_link = xyes; then | |
13647 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13648 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13649 | { (exit 1); exit 1; }; } | |
13650 | fi | |
13651 | cat >conftest.$ac_ext <<_ACEOF | |
13652 | /* confdefs.h. */ | |
13653 | _ACEOF | |
13654 | cat confdefs.h >>conftest.$ac_ext | |
13655 | cat >>conftest.$ac_ext <<_ACEOF | |
13656 | /* end confdefs.h. */ | |
13657 | ||
13658 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13659 | #ifdef __cplusplus | |
13660 | extern "C" | |
13661 | #endif | |
13662 | /* We use char because int might match the return type of a gcc2 | |
13663 | builtin and then its argument prototype would still apply. */ | |
13664 | char nextafterf (); | |
13665 | int | |
13666 | main () | |
13667 | { | |
13668 | nextafterf (); | |
13669 | ; | |
13670 | return 0; | |
13671 | } | |
13672 | _ACEOF | |
13673 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13675 | (eval $ac_link) 2>conftest.er1 | |
13676 | ac_status=$? | |
13677 | grep -v '^ *+' conftest.er1 >conftest.err | |
13678 | rm -f conftest.er1 | |
13679 | cat conftest.err >&5 | |
13680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13681 | (exit $ac_status); } && | |
13682 | { ac_try='test -z "$ac_c_werror_flag" | |
13683 | || test ! -s conftest.err' | |
13684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13685 | (eval $ac_try) 2>&5 | |
13686 | ac_status=$? | |
13687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13688 | (exit $ac_status); }; } && | |
13689 | { ac_try='test -s conftest$ac_exeext' | |
13690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13691 | (eval $ac_try) 2>&5 | |
13692 | ac_status=$? | |
13693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13694 | (exit $ac_status); }; }; then | |
13695 | ac_cv_lib_m_nextafterf=yes | |
13696 | else | |
13697 | echo "$as_me: failed program was:" >&5 | |
13698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13699 | ||
13700 | ac_cv_lib_m_nextafterf=no | |
13701 | fi | |
13702 | rm -f conftest.err conftest.$ac_objext \ | |
13703 | conftest$ac_exeext conftest.$ac_ext | |
13704 | LIBS=$ac_check_lib_save_LIBS | |
13705 | fi | |
13706 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterf" >&5 | |
13707 | echo "${ECHO_T}$ac_cv_lib_m_nextafterf" >&6 | |
13708 | if test $ac_cv_lib_m_nextafterf = yes; then | |
13709 | ||
13710 | cat >>confdefs.h <<\_ACEOF | |
13711 | #define HAVE_NEXTAFTERF 1 | |
13712 | _ACEOF | |
13713 | ||
13714 | fi | |
13715 | ||
13716 | echo "$as_me:$LINENO: checking for nextafter in -lm" >&5 | |
13717 | echo $ECHO_N "checking for nextafter in -lm... $ECHO_C" >&6 | |
13718 | if test "${ac_cv_lib_m_nextafter+set}" = set; then | |
13719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13720 | else | |
13721 | ac_check_lib_save_LIBS=$LIBS | |
13722 | LIBS="-lm $LIBS" | |
13723 | if test x$gcc_no_link = xyes; then | |
13724 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13725 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13726 | { (exit 1); exit 1; }; } | |
13727 | fi | |
13728 | cat >conftest.$ac_ext <<_ACEOF | |
13729 | /* confdefs.h. */ | |
13730 | _ACEOF | |
13731 | cat confdefs.h >>conftest.$ac_ext | |
13732 | cat >>conftest.$ac_ext <<_ACEOF | |
13733 | /* end confdefs.h. */ | |
13734 | ||
13735 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13736 | #ifdef __cplusplus | |
13737 | extern "C" | |
13738 | #endif | |
13739 | /* We use char because int might match the return type of a gcc2 | |
13740 | builtin and then its argument prototype would still apply. */ | |
13741 | char nextafter (); | |
13742 | int | |
13743 | main () | |
13744 | { | |
13745 | nextafter (); | |
13746 | ; | |
13747 | return 0; | |
13748 | } | |
13749 | _ACEOF | |
13750 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13752 | (eval $ac_link) 2>conftest.er1 | |
13753 | ac_status=$? | |
13754 | grep -v '^ *+' conftest.er1 >conftest.err | |
13755 | rm -f conftest.er1 | |
13756 | cat conftest.err >&5 | |
13757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13758 | (exit $ac_status); } && | |
13759 | { ac_try='test -z "$ac_c_werror_flag" | |
13760 | || test ! -s conftest.err' | |
13761 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13762 | (eval $ac_try) 2>&5 | |
13763 | ac_status=$? | |
13764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13765 | (exit $ac_status); }; } && | |
13766 | { ac_try='test -s conftest$ac_exeext' | |
13767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13768 | (eval $ac_try) 2>&5 | |
13769 | ac_status=$? | |
13770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13771 | (exit $ac_status); }; }; then | |
13772 | ac_cv_lib_m_nextafter=yes | |
13773 | else | |
13774 | echo "$as_me: failed program was:" >&5 | |
13775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13776 | ||
13777 | ac_cv_lib_m_nextafter=no | |
13778 | fi | |
13779 | rm -f conftest.err conftest.$ac_objext \ | |
13780 | conftest$ac_exeext conftest.$ac_ext | |
13781 | LIBS=$ac_check_lib_save_LIBS | |
13782 | fi | |
13783 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafter" >&5 | |
13784 | echo "${ECHO_T}$ac_cv_lib_m_nextafter" >&6 | |
13785 | if test $ac_cv_lib_m_nextafter = yes; then | |
13786 | ||
13787 | cat >>confdefs.h <<\_ACEOF | |
13788 | #define HAVE_NEXTAFTER 1 | |
13789 | _ACEOF | |
13790 | ||
13791 | fi | |
13792 | ||
13793 | echo "$as_me:$LINENO: checking for nextafterl in -lm" >&5 | |
13794 | echo $ECHO_N "checking for nextafterl in -lm... $ECHO_C" >&6 | |
13795 | if test "${ac_cv_lib_m_nextafterl+set}" = set; then | |
13796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13797 | else | |
13798 | ac_check_lib_save_LIBS=$LIBS | |
13799 | LIBS="-lm $LIBS" | |
13800 | if test x$gcc_no_link = xyes; then | |
13801 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13802 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13803 | { (exit 1); exit 1; }; } | |
13804 | fi | |
13805 | cat >conftest.$ac_ext <<_ACEOF | |
13806 | /* confdefs.h. */ | |
13807 | _ACEOF | |
13808 | cat confdefs.h >>conftest.$ac_ext | |
13809 | cat >>conftest.$ac_ext <<_ACEOF | |
13810 | /* end confdefs.h. */ | |
13811 | ||
13812 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13813 | #ifdef __cplusplus | |
13814 | extern "C" | |
13815 | #endif | |
13816 | /* We use char because int might match the return type of a gcc2 | |
13817 | builtin and then its argument prototype would still apply. */ | |
13818 | char nextafterl (); | |
13819 | int | |
13820 | main () | |
13821 | { | |
13822 | nextafterl (); | |
13823 | ; | |
13824 | return 0; | |
13825 | } | |
13826 | _ACEOF | |
13827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13829 | (eval $ac_link) 2>conftest.er1 | |
13830 | ac_status=$? | |
13831 | grep -v '^ *+' conftest.er1 >conftest.err | |
13832 | rm -f conftest.er1 | |
13833 | cat conftest.err >&5 | |
13834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13835 | (exit $ac_status); } && | |
13836 | { ac_try='test -z "$ac_c_werror_flag" | |
13837 | || test ! -s conftest.err' | |
13838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13839 | (eval $ac_try) 2>&5 | |
13840 | ac_status=$? | |
13841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13842 | (exit $ac_status); }; } && | |
13843 | { ac_try='test -s conftest$ac_exeext' | |
13844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13845 | (eval $ac_try) 2>&5 | |
13846 | ac_status=$? | |
13847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13848 | (exit $ac_status); }; }; then | |
13849 | ac_cv_lib_m_nextafterl=yes | |
13850 | else | |
13851 | echo "$as_me: failed program was:" >&5 | |
13852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13853 | ||
13854 | ac_cv_lib_m_nextafterl=no | |
13855 | fi | |
13856 | rm -f conftest.err conftest.$ac_objext \ | |
13857 | conftest$ac_exeext conftest.$ac_ext | |
13858 | LIBS=$ac_check_lib_save_LIBS | |
13859 | fi | |
13860 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_nextafterl" >&5 | |
13861 | echo "${ECHO_T}$ac_cv_lib_m_nextafterl" >&6 | |
13862 | if test $ac_cv_lib_m_nextafterl = yes; then | |
13863 | ||
13864 | cat >>confdefs.h <<\_ACEOF | |
13865 | #define HAVE_NEXTAFTERL 1 | |
13866 | _ACEOF | |
13867 | ||
13868 | fi | |
13869 | ||
13870 | echo "$as_me:$LINENO: checking for powf in -lm" >&5 | |
13871 | echo $ECHO_N "checking for powf in -lm... $ECHO_C" >&6 | |
13872 | if test "${ac_cv_lib_m_powf+set}" = set; then | |
13873 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13874 | else | |
13875 | ac_check_lib_save_LIBS=$LIBS | |
13876 | LIBS="-lm $LIBS" | |
13877 | if test x$gcc_no_link = xyes; then | |
13878 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13879 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13880 | { (exit 1); exit 1; }; } | |
13881 | fi | |
13882 | cat >conftest.$ac_ext <<_ACEOF | |
13883 | /* confdefs.h. */ | |
13884 | _ACEOF | |
13885 | cat confdefs.h >>conftest.$ac_ext | |
13886 | cat >>conftest.$ac_ext <<_ACEOF | |
13887 | /* end confdefs.h. */ | |
13888 | ||
13889 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13890 | #ifdef __cplusplus | |
13891 | extern "C" | |
13892 | #endif | |
13893 | /* We use char because int might match the return type of a gcc2 | |
13894 | builtin and then its argument prototype would still apply. */ | |
13895 | char powf (); | |
13896 | int | |
13897 | main () | |
13898 | { | |
13899 | powf (); | |
13900 | ; | |
13901 | return 0; | |
13902 | } | |
13903 | _ACEOF | |
13904 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13906 | (eval $ac_link) 2>conftest.er1 | |
13907 | ac_status=$? | |
13908 | grep -v '^ *+' conftest.er1 >conftest.err | |
13909 | rm -f conftest.er1 | |
13910 | cat conftest.err >&5 | |
13911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13912 | (exit $ac_status); } && | |
13913 | { ac_try='test -z "$ac_c_werror_flag" | |
13914 | || test ! -s conftest.err' | |
13915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13916 | (eval $ac_try) 2>&5 | |
13917 | ac_status=$? | |
13918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13919 | (exit $ac_status); }; } && | |
13920 | { ac_try='test -s conftest$ac_exeext' | |
13921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13922 | (eval $ac_try) 2>&5 | |
13923 | ac_status=$? | |
13924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13925 | (exit $ac_status); }; }; then | |
13926 | ac_cv_lib_m_powf=yes | |
13927 | else | |
13928 | echo "$as_me: failed program was:" >&5 | |
13929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13930 | ||
13931 | ac_cv_lib_m_powf=no | |
13932 | fi | |
13933 | rm -f conftest.err conftest.$ac_objext \ | |
13934 | conftest$ac_exeext conftest.$ac_ext | |
13935 | LIBS=$ac_check_lib_save_LIBS | |
13936 | fi | |
13937 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_powf" >&5 | |
13938 | echo "${ECHO_T}$ac_cv_lib_m_powf" >&6 | |
13939 | if test $ac_cv_lib_m_powf = yes; then | |
13940 | ||
13941 | cat >>confdefs.h <<\_ACEOF | |
13942 | #define HAVE_POWF 1 | |
13943 | _ACEOF | |
13944 | ||
13945 | fi | |
13946 | ||
13947 | echo "$as_me:$LINENO: checking for pow in -lm" >&5 | |
13948 | echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6 | |
13949 | if test "${ac_cv_lib_m_pow+set}" = set; then | |
13950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13951 | else | |
13952 | ac_check_lib_save_LIBS=$LIBS | |
13953 | LIBS="-lm $LIBS" | |
13954 | if test x$gcc_no_link = xyes; then | |
13955 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
13956 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
13957 | { (exit 1); exit 1; }; } | |
13958 | fi | |
13959 | cat >conftest.$ac_ext <<_ACEOF | |
13960 | /* confdefs.h. */ | |
13961 | _ACEOF | |
13962 | cat confdefs.h >>conftest.$ac_ext | |
13963 | cat >>conftest.$ac_ext <<_ACEOF | |
13964 | /* end confdefs.h. */ | |
13965 | ||
13966 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13967 | #ifdef __cplusplus | |
13968 | extern "C" | |
13969 | #endif | |
13970 | /* We use char because int might match the return type of a gcc2 | |
13971 | builtin and then its argument prototype would still apply. */ | |
13972 | char pow (); | |
13973 | int | |
13974 | main () | |
13975 | { | |
13976 | pow (); | |
13977 | ; | |
13978 | return 0; | |
13979 | } | |
13980 | _ACEOF | |
13981 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13983 | (eval $ac_link) 2>conftest.er1 | |
13984 | ac_status=$? | |
13985 | grep -v '^ *+' conftest.er1 >conftest.err | |
13986 | rm -f conftest.er1 | |
13987 | cat conftest.err >&5 | |
13988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13989 | (exit $ac_status); } && | |
13990 | { ac_try='test -z "$ac_c_werror_flag" | |
13991 | || test ! -s conftest.err' | |
13992 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13993 | (eval $ac_try) 2>&5 | |
13994 | ac_status=$? | |
13995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13996 | (exit $ac_status); }; } && | |
13997 | { ac_try='test -s conftest$ac_exeext' | |
13998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13999 | (eval $ac_try) 2>&5 | |
14000 | ac_status=$? | |
14001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14002 | (exit $ac_status); }; }; then | |
14003 | ac_cv_lib_m_pow=yes | |
14004 | else | |
14005 | echo "$as_me: failed program was:" >&5 | |
14006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14007 | ||
14008 | ac_cv_lib_m_pow=no | |
14009 | fi | |
14010 | rm -f conftest.err conftest.$ac_objext \ | |
14011 | conftest$ac_exeext conftest.$ac_ext | |
14012 | LIBS=$ac_check_lib_save_LIBS | |
14013 | fi | |
14014 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5 | |
14015 | echo "${ECHO_T}$ac_cv_lib_m_pow" >&6 | |
14016 | if test $ac_cv_lib_m_pow = yes; then | |
14017 | ||
14018 | cat >>confdefs.h <<\_ACEOF | |
14019 | #define HAVE_POW 1 | |
14020 | _ACEOF | |
14021 | ||
14022 | fi | |
14023 | ||
14024 | echo "$as_me:$LINENO: checking for powl in -lm" >&5 | |
14025 | echo $ECHO_N "checking for powl in -lm... $ECHO_C" >&6 | |
14026 | if test "${ac_cv_lib_m_powl+set}" = set; then | |
14027 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14028 | else | |
14029 | ac_check_lib_save_LIBS=$LIBS | |
14030 | LIBS="-lm $LIBS" | |
14031 | if test x$gcc_no_link = xyes; then | |
14032 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14033 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14034 | { (exit 1); exit 1; }; } | |
14035 | fi | |
14036 | cat >conftest.$ac_ext <<_ACEOF | |
14037 | /* confdefs.h. */ | |
14038 | _ACEOF | |
14039 | cat confdefs.h >>conftest.$ac_ext | |
14040 | cat >>conftest.$ac_ext <<_ACEOF | |
14041 | /* end confdefs.h. */ | |
14042 | ||
14043 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14044 | #ifdef __cplusplus | |
14045 | extern "C" | |
14046 | #endif | |
14047 | /* We use char because int might match the return type of a gcc2 | |
14048 | builtin and then its argument prototype would still apply. */ | |
14049 | char powl (); | |
14050 | int | |
14051 | main () | |
14052 | { | |
14053 | powl (); | |
14054 | ; | |
14055 | return 0; | |
14056 | } | |
14057 | _ACEOF | |
14058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14060 | (eval $ac_link) 2>conftest.er1 | |
14061 | ac_status=$? | |
14062 | grep -v '^ *+' conftest.er1 >conftest.err | |
14063 | rm -f conftest.er1 | |
14064 | cat conftest.err >&5 | |
14065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14066 | (exit $ac_status); } && | |
14067 | { ac_try='test -z "$ac_c_werror_flag" | |
14068 | || test ! -s conftest.err' | |
14069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14070 | (eval $ac_try) 2>&5 | |
14071 | ac_status=$? | |
14072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14073 | (exit $ac_status); }; } && | |
14074 | { ac_try='test -s conftest$ac_exeext' | |
14075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14076 | (eval $ac_try) 2>&5 | |
14077 | ac_status=$? | |
14078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14079 | (exit $ac_status); }; }; then | |
14080 | ac_cv_lib_m_powl=yes | |
14081 | else | |
14082 | echo "$as_me: failed program was:" >&5 | |
14083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14084 | ||
14085 | ac_cv_lib_m_powl=no | |
14086 | fi | |
14087 | rm -f conftest.err conftest.$ac_objext \ | |
14088 | conftest$ac_exeext conftest.$ac_ext | |
14089 | LIBS=$ac_check_lib_save_LIBS | |
14090 | fi | |
14091 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_powl" >&5 | |
14092 | echo "${ECHO_T}$ac_cv_lib_m_powl" >&6 | |
14093 | if test $ac_cv_lib_m_powl = yes; then | |
14094 | ||
14095 | cat >>confdefs.h <<\_ACEOF | |
14096 | #define HAVE_POWL 1 | |
14097 | _ACEOF | |
14098 | ||
14099 | fi | |
14100 | ||
14101 | echo "$as_me:$LINENO: checking for cpowf in -lm" >&5 | |
14102 | echo $ECHO_N "checking for cpowf in -lm... $ECHO_C" >&6 | |
14103 | if test "${ac_cv_lib_m_cpowf+set}" = set; then | |
14104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14105 | else | |
14106 | ac_check_lib_save_LIBS=$LIBS | |
14107 | LIBS="-lm $LIBS" | |
14108 | if test x$gcc_no_link = xyes; then | |
14109 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14110 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14111 | { (exit 1); exit 1; }; } | |
14112 | fi | |
14113 | cat >conftest.$ac_ext <<_ACEOF | |
14114 | /* confdefs.h. */ | |
14115 | _ACEOF | |
14116 | cat confdefs.h >>conftest.$ac_ext | |
14117 | cat >>conftest.$ac_ext <<_ACEOF | |
14118 | /* end confdefs.h. */ | |
14119 | ||
14120 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14121 | #ifdef __cplusplus | |
14122 | extern "C" | |
14123 | #endif | |
14124 | /* We use char because int might match the return type of a gcc2 | |
14125 | builtin and then its argument prototype would still apply. */ | |
14126 | char cpowf (); | |
14127 | int | |
14128 | main () | |
14129 | { | |
14130 | cpowf (); | |
14131 | ; | |
14132 | return 0; | |
14133 | } | |
14134 | _ACEOF | |
14135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14137 | (eval $ac_link) 2>conftest.er1 | |
14138 | ac_status=$? | |
14139 | grep -v '^ *+' conftest.er1 >conftest.err | |
14140 | rm -f conftest.er1 | |
14141 | cat conftest.err >&5 | |
14142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14143 | (exit $ac_status); } && | |
14144 | { ac_try='test -z "$ac_c_werror_flag" | |
14145 | || test ! -s conftest.err' | |
14146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14147 | (eval $ac_try) 2>&5 | |
14148 | ac_status=$? | |
14149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14150 | (exit $ac_status); }; } && | |
14151 | { ac_try='test -s conftest$ac_exeext' | |
14152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14153 | (eval $ac_try) 2>&5 | |
14154 | ac_status=$? | |
14155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14156 | (exit $ac_status); }; }; then | |
14157 | ac_cv_lib_m_cpowf=yes | |
14158 | else | |
14159 | echo "$as_me: failed program was:" >&5 | |
14160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14161 | ||
14162 | ac_cv_lib_m_cpowf=no | |
14163 | fi | |
14164 | rm -f conftest.err conftest.$ac_objext \ | |
14165 | conftest$ac_exeext conftest.$ac_ext | |
14166 | LIBS=$ac_check_lib_save_LIBS | |
14167 | fi | |
14168 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpowf" >&5 | |
14169 | echo "${ECHO_T}$ac_cv_lib_m_cpowf" >&6 | |
14170 | if test $ac_cv_lib_m_cpowf = yes; then | |
14171 | ||
14172 | cat >>confdefs.h <<\_ACEOF | |
14173 | #define HAVE_CPOWF 1 | |
14174 | _ACEOF | |
14175 | ||
14176 | fi | |
14177 | ||
14178 | echo "$as_me:$LINENO: checking for cpow in -lm" >&5 | |
14179 | echo $ECHO_N "checking for cpow in -lm... $ECHO_C" >&6 | |
14180 | if test "${ac_cv_lib_m_cpow+set}" = set; then | |
14181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14182 | else | |
14183 | ac_check_lib_save_LIBS=$LIBS | |
14184 | LIBS="-lm $LIBS" | |
14185 | if test x$gcc_no_link = xyes; then | |
14186 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14187 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14188 | { (exit 1); exit 1; }; } | |
14189 | fi | |
14190 | cat >conftest.$ac_ext <<_ACEOF | |
14191 | /* confdefs.h. */ | |
14192 | _ACEOF | |
14193 | cat confdefs.h >>conftest.$ac_ext | |
14194 | cat >>conftest.$ac_ext <<_ACEOF | |
14195 | /* end confdefs.h. */ | |
14196 | ||
14197 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14198 | #ifdef __cplusplus | |
14199 | extern "C" | |
14200 | #endif | |
14201 | /* We use char because int might match the return type of a gcc2 | |
14202 | builtin and then its argument prototype would still apply. */ | |
14203 | char cpow (); | |
14204 | int | |
14205 | main () | |
14206 | { | |
14207 | cpow (); | |
14208 | ; | |
14209 | return 0; | |
14210 | } | |
14211 | _ACEOF | |
14212 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14214 | (eval $ac_link) 2>conftest.er1 | |
14215 | ac_status=$? | |
14216 | grep -v '^ *+' conftest.er1 >conftest.err | |
14217 | rm -f conftest.er1 | |
14218 | cat conftest.err >&5 | |
14219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14220 | (exit $ac_status); } && | |
14221 | { ac_try='test -z "$ac_c_werror_flag" | |
14222 | || test ! -s conftest.err' | |
14223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14224 | (eval $ac_try) 2>&5 | |
14225 | ac_status=$? | |
14226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14227 | (exit $ac_status); }; } && | |
14228 | { ac_try='test -s conftest$ac_exeext' | |
14229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14230 | (eval $ac_try) 2>&5 | |
14231 | ac_status=$? | |
14232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14233 | (exit $ac_status); }; }; then | |
14234 | ac_cv_lib_m_cpow=yes | |
14235 | else | |
14236 | echo "$as_me: failed program was:" >&5 | |
14237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14238 | ||
14239 | ac_cv_lib_m_cpow=no | |
14240 | fi | |
14241 | rm -f conftest.err conftest.$ac_objext \ | |
14242 | conftest$ac_exeext conftest.$ac_ext | |
14243 | LIBS=$ac_check_lib_save_LIBS | |
14244 | fi | |
14245 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpow" >&5 | |
14246 | echo "${ECHO_T}$ac_cv_lib_m_cpow" >&6 | |
14247 | if test $ac_cv_lib_m_cpow = yes; then | |
14248 | ||
14249 | cat >>confdefs.h <<\_ACEOF | |
14250 | #define HAVE_CPOW 1 | |
14251 | _ACEOF | |
14252 | ||
14253 | fi | |
14254 | ||
14255 | echo "$as_me:$LINENO: checking for cpowl in -lm" >&5 | |
14256 | echo $ECHO_N "checking for cpowl in -lm... $ECHO_C" >&6 | |
14257 | if test "${ac_cv_lib_m_cpowl+set}" = set; then | |
14258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14259 | else | |
14260 | ac_check_lib_save_LIBS=$LIBS | |
14261 | LIBS="-lm $LIBS" | |
14262 | if test x$gcc_no_link = xyes; then | |
14263 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14264 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14265 | { (exit 1); exit 1; }; } | |
14266 | fi | |
14267 | cat >conftest.$ac_ext <<_ACEOF | |
14268 | /* confdefs.h. */ | |
14269 | _ACEOF | |
14270 | cat confdefs.h >>conftest.$ac_ext | |
14271 | cat >>conftest.$ac_ext <<_ACEOF | |
14272 | /* end confdefs.h. */ | |
14273 | ||
14274 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14275 | #ifdef __cplusplus | |
14276 | extern "C" | |
14277 | #endif | |
14278 | /* We use char because int might match the return type of a gcc2 | |
14279 | builtin and then its argument prototype would still apply. */ | |
14280 | char cpowl (); | |
14281 | int | |
14282 | main () | |
14283 | { | |
14284 | cpowl (); | |
14285 | ; | |
14286 | return 0; | |
14287 | } | |
14288 | _ACEOF | |
14289 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14290 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14291 | (eval $ac_link) 2>conftest.er1 | |
14292 | ac_status=$? | |
14293 | grep -v '^ *+' conftest.er1 >conftest.err | |
14294 | rm -f conftest.er1 | |
14295 | cat conftest.err >&5 | |
14296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14297 | (exit $ac_status); } && | |
14298 | { ac_try='test -z "$ac_c_werror_flag" | |
14299 | || test ! -s conftest.err' | |
14300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14301 | (eval $ac_try) 2>&5 | |
14302 | ac_status=$? | |
14303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14304 | (exit $ac_status); }; } && | |
14305 | { ac_try='test -s conftest$ac_exeext' | |
14306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14307 | (eval $ac_try) 2>&5 | |
14308 | ac_status=$? | |
14309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14310 | (exit $ac_status); }; }; then | |
14311 | ac_cv_lib_m_cpowl=yes | |
14312 | else | |
14313 | echo "$as_me: failed program was:" >&5 | |
14314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14315 | ||
14316 | ac_cv_lib_m_cpowl=no | |
14317 | fi | |
14318 | rm -f conftest.err conftest.$ac_objext \ | |
14319 | conftest$ac_exeext conftest.$ac_ext | |
14320 | LIBS=$ac_check_lib_save_LIBS | |
14321 | fi | |
14322 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cpowl" >&5 | |
14323 | echo "${ECHO_T}$ac_cv_lib_m_cpowl" >&6 | |
14324 | if test $ac_cv_lib_m_cpowl = yes; then | |
14325 | ||
14326 | cat >>confdefs.h <<\_ACEOF | |
14327 | #define HAVE_CPOWL 1 | |
14328 | _ACEOF | |
14329 | ||
14330 | fi | |
14331 | ||
14332 | echo "$as_me:$LINENO: checking for roundf in -lm" >&5 | |
14333 | echo $ECHO_N "checking for roundf in -lm... $ECHO_C" >&6 | |
14334 | if test "${ac_cv_lib_m_roundf+set}" = set; then | |
14335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14336 | else | |
14337 | ac_check_lib_save_LIBS=$LIBS | |
14338 | LIBS="-lm $LIBS" | |
14339 | if test x$gcc_no_link = xyes; then | |
14340 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14341 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14342 | { (exit 1); exit 1; }; } | |
14343 | fi | |
14344 | cat >conftest.$ac_ext <<_ACEOF | |
14345 | /* confdefs.h. */ | |
14346 | _ACEOF | |
14347 | cat confdefs.h >>conftest.$ac_ext | |
14348 | cat >>conftest.$ac_ext <<_ACEOF | |
14349 | /* end confdefs.h. */ | |
14350 | ||
14351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14352 | #ifdef __cplusplus | |
14353 | extern "C" | |
14354 | #endif | |
14355 | /* We use char because int might match the return type of a gcc2 | |
14356 | builtin and then its argument prototype would still apply. */ | |
14357 | char roundf (); | |
14358 | int | |
14359 | main () | |
14360 | { | |
14361 | roundf (); | |
14362 | ; | |
14363 | return 0; | |
14364 | } | |
14365 | _ACEOF | |
14366 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14368 | (eval $ac_link) 2>conftest.er1 | |
14369 | ac_status=$? | |
14370 | grep -v '^ *+' conftest.er1 >conftest.err | |
14371 | rm -f conftest.er1 | |
14372 | cat conftest.err >&5 | |
14373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14374 | (exit $ac_status); } && | |
14375 | { ac_try='test -z "$ac_c_werror_flag" | |
14376 | || test ! -s conftest.err' | |
14377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14378 | (eval $ac_try) 2>&5 | |
14379 | ac_status=$? | |
14380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14381 | (exit $ac_status); }; } && | |
14382 | { ac_try='test -s conftest$ac_exeext' | |
14383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14384 | (eval $ac_try) 2>&5 | |
14385 | ac_status=$? | |
14386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14387 | (exit $ac_status); }; }; then | |
14388 | ac_cv_lib_m_roundf=yes | |
14389 | else | |
14390 | echo "$as_me: failed program was:" >&5 | |
14391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14392 | ||
14393 | ac_cv_lib_m_roundf=no | |
14394 | fi | |
14395 | rm -f conftest.err conftest.$ac_objext \ | |
14396 | conftest$ac_exeext conftest.$ac_ext | |
14397 | LIBS=$ac_check_lib_save_LIBS | |
14398 | fi | |
14399 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundf" >&5 | |
14400 | echo "${ECHO_T}$ac_cv_lib_m_roundf" >&6 | |
14401 | if test $ac_cv_lib_m_roundf = yes; then | |
14402 | ||
14403 | cat >>confdefs.h <<\_ACEOF | |
14404 | #define HAVE_ROUNDF 1 | |
14405 | _ACEOF | |
14406 | ||
14407 | fi | |
14408 | ||
14409 | echo "$as_me:$LINENO: checking for round in -lm" >&5 | |
14410 | echo $ECHO_N "checking for round in -lm... $ECHO_C" >&6 | |
14411 | if test "${ac_cv_lib_m_round+set}" = set; then | |
14412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14413 | else | |
14414 | ac_check_lib_save_LIBS=$LIBS | |
14415 | LIBS="-lm $LIBS" | |
14416 | if test x$gcc_no_link = xyes; then | |
14417 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14418 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14419 | { (exit 1); exit 1; }; } | |
14420 | fi | |
14421 | cat >conftest.$ac_ext <<_ACEOF | |
14422 | /* confdefs.h. */ | |
14423 | _ACEOF | |
14424 | cat confdefs.h >>conftest.$ac_ext | |
14425 | cat >>conftest.$ac_ext <<_ACEOF | |
14426 | /* end confdefs.h. */ | |
14427 | ||
14428 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14429 | #ifdef __cplusplus | |
14430 | extern "C" | |
14431 | #endif | |
14432 | /* We use char because int might match the return type of a gcc2 | |
14433 | builtin and then its argument prototype would still apply. */ | |
14434 | char round (); | |
14435 | int | |
14436 | main () | |
14437 | { | |
14438 | round (); | |
14439 | ; | |
14440 | return 0; | |
14441 | } | |
14442 | _ACEOF | |
14443 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14445 | (eval $ac_link) 2>conftest.er1 | |
14446 | ac_status=$? | |
14447 | grep -v '^ *+' conftest.er1 >conftest.err | |
14448 | rm -f conftest.er1 | |
14449 | cat conftest.err >&5 | |
14450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14451 | (exit $ac_status); } && | |
14452 | { ac_try='test -z "$ac_c_werror_flag" | |
14453 | || test ! -s conftest.err' | |
14454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14455 | (eval $ac_try) 2>&5 | |
14456 | ac_status=$? | |
14457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14458 | (exit $ac_status); }; } && | |
14459 | { ac_try='test -s conftest$ac_exeext' | |
14460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14461 | (eval $ac_try) 2>&5 | |
14462 | ac_status=$? | |
14463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14464 | (exit $ac_status); }; }; then | |
14465 | ac_cv_lib_m_round=yes | |
14466 | else | |
14467 | echo "$as_me: failed program was:" >&5 | |
14468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14469 | ||
14470 | ac_cv_lib_m_round=no | |
14471 | fi | |
14472 | rm -f conftest.err conftest.$ac_objext \ | |
14473 | conftest$ac_exeext conftest.$ac_ext | |
14474 | LIBS=$ac_check_lib_save_LIBS | |
14475 | fi | |
14476 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_round" >&5 | |
14477 | echo "${ECHO_T}$ac_cv_lib_m_round" >&6 | |
14478 | if test $ac_cv_lib_m_round = yes; then | |
14479 | ||
14480 | cat >>confdefs.h <<\_ACEOF | |
14481 | #define HAVE_ROUND 1 | |
14482 | _ACEOF | |
14483 | ||
14484 | fi | |
14485 | ||
14486 | echo "$as_me:$LINENO: checking for roundl in -lm" >&5 | |
14487 | echo $ECHO_N "checking for roundl in -lm... $ECHO_C" >&6 | |
14488 | if test "${ac_cv_lib_m_roundl+set}" = set; then | |
14489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14490 | else | |
14491 | ac_check_lib_save_LIBS=$LIBS | |
14492 | LIBS="-lm $LIBS" | |
14493 | if test x$gcc_no_link = xyes; then | |
14494 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14495 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14496 | { (exit 1); exit 1; }; } | |
14497 | fi | |
14498 | cat >conftest.$ac_ext <<_ACEOF | |
14499 | /* confdefs.h. */ | |
14500 | _ACEOF | |
14501 | cat confdefs.h >>conftest.$ac_ext | |
14502 | cat >>conftest.$ac_ext <<_ACEOF | |
14503 | /* end confdefs.h. */ | |
14504 | ||
14505 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14506 | #ifdef __cplusplus | |
14507 | extern "C" | |
14508 | #endif | |
14509 | /* We use char because int might match the return type of a gcc2 | |
14510 | builtin and then its argument prototype would still apply. */ | |
14511 | char roundl (); | |
14512 | int | |
14513 | main () | |
14514 | { | |
14515 | roundl (); | |
14516 | ; | |
14517 | return 0; | |
14518 | } | |
14519 | _ACEOF | |
14520 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14522 | (eval $ac_link) 2>conftest.er1 | |
14523 | ac_status=$? | |
14524 | grep -v '^ *+' conftest.er1 >conftest.err | |
14525 | rm -f conftest.er1 | |
14526 | cat conftest.err >&5 | |
14527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14528 | (exit $ac_status); } && | |
14529 | { ac_try='test -z "$ac_c_werror_flag" | |
14530 | || test ! -s conftest.err' | |
14531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14532 | (eval $ac_try) 2>&5 | |
14533 | ac_status=$? | |
14534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14535 | (exit $ac_status); }; } && | |
14536 | { ac_try='test -s conftest$ac_exeext' | |
14537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14538 | (eval $ac_try) 2>&5 | |
14539 | ac_status=$? | |
14540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14541 | (exit $ac_status); }; }; then | |
14542 | ac_cv_lib_m_roundl=yes | |
14543 | else | |
14544 | echo "$as_me: failed program was:" >&5 | |
14545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14546 | ||
14547 | ac_cv_lib_m_roundl=no | |
14548 | fi | |
14549 | rm -f conftest.err conftest.$ac_objext \ | |
14550 | conftest$ac_exeext conftest.$ac_ext | |
14551 | LIBS=$ac_check_lib_save_LIBS | |
14552 | fi | |
14553 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_roundl" >&5 | |
14554 | echo "${ECHO_T}$ac_cv_lib_m_roundl" >&6 | |
14555 | if test $ac_cv_lib_m_roundl = yes; then | |
14556 | ||
14557 | cat >>confdefs.h <<\_ACEOF | |
14558 | #define HAVE_ROUNDL 1 | |
14559 | _ACEOF | |
14560 | ||
14561 | fi | |
14562 | ||
14563 | echo "$as_me:$LINENO: checking for scalbnf in -lm" >&5 | |
14564 | echo $ECHO_N "checking for scalbnf in -lm... $ECHO_C" >&6 | |
14565 | if test "${ac_cv_lib_m_scalbnf+set}" = set; then | |
14566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14567 | else | |
14568 | ac_check_lib_save_LIBS=$LIBS | |
14569 | LIBS="-lm $LIBS" | |
14570 | if test x$gcc_no_link = xyes; then | |
14571 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14572 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14573 | { (exit 1); exit 1; }; } | |
14574 | fi | |
14575 | cat >conftest.$ac_ext <<_ACEOF | |
14576 | /* confdefs.h. */ | |
14577 | _ACEOF | |
14578 | cat confdefs.h >>conftest.$ac_ext | |
14579 | cat >>conftest.$ac_ext <<_ACEOF | |
14580 | /* end confdefs.h. */ | |
14581 | ||
14582 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14583 | #ifdef __cplusplus | |
14584 | extern "C" | |
14585 | #endif | |
14586 | /* We use char because int might match the return type of a gcc2 | |
14587 | builtin and then its argument prototype would still apply. */ | |
14588 | char scalbnf (); | |
14589 | int | |
14590 | main () | |
14591 | { | |
14592 | scalbnf (); | |
14593 | ; | |
14594 | return 0; | |
14595 | } | |
14596 | _ACEOF | |
14597 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14599 | (eval $ac_link) 2>conftest.er1 | |
14600 | ac_status=$? | |
14601 | grep -v '^ *+' conftest.er1 >conftest.err | |
14602 | rm -f conftest.er1 | |
14603 | cat conftest.err >&5 | |
14604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14605 | (exit $ac_status); } && | |
14606 | { ac_try='test -z "$ac_c_werror_flag" | |
14607 | || test ! -s conftest.err' | |
14608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14609 | (eval $ac_try) 2>&5 | |
14610 | ac_status=$? | |
14611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14612 | (exit $ac_status); }; } && | |
14613 | { ac_try='test -s conftest$ac_exeext' | |
14614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14615 | (eval $ac_try) 2>&5 | |
14616 | ac_status=$? | |
14617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14618 | (exit $ac_status); }; }; then | |
14619 | ac_cv_lib_m_scalbnf=yes | |
14620 | else | |
14621 | echo "$as_me: failed program was:" >&5 | |
14622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14623 | ||
14624 | ac_cv_lib_m_scalbnf=no | |
14625 | fi | |
14626 | rm -f conftest.err conftest.$ac_objext \ | |
14627 | conftest$ac_exeext conftest.$ac_ext | |
14628 | LIBS=$ac_check_lib_save_LIBS | |
14629 | fi | |
14630 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnf" >&5 | |
14631 | echo "${ECHO_T}$ac_cv_lib_m_scalbnf" >&6 | |
14632 | if test $ac_cv_lib_m_scalbnf = yes; then | |
14633 | ||
14634 | cat >>confdefs.h <<\_ACEOF | |
14635 | #define HAVE_SCALBNF 1 | |
14636 | _ACEOF | |
14637 | ||
14638 | fi | |
14639 | ||
14640 | echo "$as_me:$LINENO: checking for scalbn in -lm" >&5 | |
14641 | echo $ECHO_N "checking for scalbn in -lm... $ECHO_C" >&6 | |
14642 | if test "${ac_cv_lib_m_scalbn+set}" = set; then | |
14643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14644 | else | |
14645 | ac_check_lib_save_LIBS=$LIBS | |
14646 | LIBS="-lm $LIBS" | |
14647 | if test x$gcc_no_link = xyes; then | |
14648 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14649 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14650 | { (exit 1); exit 1; }; } | |
14651 | fi | |
14652 | cat >conftest.$ac_ext <<_ACEOF | |
14653 | /* confdefs.h. */ | |
14654 | _ACEOF | |
14655 | cat confdefs.h >>conftest.$ac_ext | |
14656 | cat >>conftest.$ac_ext <<_ACEOF | |
14657 | /* end confdefs.h. */ | |
14658 | ||
14659 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14660 | #ifdef __cplusplus | |
14661 | extern "C" | |
14662 | #endif | |
14663 | /* We use char because int might match the return type of a gcc2 | |
14664 | builtin and then its argument prototype would still apply. */ | |
14665 | char scalbn (); | |
14666 | int | |
14667 | main () | |
14668 | { | |
14669 | scalbn (); | |
14670 | ; | |
14671 | return 0; | |
14672 | } | |
14673 | _ACEOF | |
14674 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14675 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14676 | (eval $ac_link) 2>conftest.er1 | |
14677 | ac_status=$? | |
14678 | grep -v '^ *+' conftest.er1 >conftest.err | |
14679 | rm -f conftest.er1 | |
14680 | cat conftest.err >&5 | |
14681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14682 | (exit $ac_status); } && | |
14683 | { ac_try='test -z "$ac_c_werror_flag" | |
14684 | || test ! -s conftest.err' | |
14685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14686 | (eval $ac_try) 2>&5 | |
14687 | ac_status=$? | |
14688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14689 | (exit $ac_status); }; } && | |
14690 | { ac_try='test -s conftest$ac_exeext' | |
14691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14692 | (eval $ac_try) 2>&5 | |
14693 | ac_status=$? | |
14694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14695 | (exit $ac_status); }; }; then | |
14696 | ac_cv_lib_m_scalbn=yes | |
14697 | else | |
14698 | echo "$as_me: failed program was:" >&5 | |
14699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14700 | ||
14701 | ac_cv_lib_m_scalbn=no | |
14702 | fi | |
14703 | rm -f conftest.err conftest.$ac_objext \ | |
14704 | conftest$ac_exeext conftest.$ac_ext | |
14705 | LIBS=$ac_check_lib_save_LIBS | |
14706 | fi | |
14707 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbn" >&5 | |
14708 | echo "${ECHO_T}$ac_cv_lib_m_scalbn" >&6 | |
14709 | if test $ac_cv_lib_m_scalbn = yes; then | |
14710 | ||
14711 | cat >>confdefs.h <<\_ACEOF | |
14712 | #define HAVE_SCALBN 1 | |
14713 | _ACEOF | |
14714 | ||
14715 | fi | |
14716 | ||
14717 | echo "$as_me:$LINENO: checking for scalbnl in -lm" >&5 | |
14718 | echo $ECHO_N "checking for scalbnl in -lm... $ECHO_C" >&6 | |
14719 | if test "${ac_cv_lib_m_scalbnl+set}" = set; then | |
14720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14721 | else | |
14722 | ac_check_lib_save_LIBS=$LIBS | |
14723 | LIBS="-lm $LIBS" | |
14724 | if test x$gcc_no_link = xyes; then | |
14725 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14726 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14727 | { (exit 1); exit 1; }; } | |
14728 | fi | |
14729 | cat >conftest.$ac_ext <<_ACEOF | |
14730 | /* confdefs.h. */ | |
14731 | _ACEOF | |
14732 | cat confdefs.h >>conftest.$ac_ext | |
14733 | cat >>conftest.$ac_ext <<_ACEOF | |
14734 | /* end confdefs.h. */ | |
14735 | ||
14736 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14737 | #ifdef __cplusplus | |
14738 | extern "C" | |
14739 | #endif | |
14740 | /* We use char because int might match the return type of a gcc2 | |
14741 | builtin and then its argument prototype would still apply. */ | |
14742 | char scalbnl (); | |
14743 | int | |
14744 | main () | |
14745 | { | |
14746 | scalbnl (); | |
14747 | ; | |
14748 | return 0; | |
14749 | } | |
14750 | _ACEOF | |
14751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14753 | (eval $ac_link) 2>conftest.er1 | |
14754 | ac_status=$? | |
14755 | grep -v '^ *+' conftest.er1 >conftest.err | |
14756 | rm -f conftest.er1 | |
14757 | cat conftest.err >&5 | |
14758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14759 | (exit $ac_status); } && | |
14760 | { ac_try='test -z "$ac_c_werror_flag" | |
14761 | || test ! -s conftest.err' | |
14762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14763 | (eval $ac_try) 2>&5 | |
14764 | ac_status=$? | |
14765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14766 | (exit $ac_status); }; } && | |
14767 | { ac_try='test -s conftest$ac_exeext' | |
14768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14769 | (eval $ac_try) 2>&5 | |
14770 | ac_status=$? | |
14771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14772 | (exit $ac_status); }; }; then | |
14773 | ac_cv_lib_m_scalbnl=yes | |
14774 | else | |
14775 | echo "$as_me: failed program was:" >&5 | |
14776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14777 | ||
14778 | ac_cv_lib_m_scalbnl=no | |
14779 | fi | |
14780 | rm -f conftest.err conftest.$ac_objext \ | |
14781 | conftest$ac_exeext conftest.$ac_ext | |
14782 | LIBS=$ac_check_lib_save_LIBS | |
14783 | fi | |
14784 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_scalbnl" >&5 | |
14785 | echo "${ECHO_T}$ac_cv_lib_m_scalbnl" >&6 | |
14786 | if test $ac_cv_lib_m_scalbnl = yes; then | |
14787 | ||
14788 | cat >>confdefs.h <<\_ACEOF | |
14789 | #define HAVE_SCALBNL 1 | |
14790 | _ACEOF | |
14791 | ||
14792 | fi | |
14793 | ||
14794 | echo "$as_me:$LINENO: checking for sinf in -lm" >&5 | |
14795 | echo $ECHO_N "checking for sinf in -lm... $ECHO_C" >&6 | |
14796 | if test "${ac_cv_lib_m_sinf+set}" = set; then | |
14797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14798 | else | |
14799 | ac_check_lib_save_LIBS=$LIBS | |
14800 | LIBS="-lm $LIBS" | |
14801 | if test x$gcc_no_link = xyes; then | |
14802 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14803 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14804 | { (exit 1); exit 1; }; } | |
14805 | fi | |
14806 | cat >conftest.$ac_ext <<_ACEOF | |
14807 | /* confdefs.h. */ | |
14808 | _ACEOF | |
14809 | cat confdefs.h >>conftest.$ac_ext | |
14810 | cat >>conftest.$ac_ext <<_ACEOF | |
14811 | /* end confdefs.h. */ | |
14812 | ||
14813 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14814 | #ifdef __cplusplus | |
14815 | extern "C" | |
14816 | #endif | |
14817 | /* We use char because int might match the return type of a gcc2 | |
14818 | builtin and then its argument prototype would still apply. */ | |
14819 | char sinf (); | |
14820 | int | |
14821 | main () | |
14822 | { | |
14823 | sinf (); | |
14824 | ; | |
14825 | return 0; | |
14826 | } | |
14827 | _ACEOF | |
14828 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14830 | (eval $ac_link) 2>conftest.er1 | |
14831 | ac_status=$? | |
14832 | grep -v '^ *+' conftest.er1 >conftest.err | |
14833 | rm -f conftest.er1 | |
14834 | cat conftest.err >&5 | |
14835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14836 | (exit $ac_status); } && | |
14837 | { ac_try='test -z "$ac_c_werror_flag" | |
14838 | || test ! -s conftest.err' | |
14839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14840 | (eval $ac_try) 2>&5 | |
14841 | ac_status=$? | |
14842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14843 | (exit $ac_status); }; } && | |
14844 | { ac_try='test -s conftest$ac_exeext' | |
14845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14846 | (eval $ac_try) 2>&5 | |
14847 | ac_status=$? | |
14848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14849 | (exit $ac_status); }; }; then | |
14850 | ac_cv_lib_m_sinf=yes | |
14851 | else | |
14852 | echo "$as_me: failed program was:" >&5 | |
14853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14854 | ||
14855 | ac_cv_lib_m_sinf=no | |
14856 | fi | |
14857 | rm -f conftest.err conftest.$ac_objext \ | |
14858 | conftest$ac_exeext conftest.$ac_ext | |
14859 | LIBS=$ac_check_lib_save_LIBS | |
14860 | fi | |
14861 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinf" >&5 | |
14862 | echo "${ECHO_T}$ac_cv_lib_m_sinf" >&6 | |
14863 | if test $ac_cv_lib_m_sinf = yes; then | |
14864 | ||
14865 | cat >>confdefs.h <<\_ACEOF | |
14866 | #define HAVE_SINF 1 | |
14867 | _ACEOF | |
14868 | ||
14869 | fi | |
14870 | ||
14871 | echo "$as_me:$LINENO: checking for sin in -lm" >&5 | |
14872 | echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6 | |
14873 | if test "${ac_cv_lib_m_sin+set}" = set; then | |
14874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14875 | else | |
14876 | ac_check_lib_save_LIBS=$LIBS | |
14877 | LIBS="-lm $LIBS" | |
14878 | if test x$gcc_no_link = xyes; then | |
14879 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14880 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14881 | { (exit 1); exit 1; }; } | |
14882 | fi | |
14883 | cat >conftest.$ac_ext <<_ACEOF | |
14884 | /* confdefs.h. */ | |
14885 | _ACEOF | |
14886 | cat confdefs.h >>conftest.$ac_ext | |
14887 | cat >>conftest.$ac_ext <<_ACEOF | |
14888 | /* end confdefs.h. */ | |
14889 | ||
14890 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14891 | #ifdef __cplusplus | |
14892 | extern "C" | |
14893 | #endif | |
14894 | /* We use char because int might match the return type of a gcc2 | |
14895 | builtin and then its argument prototype would still apply. */ | |
14896 | char sin (); | |
14897 | int | |
14898 | main () | |
14899 | { | |
14900 | sin (); | |
14901 | ; | |
14902 | return 0; | |
14903 | } | |
14904 | _ACEOF | |
14905 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14906 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14907 | (eval $ac_link) 2>conftest.er1 | |
14908 | ac_status=$? | |
14909 | grep -v '^ *+' conftest.er1 >conftest.err | |
14910 | rm -f conftest.er1 | |
14911 | cat conftest.err >&5 | |
14912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14913 | (exit $ac_status); } && | |
14914 | { ac_try='test -z "$ac_c_werror_flag" | |
14915 | || test ! -s conftest.err' | |
14916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14917 | (eval $ac_try) 2>&5 | |
14918 | ac_status=$? | |
14919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14920 | (exit $ac_status); }; } && | |
14921 | { ac_try='test -s conftest$ac_exeext' | |
14922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14923 | (eval $ac_try) 2>&5 | |
14924 | ac_status=$? | |
14925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14926 | (exit $ac_status); }; }; then | |
14927 | ac_cv_lib_m_sin=yes | |
14928 | else | |
14929 | echo "$as_me: failed program was:" >&5 | |
14930 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14931 | ||
14932 | ac_cv_lib_m_sin=no | |
14933 | fi | |
14934 | rm -f conftest.err conftest.$ac_objext \ | |
14935 | conftest$ac_exeext conftest.$ac_ext | |
14936 | LIBS=$ac_check_lib_save_LIBS | |
14937 | fi | |
14938 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5 | |
14939 | echo "${ECHO_T}$ac_cv_lib_m_sin" >&6 | |
14940 | if test $ac_cv_lib_m_sin = yes; then | |
14941 | ||
14942 | cat >>confdefs.h <<\_ACEOF | |
14943 | #define HAVE_SIN 1 | |
14944 | _ACEOF | |
14945 | ||
14946 | fi | |
14947 | ||
14948 | echo "$as_me:$LINENO: checking for sinl in -lm" >&5 | |
14949 | echo $ECHO_N "checking for sinl in -lm... $ECHO_C" >&6 | |
14950 | if test "${ac_cv_lib_m_sinl+set}" = set; then | |
14951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14952 | else | |
14953 | ac_check_lib_save_LIBS=$LIBS | |
14954 | LIBS="-lm $LIBS" | |
14955 | if test x$gcc_no_link = xyes; then | |
14956 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
14957 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
14958 | { (exit 1); exit 1; }; } | |
14959 | fi | |
14960 | cat >conftest.$ac_ext <<_ACEOF | |
14961 | /* confdefs.h. */ | |
14962 | _ACEOF | |
14963 | cat confdefs.h >>conftest.$ac_ext | |
14964 | cat >>conftest.$ac_ext <<_ACEOF | |
14965 | /* end confdefs.h. */ | |
14966 | ||
14967 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14968 | #ifdef __cplusplus | |
14969 | extern "C" | |
14970 | #endif | |
14971 | /* We use char because int might match the return type of a gcc2 | |
14972 | builtin and then its argument prototype would still apply. */ | |
14973 | char sinl (); | |
14974 | int | |
14975 | main () | |
14976 | { | |
14977 | sinl (); | |
14978 | ; | |
14979 | return 0; | |
14980 | } | |
14981 | _ACEOF | |
14982 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14984 | (eval $ac_link) 2>conftest.er1 | |
14985 | ac_status=$? | |
14986 | grep -v '^ *+' conftest.er1 >conftest.err | |
14987 | rm -f conftest.er1 | |
14988 | cat conftest.err >&5 | |
14989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14990 | (exit $ac_status); } && | |
14991 | { ac_try='test -z "$ac_c_werror_flag" | |
14992 | || test ! -s conftest.err' | |
14993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14994 | (eval $ac_try) 2>&5 | |
14995 | ac_status=$? | |
14996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14997 | (exit $ac_status); }; } && | |
14998 | { ac_try='test -s conftest$ac_exeext' | |
14999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15000 | (eval $ac_try) 2>&5 | |
15001 | ac_status=$? | |
15002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15003 | (exit $ac_status); }; }; then | |
15004 | ac_cv_lib_m_sinl=yes | |
15005 | else | |
15006 | echo "$as_me: failed program was:" >&5 | |
15007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15008 | ||
15009 | ac_cv_lib_m_sinl=no | |
15010 | fi | |
15011 | rm -f conftest.err conftest.$ac_objext \ | |
15012 | conftest$ac_exeext conftest.$ac_ext | |
15013 | LIBS=$ac_check_lib_save_LIBS | |
15014 | fi | |
15015 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinl" >&5 | |
15016 | echo "${ECHO_T}$ac_cv_lib_m_sinl" >&6 | |
15017 | if test $ac_cv_lib_m_sinl = yes; then | |
15018 | ||
15019 | cat >>confdefs.h <<\_ACEOF | |
15020 | #define HAVE_SINL 1 | |
15021 | _ACEOF | |
15022 | ||
15023 | fi | |
15024 | ||
15025 | echo "$as_me:$LINENO: checking for csinf in -lm" >&5 | |
15026 | echo $ECHO_N "checking for csinf in -lm... $ECHO_C" >&6 | |
15027 | if test "${ac_cv_lib_m_csinf+set}" = set; then | |
15028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15029 | else | |
15030 | ac_check_lib_save_LIBS=$LIBS | |
15031 | LIBS="-lm $LIBS" | |
15032 | if test x$gcc_no_link = xyes; then | |
15033 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15034 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15035 | { (exit 1); exit 1; }; } | |
15036 | fi | |
15037 | cat >conftest.$ac_ext <<_ACEOF | |
15038 | /* confdefs.h. */ | |
15039 | _ACEOF | |
15040 | cat confdefs.h >>conftest.$ac_ext | |
15041 | cat >>conftest.$ac_ext <<_ACEOF | |
15042 | /* end confdefs.h. */ | |
15043 | ||
15044 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15045 | #ifdef __cplusplus | |
15046 | extern "C" | |
15047 | #endif | |
15048 | /* We use char because int might match the return type of a gcc2 | |
15049 | builtin and then its argument prototype would still apply. */ | |
15050 | char csinf (); | |
15051 | int | |
15052 | main () | |
15053 | { | |
15054 | csinf (); | |
15055 | ; | |
15056 | return 0; | |
15057 | } | |
15058 | _ACEOF | |
15059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15060 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15061 | (eval $ac_link) 2>conftest.er1 | |
15062 | ac_status=$? | |
15063 | grep -v '^ *+' conftest.er1 >conftest.err | |
15064 | rm -f conftest.er1 | |
15065 | cat conftest.err >&5 | |
15066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15067 | (exit $ac_status); } && | |
15068 | { ac_try='test -z "$ac_c_werror_flag" | |
15069 | || test ! -s conftest.err' | |
15070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15071 | (eval $ac_try) 2>&5 | |
15072 | ac_status=$? | |
15073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15074 | (exit $ac_status); }; } && | |
15075 | { ac_try='test -s conftest$ac_exeext' | |
15076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15077 | (eval $ac_try) 2>&5 | |
15078 | ac_status=$? | |
15079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15080 | (exit $ac_status); }; }; then | |
15081 | ac_cv_lib_m_csinf=yes | |
15082 | else | |
15083 | echo "$as_me: failed program was:" >&5 | |
15084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15085 | ||
15086 | ac_cv_lib_m_csinf=no | |
15087 | fi | |
15088 | rm -f conftest.err conftest.$ac_objext \ | |
15089 | conftest$ac_exeext conftest.$ac_ext | |
15090 | LIBS=$ac_check_lib_save_LIBS | |
15091 | fi | |
15092 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinf" >&5 | |
15093 | echo "${ECHO_T}$ac_cv_lib_m_csinf" >&6 | |
15094 | if test $ac_cv_lib_m_csinf = yes; then | |
15095 | ||
15096 | cat >>confdefs.h <<\_ACEOF | |
15097 | #define HAVE_CSINF 1 | |
15098 | _ACEOF | |
15099 | ||
15100 | fi | |
15101 | ||
15102 | echo "$as_me:$LINENO: checking for csin in -lm" >&5 | |
15103 | echo $ECHO_N "checking for csin in -lm... $ECHO_C" >&6 | |
15104 | if test "${ac_cv_lib_m_csin+set}" = set; then | |
15105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15106 | else | |
15107 | ac_check_lib_save_LIBS=$LIBS | |
15108 | LIBS="-lm $LIBS" | |
15109 | if test x$gcc_no_link = xyes; then | |
15110 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15111 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15112 | { (exit 1); exit 1; }; } | |
15113 | fi | |
15114 | cat >conftest.$ac_ext <<_ACEOF | |
15115 | /* confdefs.h. */ | |
15116 | _ACEOF | |
15117 | cat confdefs.h >>conftest.$ac_ext | |
15118 | cat >>conftest.$ac_ext <<_ACEOF | |
15119 | /* end confdefs.h. */ | |
15120 | ||
15121 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15122 | #ifdef __cplusplus | |
15123 | extern "C" | |
15124 | #endif | |
15125 | /* We use char because int might match the return type of a gcc2 | |
15126 | builtin and then its argument prototype would still apply. */ | |
15127 | char csin (); | |
15128 | int | |
15129 | main () | |
15130 | { | |
15131 | csin (); | |
15132 | ; | |
15133 | return 0; | |
15134 | } | |
15135 | _ACEOF | |
15136 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15138 | (eval $ac_link) 2>conftest.er1 | |
15139 | ac_status=$? | |
15140 | grep -v '^ *+' conftest.er1 >conftest.err | |
15141 | rm -f conftest.er1 | |
15142 | cat conftest.err >&5 | |
15143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15144 | (exit $ac_status); } && | |
15145 | { ac_try='test -z "$ac_c_werror_flag" | |
15146 | || test ! -s conftest.err' | |
15147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15148 | (eval $ac_try) 2>&5 | |
15149 | ac_status=$? | |
15150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15151 | (exit $ac_status); }; } && | |
15152 | { ac_try='test -s conftest$ac_exeext' | |
15153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15154 | (eval $ac_try) 2>&5 | |
15155 | ac_status=$? | |
15156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15157 | (exit $ac_status); }; }; then | |
15158 | ac_cv_lib_m_csin=yes | |
15159 | else | |
15160 | echo "$as_me: failed program was:" >&5 | |
15161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15162 | ||
15163 | ac_cv_lib_m_csin=no | |
15164 | fi | |
15165 | rm -f conftest.err conftest.$ac_objext \ | |
15166 | conftest$ac_exeext conftest.$ac_ext | |
15167 | LIBS=$ac_check_lib_save_LIBS | |
15168 | fi | |
15169 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csin" >&5 | |
15170 | echo "${ECHO_T}$ac_cv_lib_m_csin" >&6 | |
15171 | if test $ac_cv_lib_m_csin = yes; then | |
15172 | ||
15173 | cat >>confdefs.h <<\_ACEOF | |
15174 | #define HAVE_CSIN 1 | |
15175 | _ACEOF | |
15176 | ||
15177 | fi | |
15178 | ||
15179 | echo "$as_me:$LINENO: checking for csinl in -lm" >&5 | |
15180 | echo $ECHO_N "checking for csinl in -lm... $ECHO_C" >&6 | |
15181 | if test "${ac_cv_lib_m_csinl+set}" = set; then | |
15182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15183 | else | |
15184 | ac_check_lib_save_LIBS=$LIBS | |
15185 | LIBS="-lm $LIBS" | |
15186 | if test x$gcc_no_link = xyes; then | |
15187 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15188 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15189 | { (exit 1); exit 1; }; } | |
15190 | fi | |
15191 | cat >conftest.$ac_ext <<_ACEOF | |
15192 | /* confdefs.h. */ | |
15193 | _ACEOF | |
15194 | cat confdefs.h >>conftest.$ac_ext | |
15195 | cat >>conftest.$ac_ext <<_ACEOF | |
15196 | /* end confdefs.h. */ | |
15197 | ||
15198 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15199 | #ifdef __cplusplus | |
15200 | extern "C" | |
15201 | #endif | |
15202 | /* We use char because int might match the return type of a gcc2 | |
15203 | builtin and then its argument prototype would still apply. */ | |
15204 | char csinl (); | |
15205 | int | |
15206 | main () | |
15207 | { | |
15208 | csinl (); | |
15209 | ; | |
15210 | return 0; | |
15211 | } | |
15212 | _ACEOF | |
15213 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15214 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15215 | (eval $ac_link) 2>conftest.er1 | |
15216 | ac_status=$? | |
15217 | grep -v '^ *+' conftest.er1 >conftest.err | |
15218 | rm -f conftest.er1 | |
15219 | cat conftest.err >&5 | |
15220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15221 | (exit $ac_status); } && | |
15222 | { ac_try='test -z "$ac_c_werror_flag" | |
15223 | || test ! -s conftest.err' | |
15224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15225 | (eval $ac_try) 2>&5 | |
15226 | ac_status=$? | |
15227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15228 | (exit $ac_status); }; } && | |
15229 | { ac_try='test -s conftest$ac_exeext' | |
15230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15231 | (eval $ac_try) 2>&5 | |
15232 | ac_status=$? | |
15233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15234 | (exit $ac_status); }; }; then | |
15235 | ac_cv_lib_m_csinl=yes | |
15236 | else | |
15237 | echo "$as_me: failed program was:" >&5 | |
15238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15239 | ||
15240 | ac_cv_lib_m_csinl=no | |
15241 | fi | |
15242 | rm -f conftest.err conftest.$ac_objext \ | |
15243 | conftest$ac_exeext conftest.$ac_ext | |
15244 | LIBS=$ac_check_lib_save_LIBS | |
15245 | fi | |
15246 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinl" >&5 | |
15247 | echo "${ECHO_T}$ac_cv_lib_m_csinl" >&6 | |
15248 | if test $ac_cv_lib_m_csinl = yes; then | |
15249 | ||
15250 | cat >>confdefs.h <<\_ACEOF | |
15251 | #define HAVE_CSINL 1 | |
15252 | _ACEOF | |
15253 | ||
15254 | fi | |
15255 | ||
15256 | echo "$as_me:$LINENO: checking for sinhf in -lm" >&5 | |
15257 | echo $ECHO_N "checking for sinhf in -lm... $ECHO_C" >&6 | |
15258 | if test "${ac_cv_lib_m_sinhf+set}" = set; then | |
15259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15260 | else | |
15261 | ac_check_lib_save_LIBS=$LIBS | |
15262 | LIBS="-lm $LIBS" | |
15263 | if test x$gcc_no_link = xyes; then | |
15264 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15265 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15266 | { (exit 1); exit 1; }; } | |
15267 | fi | |
15268 | cat >conftest.$ac_ext <<_ACEOF | |
15269 | /* confdefs.h. */ | |
15270 | _ACEOF | |
15271 | cat confdefs.h >>conftest.$ac_ext | |
15272 | cat >>conftest.$ac_ext <<_ACEOF | |
15273 | /* end confdefs.h. */ | |
15274 | ||
15275 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15276 | #ifdef __cplusplus | |
15277 | extern "C" | |
15278 | #endif | |
15279 | /* We use char because int might match the return type of a gcc2 | |
15280 | builtin and then its argument prototype would still apply. */ | |
15281 | char sinhf (); | |
15282 | int | |
15283 | main () | |
15284 | { | |
15285 | sinhf (); | |
15286 | ; | |
15287 | return 0; | |
15288 | } | |
15289 | _ACEOF | |
15290 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15291 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15292 | (eval $ac_link) 2>conftest.er1 | |
15293 | ac_status=$? | |
15294 | grep -v '^ *+' conftest.er1 >conftest.err | |
15295 | rm -f conftest.er1 | |
15296 | cat conftest.err >&5 | |
15297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15298 | (exit $ac_status); } && | |
15299 | { ac_try='test -z "$ac_c_werror_flag" | |
15300 | || test ! -s conftest.err' | |
15301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15302 | (eval $ac_try) 2>&5 | |
15303 | ac_status=$? | |
15304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15305 | (exit $ac_status); }; } && | |
15306 | { ac_try='test -s conftest$ac_exeext' | |
15307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15308 | (eval $ac_try) 2>&5 | |
15309 | ac_status=$? | |
15310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15311 | (exit $ac_status); }; }; then | |
15312 | ac_cv_lib_m_sinhf=yes | |
15313 | else | |
15314 | echo "$as_me: failed program was:" >&5 | |
15315 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15316 | ||
15317 | ac_cv_lib_m_sinhf=no | |
15318 | fi | |
15319 | rm -f conftest.err conftest.$ac_objext \ | |
15320 | conftest$ac_exeext conftest.$ac_ext | |
15321 | LIBS=$ac_check_lib_save_LIBS | |
15322 | fi | |
15323 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhf" >&5 | |
15324 | echo "${ECHO_T}$ac_cv_lib_m_sinhf" >&6 | |
15325 | if test $ac_cv_lib_m_sinhf = yes; then | |
15326 | ||
15327 | cat >>confdefs.h <<\_ACEOF | |
15328 | #define HAVE_SINHF 1 | |
15329 | _ACEOF | |
15330 | ||
15331 | fi | |
15332 | ||
15333 | echo "$as_me:$LINENO: checking for sinh in -lm" >&5 | |
15334 | echo $ECHO_N "checking for sinh in -lm... $ECHO_C" >&6 | |
15335 | if test "${ac_cv_lib_m_sinh+set}" = set; then | |
15336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15337 | else | |
15338 | ac_check_lib_save_LIBS=$LIBS | |
15339 | LIBS="-lm $LIBS" | |
15340 | if test x$gcc_no_link = xyes; then | |
15341 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15342 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15343 | { (exit 1); exit 1; }; } | |
15344 | fi | |
15345 | cat >conftest.$ac_ext <<_ACEOF | |
15346 | /* confdefs.h. */ | |
15347 | _ACEOF | |
15348 | cat confdefs.h >>conftest.$ac_ext | |
15349 | cat >>conftest.$ac_ext <<_ACEOF | |
15350 | /* end confdefs.h. */ | |
15351 | ||
15352 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15353 | #ifdef __cplusplus | |
15354 | extern "C" | |
15355 | #endif | |
15356 | /* We use char because int might match the return type of a gcc2 | |
15357 | builtin and then its argument prototype would still apply. */ | |
15358 | char sinh (); | |
15359 | int | |
15360 | main () | |
15361 | { | |
15362 | sinh (); | |
15363 | ; | |
15364 | return 0; | |
15365 | } | |
15366 | _ACEOF | |
15367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15369 | (eval $ac_link) 2>conftest.er1 | |
15370 | ac_status=$? | |
15371 | grep -v '^ *+' conftest.er1 >conftest.err | |
15372 | rm -f conftest.er1 | |
15373 | cat conftest.err >&5 | |
15374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15375 | (exit $ac_status); } && | |
15376 | { ac_try='test -z "$ac_c_werror_flag" | |
15377 | || test ! -s conftest.err' | |
15378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15379 | (eval $ac_try) 2>&5 | |
15380 | ac_status=$? | |
15381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15382 | (exit $ac_status); }; } && | |
15383 | { ac_try='test -s conftest$ac_exeext' | |
15384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15385 | (eval $ac_try) 2>&5 | |
15386 | ac_status=$? | |
15387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15388 | (exit $ac_status); }; }; then | |
15389 | ac_cv_lib_m_sinh=yes | |
15390 | else | |
15391 | echo "$as_me: failed program was:" >&5 | |
15392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15393 | ||
15394 | ac_cv_lib_m_sinh=no | |
15395 | fi | |
15396 | rm -f conftest.err conftest.$ac_objext \ | |
15397 | conftest$ac_exeext conftest.$ac_ext | |
15398 | LIBS=$ac_check_lib_save_LIBS | |
15399 | fi | |
15400 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinh" >&5 | |
15401 | echo "${ECHO_T}$ac_cv_lib_m_sinh" >&6 | |
15402 | if test $ac_cv_lib_m_sinh = yes; then | |
15403 | ||
15404 | cat >>confdefs.h <<\_ACEOF | |
15405 | #define HAVE_SINH 1 | |
15406 | _ACEOF | |
15407 | ||
15408 | fi | |
15409 | ||
15410 | echo "$as_me:$LINENO: checking for sinhl in -lm" >&5 | |
15411 | echo $ECHO_N "checking for sinhl in -lm... $ECHO_C" >&6 | |
15412 | if test "${ac_cv_lib_m_sinhl+set}" = set; then | |
15413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15414 | else | |
15415 | ac_check_lib_save_LIBS=$LIBS | |
15416 | LIBS="-lm $LIBS" | |
15417 | if test x$gcc_no_link = xyes; then | |
15418 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15419 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15420 | { (exit 1); exit 1; }; } | |
15421 | fi | |
15422 | cat >conftest.$ac_ext <<_ACEOF | |
15423 | /* confdefs.h. */ | |
15424 | _ACEOF | |
15425 | cat confdefs.h >>conftest.$ac_ext | |
15426 | cat >>conftest.$ac_ext <<_ACEOF | |
15427 | /* end confdefs.h. */ | |
15428 | ||
15429 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15430 | #ifdef __cplusplus | |
15431 | extern "C" | |
15432 | #endif | |
15433 | /* We use char because int might match the return type of a gcc2 | |
15434 | builtin and then its argument prototype would still apply. */ | |
15435 | char sinhl (); | |
15436 | int | |
15437 | main () | |
15438 | { | |
15439 | sinhl (); | |
15440 | ; | |
15441 | return 0; | |
15442 | } | |
15443 | _ACEOF | |
15444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15446 | (eval $ac_link) 2>conftest.er1 | |
15447 | ac_status=$? | |
15448 | grep -v '^ *+' conftest.er1 >conftest.err | |
15449 | rm -f conftest.er1 | |
15450 | cat conftest.err >&5 | |
15451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15452 | (exit $ac_status); } && | |
15453 | { ac_try='test -z "$ac_c_werror_flag" | |
15454 | || test ! -s conftest.err' | |
15455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15456 | (eval $ac_try) 2>&5 | |
15457 | ac_status=$? | |
15458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15459 | (exit $ac_status); }; } && | |
15460 | { ac_try='test -s conftest$ac_exeext' | |
15461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15462 | (eval $ac_try) 2>&5 | |
15463 | ac_status=$? | |
15464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15465 | (exit $ac_status); }; }; then | |
15466 | ac_cv_lib_m_sinhl=yes | |
15467 | else | |
15468 | echo "$as_me: failed program was:" >&5 | |
15469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15470 | ||
15471 | ac_cv_lib_m_sinhl=no | |
15472 | fi | |
15473 | rm -f conftest.err conftest.$ac_objext \ | |
15474 | conftest$ac_exeext conftest.$ac_ext | |
15475 | LIBS=$ac_check_lib_save_LIBS | |
15476 | fi | |
15477 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sinhl" >&5 | |
15478 | echo "${ECHO_T}$ac_cv_lib_m_sinhl" >&6 | |
15479 | if test $ac_cv_lib_m_sinhl = yes; then | |
15480 | ||
15481 | cat >>confdefs.h <<\_ACEOF | |
15482 | #define HAVE_SINHL 1 | |
15483 | _ACEOF | |
15484 | ||
15485 | fi | |
15486 | ||
15487 | echo "$as_me:$LINENO: checking for csinhf in -lm" >&5 | |
15488 | echo $ECHO_N "checking for csinhf in -lm... $ECHO_C" >&6 | |
15489 | if test "${ac_cv_lib_m_csinhf+set}" = set; then | |
15490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15491 | else | |
15492 | ac_check_lib_save_LIBS=$LIBS | |
15493 | LIBS="-lm $LIBS" | |
15494 | if test x$gcc_no_link = xyes; then | |
15495 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15496 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15497 | { (exit 1); exit 1; }; } | |
15498 | fi | |
15499 | cat >conftest.$ac_ext <<_ACEOF | |
15500 | /* confdefs.h. */ | |
15501 | _ACEOF | |
15502 | cat confdefs.h >>conftest.$ac_ext | |
15503 | cat >>conftest.$ac_ext <<_ACEOF | |
15504 | /* end confdefs.h. */ | |
15505 | ||
15506 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15507 | #ifdef __cplusplus | |
15508 | extern "C" | |
15509 | #endif | |
15510 | /* We use char because int might match the return type of a gcc2 | |
15511 | builtin and then its argument prototype would still apply. */ | |
15512 | char csinhf (); | |
15513 | int | |
15514 | main () | |
15515 | { | |
15516 | csinhf (); | |
15517 | ; | |
15518 | return 0; | |
15519 | } | |
15520 | _ACEOF | |
15521 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15523 | (eval $ac_link) 2>conftest.er1 | |
15524 | ac_status=$? | |
15525 | grep -v '^ *+' conftest.er1 >conftest.err | |
15526 | rm -f conftest.er1 | |
15527 | cat conftest.err >&5 | |
15528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15529 | (exit $ac_status); } && | |
15530 | { ac_try='test -z "$ac_c_werror_flag" | |
15531 | || test ! -s conftest.err' | |
15532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15533 | (eval $ac_try) 2>&5 | |
15534 | ac_status=$? | |
15535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15536 | (exit $ac_status); }; } && | |
15537 | { ac_try='test -s conftest$ac_exeext' | |
15538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15539 | (eval $ac_try) 2>&5 | |
15540 | ac_status=$? | |
15541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15542 | (exit $ac_status); }; }; then | |
15543 | ac_cv_lib_m_csinhf=yes | |
15544 | else | |
15545 | echo "$as_me: failed program was:" >&5 | |
15546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15547 | ||
15548 | ac_cv_lib_m_csinhf=no | |
15549 | fi | |
15550 | rm -f conftest.err conftest.$ac_objext \ | |
15551 | conftest$ac_exeext conftest.$ac_ext | |
15552 | LIBS=$ac_check_lib_save_LIBS | |
15553 | fi | |
15554 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinhf" >&5 | |
15555 | echo "${ECHO_T}$ac_cv_lib_m_csinhf" >&6 | |
15556 | if test $ac_cv_lib_m_csinhf = yes; then | |
15557 | ||
15558 | cat >>confdefs.h <<\_ACEOF | |
15559 | #define HAVE_CSINHF 1 | |
15560 | _ACEOF | |
15561 | ||
15562 | fi | |
15563 | ||
15564 | echo "$as_me:$LINENO: checking for csinh in -lm" >&5 | |
15565 | echo $ECHO_N "checking for csinh in -lm... $ECHO_C" >&6 | |
15566 | if test "${ac_cv_lib_m_csinh+set}" = set; then | |
15567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15568 | else | |
15569 | ac_check_lib_save_LIBS=$LIBS | |
15570 | LIBS="-lm $LIBS" | |
15571 | if test x$gcc_no_link = xyes; then | |
15572 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15573 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15574 | { (exit 1); exit 1; }; } | |
15575 | fi | |
15576 | cat >conftest.$ac_ext <<_ACEOF | |
15577 | /* confdefs.h. */ | |
15578 | _ACEOF | |
15579 | cat confdefs.h >>conftest.$ac_ext | |
15580 | cat >>conftest.$ac_ext <<_ACEOF | |
15581 | /* end confdefs.h. */ | |
15582 | ||
15583 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15584 | #ifdef __cplusplus | |
15585 | extern "C" | |
15586 | #endif | |
15587 | /* We use char because int might match the return type of a gcc2 | |
15588 | builtin and then its argument prototype would still apply. */ | |
15589 | char csinh (); | |
15590 | int | |
15591 | main () | |
15592 | { | |
15593 | csinh (); | |
15594 | ; | |
15595 | return 0; | |
15596 | } | |
15597 | _ACEOF | |
15598 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15600 | (eval $ac_link) 2>conftest.er1 | |
15601 | ac_status=$? | |
15602 | grep -v '^ *+' conftest.er1 >conftest.err | |
15603 | rm -f conftest.er1 | |
15604 | cat conftest.err >&5 | |
15605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15606 | (exit $ac_status); } && | |
15607 | { ac_try='test -z "$ac_c_werror_flag" | |
15608 | || test ! -s conftest.err' | |
15609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15610 | (eval $ac_try) 2>&5 | |
15611 | ac_status=$? | |
15612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15613 | (exit $ac_status); }; } && | |
15614 | { ac_try='test -s conftest$ac_exeext' | |
15615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15616 | (eval $ac_try) 2>&5 | |
15617 | ac_status=$? | |
15618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15619 | (exit $ac_status); }; }; then | |
15620 | ac_cv_lib_m_csinh=yes | |
15621 | else | |
15622 | echo "$as_me: failed program was:" >&5 | |
15623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15624 | ||
15625 | ac_cv_lib_m_csinh=no | |
15626 | fi | |
15627 | rm -f conftest.err conftest.$ac_objext \ | |
15628 | conftest$ac_exeext conftest.$ac_ext | |
15629 | LIBS=$ac_check_lib_save_LIBS | |
15630 | fi | |
15631 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinh" >&5 | |
15632 | echo "${ECHO_T}$ac_cv_lib_m_csinh" >&6 | |
15633 | if test $ac_cv_lib_m_csinh = yes; then | |
15634 | ||
15635 | cat >>confdefs.h <<\_ACEOF | |
15636 | #define HAVE_CSINH 1 | |
15637 | _ACEOF | |
15638 | ||
15639 | fi | |
15640 | ||
15641 | echo "$as_me:$LINENO: checking for csinhl in -lm" >&5 | |
15642 | echo $ECHO_N "checking for csinhl in -lm... $ECHO_C" >&6 | |
15643 | if test "${ac_cv_lib_m_csinhl+set}" = set; then | |
15644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15645 | else | |
15646 | ac_check_lib_save_LIBS=$LIBS | |
15647 | LIBS="-lm $LIBS" | |
15648 | if test x$gcc_no_link = xyes; then | |
15649 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15650 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15651 | { (exit 1); exit 1; }; } | |
15652 | fi | |
15653 | cat >conftest.$ac_ext <<_ACEOF | |
15654 | /* confdefs.h. */ | |
15655 | _ACEOF | |
15656 | cat confdefs.h >>conftest.$ac_ext | |
15657 | cat >>conftest.$ac_ext <<_ACEOF | |
15658 | /* end confdefs.h. */ | |
15659 | ||
15660 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15661 | #ifdef __cplusplus | |
15662 | extern "C" | |
15663 | #endif | |
15664 | /* We use char because int might match the return type of a gcc2 | |
15665 | builtin and then its argument prototype would still apply. */ | |
15666 | char csinhl (); | |
15667 | int | |
15668 | main () | |
15669 | { | |
15670 | csinhl (); | |
15671 | ; | |
15672 | return 0; | |
15673 | } | |
15674 | _ACEOF | |
15675 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15676 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15677 | (eval $ac_link) 2>conftest.er1 | |
15678 | ac_status=$? | |
15679 | grep -v '^ *+' conftest.er1 >conftest.err | |
15680 | rm -f conftest.er1 | |
15681 | cat conftest.err >&5 | |
15682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15683 | (exit $ac_status); } && | |
15684 | { ac_try='test -z "$ac_c_werror_flag" | |
15685 | || test ! -s conftest.err' | |
15686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15687 | (eval $ac_try) 2>&5 | |
15688 | ac_status=$? | |
15689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15690 | (exit $ac_status); }; } && | |
15691 | { ac_try='test -s conftest$ac_exeext' | |
15692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15693 | (eval $ac_try) 2>&5 | |
15694 | ac_status=$? | |
15695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15696 | (exit $ac_status); }; }; then | |
15697 | ac_cv_lib_m_csinhl=yes | |
15698 | else | |
15699 | echo "$as_me: failed program was:" >&5 | |
15700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15701 | ||
15702 | ac_cv_lib_m_csinhl=no | |
15703 | fi | |
15704 | rm -f conftest.err conftest.$ac_objext \ | |
15705 | conftest$ac_exeext conftest.$ac_ext | |
15706 | LIBS=$ac_check_lib_save_LIBS | |
15707 | fi | |
15708 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csinhl" >&5 | |
15709 | echo "${ECHO_T}$ac_cv_lib_m_csinhl" >&6 | |
15710 | if test $ac_cv_lib_m_csinhl = yes; then | |
15711 | ||
15712 | cat >>confdefs.h <<\_ACEOF | |
15713 | #define HAVE_CSINHL 1 | |
15714 | _ACEOF | |
15715 | ||
15716 | fi | |
15717 | ||
15718 | echo "$as_me:$LINENO: checking for sqrtf in -lm" >&5 | |
15719 | echo $ECHO_N "checking for sqrtf in -lm... $ECHO_C" >&6 | |
15720 | if test "${ac_cv_lib_m_sqrtf+set}" = set; then | |
15721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15722 | else | |
15723 | ac_check_lib_save_LIBS=$LIBS | |
15724 | LIBS="-lm $LIBS" | |
15725 | if test x$gcc_no_link = xyes; then | |
15726 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15727 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15728 | { (exit 1); exit 1; }; } | |
15729 | fi | |
15730 | cat >conftest.$ac_ext <<_ACEOF | |
15731 | /* confdefs.h. */ | |
15732 | _ACEOF | |
15733 | cat confdefs.h >>conftest.$ac_ext | |
15734 | cat >>conftest.$ac_ext <<_ACEOF | |
15735 | /* end confdefs.h. */ | |
15736 | ||
15737 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15738 | #ifdef __cplusplus | |
15739 | extern "C" | |
15740 | #endif | |
15741 | /* We use char because int might match the return type of a gcc2 | |
15742 | builtin and then its argument prototype would still apply. */ | |
15743 | char sqrtf (); | |
15744 | int | |
15745 | main () | |
15746 | { | |
15747 | sqrtf (); | |
15748 | ; | |
15749 | return 0; | |
15750 | } | |
15751 | _ACEOF | |
15752 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15754 | (eval $ac_link) 2>conftest.er1 | |
15755 | ac_status=$? | |
15756 | grep -v '^ *+' conftest.er1 >conftest.err | |
15757 | rm -f conftest.er1 | |
15758 | cat conftest.err >&5 | |
15759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15760 | (exit $ac_status); } && | |
15761 | { ac_try='test -z "$ac_c_werror_flag" | |
15762 | || test ! -s conftest.err' | |
15763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15764 | (eval $ac_try) 2>&5 | |
15765 | ac_status=$? | |
15766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15767 | (exit $ac_status); }; } && | |
15768 | { ac_try='test -s conftest$ac_exeext' | |
15769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15770 | (eval $ac_try) 2>&5 | |
15771 | ac_status=$? | |
15772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15773 | (exit $ac_status); }; }; then | |
15774 | ac_cv_lib_m_sqrtf=yes | |
15775 | else | |
15776 | echo "$as_me: failed program was:" >&5 | |
15777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15778 | ||
15779 | ac_cv_lib_m_sqrtf=no | |
15780 | fi | |
15781 | rm -f conftest.err conftest.$ac_objext \ | |
15782 | conftest$ac_exeext conftest.$ac_ext | |
15783 | LIBS=$ac_check_lib_save_LIBS | |
15784 | fi | |
15785 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtf" >&5 | |
15786 | echo "${ECHO_T}$ac_cv_lib_m_sqrtf" >&6 | |
15787 | if test $ac_cv_lib_m_sqrtf = yes; then | |
15788 | ||
15789 | cat >>confdefs.h <<\_ACEOF | |
15790 | #define HAVE_SQRTF 1 | |
15791 | _ACEOF | |
15792 | ||
15793 | fi | |
15794 | ||
15795 | echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 | |
15796 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6 | |
15797 | if test "${ac_cv_lib_m_sqrt+set}" = set; then | |
15798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15799 | else | |
15800 | ac_check_lib_save_LIBS=$LIBS | |
15801 | LIBS="-lm $LIBS" | |
15802 | if test x$gcc_no_link = xyes; then | |
15803 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15804 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15805 | { (exit 1); exit 1; }; } | |
15806 | fi | |
15807 | cat >conftest.$ac_ext <<_ACEOF | |
15808 | /* confdefs.h. */ | |
15809 | _ACEOF | |
15810 | cat confdefs.h >>conftest.$ac_ext | |
15811 | cat >>conftest.$ac_ext <<_ACEOF | |
15812 | /* end confdefs.h. */ | |
15813 | ||
15814 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15815 | #ifdef __cplusplus | |
15816 | extern "C" | |
15817 | #endif | |
15818 | /* We use char because int might match the return type of a gcc2 | |
15819 | builtin and then its argument prototype would still apply. */ | |
15820 | char sqrt (); | |
15821 | int | |
15822 | main () | |
15823 | { | |
15824 | sqrt (); | |
15825 | ; | |
15826 | return 0; | |
15827 | } | |
15828 | _ACEOF | |
15829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15831 | (eval $ac_link) 2>conftest.er1 | |
15832 | ac_status=$? | |
15833 | grep -v '^ *+' conftest.er1 >conftest.err | |
15834 | rm -f conftest.er1 | |
15835 | cat conftest.err >&5 | |
15836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15837 | (exit $ac_status); } && | |
15838 | { ac_try='test -z "$ac_c_werror_flag" | |
15839 | || test ! -s conftest.err' | |
15840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15841 | (eval $ac_try) 2>&5 | |
15842 | ac_status=$? | |
15843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15844 | (exit $ac_status); }; } && | |
15845 | { ac_try='test -s conftest$ac_exeext' | |
15846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15847 | (eval $ac_try) 2>&5 | |
15848 | ac_status=$? | |
15849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15850 | (exit $ac_status); }; }; then | |
15851 | ac_cv_lib_m_sqrt=yes | |
15852 | else | |
15853 | echo "$as_me: failed program was:" >&5 | |
15854 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15855 | ||
15856 | ac_cv_lib_m_sqrt=no | |
15857 | fi | |
15858 | rm -f conftest.err conftest.$ac_objext \ | |
15859 | conftest$ac_exeext conftest.$ac_ext | |
15860 | LIBS=$ac_check_lib_save_LIBS | |
15861 | fi | |
15862 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 | |
15863 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6 | |
15864 | if test $ac_cv_lib_m_sqrt = yes; then | |
15865 | ||
15866 | cat >>confdefs.h <<\_ACEOF | |
15867 | #define HAVE_SQRT 1 | |
15868 | _ACEOF | |
15869 | ||
15870 | fi | |
15871 | ||
15872 | echo "$as_me:$LINENO: checking for sqrtl in -lm" >&5 | |
15873 | echo $ECHO_N "checking for sqrtl in -lm... $ECHO_C" >&6 | |
15874 | if test "${ac_cv_lib_m_sqrtl+set}" = set; then | |
15875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15876 | else | |
15877 | ac_check_lib_save_LIBS=$LIBS | |
15878 | LIBS="-lm $LIBS" | |
15879 | if test x$gcc_no_link = xyes; then | |
15880 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15881 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15882 | { (exit 1); exit 1; }; } | |
15883 | fi | |
15884 | cat >conftest.$ac_ext <<_ACEOF | |
15885 | /* confdefs.h. */ | |
15886 | _ACEOF | |
15887 | cat confdefs.h >>conftest.$ac_ext | |
15888 | cat >>conftest.$ac_ext <<_ACEOF | |
15889 | /* end confdefs.h. */ | |
15890 | ||
15891 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15892 | #ifdef __cplusplus | |
15893 | extern "C" | |
15894 | #endif | |
15895 | /* We use char because int might match the return type of a gcc2 | |
15896 | builtin and then its argument prototype would still apply. */ | |
15897 | char sqrtl (); | |
15898 | int | |
15899 | main () | |
15900 | { | |
15901 | sqrtl (); | |
15902 | ; | |
15903 | return 0; | |
15904 | } | |
15905 | _ACEOF | |
15906 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15907 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15908 | (eval $ac_link) 2>conftest.er1 | |
15909 | ac_status=$? | |
15910 | grep -v '^ *+' conftest.er1 >conftest.err | |
15911 | rm -f conftest.er1 | |
15912 | cat conftest.err >&5 | |
15913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15914 | (exit $ac_status); } && | |
15915 | { ac_try='test -z "$ac_c_werror_flag" | |
15916 | || test ! -s conftest.err' | |
15917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15918 | (eval $ac_try) 2>&5 | |
15919 | ac_status=$? | |
15920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15921 | (exit $ac_status); }; } && | |
15922 | { ac_try='test -s conftest$ac_exeext' | |
15923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15924 | (eval $ac_try) 2>&5 | |
15925 | ac_status=$? | |
15926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15927 | (exit $ac_status); }; }; then | |
15928 | ac_cv_lib_m_sqrtl=yes | |
15929 | else | |
15930 | echo "$as_me: failed program was:" >&5 | |
15931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15932 | ||
15933 | ac_cv_lib_m_sqrtl=no | |
15934 | fi | |
15935 | rm -f conftest.err conftest.$ac_objext \ | |
15936 | conftest$ac_exeext conftest.$ac_ext | |
15937 | LIBS=$ac_check_lib_save_LIBS | |
15938 | fi | |
15939 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrtl" >&5 | |
15940 | echo "${ECHO_T}$ac_cv_lib_m_sqrtl" >&6 | |
15941 | if test $ac_cv_lib_m_sqrtl = yes; then | |
15942 | ||
15943 | cat >>confdefs.h <<\_ACEOF | |
15944 | #define HAVE_SQRTL 1 | |
15945 | _ACEOF | |
15946 | ||
15947 | fi | |
15948 | ||
15949 | echo "$as_me:$LINENO: checking for csqrtf in -lm" >&5 | |
15950 | echo $ECHO_N "checking for csqrtf in -lm... $ECHO_C" >&6 | |
15951 | if test "${ac_cv_lib_m_csqrtf+set}" = set; then | |
15952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15953 | else | |
15954 | ac_check_lib_save_LIBS=$LIBS | |
15955 | LIBS="-lm $LIBS" | |
15956 | if test x$gcc_no_link = xyes; then | |
15957 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
15958 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
15959 | { (exit 1); exit 1; }; } | |
15960 | fi | |
15961 | cat >conftest.$ac_ext <<_ACEOF | |
15962 | /* confdefs.h. */ | |
15963 | _ACEOF | |
15964 | cat confdefs.h >>conftest.$ac_ext | |
15965 | cat >>conftest.$ac_ext <<_ACEOF | |
15966 | /* end confdefs.h. */ | |
15967 | ||
15968 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15969 | #ifdef __cplusplus | |
15970 | extern "C" | |
15971 | #endif | |
15972 | /* We use char because int might match the return type of a gcc2 | |
15973 | builtin and then its argument prototype would still apply. */ | |
15974 | char csqrtf (); | |
15975 | int | |
15976 | main () | |
15977 | { | |
15978 | csqrtf (); | |
15979 | ; | |
15980 | return 0; | |
15981 | } | |
15982 | _ACEOF | |
15983 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15985 | (eval $ac_link) 2>conftest.er1 | |
15986 | ac_status=$? | |
15987 | grep -v '^ *+' conftest.er1 >conftest.err | |
15988 | rm -f conftest.er1 | |
15989 | cat conftest.err >&5 | |
15990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15991 | (exit $ac_status); } && | |
15992 | { ac_try='test -z "$ac_c_werror_flag" | |
15993 | || test ! -s conftest.err' | |
15994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15995 | (eval $ac_try) 2>&5 | |
15996 | ac_status=$? | |
15997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15998 | (exit $ac_status); }; } && | |
15999 | { ac_try='test -s conftest$ac_exeext' | |
16000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16001 | (eval $ac_try) 2>&5 | |
16002 | ac_status=$? | |
16003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16004 | (exit $ac_status); }; }; then | |
16005 | ac_cv_lib_m_csqrtf=yes | |
16006 | else | |
16007 | echo "$as_me: failed program was:" >&5 | |
16008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16009 | ||
16010 | ac_cv_lib_m_csqrtf=no | |
16011 | fi | |
16012 | rm -f conftest.err conftest.$ac_objext \ | |
16013 | conftest$ac_exeext conftest.$ac_ext | |
16014 | LIBS=$ac_check_lib_save_LIBS | |
16015 | fi | |
16016 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrtf" >&5 | |
16017 | echo "${ECHO_T}$ac_cv_lib_m_csqrtf" >&6 | |
16018 | if test $ac_cv_lib_m_csqrtf = yes; then | |
16019 | ||
16020 | cat >>confdefs.h <<\_ACEOF | |
16021 | #define HAVE_CSQRTF 1 | |
16022 | _ACEOF | |
16023 | ||
16024 | fi | |
16025 | ||
16026 | echo "$as_me:$LINENO: checking for csqrt in -lm" >&5 | |
16027 | echo $ECHO_N "checking for csqrt in -lm... $ECHO_C" >&6 | |
16028 | if test "${ac_cv_lib_m_csqrt+set}" = set; then | |
16029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16030 | else | |
16031 | ac_check_lib_save_LIBS=$LIBS | |
16032 | LIBS="-lm $LIBS" | |
16033 | if test x$gcc_no_link = xyes; then | |
16034 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16035 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16036 | { (exit 1); exit 1; }; } | |
16037 | fi | |
16038 | cat >conftest.$ac_ext <<_ACEOF | |
16039 | /* confdefs.h. */ | |
16040 | _ACEOF | |
16041 | cat confdefs.h >>conftest.$ac_ext | |
16042 | cat >>conftest.$ac_ext <<_ACEOF | |
16043 | /* end confdefs.h. */ | |
16044 | ||
16045 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16046 | #ifdef __cplusplus | |
16047 | extern "C" | |
16048 | #endif | |
16049 | /* We use char because int might match the return type of a gcc2 | |
16050 | builtin and then its argument prototype would still apply. */ | |
16051 | char csqrt (); | |
16052 | int | |
16053 | main () | |
16054 | { | |
16055 | csqrt (); | |
16056 | ; | |
16057 | return 0; | |
16058 | } | |
16059 | _ACEOF | |
16060 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16062 | (eval $ac_link) 2>conftest.er1 | |
16063 | ac_status=$? | |
16064 | grep -v '^ *+' conftest.er1 >conftest.err | |
16065 | rm -f conftest.er1 | |
16066 | cat conftest.err >&5 | |
16067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16068 | (exit $ac_status); } && | |
16069 | { ac_try='test -z "$ac_c_werror_flag" | |
16070 | || test ! -s conftest.err' | |
16071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16072 | (eval $ac_try) 2>&5 | |
16073 | ac_status=$? | |
16074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16075 | (exit $ac_status); }; } && | |
16076 | { ac_try='test -s conftest$ac_exeext' | |
16077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16078 | (eval $ac_try) 2>&5 | |
16079 | ac_status=$? | |
16080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16081 | (exit $ac_status); }; }; then | |
16082 | ac_cv_lib_m_csqrt=yes | |
16083 | else | |
16084 | echo "$as_me: failed program was:" >&5 | |
16085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16086 | ||
16087 | ac_cv_lib_m_csqrt=no | |
16088 | fi | |
16089 | rm -f conftest.err conftest.$ac_objext \ | |
16090 | conftest$ac_exeext conftest.$ac_ext | |
16091 | LIBS=$ac_check_lib_save_LIBS | |
16092 | fi | |
16093 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrt" >&5 | |
16094 | echo "${ECHO_T}$ac_cv_lib_m_csqrt" >&6 | |
16095 | if test $ac_cv_lib_m_csqrt = yes; then | |
16096 | ||
16097 | cat >>confdefs.h <<\_ACEOF | |
16098 | #define HAVE_CSQRT 1 | |
16099 | _ACEOF | |
16100 | ||
16101 | fi | |
16102 | ||
16103 | echo "$as_me:$LINENO: checking for csqrtl in -lm" >&5 | |
16104 | echo $ECHO_N "checking for csqrtl in -lm... $ECHO_C" >&6 | |
16105 | if test "${ac_cv_lib_m_csqrtl+set}" = set; then | |
16106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16107 | else | |
16108 | ac_check_lib_save_LIBS=$LIBS | |
16109 | LIBS="-lm $LIBS" | |
16110 | if test x$gcc_no_link = xyes; then | |
16111 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16112 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16113 | { (exit 1); exit 1; }; } | |
16114 | fi | |
16115 | cat >conftest.$ac_ext <<_ACEOF | |
16116 | /* confdefs.h. */ | |
16117 | _ACEOF | |
16118 | cat confdefs.h >>conftest.$ac_ext | |
16119 | cat >>conftest.$ac_ext <<_ACEOF | |
16120 | /* end confdefs.h. */ | |
16121 | ||
16122 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16123 | #ifdef __cplusplus | |
16124 | extern "C" | |
16125 | #endif | |
16126 | /* We use char because int might match the return type of a gcc2 | |
16127 | builtin and then its argument prototype would still apply. */ | |
16128 | char csqrtl (); | |
16129 | int | |
16130 | main () | |
16131 | { | |
16132 | csqrtl (); | |
16133 | ; | |
16134 | return 0; | |
16135 | } | |
16136 | _ACEOF | |
16137 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16138 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16139 | (eval $ac_link) 2>conftest.er1 | |
16140 | ac_status=$? | |
16141 | grep -v '^ *+' conftest.er1 >conftest.err | |
16142 | rm -f conftest.er1 | |
16143 | cat conftest.err >&5 | |
16144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16145 | (exit $ac_status); } && | |
16146 | { ac_try='test -z "$ac_c_werror_flag" | |
16147 | || test ! -s conftest.err' | |
16148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16149 | (eval $ac_try) 2>&5 | |
16150 | ac_status=$? | |
16151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16152 | (exit $ac_status); }; } && | |
16153 | { ac_try='test -s conftest$ac_exeext' | |
16154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16155 | (eval $ac_try) 2>&5 | |
16156 | ac_status=$? | |
16157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16158 | (exit $ac_status); }; }; then | |
16159 | ac_cv_lib_m_csqrtl=yes | |
16160 | else | |
16161 | echo "$as_me: failed program was:" >&5 | |
16162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16163 | ||
16164 | ac_cv_lib_m_csqrtl=no | |
16165 | fi | |
16166 | rm -f conftest.err conftest.$ac_objext \ | |
16167 | conftest$ac_exeext conftest.$ac_ext | |
16168 | LIBS=$ac_check_lib_save_LIBS | |
16169 | fi | |
16170 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_csqrtl" >&5 | |
16171 | echo "${ECHO_T}$ac_cv_lib_m_csqrtl" >&6 | |
16172 | if test $ac_cv_lib_m_csqrtl = yes; then | |
16173 | ||
16174 | cat >>confdefs.h <<\_ACEOF | |
16175 | #define HAVE_CSQRTL 1 | |
16176 | _ACEOF | |
16177 | ||
16178 | fi | |
16179 | ||
16180 | echo "$as_me:$LINENO: checking for tanf in -lm" >&5 | |
16181 | echo $ECHO_N "checking for tanf in -lm... $ECHO_C" >&6 | |
16182 | if test "${ac_cv_lib_m_tanf+set}" = set; then | |
16183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16184 | else | |
16185 | ac_check_lib_save_LIBS=$LIBS | |
16186 | LIBS="-lm $LIBS" | |
16187 | if test x$gcc_no_link = xyes; then | |
16188 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16189 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16190 | { (exit 1); exit 1; }; } | |
16191 | fi | |
16192 | cat >conftest.$ac_ext <<_ACEOF | |
16193 | /* confdefs.h. */ | |
16194 | _ACEOF | |
16195 | cat confdefs.h >>conftest.$ac_ext | |
16196 | cat >>conftest.$ac_ext <<_ACEOF | |
16197 | /* end confdefs.h. */ | |
16198 | ||
16199 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16200 | #ifdef __cplusplus | |
16201 | extern "C" | |
16202 | #endif | |
16203 | /* We use char because int might match the return type of a gcc2 | |
16204 | builtin and then its argument prototype would still apply. */ | |
16205 | char tanf (); | |
16206 | int | |
16207 | main () | |
16208 | { | |
16209 | tanf (); | |
16210 | ; | |
16211 | return 0; | |
16212 | } | |
16213 | _ACEOF | |
16214 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16215 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16216 | (eval $ac_link) 2>conftest.er1 | |
16217 | ac_status=$? | |
16218 | grep -v '^ *+' conftest.er1 >conftest.err | |
16219 | rm -f conftest.er1 | |
16220 | cat conftest.err >&5 | |
16221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16222 | (exit $ac_status); } && | |
16223 | { ac_try='test -z "$ac_c_werror_flag" | |
16224 | || test ! -s conftest.err' | |
16225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16226 | (eval $ac_try) 2>&5 | |
16227 | ac_status=$? | |
16228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16229 | (exit $ac_status); }; } && | |
16230 | { ac_try='test -s conftest$ac_exeext' | |
16231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16232 | (eval $ac_try) 2>&5 | |
16233 | ac_status=$? | |
16234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16235 | (exit $ac_status); }; }; then | |
16236 | ac_cv_lib_m_tanf=yes | |
16237 | else | |
16238 | echo "$as_me: failed program was:" >&5 | |
16239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16240 | ||
16241 | ac_cv_lib_m_tanf=no | |
16242 | fi | |
16243 | rm -f conftest.err conftest.$ac_objext \ | |
16244 | conftest$ac_exeext conftest.$ac_ext | |
16245 | LIBS=$ac_check_lib_save_LIBS | |
16246 | fi | |
16247 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanf" >&5 | |
16248 | echo "${ECHO_T}$ac_cv_lib_m_tanf" >&6 | |
16249 | if test $ac_cv_lib_m_tanf = yes; then | |
16250 | ||
16251 | cat >>confdefs.h <<\_ACEOF | |
16252 | #define HAVE_TANF 1 | |
16253 | _ACEOF | |
16254 | ||
16255 | fi | |
16256 | ||
16257 | echo "$as_me:$LINENO: checking for tan in -lm" >&5 | |
16258 | echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6 | |
16259 | if test "${ac_cv_lib_m_tan+set}" = set; then | |
16260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16261 | else | |
16262 | ac_check_lib_save_LIBS=$LIBS | |
16263 | LIBS="-lm $LIBS" | |
16264 | if test x$gcc_no_link = xyes; then | |
16265 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16266 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16267 | { (exit 1); exit 1; }; } | |
16268 | fi | |
16269 | cat >conftest.$ac_ext <<_ACEOF | |
16270 | /* confdefs.h. */ | |
16271 | _ACEOF | |
16272 | cat confdefs.h >>conftest.$ac_ext | |
16273 | cat >>conftest.$ac_ext <<_ACEOF | |
16274 | /* end confdefs.h. */ | |
16275 | ||
16276 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16277 | #ifdef __cplusplus | |
16278 | extern "C" | |
16279 | #endif | |
16280 | /* We use char because int might match the return type of a gcc2 | |
16281 | builtin and then its argument prototype would still apply. */ | |
16282 | char tan (); | |
16283 | int | |
16284 | main () | |
16285 | { | |
16286 | tan (); | |
16287 | ; | |
16288 | return 0; | |
16289 | } | |
16290 | _ACEOF | |
16291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16293 | (eval $ac_link) 2>conftest.er1 | |
16294 | ac_status=$? | |
16295 | grep -v '^ *+' conftest.er1 >conftest.err | |
16296 | rm -f conftest.er1 | |
16297 | cat conftest.err >&5 | |
16298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16299 | (exit $ac_status); } && | |
16300 | { ac_try='test -z "$ac_c_werror_flag" | |
16301 | || test ! -s conftest.err' | |
16302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16303 | (eval $ac_try) 2>&5 | |
16304 | ac_status=$? | |
16305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16306 | (exit $ac_status); }; } && | |
16307 | { ac_try='test -s conftest$ac_exeext' | |
16308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16309 | (eval $ac_try) 2>&5 | |
16310 | ac_status=$? | |
16311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16312 | (exit $ac_status); }; }; then | |
16313 | ac_cv_lib_m_tan=yes | |
16314 | else | |
16315 | echo "$as_me: failed program was:" >&5 | |
16316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16317 | ||
16318 | ac_cv_lib_m_tan=no | |
16319 | fi | |
16320 | rm -f conftest.err conftest.$ac_objext \ | |
16321 | conftest$ac_exeext conftest.$ac_ext | |
16322 | LIBS=$ac_check_lib_save_LIBS | |
16323 | fi | |
16324 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5 | |
16325 | echo "${ECHO_T}$ac_cv_lib_m_tan" >&6 | |
16326 | if test $ac_cv_lib_m_tan = yes; then | |
16327 | ||
16328 | cat >>confdefs.h <<\_ACEOF | |
16329 | #define HAVE_TAN 1 | |
16330 | _ACEOF | |
16331 | ||
16332 | fi | |
16333 | ||
16334 | echo "$as_me:$LINENO: checking for tanl in -lm" >&5 | |
16335 | echo $ECHO_N "checking for tanl in -lm... $ECHO_C" >&6 | |
16336 | if test "${ac_cv_lib_m_tanl+set}" = set; then | |
16337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16338 | else | |
16339 | ac_check_lib_save_LIBS=$LIBS | |
16340 | LIBS="-lm $LIBS" | |
16341 | if test x$gcc_no_link = xyes; then | |
16342 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16343 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16344 | { (exit 1); exit 1; }; } | |
16345 | fi | |
16346 | cat >conftest.$ac_ext <<_ACEOF | |
16347 | /* confdefs.h. */ | |
16348 | _ACEOF | |
16349 | cat confdefs.h >>conftest.$ac_ext | |
16350 | cat >>conftest.$ac_ext <<_ACEOF | |
16351 | /* end confdefs.h. */ | |
16352 | ||
16353 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16354 | #ifdef __cplusplus | |
16355 | extern "C" | |
16356 | #endif | |
16357 | /* We use char because int might match the return type of a gcc2 | |
16358 | builtin and then its argument prototype would still apply. */ | |
16359 | char tanl (); | |
16360 | int | |
16361 | main () | |
16362 | { | |
16363 | tanl (); | |
16364 | ; | |
16365 | return 0; | |
16366 | } | |
16367 | _ACEOF | |
16368 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16370 | (eval $ac_link) 2>conftest.er1 | |
16371 | ac_status=$? | |
16372 | grep -v '^ *+' conftest.er1 >conftest.err | |
16373 | rm -f conftest.er1 | |
16374 | cat conftest.err >&5 | |
16375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16376 | (exit $ac_status); } && | |
16377 | { ac_try='test -z "$ac_c_werror_flag" | |
16378 | || test ! -s conftest.err' | |
16379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16380 | (eval $ac_try) 2>&5 | |
16381 | ac_status=$? | |
16382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16383 | (exit $ac_status); }; } && | |
16384 | { ac_try='test -s conftest$ac_exeext' | |
16385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16386 | (eval $ac_try) 2>&5 | |
16387 | ac_status=$? | |
16388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16389 | (exit $ac_status); }; }; then | |
16390 | ac_cv_lib_m_tanl=yes | |
16391 | else | |
16392 | echo "$as_me: failed program was:" >&5 | |
16393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16394 | ||
16395 | ac_cv_lib_m_tanl=no | |
16396 | fi | |
16397 | rm -f conftest.err conftest.$ac_objext \ | |
16398 | conftest$ac_exeext conftest.$ac_ext | |
16399 | LIBS=$ac_check_lib_save_LIBS | |
16400 | fi | |
16401 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanl" >&5 | |
16402 | echo "${ECHO_T}$ac_cv_lib_m_tanl" >&6 | |
16403 | if test $ac_cv_lib_m_tanl = yes; then | |
16404 | ||
16405 | cat >>confdefs.h <<\_ACEOF | |
16406 | #define HAVE_TANL 1 | |
16407 | _ACEOF | |
16408 | ||
16409 | fi | |
16410 | ||
16411 | echo "$as_me:$LINENO: checking for ctanf in -lm" >&5 | |
16412 | echo $ECHO_N "checking for ctanf in -lm... $ECHO_C" >&6 | |
16413 | if test "${ac_cv_lib_m_ctanf+set}" = set; then | |
16414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16415 | else | |
16416 | ac_check_lib_save_LIBS=$LIBS | |
16417 | LIBS="-lm $LIBS" | |
16418 | if test x$gcc_no_link = xyes; then | |
16419 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16420 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16421 | { (exit 1); exit 1; }; } | |
16422 | fi | |
16423 | cat >conftest.$ac_ext <<_ACEOF | |
16424 | /* confdefs.h. */ | |
16425 | _ACEOF | |
16426 | cat confdefs.h >>conftest.$ac_ext | |
16427 | cat >>conftest.$ac_ext <<_ACEOF | |
16428 | /* end confdefs.h. */ | |
16429 | ||
16430 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16431 | #ifdef __cplusplus | |
16432 | extern "C" | |
16433 | #endif | |
16434 | /* We use char because int might match the return type of a gcc2 | |
16435 | builtin and then its argument prototype would still apply. */ | |
16436 | char ctanf (); | |
16437 | int | |
16438 | main () | |
16439 | { | |
16440 | ctanf (); | |
16441 | ; | |
16442 | return 0; | |
16443 | } | |
16444 | _ACEOF | |
16445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16447 | (eval $ac_link) 2>conftest.er1 | |
16448 | ac_status=$? | |
16449 | grep -v '^ *+' conftest.er1 >conftest.err | |
16450 | rm -f conftest.er1 | |
16451 | cat conftest.err >&5 | |
16452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16453 | (exit $ac_status); } && | |
16454 | { ac_try='test -z "$ac_c_werror_flag" | |
16455 | || test ! -s conftest.err' | |
16456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16457 | (eval $ac_try) 2>&5 | |
16458 | ac_status=$? | |
16459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16460 | (exit $ac_status); }; } && | |
16461 | { ac_try='test -s conftest$ac_exeext' | |
16462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16463 | (eval $ac_try) 2>&5 | |
16464 | ac_status=$? | |
16465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16466 | (exit $ac_status); }; }; then | |
16467 | ac_cv_lib_m_ctanf=yes | |
16468 | else | |
16469 | echo "$as_me: failed program was:" >&5 | |
16470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16471 | ||
16472 | ac_cv_lib_m_ctanf=no | |
16473 | fi | |
16474 | rm -f conftest.err conftest.$ac_objext \ | |
16475 | conftest$ac_exeext conftest.$ac_ext | |
16476 | LIBS=$ac_check_lib_save_LIBS | |
16477 | fi | |
16478 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanf" >&5 | |
16479 | echo "${ECHO_T}$ac_cv_lib_m_ctanf" >&6 | |
16480 | if test $ac_cv_lib_m_ctanf = yes; then | |
16481 | ||
16482 | cat >>confdefs.h <<\_ACEOF | |
16483 | #define HAVE_CTANF 1 | |
16484 | _ACEOF | |
16485 | ||
16486 | fi | |
16487 | ||
16488 | echo "$as_me:$LINENO: checking for ctan in -lm" >&5 | |
16489 | echo $ECHO_N "checking for ctan in -lm... $ECHO_C" >&6 | |
16490 | if test "${ac_cv_lib_m_ctan+set}" = set; then | |
16491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16492 | else | |
16493 | ac_check_lib_save_LIBS=$LIBS | |
16494 | LIBS="-lm $LIBS" | |
16495 | if test x$gcc_no_link = xyes; then | |
16496 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16497 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16498 | { (exit 1); exit 1; }; } | |
16499 | fi | |
16500 | cat >conftest.$ac_ext <<_ACEOF | |
16501 | /* confdefs.h. */ | |
16502 | _ACEOF | |
16503 | cat confdefs.h >>conftest.$ac_ext | |
16504 | cat >>conftest.$ac_ext <<_ACEOF | |
16505 | /* end confdefs.h. */ | |
16506 | ||
16507 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16508 | #ifdef __cplusplus | |
16509 | extern "C" | |
16510 | #endif | |
16511 | /* We use char because int might match the return type of a gcc2 | |
16512 | builtin and then its argument prototype would still apply. */ | |
16513 | char ctan (); | |
16514 | int | |
16515 | main () | |
16516 | { | |
16517 | ctan (); | |
16518 | ; | |
16519 | return 0; | |
16520 | } | |
16521 | _ACEOF | |
16522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16524 | (eval $ac_link) 2>conftest.er1 | |
16525 | ac_status=$? | |
16526 | grep -v '^ *+' conftest.er1 >conftest.err | |
16527 | rm -f conftest.er1 | |
16528 | cat conftest.err >&5 | |
16529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16530 | (exit $ac_status); } && | |
16531 | { ac_try='test -z "$ac_c_werror_flag" | |
16532 | || test ! -s conftest.err' | |
16533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16534 | (eval $ac_try) 2>&5 | |
16535 | ac_status=$? | |
16536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16537 | (exit $ac_status); }; } && | |
16538 | { ac_try='test -s conftest$ac_exeext' | |
16539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16540 | (eval $ac_try) 2>&5 | |
16541 | ac_status=$? | |
16542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16543 | (exit $ac_status); }; }; then | |
16544 | ac_cv_lib_m_ctan=yes | |
16545 | else | |
16546 | echo "$as_me: failed program was:" >&5 | |
16547 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16548 | ||
16549 | ac_cv_lib_m_ctan=no | |
16550 | fi | |
16551 | rm -f conftest.err conftest.$ac_objext \ | |
16552 | conftest$ac_exeext conftest.$ac_ext | |
16553 | LIBS=$ac_check_lib_save_LIBS | |
16554 | fi | |
16555 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctan" >&5 | |
16556 | echo "${ECHO_T}$ac_cv_lib_m_ctan" >&6 | |
16557 | if test $ac_cv_lib_m_ctan = yes; then | |
16558 | ||
16559 | cat >>confdefs.h <<\_ACEOF | |
16560 | #define HAVE_CTAN 1 | |
16561 | _ACEOF | |
16562 | ||
16563 | fi | |
16564 | ||
16565 | echo "$as_me:$LINENO: checking for ctanl in -lm" >&5 | |
16566 | echo $ECHO_N "checking for ctanl in -lm... $ECHO_C" >&6 | |
16567 | if test "${ac_cv_lib_m_ctanl+set}" = set; then | |
16568 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16569 | else | |
16570 | ac_check_lib_save_LIBS=$LIBS | |
16571 | LIBS="-lm $LIBS" | |
16572 | if test x$gcc_no_link = xyes; then | |
16573 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16574 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16575 | { (exit 1); exit 1; }; } | |
16576 | fi | |
16577 | cat >conftest.$ac_ext <<_ACEOF | |
16578 | /* confdefs.h. */ | |
16579 | _ACEOF | |
16580 | cat confdefs.h >>conftest.$ac_ext | |
16581 | cat >>conftest.$ac_ext <<_ACEOF | |
16582 | /* end confdefs.h. */ | |
16583 | ||
16584 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16585 | #ifdef __cplusplus | |
16586 | extern "C" | |
16587 | #endif | |
16588 | /* We use char because int might match the return type of a gcc2 | |
16589 | builtin and then its argument prototype would still apply. */ | |
16590 | char ctanl (); | |
16591 | int | |
16592 | main () | |
16593 | { | |
16594 | ctanl (); | |
16595 | ; | |
16596 | return 0; | |
16597 | } | |
16598 | _ACEOF | |
16599 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16601 | (eval $ac_link) 2>conftest.er1 | |
16602 | ac_status=$? | |
16603 | grep -v '^ *+' conftest.er1 >conftest.err | |
16604 | rm -f conftest.er1 | |
16605 | cat conftest.err >&5 | |
16606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16607 | (exit $ac_status); } && | |
16608 | { ac_try='test -z "$ac_c_werror_flag" | |
16609 | || test ! -s conftest.err' | |
16610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16611 | (eval $ac_try) 2>&5 | |
16612 | ac_status=$? | |
16613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16614 | (exit $ac_status); }; } && | |
16615 | { ac_try='test -s conftest$ac_exeext' | |
16616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16617 | (eval $ac_try) 2>&5 | |
16618 | ac_status=$? | |
16619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16620 | (exit $ac_status); }; }; then | |
16621 | ac_cv_lib_m_ctanl=yes | |
16622 | else | |
16623 | echo "$as_me: failed program was:" >&5 | |
16624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16625 | ||
16626 | ac_cv_lib_m_ctanl=no | |
16627 | fi | |
16628 | rm -f conftest.err conftest.$ac_objext \ | |
16629 | conftest$ac_exeext conftest.$ac_ext | |
16630 | LIBS=$ac_check_lib_save_LIBS | |
16631 | fi | |
16632 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanl" >&5 | |
16633 | echo "${ECHO_T}$ac_cv_lib_m_ctanl" >&6 | |
16634 | if test $ac_cv_lib_m_ctanl = yes; then | |
16635 | ||
16636 | cat >>confdefs.h <<\_ACEOF | |
16637 | #define HAVE_CTANL 1 | |
16638 | _ACEOF | |
16639 | ||
16640 | fi | |
16641 | ||
16642 | echo "$as_me:$LINENO: checking for tanhf in -lm" >&5 | |
16643 | echo $ECHO_N "checking for tanhf in -lm... $ECHO_C" >&6 | |
16644 | if test "${ac_cv_lib_m_tanhf+set}" = set; then | |
16645 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16646 | else | |
16647 | ac_check_lib_save_LIBS=$LIBS | |
16648 | LIBS="-lm $LIBS" | |
16649 | if test x$gcc_no_link = xyes; then | |
16650 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16651 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16652 | { (exit 1); exit 1; }; } | |
16653 | fi | |
16654 | cat >conftest.$ac_ext <<_ACEOF | |
16655 | /* confdefs.h. */ | |
16656 | _ACEOF | |
16657 | cat confdefs.h >>conftest.$ac_ext | |
16658 | cat >>conftest.$ac_ext <<_ACEOF | |
16659 | /* end confdefs.h. */ | |
16660 | ||
16661 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16662 | #ifdef __cplusplus | |
16663 | extern "C" | |
16664 | #endif | |
16665 | /* We use char because int might match the return type of a gcc2 | |
16666 | builtin and then its argument prototype would still apply. */ | |
16667 | char tanhf (); | |
16668 | int | |
16669 | main () | |
16670 | { | |
16671 | tanhf (); | |
16672 | ; | |
16673 | return 0; | |
16674 | } | |
16675 | _ACEOF | |
16676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16678 | (eval $ac_link) 2>conftest.er1 | |
16679 | ac_status=$? | |
16680 | grep -v '^ *+' conftest.er1 >conftest.err | |
16681 | rm -f conftest.er1 | |
16682 | cat conftest.err >&5 | |
16683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16684 | (exit $ac_status); } && | |
16685 | { ac_try='test -z "$ac_c_werror_flag" | |
16686 | || test ! -s conftest.err' | |
16687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16688 | (eval $ac_try) 2>&5 | |
16689 | ac_status=$? | |
16690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16691 | (exit $ac_status); }; } && | |
16692 | { ac_try='test -s conftest$ac_exeext' | |
16693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16694 | (eval $ac_try) 2>&5 | |
16695 | ac_status=$? | |
16696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16697 | (exit $ac_status); }; }; then | |
16698 | ac_cv_lib_m_tanhf=yes | |
16699 | else | |
16700 | echo "$as_me: failed program was:" >&5 | |
16701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16702 | ||
16703 | ac_cv_lib_m_tanhf=no | |
16704 | fi | |
16705 | rm -f conftest.err conftest.$ac_objext \ | |
16706 | conftest$ac_exeext conftest.$ac_ext | |
16707 | LIBS=$ac_check_lib_save_LIBS | |
16708 | fi | |
16709 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhf" >&5 | |
16710 | echo "${ECHO_T}$ac_cv_lib_m_tanhf" >&6 | |
16711 | if test $ac_cv_lib_m_tanhf = yes; then | |
16712 | ||
16713 | cat >>confdefs.h <<\_ACEOF | |
16714 | #define HAVE_TANHF 1 | |
16715 | _ACEOF | |
16716 | ||
16717 | fi | |
16718 | ||
16719 | echo "$as_me:$LINENO: checking for tanh in -lm" >&5 | |
16720 | echo $ECHO_N "checking for tanh in -lm... $ECHO_C" >&6 | |
16721 | if test "${ac_cv_lib_m_tanh+set}" = set; then | |
16722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16723 | else | |
16724 | ac_check_lib_save_LIBS=$LIBS | |
16725 | LIBS="-lm $LIBS" | |
16726 | if test x$gcc_no_link = xyes; then | |
16727 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16728 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16729 | { (exit 1); exit 1; }; } | |
16730 | fi | |
16731 | cat >conftest.$ac_ext <<_ACEOF | |
16732 | /* confdefs.h. */ | |
16733 | _ACEOF | |
16734 | cat confdefs.h >>conftest.$ac_ext | |
16735 | cat >>conftest.$ac_ext <<_ACEOF | |
16736 | /* end confdefs.h. */ | |
16737 | ||
16738 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16739 | #ifdef __cplusplus | |
16740 | extern "C" | |
16741 | #endif | |
16742 | /* We use char because int might match the return type of a gcc2 | |
16743 | builtin and then its argument prototype would still apply. */ | |
16744 | char tanh (); | |
16745 | int | |
16746 | main () | |
16747 | { | |
16748 | tanh (); | |
16749 | ; | |
16750 | return 0; | |
16751 | } | |
16752 | _ACEOF | |
16753 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16755 | (eval $ac_link) 2>conftest.er1 | |
16756 | ac_status=$? | |
16757 | grep -v '^ *+' conftest.er1 >conftest.err | |
16758 | rm -f conftest.er1 | |
16759 | cat conftest.err >&5 | |
16760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16761 | (exit $ac_status); } && | |
16762 | { ac_try='test -z "$ac_c_werror_flag" | |
16763 | || test ! -s conftest.err' | |
16764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16765 | (eval $ac_try) 2>&5 | |
16766 | ac_status=$? | |
16767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16768 | (exit $ac_status); }; } && | |
16769 | { ac_try='test -s conftest$ac_exeext' | |
16770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16771 | (eval $ac_try) 2>&5 | |
16772 | ac_status=$? | |
16773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16774 | (exit $ac_status); }; }; then | |
16775 | ac_cv_lib_m_tanh=yes | |
16776 | else | |
16777 | echo "$as_me: failed program was:" >&5 | |
16778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16779 | ||
16780 | ac_cv_lib_m_tanh=no | |
16781 | fi | |
16782 | rm -f conftest.err conftest.$ac_objext \ | |
16783 | conftest$ac_exeext conftest.$ac_ext | |
16784 | LIBS=$ac_check_lib_save_LIBS | |
16785 | fi | |
16786 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanh" >&5 | |
16787 | echo "${ECHO_T}$ac_cv_lib_m_tanh" >&6 | |
16788 | if test $ac_cv_lib_m_tanh = yes; then | |
16789 | ||
16790 | cat >>confdefs.h <<\_ACEOF | |
16791 | #define HAVE_TANH 1 | |
16792 | _ACEOF | |
16793 | ||
16794 | fi | |
16795 | ||
16796 | echo "$as_me:$LINENO: checking for tanhl in -lm" >&5 | |
16797 | echo $ECHO_N "checking for tanhl in -lm... $ECHO_C" >&6 | |
16798 | if test "${ac_cv_lib_m_tanhl+set}" = set; then | |
16799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16800 | else | |
16801 | ac_check_lib_save_LIBS=$LIBS | |
16802 | LIBS="-lm $LIBS" | |
16803 | if test x$gcc_no_link = xyes; then | |
16804 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16805 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16806 | { (exit 1); exit 1; }; } | |
16807 | fi | |
16808 | cat >conftest.$ac_ext <<_ACEOF | |
16809 | /* confdefs.h. */ | |
16810 | _ACEOF | |
16811 | cat confdefs.h >>conftest.$ac_ext | |
16812 | cat >>conftest.$ac_ext <<_ACEOF | |
16813 | /* end confdefs.h. */ | |
16814 | ||
16815 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16816 | #ifdef __cplusplus | |
16817 | extern "C" | |
16818 | #endif | |
16819 | /* We use char because int might match the return type of a gcc2 | |
16820 | builtin and then its argument prototype would still apply. */ | |
16821 | char tanhl (); | |
16822 | int | |
16823 | main () | |
16824 | { | |
16825 | tanhl (); | |
16826 | ; | |
16827 | return 0; | |
16828 | } | |
16829 | _ACEOF | |
16830 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16832 | (eval $ac_link) 2>conftest.er1 | |
16833 | ac_status=$? | |
16834 | grep -v '^ *+' conftest.er1 >conftest.err | |
16835 | rm -f conftest.er1 | |
16836 | cat conftest.err >&5 | |
16837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16838 | (exit $ac_status); } && | |
16839 | { ac_try='test -z "$ac_c_werror_flag" | |
16840 | || test ! -s conftest.err' | |
16841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16842 | (eval $ac_try) 2>&5 | |
16843 | ac_status=$? | |
16844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16845 | (exit $ac_status); }; } && | |
16846 | { ac_try='test -s conftest$ac_exeext' | |
16847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16848 | (eval $ac_try) 2>&5 | |
16849 | ac_status=$? | |
16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16851 | (exit $ac_status); }; }; then | |
16852 | ac_cv_lib_m_tanhl=yes | |
16853 | else | |
16854 | echo "$as_me: failed program was:" >&5 | |
16855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16856 | ||
16857 | ac_cv_lib_m_tanhl=no | |
16858 | fi | |
16859 | rm -f conftest.err conftest.$ac_objext \ | |
16860 | conftest$ac_exeext conftest.$ac_ext | |
16861 | LIBS=$ac_check_lib_save_LIBS | |
16862 | fi | |
16863 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_tanhl" >&5 | |
16864 | echo "${ECHO_T}$ac_cv_lib_m_tanhl" >&6 | |
16865 | if test $ac_cv_lib_m_tanhl = yes; then | |
16866 | ||
16867 | cat >>confdefs.h <<\_ACEOF | |
16868 | #define HAVE_TANHL 1 | |
16869 | _ACEOF | |
16870 | ||
16871 | fi | |
16872 | ||
16873 | echo "$as_me:$LINENO: checking for ctanhf in -lm" >&5 | |
16874 | echo $ECHO_N "checking for ctanhf in -lm... $ECHO_C" >&6 | |
16875 | if test "${ac_cv_lib_m_ctanhf+set}" = set; then | |
16876 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16877 | else | |
16878 | ac_check_lib_save_LIBS=$LIBS | |
16879 | LIBS="-lm $LIBS" | |
16880 | if test x$gcc_no_link = xyes; then | |
16881 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16882 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16883 | { (exit 1); exit 1; }; } | |
16884 | fi | |
16885 | cat >conftest.$ac_ext <<_ACEOF | |
16886 | /* confdefs.h. */ | |
16887 | _ACEOF | |
16888 | cat confdefs.h >>conftest.$ac_ext | |
16889 | cat >>conftest.$ac_ext <<_ACEOF | |
16890 | /* end confdefs.h. */ | |
16891 | ||
16892 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16893 | #ifdef __cplusplus | |
16894 | extern "C" | |
16895 | #endif | |
16896 | /* We use char because int might match the return type of a gcc2 | |
16897 | builtin and then its argument prototype would still apply. */ | |
16898 | char ctanhf (); | |
16899 | int | |
16900 | main () | |
16901 | { | |
16902 | ctanhf (); | |
16903 | ; | |
16904 | return 0; | |
16905 | } | |
16906 | _ACEOF | |
16907 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16908 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16909 | (eval $ac_link) 2>conftest.er1 | |
16910 | ac_status=$? | |
16911 | grep -v '^ *+' conftest.er1 >conftest.err | |
16912 | rm -f conftest.er1 | |
16913 | cat conftest.err >&5 | |
16914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16915 | (exit $ac_status); } && | |
16916 | { ac_try='test -z "$ac_c_werror_flag" | |
16917 | || test ! -s conftest.err' | |
16918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16919 | (eval $ac_try) 2>&5 | |
16920 | ac_status=$? | |
16921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16922 | (exit $ac_status); }; } && | |
16923 | { ac_try='test -s conftest$ac_exeext' | |
16924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16925 | (eval $ac_try) 2>&5 | |
16926 | ac_status=$? | |
16927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16928 | (exit $ac_status); }; }; then | |
16929 | ac_cv_lib_m_ctanhf=yes | |
16930 | else | |
16931 | echo "$as_me: failed program was:" >&5 | |
16932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16933 | ||
16934 | ac_cv_lib_m_ctanhf=no | |
16935 | fi | |
16936 | rm -f conftest.err conftest.$ac_objext \ | |
16937 | conftest$ac_exeext conftest.$ac_ext | |
16938 | LIBS=$ac_check_lib_save_LIBS | |
16939 | fi | |
16940 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanhf" >&5 | |
16941 | echo "${ECHO_T}$ac_cv_lib_m_ctanhf" >&6 | |
16942 | if test $ac_cv_lib_m_ctanhf = yes; then | |
16943 | ||
16944 | cat >>confdefs.h <<\_ACEOF | |
16945 | #define HAVE_CTANHF 1 | |
16946 | _ACEOF | |
16947 | ||
16948 | fi | |
16949 | ||
16950 | echo "$as_me:$LINENO: checking for ctanh in -lm" >&5 | |
16951 | echo $ECHO_N "checking for ctanh in -lm... $ECHO_C" >&6 | |
16952 | if test "${ac_cv_lib_m_ctanh+set}" = set; then | |
16953 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16954 | else | |
16955 | ac_check_lib_save_LIBS=$LIBS | |
16956 | LIBS="-lm $LIBS" | |
16957 | if test x$gcc_no_link = xyes; then | |
16958 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
16959 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
16960 | { (exit 1); exit 1; }; } | |
16961 | fi | |
16962 | cat >conftest.$ac_ext <<_ACEOF | |
16963 | /* confdefs.h. */ | |
16964 | _ACEOF | |
16965 | cat confdefs.h >>conftest.$ac_ext | |
16966 | cat >>conftest.$ac_ext <<_ACEOF | |
16967 | /* end confdefs.h. */ | |
16968 | ||
16969 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16970 | #ifdef __cplusplus | |
16971 | extern "C" | |
16972 | #endif | |
16973 | /* We use char because int might match the return type of a gcc2 | |
16974 | builtin and then its argument prototype would still apply. */ | |
16975 | char ctanh (); | |
16976 | int | |
16977 | main () | |
16978 | { | |
16979 | ctanh (); | |
16980 | ; | |
16981 | return 0; | |
16982 | } | |
16983 | _ACEOF | |
16984 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16986 | (eval $ac_link) 2>conftest.er1 | |
16987 | ac_status=$? | |
16988 | grep -v '^ *+' conftest.er1 >conftest.err | |
16989 | rm -f conftest.er1 | |
16990 | cat conftest.err >&5 | |
16991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16992 | (exit $ac_status); } && | |
16993 | { ac_try='test -z "$ac_c_werror_flag" | |
16994 | || test ! -s conftest.err' | |
16995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16996 | (eval $ac_try) 2>&5 | |
16997 | ac_status=$? | |
16998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16999 | (exit $ac_status); }; } && | |
17000 | { ac_try='test -s conftest$ac_exeext' | |
17001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17002 | (eval $ac_try) 2>&5 | |
17003 | ac_status=$? | |
17004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17005 | (exit $ac_status); }; }; then | |
17006 | ac_cv_lib_m_ctanh=yes | |
17007 | else | |
17008 | echo "$as_me: failed program was:" >&5 | |
17009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17010 | ||
17011 | ac_cv_lib_m_ctanh=no | |
17012 | fi | |
17013 | rm -f conftest.err conftest.$ac_objext \ | |
17014 | conftest$ac_exeext conftest.$ac_ext | |
17015 | LIBS=$ac_check_lib_save_LIBS | |
17016 | fi | |
17017 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanh" >&5 | |
17018 | echo "${ECHO_T}$ac_cv_lib_m_ctanh" >&6 | |
17019 | if test $ac_cv_lib_m_ctanh = yes; then | |
17020 | ||
17021 | cat >>confdefs.h <<\_ACEOF | |
17022 | #define HAVE_CTANH 1 | |
17023 | _ACEOF | |
17024 | ||
17025 | fi | |
17026 | ||
17027 | echo "$as_me:$LINENO: checking for ctanhl in -lm" >&5 | |
17028 | echo $ECHO_N "checking for ctanhl in -lm... $ECHO_C" >&6 | |
17029 | if test "${ac_cv_lib_m_ctanhl+set}" = set; then | |
17030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17031 | else | |
17032 | ac_check_lib_save_LIBS=$LIBS | |
17033 | LIBS="-lm $LIBS" | |
17034 | if test x$gcc_no_link = xyes; then | |
17035 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17036 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17037 | { (exit 1); exit 1; }; } | |
17038 | fi | |
17039 | cat >conftest.$ac_ext <<_ACEOF | |
17040 | /* confdefs.h. */ | |
17041 | _ACEOF | |
17042 | cat confdefs.h >>conftest.$ac_ext | |
17043 | cat >>conftest.$ac_ext <<_ACEOF | |
17044 | /* end confdefs.h. */ | |
17045 | ||
17046 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17047 | #ifdef __cplusplus | |
17048 | extern "C" | |
17049 | #endif | |
17050 | /* We use char because int might match the return type of a gcc2 | |
17051 | builtin and then its argument prototype would still apply. */ | |
17052 | char ctanhl (); | |
17053 | int | |
17054 | main () | |
17055 | { | |
17056 | ctanhl (); | |
17057 | ; | |
17058 | return 0; | |
17059 | } | |
17060 | _ACEOF | |
17061 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17063 | (eval $ac_link) 2>conftest.er1 | |
17064 | ac_status=$? | |
17065 | grep -v '^ *+' conftest.er1 >conftest.err | |
17066 | rm -f conftest.er1 | |
17067 | cat conftest.err >&5 | |
17068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17069 | (exit $ac_status); } && | |
17070 | { ac_try='test -z "$ac_c_werror_flag" | |
17071 | || test ! -s conftest.err' | |
17072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17073 | (eval $ac_try) 2>&5 | |
17074 | ac_status=$? | |
17075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17076 | (exit $ac_status); }; } && | |
17077 | { ac_try='test -s conftest$ac_exeext' | |
17078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17079 | (eval $ac_try) 2>&5 | |
17080 | ac_status=$? | |
17081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17082 | (exit $ac_status); }; }; then | |
17083 | ac_cv_lib_m_ctanhl=yes | |
17084 | else | |
17085 | echo "$as_me: failed program was:" >&5 | |
17086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17087 | ||
17088 | ac_cv_lib_m_ctanhl=no | |
17089 | fi | |
17090 | rm -f conftest.err conftest.$ac_objext \ | |
17091 | conftest$ac_exeext conftest.$ac_ext | |
17092 | LIBS=$ac_check_lib_save_LIBS | |
17093 | fi | |
17094 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ctanhl" >&5 | |
17095 | echo "${ECHO_T}$ac_cv_lib_m_ctanhl" >&6 | |
17096 | if test $ac_cv_lib_m_ctanhl = yes; then | |
17097 | ||
17098 | cat >>confdefs.h <<\_ACEOF | |
17099 | #define HAVE_CTANHL 1 | |
69a2d125 EB |
17100 | _ACEOF |
17101 | ||
17102 | fi | |
17103 | ||
17104 | echo "$as_me:$LINENO: checking for truncf in -lm" >&5 | |
17105 | echo $ECHO_N "checking for truncf in -lm... $ECHO_C" >&6 | |
17106 | if test "${ac_cv_lib_m_truncf+set}" = set; then | |
17107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17108 | else | |
17109 | ac_check_lib_save_LIBS=$LIBS | |
17110 | LIBS="-lm $LIBS" | |
f02d008e JD |
17111 | if test x$gcc_no_link = xyes; then |
17112 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17113 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17114 | { (exit 1); exit 1; }; } | |
17115 | fi | |
69a2d125 EB |
17116 | cat >conftest.$ac_ext <<_ACEOF |
17117 | /* confdefs.h. */ | |
17118 | _ACEOF | |
17119 | cat confdefs.h >>conftest.$ac_ext | |
17120 | cat >>conftest.$ac_ext <<_ACEOF | |
17121 | /* end confdefs.h. */ | |
17122 | ||
17123 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17124 | #ifdef __cplusplus | |
17125 | extern "C" | |
17126 | #endif | |
17127 | /* We use char because int might match the return type of a gcc2 | |
17128 | builtin and then its argument prototype would still apply. */ | |
1409cd0b FXC |
17129 | char truncf (); |
17130 | int | |
17131 | main () | |
17132 | { | |
17133 | truncf (); | |
17134 | ; | |
17135 | return 0; | |
17136 | } | |
17137 | _ACEOF | |
17138 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17139 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17140 | (eval $ac_link) 2>conftest.er1 | |
17141 | ac_status=$? | |
17142 | grep -v '^ *+' conftest.er1 >conftest.err | |
17143 | rm -f conftest.er1 | |
17144 | cat conftest.err >&5 | |
17145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17146 | (exit $ac_status); } && | |
17147 | { ac_try='test -z "$ac_c_werror_flag" | |
17148 | || test ! -s conftest.err' | |
17149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17150 | (eval $ac_try) 2>&5 | |
17151 | ac_status=$? | |
17152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17153 | (exit $ac_status); }; } && | |
17154 | { ac_try='test -s conftest$ac_exeext' | |
17155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17156 | (eval $ac_try) 2>&5 | |
17157 | ac_status=$? | |
17158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17159 | (exit $ac_status); }; }; then | |
17160 | ac_cv_lib_m_truncf=yes | |
17161 | else | |
17162 | echo "$as_me: failed program was:" >&5 | |
17163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17164 | ||
17165 | ac_cv_lib_m_truncf=no | |
17166 | fi | |
17167 | rm -f conftest.err conftest.$ac_objext \ | |
17168 | conftest$ac_exeext conftest.$ac_ext | |
17169 | LIBS=$ac_check_lib_save_LIBS | |
17170 | fi | |
17171 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncf" >&5 | |
17172 | echo "${ECHO_T}$ac_cv_lib_m_truncf" >&6 | |
17173 | if test $ac_cv_lib_m_truncf = yes; then | |
17174 | ||
17175 | cat >>confdefs.h <<\_ACEOF | |
17176 | #define HAVE_TRUNCF 1 | |
17177 | _ACEOF | |
17178 | ||
17179 | fi | |
17180 | ||
17181 | echo "$as_me:$LINENO: checking for trunc in -lm" >&5 | |
17182 | echo $ECHO_N "checking for trunc in -lm... $ECHO_C" >&6 | |
17183 | if test "${ac_cv_lib_m_trunc+set}" = set; then | |
17184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17185 | else | |
17186 | ac_check_lib_save_LIBS=$LIBS | |
17187 | LIBS="-lm $LIBS" | |
17188 | if test x$gcc_no_link = xyes; then | |
17189 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17190 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17191 | { (exit 1); exit 1; }; } | |
17192 | fi | |
17193 | cat >conftest.$ac_ext <<_ACEOF | |
17194 | /* confdefs.h. */ | |
17195 | _ACEOF | |
17196 | cat confdefs.h >>conftest.$ac_ext | |
17197 | cat >>conftest.$ac_ext <<_ACEOF | |
17198 | /* end confdefs.h. */ | |
17199 | ||
17200 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17201 | #ifdef __cplusplus | |
17202 | extern "C" | |
17203 | #endif | |
17204 | /* We use char because int might match the return type of a gcc2 | |
17205 | builtin and then its argument prototype would still apply. */ | |
17206 | char trunc (); | |
17207 | int | |
17208 | main () | |
17209 | { | |
17210 | trunc (); | |
17211 | ; | |
17212 | return 0; | |
17213 | } | |
17214 | _ACEOF | |
17215 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17217 | (eval $ac_link) 2>conftest.er1 | |
17218 | ac_status=$? | |
17219 | grep -v '^ *+' conftest.er1 >conftest.err | |
17220 | rm -f conftest.er1 | |
17221 | cat conftest.err >&5 | |
17222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17223 | (exit $ac_status); } && | |
17224 | { ac_try='test -z "$ac_c_werror_flag" | |
17225 | || test ! -s conftest.err' | |
17226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17227 | (eval $ac_try) 2>&5 | |
17228 | ac_status=$? | |
17229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17230 | (exit $ac_status); }; } && | |
17231 | { ac_try='test -s conftest$ac_exeext' | |
17232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17233 | (eval $ac_try) 2>&5 | |
17234 | ac_status=$? | |
17235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17236 | (exit $ac_status); }; }; then | |
17237 | ac_cv_lib_m_trunc=yes | |
17238 | else | |
17239 | echo "$as_me: failed program was:" >&5 | |
17240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17241 | ||
17242 | ac_cv_lib_m_trunc=no | |
17243 | fi | |
17244 | rm -f conftest.err conftest.$ac_objext \ | |
17245 | conftest$ac_exeext conftest.$ac_ext | |
17246 | LIBS=$ac_check_lib_save_LIBS | |
17247 | fi | |
17248 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_trunc" >&5 | |
17249 | echo "${ECHO_T}$ac_cv_lib_m_trunc" >&6 | |
17250 | if test $ac_cv_lib_m_trunc = yes; then | |
17251 | ||
17252 | cat >>confdefs.h <<\_ACEOF | |
17253 | #define HAVE_TRUNC 1 | |
17254 | _ACEOF | |
17255 | ||
17256 | fi | |
17257 | ||
17258 | echo "$as_me:$LINENO: checking for truncl in -lm" >&5 | |
17259 | echo $ECHO_N "checking for truncl in -lm... $ECHO_C" >&6 | |
17260 | if test "${ac_cv_lib_m_truncl+set}" = set; then | |
17261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17262 | else | |
17263 | ac_check_lib_save_LIBS=$LIBS | |
17264 | LIBS="-lm $LIBS" | |
17265 | if test x$gcc_no_link = xyes; then | |
17266 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17267 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17268 | { (exit 1); exit 1; }; } | |
17269 | fi | |
17270 | cat >conftest.$ac_ext <<_ACEOF | |
17271 | /* confdefs.h. */ | |
17272 | _ACEOF | |
17273 | cat confdefs.h >>conftest.$ac_ext | |
17274 | cat >>conftest.$ac_ext <<_ACEOF | |
17275 | /* end confdefs.h. */ | |
17276 | ||
17277 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17278 | #ifdef __cplusplus | |
17279 | extern "C" | |
17280 | #endif | |
17281 | /* We use char because int might match the return type of a gcc2 | |
17282 | builtin and then its argument prototype would still apply. */ | |
17283 | char truncl (); | |
17284 | int | |
17285 | main () | |
17286 | { | |
17287 | truncl (); | |
17288 | ; | |
17289 | return 0; | |
17290 | } | |
17291 | _ACEOF | |
17292 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17294 | (eval $ac_link) 2>conftest.er1 | |
17295 | ac_status=$? | |
17296 | grep -v '^ *+' conftest.er1 >conftest.err | |
17297 | rm -f conftest.er1 | |
17298 | cat conftest.err >&5 | |
17299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17300 | (exit $ac_status); } && | |
17301 | { ac_try='test -z "$ac_c_werror_flag" | |
17302 | || test ! -s conftest.err' | |
17303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17304 | (eval $ac_try) 2>&5 | |
17305 | ac_status=$? | |
17306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17307 | (exit $ac_status); }; } && | |
17308 | { ac_try='test -s conftest$ac_exeext' | |
17309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17310 | (eval $ac_try) 2>&5 | |
17311 | ac_status=$? | |
17312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17313 | (exit $ac_status); }; }; then | |
17314 | ac_cv_lib_m_truncl=yes | |
17315 | else | |
17316 | echo "$as_me: failed program was:" >&5 | |
17317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17318 | ||
17319 | ac_cv_lib_m_truncl=no | |
17320 | fi | |
17321 | rm -f conftest.err conftest.$ac_objext \ | |
17322 | conftest$ac_exeext conftest.$ac_ext | |
17323 | LIBS=$ac_check_lib_save_LIBS | |
17324 | fi | |
17325 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_truncl" >&5 | |
17326 | echo "${ECHO_T}$ac_cv_lib_m_truncl" >&6 | |
17327 | if test $ac_cv_lib_m_truncl = yes; then | |
17328 | ||
17329 | cat >>confdefs.h <<\_ACEOF | |
17330 | #define HAVE_TRUNCL 1 | |
17331 | _ACEOF | |
17332 | ||
17333 | fi | |
17334 | ||
17335 | echo "$as_me:$LINENO: checking for erff in -lm" >&5 | |
17336 | echo $ECHO_N "checking for erff in -lm... $ECHO_C" >&6 | |
17337 | if test "${ac_cv_lib_m_erff+set}" = set; then | |
17338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17339 | else | |
17340 | ac_check_lib_save_LIBS=$LIBS | |
17341 | LIBS="-lm $LIBS" | |
17342 | if test x$gcc_no_link = xyes; then | |
17343 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17344 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17345 | { (exit 1); exit 1; }; } | |
17346 | fi | |
17347 | cat >conftest.$ac_ext <<_ACEOF | |
17348 | /* confdefs.h. */ | |
17349 | _ACEOF | |
17350 | cat confdefs.h >>conftest.$ac_ext | |
17351 | cat >>conftest.$ac_ext <<_ACEOF | |
17352 | /* end confdefs.h. */ | |
17353 | ||
17354 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17355 | #ifdef __cplusplus | |
17356 | extern "C" | |
17357 | #endif | |
17358 | /* We use char because int might match the return type of a gcc2 | |
17359 | builtin and then its argument prototype would still apply. */ | |
17360 | char erff (); | |
17361 | int | |
17362 | main () | |
17363 | { | |
17364 | erff (); | |
17365 | ; | |
17366 | return 0; | |
17367 | } | |
17368 | _ACEOF | |
17369 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17371 | (eval $ac_link) 2>conftest.er1 | |
17372 | ac_status=$? | |
17373 | grep -v '^ *+' conftest.er1 >conftest.err | |
17374 | rm -f conftest.er1 | |
17375 | cat conftest.err >&5 | |
17376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17377 | (exit $ac_status); } && | |
17378 | { ac_try='test -z "$ac_c_werror_flag" | |
17379 | || test ! -s conftest.err' | |
17380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17381 | (eval $ac_try) 2>&5 | |
17382 | ac_status=$? | |
17383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17384 | (exit $ac_status); }; } && | |
17385 | { ac_try='test -s conftest$ac_exeext' | |
17386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17387 | (eval $ac_try) 2>&5 | |
17388 | ac_status=$? | |
17389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17390 | (exit $ac_status); }; }; then | |
17391 | ac_cv_lib_m_erff=yes | |
17392 | else | |
17393 | echo "$as_me: failed program was:" >&5 | |
17394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17395 | ||
17396 | ac_cv_lib_m_erff=no | |
17397 | fi | |
17398 | rm -f conftest.err conftest.$ac_objext \ | |
17399 | conftest$ac_exeext conftest.$ac_ext | |
17400 | LIBS=$ac_check_lib_save_LIBS | |
17401 | fi | |
17402 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erff" >&5 | |
17403 | echo "${ECHO_T}$ac_cv_lib_m_erff" >&6 | |
17404 | if test $ac_cv_lib_m_erff = yes; then | |
17405 | ||
17406 | cat >>confdefs.h <<\_ACEOF | |
17407 | #define HAVE_ERFF 1 | |
17408 | _ACEOF | |
17409 | ||
17410 | fi | |
17411 | ||
17412 | echo "$as_me:$LINENO: checking for erf in -lm" >&5 | |
17413 | echo $ECHO_N "checking for erf in -lm... $ECHO_C" >&6 | |
17414 | if test "${ac_cv_lib_m_erf+set}" = set; then | |
17415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17416 | else | |
17417 | ac_check_lib_save_LIBS=$LIBS | |
17418 | LIBS="-lm $LIBS" | |
17419 | if test x$gcc_no_link = xyes; then | |
17420 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17421 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17422 | { (exit 1); exit 1; }; } | |
17423 | fi | |
17424 | cat >conftest.$ac_ext <<_ACEOF | |
17425 | /* confdefs.h. */ | |
17426 | _ACEOF | |
17427 | cat confdefs.h >>conftest.$ac_ext | |
17428 | cat >>conftest.$ac_ext <<_ACEOF | |
17429 | /* end confdefs.h. */ | |
17430 | ||
17431 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17432 | #ifdef __cplusplus | |
17433 | extern "C" | |
17434 | #endif | |
17435 | /* We use char because int might match the return type of a gcc2 | |
17436 | builtin and then its argument prototype would still apply. */ | |
17437 | char erf (); | |
17438 | int | |
17439 | main () | |
17440 | { | |
17441 | erf (); | |
17442 | ; | |
17443 | return 0; | |
17444 | } | |
17445 | _ACEOF | |
17446 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17448 | (eval $ac_link) 2>conftest.er1 | |
17449 | ac_status=$? | |
17450 | grep -v '^ *+' conftest.er1 >conftest.err | |
17451 | rm -f conftest.er1 | |
17452 | cat conftest.err >&5 | |
17453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17454 | (exit $ac_status); } && | |
17455 | { ac_try='test -z "$ac_c_werror_flag" | |
17456 | || test ! -s conftest.err' | |
17457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17458 | (eval $ac_try) 2>&5 | |
17459 | ac_status=$? | |
17460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17461 | (exit $ac_status); }; } && | |
17462 | { ac_try='test -s conftest$ac_exeext' | |
17463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17464 | (eval $ac_try) 2>&5 | |
17465 | ac_status=$? | |
17466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17467 | (exit $ac_status); }; }; then | |
17468 | ac_cv_lib_m_erf=yes | |
17469 | else | |
17470 | echo "$as_me: failed program was:" >&5 | |
17471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17472 | ||
17473 | ac_cv_lib_m_erf=no | |
17474 | fi | |
17475 | rm -f conftest.err conftest.$ac_objext \ | |
17476 | conftest$ac_exeext conftest.$ac_ext | |
17477 | LIBS=$ac_check_lib_save_LIBS | |
17478 | fi | |
17479 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erf" >&5 | |
17480 | echo "${ECHO_T}$ac_cv_lib_m_erf" >&6 | |
17481 | if test $ac_cv_lib_m_erf = yes; then | |
17482 | ||
17483 | cat >>confdefs.h <<\_ACEOF | |
17484 | #define HAVE_ERF 1 | |
17485 | _ACEOF | |
17486 | ||
17487 | fi | |
17488 | ||
17489 | echo "$as_me:$LINENO: checking for erfl in -lm" >&5 | |
17490 | echo $ECHO_N "checking for erfl in -lm... $ECHO_C" >&6 | |
17491 | if test "${ac_cv_lib_m_erfl+set}" = set; then | |
17492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17493 | else | |
17494 | ac_check_lib_save_LIBS=$LIBS | |
17495 | LIBS="-lm $LIBS" | |
17496 | if test x$gcc_no_link = xyes; then | |
17497 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17498 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17499 | { (exit 1); exit 1; }; } | |
17500 | fi | |
17501 | cat >conftest.$ac_ext <<_ACEOF | |
17502 | /* confdefs.h. */ | |
17503 | _ACEOF | |
17504 | cat confdefs.h >>conftest.$ac_ext | |
17505 | cat >>conftest.$ac_ext <<_ACEOF | |
17506 | /* end confdefs.h. */ | |
17507 | ||
17508 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17509 | #ifdef __cplusplus | |
17510 | extern "C" | |
17511 | #endif | |
17512 | /* We use char because int might match the return type of a gcc2 | |
17513 | builtin and then its argument prototype would still apply. */ | |
17514 | char erfl (); | |
17515 | int | |
17516 | main () | |
17517 | { | |
17518 | erfl (); | |
17519 | ; | |
17520 | return 0; | |
17521 | } | |
17522 | _ACEOF | |
17523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17525 | (eval $ac_link) 2>conftest.er1 | |
17526 | ac_status=$? | |
17527 | grep -v '^ *+' conftest.er1 >conftest.err | |
17528 | rm -f conftest.er1 | |
17529 | cat conftest.err >&5 | |
17530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17531 | (exit $ac_status); } && | |
17532 | { ac_try='test -z "$ac_c_werror_flag" | |
17533 | || test ! -s conftest.err' | |
17534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17535 | (eval $ac_try) 2>&5 | |
17536 | ac_status=$? | |
17537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17538 | (exit $ac_status); }; } && | |
17539 | { ac_try='test -s conftest$ac_exeext' | |
17540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17541 | (eval $ac_try) 2>&5 | |
17542 | ac_status=$? | |
17543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17544 | (exit $ac_status); }; }; then | |
17545 | ac_cv_lib_m_erfl=yes | |
17546 | else | |
17547 | echo "$as_me: failed program was:" >&5 | |
17548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17549 | ||
17550 | ac_cv_lib_m_erfl=no | |
17551 | fi | |
17552 | rm -f conftest.err conftest.$ac_objext \ | |
17553 | conftest$ac_exeext conftest.$ac_ext | |
17554 | LIBS=$ac_check_lib_save_LIBS | |
17555 | fi | |
17556 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfl" >&5 | |
17557 | echo "${ECHO_T}$ac_cv_lib_m_erfl" >&6 | |
17558 | if test $ac_cv_lib_m_erfl = yes; then | |
17559 | ||
17560 | cat >>confdefs.h <<\_ACEOF | |
17561 | #define HAVE_ERFL 1 | |
17562 | _ACEOF | |
17563 | ||
17564 | fi | |
17565 | ||
17566 | echo "$as_me:$LINENO: checking for erfcf in -lm" >&5 | |
17567 | echo $ECHO_N "checking for erfcf in -lm... $ECHO_C" >&6 | |
17568 | if test "${ac_cv_lib_m_erfcf+set}" = set; then | |
17569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17570 | else | |
17571 | ac_check_lib_save_LIBS=$LIBS | |
17572 | LIBS="-lm $LIBS" | |
17573 | if test x$gcc_no_link = xyes; then | |
17574 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17575 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17576 | { (exit 1); exit 1; }; } | |
17577 | fi | |
17578 | cat >conftest.$ac_ext <<_ACEOF | |
17579 | /* confdefs.h. */ | |
17580 | _ACEOF | |
17581 | cat confdefs.h >>conftest.$ac_ext | |
17582 | cat >>conftest.$ac_ext <<_ACEOF | |
17583 | /* end confdefs.h. */ | |
17584 | ||
17585 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17586 | #ifdef __cplusplus | |
17587 | extern "C" | |
17588 | #endif | |
17589 | /* We use char because int might match the return type of a gcc2 | |
17590 | builtin and then its argument prototype would still apply. */ | |
17591 | char erfcf (); | |
17592 | int | |
17593 | main () | |
17594 | { | |
17595 | erfcf (); | |
17596 | ; | |
17597 | return 0; | |
17598 | } | |
17599 | _ACEOF | |
17600 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17601 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17602 | (eval $ac_link) 2>conftest.er1 | |
17603 | ac_status=$? | |
17604 | grep -v '^ *+' conftest.er1 >conftest.err | |
17605 | rm -f conftest.er1 | |
17606 | cat conftest.err >&5 | |
17607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17608 | (exit $ac_status); } && | |
17609 | { ac_try='test -z "$ac_c_werror_flag" | |
17610 | || test ! -s conftest.err' | |
17611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17612 | (eval $ac_try) 2>&5 | |
17613 | ac_status=$? | |
17614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17615 | (exit $ac_status); }; } && | |
17616 | { ac_try='test -s conftest$ac_exeext' | |
17617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17618 | (eval $ac_try) 2>&5 | |
17619 | ac_status=$? | |
17620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17621 | (exit $ac_status); }; }; then | |
17622 | ac_cv_lib_m_erfcf=yes | |
17623 | else | |
17624 | echo "$as_me: failed program was:" >&5 | |
17625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17626 | ||
17627 | ac_cv_lib_m_erfcf=no | |
17628 | fi | |
17629 | rm -f conftest.err conftest.$ac_objext \ | |
17630 | conftest$ac_exeext conftest.$ac_ext | |
17631 | LIBS=$ac_check_lib_save_LIBS | |
17632 | fi | |
17633 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcf" >&5 | |
17634 | echo "${ECHO_T}$ac_cv_lib_m_erfcf" >&6 | |
17635 | if test $ac_cv_lib_m_erfcf = yes; then | |
17636 | ||
17637 | cat >>confdefs.h <<\_ACEOF | |
17638 | #define HAVE_ERFCF 1 | |
17639 | _ACEOF | |
17640 | ||
17641 | fi | |
17642 | ||
17643 | echo "$as_me:$LINENO: checking for erfc in -lm" >&5 | |
17644 | echo $ECHO_N "checking for erfc in -lm... $ECHO_C" >&6 | |
17645 | if test "${ac_cv_lib_m_erfc+set}" = set; then | |
17646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17647 | else | |
17648 | ac_check_lib_save_LIBS=$LIBS | |
17649 | LIBS="-lm $LIBS" | |
17650 | if test x$gcc_no_link = xyes; then | |
17651 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17652 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17653 | { (exit 1); exit 1; }; } | |
17654 | fi | |
17655 | cat >conftest.$ac_ext <<_ACEOF | |
17656 | /* confdefs.h. */ | |
17657 | _ACEOF | |
17658 | cat confdefs.h >>conftest.$ac_ext | |
17659 | cat >>conftest.$ac_ext <<_ACEOF | |
17660 | /* end confdefs.h. */ | |
17661 | ||
17662 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17663 | #ifdef __cplusplus | |
17664 | extern "C" | |
17665 | #endif | |
17666 | /* We use char because int might match the return type of a gcc2 | |
17667 | builtin and then its argument prototype would still apply. */ | |
17668 | char erfc (); | |
69a2d125 EB |
17669 | int |
17670 | main () | |
17671 | { | |
1409cd0b | 17672 | erfc (); |
69a2d125 EB |
17673 | ; |
17674 | return 0; | |
17675 | } | |
17676 | _ACEOF | |
17677 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17679 | (eval $ac_link) 2>conftest.er1 | |
17680 | ac_status=$? | |
17681 | grep -v '^ *+' conftest.er1 >conftest.err | |
17682 | rm -f conftest.er1 | |
17683 | cat conftest.err >&5 | |
17684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17685 | (exit $ac_status); } && | |
1409cd0b FXC |
17686 | { ac_try='test -z "$ac_c_werror_flag" |
17687 | || test ! -s conftest.err' | |
69a2d125 EB |
17688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17689 | (eval $ac_try) 2>&5 | |
17690 | ac_status=$? | |
17691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17692 | (exit $ac_status); }; } && | |
17693 | { ac_try='test -s conftest$ac_exeext' | |
17694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17695 | (eval $ac_try) 2>&5 | |
17696 | ac_status=$? | |
17697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17698 | (exit $ac_status); }; }; then | |
1409cd0b | 17699 | ac_cv_lib_m_erfc=yes |
69a2d125 EB |
17700 | else |
17701 | echo "$as_me: failed program was:" >&5 | |
17702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17703 | ||
1409cd0b | 17704 | ac_cv_lib_m_erfc=no |
69a2d125 EB |
17705 | fi |
17706 | rm -f conftest.err conftest.$ac_objext \ | |
17707 | conftest$ac_exeext conftest.$ac_ext | |
17708 | LIBS=$ac_check_lib_save_LIBS | |
17709 | fi | |
1409cd0b FXC |
17710 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfc" >&5 |
17711 | echo "${ECHO_T}$ac_cv_lib_m_erfc" >&6 | |
17712 | if test $ac_cv_lib_m_erfc = yes; then | |
69a2d125 EB |
17713 | |
17714 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 17715 | #define HAVE_ERFC 1 |
69a2d125 EB |
17716 | _ACEOF |
17717 | ||
17718 | fi | |
17719 | ||
1409cd0b FXC |
17720 | echo "$as_me:$LINENO: checking for erfcl in -lm" >&5 |
17721 | echo $ECHO_N "checking for erfcl in -lm... $ECHO_C" >&6 | |
17722 | if test "${ac_cv_lib_m_erfcl+set}" = set; then | |
e8525382 SK |
17723 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17724 | else | |
17725 | ac_check_lib_save_LIBS=$LIBS | |
17726 | LIBS="-lm $LIBS" | |
f02d008e JD |
17727 | if test x$gcc_no_link = xyes; then |
17728 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17729 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17730 | { (exit 1); exit 1; }; } | |
17731 | fi | |
e8525382 SK |
17732 | cat >conftest.$ac_ext <<_ACEOF |
17733 | /* confdefs.h. */ | |
17734 | _ACEOF | |
17735 | cat confdefs.h >>conftest.$ac_ext | |
17736 | cat >>conftest.$ac_ext <<_ACEOF | |
17737 | /* end confdefs.h. */ | |
17738 | ||
17739 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17740 | #ifdef __cplusplus | |
17741 | extern "C" | |
17742 | #endif | |
17743 | /* We use char because int might match the return type of a gcc2 | |
17744 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 17745 | char erfcl (); |
e8525382 SK |
17746 | int |
17747 | main () | |
17748 | { | |
1409cd0b | 17749 | erfcl (); |
e8525382 SK |
17750 | ; |
17751 | return 0; | |
17752 | } | |
17753 | _ACEOF | |
17754 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17755 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17756 | (eval $ac_link) 2>conftest.er1 | |
17757 | ac_status=$? | |
17758 | grep -v '^ *+' conftest.er1 >conftest.err | |
17759 | rm -f conftest.er1 | |
17760 | cat conftest.err >&5 | |
17761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17762 | (exit $ac_status); } && | |
1409cd0b FXC |
17763 | { ac_try='test -z "$ac_c_werror_flag" |
17764 | || test ! -s conftest.err' | |
e8525382 SK |
17765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17766 | (eval $ac_try) 2>&5 | |
17767 | ac_status=$? | |
17768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17769 | (exit $ac_status); }; } && | |
17770 | { ac_try='test -s conftest$ac_exeext' | |
17771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17772 | (eval $ac_try) 2>&5 | |
17773 | ac_status=$? | |
17774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17775 | (exit $ac_status); }; }; then | |
1409cd0b | 17776 | ac_cv_lib_m_erfcl=yes |
e8525382 SK |
17777 | else |
17778 | echo "$as_me: failed program was:" >&5 | |
17779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17780 | ||
1409cd0b | 17781 | ac_cv_lib_m_erfcl=no |
e8525382 SK |
17782 | fi |
17783 | rm -f conftest.err conftest.$ac_objext \ | |
17784 | conftest$ac_exeext conftest.$ac_ext | |
17785 | LIBS=$ac_check_lib_save_LIBS | |
17786 | fi | |
1409cd0b FXC |
17787 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_erfcl" >&5 |
17788 | echo "${ECHO_T}$ac_cv_lib_m_erfcl" >&6 | |
17789 | if test $ac_cv_lib_m_erfcl = yes; then | |
e8525382 SK |
17790 | |
17791 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 17792 | #define HAVE_ERFCL 1 |
e8525382 SK |
17793 | _ACEOF |
17794 | ||
17795 | fi | |
17796 | ||
1409cd0b FXC |
17797 | echo "$as_me:$LINENO: checking for j0f in -lm" >&5 |
17798 | echo $ECHO_N "checking for j0f in -lm... $ECHO_C" >&6 | |
17799 | if test "${ac_cv_lib_m_j0f+set}" = set; then | |
e8525382 SK |
17800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17801 | else | |
17802 | ac_check_lib_save_LIBS=$LIBS | |
17803 | LIBS="-lm $LIBS" | |
f02d008e JD |
17804 | if test x$gcc_no_link = xyes; then |
17805 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17806 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17807 | { (exit 1); exit 1; }; } | |
17808 | fi | |
e8525382 SK |
17809 | cat >conftest.$ac_ext <<_ACEOF |
17810 | /* confdefs.h. */ | |
17811 | _ACEOF | |
17812 | cat confdefs.h >>conftest.$ac_ext | |
17813 | cat >>conftest.$ac_ext <<_ACEOF | |
17814 | /* end confdefs.h. */ | |
17815 | ||
17816 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17817 | #ifdef __cplusplus | |
17818 | extern "C" | |
17819 | #endif | |
17820 | /* We use char because int might match the return type of a gcc2 | |
17821 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 17822 | char j0f (); |
e8525382 SK |
17823 | int |
17824 | main () | |
17825 | { | |
1409cd0b | 17826 | j0f (); |
e8525382 SK |
17827 | ; |
17828 | return 0; | |
17829 | } | |
17830 | _ACEOF | |
17831 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17832 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17833 | (eval $ac_link) 2>conftest.er1 | |
17834 | ac_status=$? | |
17835 | grep -v '^ *+' conftest.er1 >conftest.err | |
17836 | rm -f conftest.er1 | |
17837 | cat conftest.err >&5 | |
17838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17839 | (exit $ac_status); } && | |
1409cd0b FXC |
17840 | { ac_try='test -z "$ac_c_werror_flag" |
17841 | || test ! -s conftest.err' | |
e8525382 SK |
17842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17843 | (eval $ac_try) 2>&5 | |
17844 | ac_status=$? | |
17845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17846 | (exit $ac_status); }; } && | |
17847 | { ac_try='test -s conftest$ac_exeext' | |
17848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17849 | (eval $ac_try) 2>&5 | |
17850 | ac_status=$? | |
17851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17852 | (exit $ac_status); }; }; then | |
1409cd0b | 17853 | ac_cv_lib_m_j0f=yes |
e8525382 SK |
17854 | else |
17855 | echo "$as_me: failed program was:" >&5 | |
17856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17857 | ||
1409cd0b FXC |
17858 | ac_cv_lib_m_j0f=no |
17859 | fi | |
17860 | rm -f conftest.err conftest.$ac_objext \ | |
17861 | conftest$ac_exeext conftest.$ac_ext | |
17862 | LIBS=$ac_check_lib_save_LIBS | |
17863 | fi | |
17864 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0f" >&5 | |
17865 | echo "${ECHO_T}$ac_cv_lib_m_j0f" >&6 | |
17866 | if test $ac_cv_lib_m_j0f = yes; then | |
17867 | ||
17868 | cat >>confdefs.h <<\_ACEOF | |
17869 | #define HAVE_J0F 1 | |
17870 | _ACEOF | |
17871 | ||
17872 | fi | |
17873 | ||
17874 | echo "$as_me:$LINENO: checking for j0 in -lm" >&5 | |
17875 | echo $ECHO_N "checking for j0 in -lm... $ECHO_C" >&6 | |
17876 | if test "${ac_cv_lib_m_j0+set}" = set; then | |
17877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17878 | else | |
17879 | ac_check_lib_save_LIBS=$LIBS | |
17880 | LIBS="-lm $LIBS" | |
17881 | if test x$gcc_no_link = xyes; then | |
17882 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17883 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17884 | { (exit 1); exit 1; }; } | |
17885 | fi | |
17886 | cat >conftest.$ac_ext <<_ACEOF | |
17887 | /* confdefs.h. */ | |
17888 | _ACEOF | |
17889 | cat confdefs.h >>conftest.$ac_ext | |
17890 | cat >>conftest.$ac_ext <<_ACEOF | |
17891 | /* end confdefs.h. */ | |
17892 | ||
17893 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17894 | #ifdef __cplusplus | |
17895 | extern "C" | |
17896 | #endif | |
17897 | /* We use char because int might match the return type of a gcc2 | |
17898 | builtin and then its argument prototype would still apply. */ | |
17899 | char j0 (); | |
17900 | int | |
17901 | main () | |
17902 | { | |
17903 | j0 (); | |
17904 | ; | |
17905 | return 0; | |
17906 | } | |
17907 | _ACEOF | |
17908 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17910 | (eval $ac_link) 2>conftest.er1 | |
17911 | ac_status=$? | |
17912 | grep -v '^ *+' conftest.er1 >conftest.err | |
17913 | rm -f conftest.er1 | |
17914 | cat conftest.err >&5 | |
17915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17916 | (exit $ac_status); } && | |
17917 | { ac_try='test -z "$ac_c_werror_flag" | |
17918 | || test ! -s conftest.err' | |
17919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17920 | (eval $ac_try) 2>&5 | |
17921 | ac_status=$? | |
17922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17923 | (exit $ac_status); }; } && | |
17924 | { ac_try='test -s conftest$ac_exeext' | |
17925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17926 | (eval $ac_try) 2>&5 | |
17927 | ac_status=$? | |
17928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17929 | (exit $ac_status); }; }; then | |
17930 | ac_cv_lib_m_j0=yes | |
17931 | else | |
17932 | echo "$as_me: failed program was:" >&5 | |
17933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17934 | ||
17935 | ac_cv_lib_m_j0=no | |
17936 | fi | |
17937 | rm -f conftest.err conftest.$ac_objext \ | |
17938 | conftest$ac_exeext conftest.$ac_ext | |
17939 | LIBS=$ac_check_lib_save_LIBS | |
17940 | fi | |
17941 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0" >&5 | |
17942 | echo "${ECHO_T}$ac_cv_lib_m_j0" >&6 | |
17943 | if test $ac_cv_lib_m_j0 = yes; then | |
17944 | ||
17945 | cat >>confdefs.h <<\_ACEOF | |
17946 | #define HAVE_J0 1 | |
17947 | _ACEOF | |
17948 | ||
17949 | fi | |
17950 | ||
17951 | echo "$as_me:$LINENO: checking for j0l in -lm" >&5 | |
17952 | echo $ECHO_N "checking for j0l in -lm... $ECHO_C" >&6 | |
17953 | if test "${ac_cv_lib_m_j0l+set}" = set; then | |
17954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17955 | else | |
17956 | ac_check_lib_save_LIBS=$LIBS | |
17957 | LIBS="-lm $LIBS" | |
17958 | if test x$gcc_no_link = xyes; then | |
17959 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
17960 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
17961 | { (exit 1); exit 1; }; } | |
17962 | fi | |
17963 | cat >conftest.$ac_ext <<_ACEOF | |
17964 | /* confdefs.h. */ | |
17965 | _ACEOF | |
17966 | cat confdefs.h >>conftest.$ac_ext | |
17967 | cat >>conftest.$ac_ext <<_ACEOF | |
17968 | /* end confdefs.h. */ | |
17969 | ||
17970 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17971 | #ifdef __cplusplus | |
17972 | extern "C" | |
17973 | #endif | |
17974 | /* We use char because int might match the return type of a gcc2 | |
17975 | builtin and then its argument prototype would still apply. */ | |
17976 | char j0l (); | |
17977 | int | |
17978 | main () | |
17979 | { | |
17980 | j0l (); | |
17981 | ; | |
17982 | return 0; | |
17983 | } | |
17984 | _ACEOF | |
17985 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17987 | (eval $ac_link) 2>conftest.er1 | |
17988 | ac_status=$? | |
17989 | grep -v '^ *+' conftest.er1 >conftest.err | |
17990 | rm -f conftest.er1 | |
17991 | cat conftest.err >&5 | |
17992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17993 | (exit $ac_status); } && | |
17994 | { ac_try='test -z "$ac_c_werror_flag" | |
17995 | || test ! -s conftest.err' | |
17996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17997 | (eval $ac_try) 2>&5 | |
17998 | ac_status=$? | |
17999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18000 | (exit $ac_status); }; } && | |
18001 | { ac_try='test -s conftest$ac_exeext' | |
18002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18003 | (eval $ac_try) 2>&5 | |
18004 | ac_status=$? | |
18005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18006 | (exit $ac_status); }; }; then | |
18007 | ac_cv_lib_m_j0l=yes | |
18008 | else | |
18009 | echo "$as_me: failed program was:" >&5 | |
18010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18011 | ||
18012 | ac_cv_lib_m_j0l=no | |
18013 | fi | |
18014 | rm -f conftest.err conftest.$ac_objext \ | |
18015 | conftest$ac_exeext conftest.$ac_ext | |
18016 | LIBS=$ac_check_lib_save_LIBS | |
18017 | fi | |
18018 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j0l" >&5 | |
18019 | echo "${ECHO_T}$ac_cv_lib_m_j0l" >&6 | |
18020 | if test $ac_cv_lib_m_j0l = yes; then | |
18021 | ||
18022 | cat >>confdefs.h <<\_ACEOF | |
18023 | #define HAVE_J0L 1 | |
18024 | _ACEOF | |
18025 | ||
18026 | fi | |
18027 | ||
18028 | echo "$as_me:$LINENO: checking for j1f in -lm" >&5 | |
18029 | echo $ECHO_N "checking for j1f in -lm... $ECHO_C" >&6 | |
18030 | if test "${ac_cv_lib_m_j1f+set}" = set; then | |
18031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18032 | else | |
18033 | ac_check_lib_save_LIBS=$LIBS | |
18034 | LIBS="-lm $LIBS" | |
18035 | if test x$gcc_no_link = xyes; then | |
18036 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18037 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18038 | { (exit 1); exit 1; }; } | |
18039 | fi | |
18040 | cat >conftest.$ac_ext <<_ACEOF | |
18041 | /* confdefs.h. */ | |
18042 | _ACEOF | |
18043 | cat confdefs.h >>conftest.$ac_ext | |
18044 | cat >>conftest.$ac_ext <<_ACEOF | |
18045 | /* end confdefs.h. */ | |
18046 | ||
18047 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18048 | #ifdef __cplusplus | |
18049 | extern "C" | |
18050 | #endif | |
18051 | /* We use char because int might match the return type of a gcc2 | |
18052 | builtin and then its argument prototype would still apply. */ | |
18053 | char j1f (); | |
18054 | int | |
18055 | main () | |
18056 | { | |
18057 | j1f (); | |
18058 | ; | |
18059 | return 0; | |
18060 | } | |
18061 | _ACEOF | |
18062 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18064 | (eval $ac_link) 2>conftest.er1 | |
18065 | ac_status=$? | |
18066 | grep -v '^ *+' conftest.er1 >conftest.err | |
18067 | rm -f conftest.er1 | |
18068 | cat conftest.err >&5 | |
18069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18070 | (exit $ac_status); } && | |
18071 | { ac_try='test -z "$ac_c_werror_flag" | |
18072 | || test ! -s conftest.err' | |
18073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18074 | (eval $ac_try) 2>&5 | |
18075 | ac_status=$? | |
18076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18077 | (exit $ac_status); }; } && | |
18078 | { ac_try='test -s conftest$ac_exeext' | |
18079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18080 | (eval $ac_try) 2>&5 | |
18081 | ac_status=$? | |
18082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18083 | (exit $ac_status); }; }; then | |
18084 | ac_cv_lib_m_j1f=yes | |
18085 | else | |
18086 | echo "$as_me: failed program was:" >&5 | |
18087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18088 | ||
18089 | ac_cv_lib_m_j1f=no | |
e8525382 SK |
18090 | fi |
18091 | rm -f conftest.err conftest.$ac_objext \ | |
18092 | conftest$ac_exeext conftest.$ac_ext | |
18093 | LIBS=$ac_check_lib_save_LIBS | |
18094 | fi | |
1409cd0b FXC |
18095 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1f" >&5 |
18096 | echo "${ECHO_T}$ac_cv_lib_m_j1f" >&6 | |
18097 | if test $ac_cv_lib_m_j1f = yes; then | |
e8525382 SK |
18098 | |
18099 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 18100 | #define HAVE_J1F 1 |
e8525382 SK |
18101 | _ACEOF |
18102 | ||
18103 | fi | |
18104 | ||
1409cd0b FXC |
18105 | echo "$as_me:$LINENO: checking for j1 in -lm" >&5 |
18106 | echo $ECHO_N "checking for j1 in -lm... $ECHO_C" >&6 | |
18107 | if test "${ac_cv_lib_m_j1+set}" = set; then | |
e8525382 SK |
18108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18109 | else | |
18110 | ac_check_lib_save_LIBS=$LIBS | |
18111 | LIBS="-lm $LIBS" | |
f02d008e JD |
18112 | if test x$gcc_no_link = xyes; then |
18113 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18114 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18115 | { (exit 1); exit 1; }; } | |
18116 | fi | |
e8525382 SK |
18117 | cat >conftest.$ac_ext <<_ACEOF |
18118 | /* confdefs.h. */ | |
18119 | _ACEOF | |
18120 | cat confdefs.h >>conftest.$ac_ext | |
18121 | cat >>conftest.$ac_ext <<_ACEOF | |
18122 | /* end confdefs.h. */ | |
18123 | ||
18124 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18125 | #ifdef __cplusplus | |
18126 | extern "C" | |
18127 | #endif | |
18128 | /* We use char because int might match the return type of a gcc2 | |
18129 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 18130 | char j1 (); |
e8525382 SK |
18131 | int |
18132 | main () | |
18133 | { | |
1409cd0b | 18134 | j1 (); |
e8525382 SK |
18135 | ; |
18136 | return 0; | |
18137 | } | |
18138 | _ACEOF | |
18139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18141 | (eval $ac_link) 2>conftest.er1 | |
18142 | ac_status=$? | |
18143 | grep -v '^ *+' conftest.er1 >conftest.err | |
18144 | rm -f conftest.er1 | |
18145 | cat conftest.err >&5 | |
18146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18147 | (exit $ac_status); } && | |
1409cd0b FXC |
18148 | { ac_try='test -z "$ac_c_werror_flag" |
18149 | || test ! -s conftest.err' | |
e8525382 SK |
18150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18151 | (eval $ac_try) 2>&5 | |
18152 | ac_status=$? | |
18153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18154 | (exit $ac_status); }; } && | |
18155 | { ac_try='test -s conftest$ac_exeext' | |
18156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18157 | (eval $ac_try) 2>&5 | |
18158 | ac_status=$? | |
18159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18160 | (exit $ac_status); }; }; then | |
1409cd0b | 18161 | ac_cv_lib_m_j1=yes |
e8525382 SK |
18162 | else |
18163 | echo "$as_me: failed program was:" >&5 | |
18164 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18165 | ||
1409cd0b | 18166 | ac_cv_lib_m_j1=no |
e8525382 SK |
18167 | fi |
18168 | rm -f conftest.err conftest.$ac_objext \ | |
18169 | conftest$ac_exeext conftest.$ac_ext | |
18170 | LIBS=$ac_check_lib_save_LIBS | |
18171 | fi | |
1409cd0b FXC |
18172 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1" >&5 |
18173 | echo "${ECHO_T}$ac_cv_lib_m_j1" >&6 | |
18174 | if test $ac_cv_lib_m_j1 = yes; then | |
e8525382 SK |
18175 | |
18176 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 18177 | #define HAVE_J1 1 |
e8525382 SK |
18178 | _ACEOF |
18179 | ||
18180 | fi | |
18181 | ||
1409cd0b FXC |
18182 | echo "$as_me:$LINENO: checking for j1l in -lm" >&5 |
18183 | echo $ECHO_N "checking for j1l in -lm... $ECHO_C" >&6 | |
18184 | if test "${ac_cv_lib_m_j1l+set}" = set; then | |
e8525382 SK |
18185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18186 | else | |
18187 | ac_check_lib_save_LIBS=$LIBS | |
18188 | LIBS="-lm $LIBS" | |
f02d008e JD |
18189 | if test x$gcc_no_link = xyes; then |
18190 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18191 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18192 | { (exit 1); exit 1; }; } | |
18193 | fi | |
e8525382 SK |
18194 | cat >conftest.$ac_ext <<_ACEOF |
18195 | /* confdefs.h. */ | |
18196 | _ACEOF | |
18197 | cat confdefs.h >>conftest.$ac_ext | |
18198 | cat >>conftest.$ac_ext <<_ACEOF | |
18199 | /* end confdefs.h. */ | |
18200 | ||
18201 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18202 | #ifdef __cplusplus | |
18203 | extern "C" | |
18204 | #endif | |
18205 | /* We use char because int might match the return type of a gcc2 | |
18206 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 18207 | char j1l (); |
e8525382 SK |
18208 | int |
18209 | main () | |
18210 | { | |
1409cd0b | 18211 | j1l (); |
e8525382 SK |
18212 | ; |
18213 | return 0; | |
18214 | } | |
18215 | _ACEOF | |
18216 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18217 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18218 | (eval $ac_link) 2>conftest.er1 | |
18219 | ac_status=$? | |
18220 | grep -v '^ *+' conftest.er1 >conftest.err | |
18221 | rm -f conftest.er1 | |
18222 | cat conftest.err >&5 | |
18223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18224 | (exit $ac_status); } && | |
1409cd0b FXC |
18225 | { ac_try='test -z "$ac_c_werror_flag" |
18226 | || test ! -s conftest.err' | |
e8525382 SK |
18227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18228 | (eval $ac_try) 2>&5 | |
18229 | ac_status=$? | |
18230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18231 | (exit $ac_status); }; } && | |
18232 | { ac_try='test -s conftest$ac_exeext' | |
18233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18234 | (eval $ac_try) 2>&5 | |
18235 | ac_status=$? | |
18236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18237 | (exit $ac_status); }; }; then | |
1409cd0b | 18238 | ac_cv_lib_m_j1l=yes |
e8525382 SK |
18239 | else |
18240 | echo "$as_me: failed program was:" >&5 | |
18241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18242 | ||
1409cd0b | 18243 | ac_cv_lib_m_j1l=no |
e8525382 SK |
18244 | fi |
18245 | rm -f conftest.err conftest.$ac_objext \ | |
18246 | conftest$ac_exeext conftest.$ac_ext | |
18247 | LIBS=$ac_check_lib_save_LIBS | |
18248 | fi | |
1409cd0b FXC |
18249 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_j1l" >&5 |
18250 | echo "${ECHO_T}$ac_cv_lib_m_j1l" >&6 | |
18251 | if test $ac_cv_lib_m_j1l = yes; then | |
e8525382 SK |
18252 | |
18253 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 18254 | #define HAVE_J1L 1 |
e8525382 SK |
18255 | _ACEOF |
18256 | ||
18257 | fi | |
18258 | ||
1409cd0b FXC |
18259 | echo "$as_me:$LINENO: checking for jnf in -lm" >&5 |
18260 | echo $ECHO_N "checking for jnf in -lm... $ECHO_C" >&6 | |
18261 | if test "${ac_cv_lib_m_jnf+set}" = set; then | |
e8525382 SK |
18262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18263 | else | |
18264 | ac_check_lib_save_LIBS=$LIBS | |
18265 | LIBS="-lm $LIBS" | |
f02d008e JD |
18266 | if test x$gcc_no_link = xyes; then |
18267 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18268 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18269 | { (exit 1); exit 1; }; } | |
18270 | fi | |
e8525382 SK |
18271 | cat >conftest.$ac_ext <<_ACEOF |
18272 | /* confdefs.h. */ | |
18273 | _ACEOF | |
18274 | cat confdefs.h >>conftest.$ac_ext | |
18275 | cat >>conftest.$ac_ext <<_ACEOF | |
18276 | /* end confdefs.h. */ | |
18277 | ||
18278 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18279 | #ifdef __cplusplus | |
18280 | extern "C" | |
18281 | #endif | |
18282 | /* We use char because int might match the return type of a gcc2 | |
18283 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 18284 | char jnf (); |
e8525382 SK |
18285 | int |
18286 | main () | |
18287 | { | |
1409cd0b | 18288 | jnf (); |
e8525382 SK |
18289 | ; |
18290 | return 0; | |
18291 | } | |
18292 | _ACEOF | |
18293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18295 | (eval $ac_link) 2>conftest.er1 | |
18296 | ac_status=$? | |
18297 | grep -v '^ *+' conftest.er1 >conftest.err | |
18298 | rm -f conftest.er1 | |
18299 | cat conftest.err >&5 | |
18300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18301 | (exit $ac_status); } && | |
1409cd0b FXC |
18302 | { ac_try='test -z "$ac_c_werror_flag" |
18303 | || test ! -s conftest.err' | |
e8525382 SK |
18304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18305 | (eval $ac_try) 2>&5 | |
18306 | ac_status=$? | |
18307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18308 | (exit $ac_status); }; } && | |
18309 | { ac_try='test -s conftest$ac_exeext' | |
18310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18311 | (eval $ac_try) 2>&5 | |
18312 | ac_status=$? | |
18313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18314 | (exit $ac_status); }; }; then | |
1409cd0b | 18315 | ac_cv_lib_m_jnf=yes |
e8525382 SK |
18316 | else |
18317 | echo "$as_me: failed program was:" >&5 | |
18318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18319 | ||
1409cd0b | 18320 | ac_cv_lib_m_jnf=no |
e8525382 SK |
18321 | fi |
18322 | rm -f conftest.err conftest.$ac_objext \ | |
18323 | conftest$ac_exeext conftest.$ac_ext | |
18324 | LIBS=$ac_check_lib_save_LIBS | |
18325 | fi | |
1409cd0b FXC |
18326 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnf" >&5 |
18327 | echo "${ECHO_T}$ac_cv_lib_m_jnf" >&6 | |
18328 | if test $ac_cv_lib_m_jnf = yes; then | |
e8525382 SK |
18329 | |
18330 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 18331 | #define HAVE_JNF 1 |
e8525382 SK |
18332 | _ACEOF |
18333 | ||
18334 | fi | |
18335 | ||
1409cd0b FXC |
18336 | echo "$as_me:$LINENO: checking for jn in -lm" >&5 |
18337 | echo $ECHO_N "checking for jn in -lm... $ECHO_C" >&6 | |
18338 | if test "${ac_cv_lib_m_jn+set}" = set; then | |
e8525382 SK |
18339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18340 | else | |
18341 | ac_check_lib_save_LIBS=$LIBS | |
18342 | LIBS="-lm $LIBS" | |
f02d008e JD |
18343 | if test x$gcc_no_link = xyes; then |
18344 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18345 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18346 | { (exit 1); exit 1; }; } | |
18347 | fi | |
e8525382 SK |
18348 | cat >conftest.$ac_ext <<_ACEOF |
18349 | /* confdefs.h. */ | |
18350 | _ACEOF | |
18351 | cat confdefs.h >>conftest.$ac_ext | |
18352 | cat >>conftest.$ac_ext <<_ACEOF | |
18353 | /* end confdefs.h. */ | |
18354 | ||
18355 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18356 | #ifdef __cplusplus | |
18357 | extern "C" | |
18358 | #endif | |
18359 | /* We use char because int might match the return type of a gcc2 | |
18360 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 18361 | char jn (); |
e8525382 SK |
18362 | int |
18363 | main () | |
18364 | { | |
1409cd0b | 18365 | jn (); |
e8525382 SK |
18366 | ; |
18367 | return 0; | |
18368 | } | |
18369 | _ACEOF | |
18370 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18371 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18372 | (eval $ac_link) 2>conftest.er1 | |
18373 | ac_status=$? | |
18374 | grep -v '^ *+' conftest.er1 >conftest.err | |
18375 | rm -f conftest.er1 | |
18376 | cat conftest.err >&5 | |
18377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18378 | (exit $ac_status); } && | |
1409cd0b FXC |
18379 | { ac_try='test -z "$ac_c_werror_flag" |
18380 | || test ! -s conftest.err' | |
e8525382 SK |
18381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18382 | (eval $ac_try) 2>&5 | |
18383 | ac_status=$? | |
18384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18385 | (exit $ac_status); }; } && | |
18386 | { ac_try='test -s conftest$ac_exeext' | |
18387 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18388 | (eval $ac_try) 2>&5 | |
18389 | ac_status=$? | |
18390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18391 | (exit $ac_status); }; }; then | |
1409cd0b | 18392 | ac_cv_lib_m_jn=yes |
e8525382 SK |
18393 | else |
18394 | echo "$as_me: failed program was:" >&5 | |
18395 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18396 | ||
1409cd0b | 18397 | ac_cv_lib_m_jn=no |
e8525382 SK |
18398 | fi |
18399 | rm -f conftest.err conftest.$ac_objext \ | |
18400 | conftest$ac_exeext conftest.$ac_ext | |
18401 | LIBS=$ac_check_lib_save_LIBS | |
18402 | fi | |
1409cd0b FXC |
18403 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jn" >&5 |
18404 | echo "${ECHO_T}$ac_cv_lib_m_jn" >&6 | |
18405 | if test $ac_cv_lib_m_jn = yes; then | |
e8525382 SK |
18406 | |
18407 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 18408 | #define HAVE_JN 1 |
e8525382 SK |
18409 | _ACEOF |
18410 | ||
18411 | fi | |
18412 | ||
1409cd0b FXC |
18413 | echo "$as_me:$LINENO: checking for jnl in -lm" >&5 |
18414 | echo $ECHO_N "checking for jnl in -lm... $ECHO_C" >&6 | |
18415 | if test "${ac_cv_lib_m_jnl+set}" = set; then | |
e8525382 SK |
18416 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18417 | else | |
18418 | ac_check_lib_save_LIBS=$LIBS | |
18419 | LIBS="-lm $LIBS" | |
f02d008e JD |
18420 | if test x$gcc_no_link = xyes; then |
18421 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18422 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18423 | { (exit 1); exit 1; }; } | |
18424 | fi | |
e8525382 SK |
18425 | cat >conftest.$ac_ext <<_ACEOF |
18426 | /* confdefs.h. */ | |
18427 | _ACEOF | |
18428 | cat confdefs.h >>conftest.$ac_ext | |
18429 | cat >>conftest.$ac_ext <<_ACEOF | |
18430 | /* end confdefs.h. */ | |
18431 | ||
18432 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18433 | #ifdef __cplusplus | |
18434 | extern "C" | |
18435 | #endif | |
18436 | /* We use char because int might match the return type of a gcc2 | |
18437 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 18438 | char jnl (); |
e8525382 SK |
18439 | int |
18440 | main () | |
18441 | { | |
1409cd0b | 18442 | jnl (); |
e8525382 SK |
18443 | ; |
18444 | return 0; | |
18445 | } | |
18446 | _ACEOF | |
18447 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18449 | (eval $ac_link) 2>conftest.er1 | |
18450 | ac_status=$? | |
18451 | grep -v '^ *+' conftest.er1 >conftest.err | |
18452 | rm -f conftest.er1 | |
18453 | cat conftest.err >&5 | |
18454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18455 | (exit $ac_status); } && | |
1409cd0b FXC |
18456 | { ac_try='test -z "$ac_c_werror_flag" |
18457 | || test ! -s conftest.err' | |
e8525382 SK |
18458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18459 | (eval $ac_try) 2>&5 | |
18460 | ac_status=$? | |
18461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18462 | (exit $ac_status); }; } && | |
18463 | { ac_try='test -s conftest$ac_exeext' | |
18464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18465 | (eval $ac_try) 2>&5 | |
18466 | ac_status=$? | |
18467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18468 | (exit $ac_status); }; }; then | |
1409cd0b | 18469 | ac_cv_lib_m_jnl=yes |
e8525382 SK |
18470 | else |
18471 | echo "$as_me: failed program was:" >&5 | |
18472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18473 | ||
1409cd0b | 18474 | ac_cv_lib_m_jnl=no |
e8525382 SK |
18475 | fi |
18476 | rm -f conftest.err conftest.$ac_objext \ | |
18477 | conftest$ac_exeext conftest.$ac_ext | |
18478 | LIBS=$ac_check_lib_save_LIBS | |
18479 | fi | |
1409cd0b FXC |
18480 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_jnl" >&5 |
18481 | echo "${ECHO_T}$ac_cv_lib_m_jnl" >&6 | |
18482 | if test $ac_cv_lib_m_jnl = yes; then | |
e8525382 SK |
18483 | |
18484 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 18485 | #define HAVE_JNL 1 |
e8525382 SK |
18486 | _ACEOF |
18487 | ||
18488 | fi | |
18489 | ||
1409cd0b FXC |
18490 | echo "$as_me:$LINENO: checking for y0f in -lm" >&5 |
18491 | echo $ECHO_N "checking for y0f in -lm... $ECHO_C" >&6 | |
18492 | if test "${ac_cv_lib_m_y0f+set}" = set; then | |
e8525382 SK |
18493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18494 | else | |
18495 | ac_check_lib_save_LIBS=$LIBS | |
18496 | LIBS="-lm $LIBS" | |
f02d008e JD |
18497 | if test x$gcc_no_link = xyes; then |
18498 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18499 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18500 | { (exit 1); exit 1; }; } | |
18501 | fi | |
e8525382 SK |
18502 | cat >conftest.$ac_ext <<_ACEOF |
18503 | /* confdefs.h. */ | |
18504 | _ACEOF | |
18505 | cat confdefs.h >>conftest.$ac_ext | |
18506 | cat >>conftest.$ac_ext <<_ACEOF | |
18507 | /* end confdefs.h. */ | |
18508 | ||
18509 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18510 | #ifdef __cplusplus | |
18511 | extern "C" | |
18512 | #endif | |
18513 | /* We use char because int might match the return type of a gcc2 | |
18514 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 18515 | char y0f (); |
e8525382 SK |
18516 | int |
18517 | main () | |
18518 | { | |
1409cd0b | 18519 | y0f (); |
e8525382 SK |
18520 | ; |
18521 | return 0; | |
18522 | } | |
18523 | _ACEOF | |
18524 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18526 | (eval $ac_link) 2>conftest.er1 | |
18527 | ac_status=$? | |
18528 | grep -v '^ *+' conftest.er1 >conftest.err | |
18529 | rm -f conftest.er1 | |
18530 | cat conftest.err >&5 | |
18531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18532 | (exit $ac_status); } && | |
1409cd0b FXC |
18533 | { ac_try='test -z "$ac_c_werror_flag" |
18534 | || test ! -s conftest.err' | |
e8525382 SK |
18535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18536 | (eval $ac_try) 2>&5 | |
18537 | ac_status=$? | |
18538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18539 | (exit $ac_status); }; } && | |
18540 | { ac_try='test -s conftest$ac_exeext' | |
18541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18542 | (eval $ac_try) 2>&5 | |
18543 | ac_status=$? | |
18544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18545 | (exit $ac_status); }; }; then | |
1409cd0b | 18546 | ac_cv_lib_m_y0f=yes |
e8525382 SK |
18547 | else |
18548 | echo "$as_me: failed program was:" >&5 | |
18549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18550 | ||
1409cd0b | 18551 | ac_cv_lib_m_y0f=no |
e8525382 SK |
18552 | fi |
18553 | rm -f conftest.err conftest.$ac_objext \ | |
18554 | conftest$ac_exeext conftest.$ac_ext | |
18555 | LIBS=$ac_check_lib_save_LIBS | |
18556 | fi | |
1409cd0b FXC |
18557 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0f" >&5 |
18558 | echo "${ECHO_T}$ac_cv_lib_m_y0f" >&6 | |
18559 | if test $ac_cv_lib_m_y0f = yes; then | |
e8525382 SK |
18560 | |
18561 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 18562 | #define HAVE_Y0F 1 |
e8525382 SK |
18563 | _ACEOF |
18564 | ||
18565 | fi | |
18566 | ||
1409cd0b FXC |
18567 | echo "$as_me:$LINENO: checking for y0 in -lm" >&5 |
18568 | echo $ECHO_N "checking for y0 in -lm... $ECHO_C" >&6 | |
18569 | if test "${ac_cv_lib_m_y0+set}" = set; then | |
e8525382 SK |
18570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18571 | else | |
18572 | ac_check_lib_save_LIBS=$LIBS | |
18573 | LIBS="-lm $LIBS" | |
f02d008e JD |
18574 | if test x$gcc_no_link = xyes; then |
18575 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18576 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18577 | { (exit 1); exit 1; }; } | |
18578 | fi | |
e8525382 SK |
18579 | cat >conftest.$ac_ext <<_ACEOF |
18580 | /* confdefs.h. */ | |
18581 | _ACEOF | |
18582 | cat confdefs.h >>conftest.$ac_ext | |
18583 | cat >>conftest.$ac_ext <<_ACEOF | |
18584 | /* end confdefs.h. */ | |
18585 | ||
18586 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18587 | #ifdef __cplusplus | |
18588 | extern "C" | |
18589 | #endif | |
18590 | /* We use char because int might match the return type of a gcc2 | |
18591 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 18592 | char y0 (); |
e8525382 SK |
18593 | int |
18594 | main () | |
18595 | { | |
1409cd0b | 18596 | y0 (); |
e8525382 SK |
18597 | ; |
18598 | return 0; | |
18599 | } | |
18600 | _ACEOF | |
18601 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18602 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18603 | (eval $ac_link) 2>conftest.er1 | |
18604 | ac_status=$? | |
18605 | grep -v '^ *+' conftest.er1 >conftest.err | |
18606 | rm -f conftest.er1 | |
18607 | cat conftest.err >&5 | |
18608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18609 | (exit $ac_status); } && | |
1409cd0b FXC |
18610 | { ac_try='test -z "$ac_c_werror_flag" |
18611 | || test ! -s conftest.err' | |
e8525382 SK |
18612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18613 | (eval $ac_try) 2>&5 | |
18614 | ac_status=$? | |
18615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18616 | (exit $ac_status); }; } && | |
18617 | { ac_try='test -s conftest$ac_exeext' | |
18618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18619 | (eval $ac_try) 2>&5 | |
18620 | ac_status=$? | |
18621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18622 | (exit $ac_status); }; }; then | |
1409cd0b | 18623 | ac_cv_lib_m_y0=yes |
e8525382 SK |
18624 | else |
18625 | echo "$as_me: failed program was:" >&5 | |
18626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18627 | ||
1409cd0b | 18628 | ac_cv_lib_m_y0=no |
e8525382 SK |
18629 | fi |
18630 | rm -f conftest.err conftest.$ac_objext \ | |
18631 | conftest$ac_exeext conftest.$ac_ext | |
18632 | LIBS=$ac_check_lib_save_LIBS | |
18633 | fi | |
1409cd0b FXC |
18634 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0" >&5 |
18635 | echo "${ECHO_T}$ac_cv_lib_m_y0" >&6 | |
18636 | if test $ac_cv_lib_m_y0 = yes; then | |
e8525382 SK |
18637 | |
18638 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 18639 | #define HAVE_Y0 1 |
e8525382 SK |
18640 | _ACEOF |
18641 | ||
18642 | fi | |
18643 | ||
1409cd0b FXC |
18644 | echo "$as_me:$LINENO: checking for y0l in -lm" >&5 |
18645 | echo $ECHO_N "checking for y0l in -lm... $ECHO_C" >&6 | |
18646 | if test "${ac_cv_lib_m_y0l+set}" = set; then | |
e8525382 SK |
18647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18648 | else | |
18649 | ac_check_lib_save_LIBS=$LIBS | |
18650 | LIBS="-lm $LIBS" | |
f02d008e JD |
18651 | if test x$gcc_no_link = xyes; then |
18652 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18653 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18654 | { (exit 1); exit 1; }; } | |
18655 | fi | |
e8525382 SK |
18656 | cat >conftest.$ac_ext <<_ACEOF |
18657 | /* confdefs.h. */ | |
18658 | _ACEOF | |
18659 | cat confdefs.h >>conftest.$ac_ext | |
18660 | cat >>conftest.$ac_ext <<_ACEOF | |
18661 | /* end confdefs.h. */ | |
18662 | ||
18663 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18664 | #ifdef __cplusplus | |
18665 | extern "C" | |
18666 | #endif | |
18667 | /* We use char because int might match the return type of a gcc2 | |
18668 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 18669 | char y0l (); |
e8525382 SK |
18670 | int |
18671 | main () | |
18672 | { | |
1409cd0b | 18673 | y0l (); |
e8525382 SK |
18674 | ; |
18675 | return 0; | |
18676 | } | |
18677 | _ACEOF | |
18678 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18680 | (eval $ac_link) 2>conftest.er1 | |
18681 | ac_status=$? | |
18682 | grep -v '^ *+' conftest.er1 >conftest.err | |
18683 | rm -f conftest.er1 | |
18684 | cat conftest.err >&5 | |
18685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18686 | (exit $ac_status); } && | |
1409cd0b FXC |
18687 | { ac_try='test -z "$ac_c_werror_flag" |
18688 | || test ! -s conftest.err' | |
e8525382 SK |
18689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18690 | (eval $ac_try) 2>&5 | |
18691 | ac_status=$? | |
18692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18693 | (exit $ac_status); }; } && | |
18694 | { ac_try='test -s conftest$ac_exeext' | |
18695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18696 | (eval $ac_try) 2>&5 | |
18697 | ac_status=$? | |
18698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18699 | (exit $ac_status); }; }; then | |
1409cd0b | 18700 | ac_cv_lib_m_y0l=yes |
e8525382 SK |
18701 | else |
18702 | echo "$as_me: failed program was:" >&5 | |
18703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18704 | ||
1409cd0b | 18705 | ac_cv_lib_m_y0l=no |
e8525382 SK |
18706 | fi |
18707 | rm -f conftest.err conftest.$ac_objext \ | |
18708 | conftest$ac_exeext conftest.$ac_ext | |
18709 | LIBS=$ac_check_lib_save_LIBS | |
18710 | fi | |
1409cd0b FXC |
18711 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y0l" >&5 |
18712 | echo "${ECHO_T}$ac_cv_lib_m_y0l" >&6 | |
18713 | if test $ac_cv_lib_m_y0l = yes; then | |
e8525382 SK |
18714 | |
18715 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 18716 | #define HAVE_Y0L 1 |
e8525382 SK |
18717 | _ACEOF |
18718 | ||
18719 | fi | |
18720 | ||
1409cd0b FXC |
18721 | echo "$as_me:$LINENO: checking for y1f in -lm" >&5 |
18722 | echo $ECHO_N "checking for y1f in -lm... $ECHO_C" >&6 | |
18723 | if test "${ac_cv_lib_m_y1f+set}" = set; then | |
e8525382 SK |
18724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18725 | else | |
18726 | ac_check_lib_save_LIBS=$LIBS | |
18727 | LIBS="-lm $LIBS" | |
f02d008e JD |
18728 | if test x$gcc_no_link = xyes; then |
18729 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18730 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18731 | { (exit 1); exit 1; }; } | |
18732 | fi | |
e8525382 SK |
18733 | cat >conftest.$ac_ext <<_ACEOF |
18734 | /* confdefs.h. */ | |
18735 | _ACEOF | |
18736 | cat confdefs.h >>conftest.$ac_ext | |
18737 | cat >>conftest.$ac_ext <<_ACEOF | |
18738 | /* end confdefs.h. */ | |
18739 | ||
18740 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18741 | #ifdef __cplusplus | |
18742 | extern "C" | |
18743 | #endif | |
18744 | /* We use char because int might match the return type of a gcc2 | |
18745 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 18746 | char y1f (); |
e8525382 SK |
18747 | int |
18748 | main () | |
18749 | { | |
1409cd0b | 18750 | y1f (); |
e8525382 SK |
18751 | ; |
18752 | return 0; | |
18753 | } | |
18754 | _ACEOF | |
18755 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18757 | (eval $ac_link) 2>conftest.er1 | |
18758 | ac_status=$? | |
18759 | grep -v '^ *+' conftest.er1 >conftest.err | |
18760 | rm -f conftest.er1 | |
18761 | cat conftest.err >&5 | |
18762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18763 | (exit $ac_status); } && | |
1409cd0b FXC |
18764 | { ac_try='test -z "$ac_c_werror_flag" |
18765 | || test ! -s conftest.err' | |
e8525382 SK |
18766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18767 | (eval $ac_try) 2>&5 | |
18768 | ac_status=$? | |
18769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18770 | (exit $ac_status); }; } && | |
18771 | { ac_try='test -s conftest$ac_exeext' | |
18772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18773 | (eval $ac_try) 2>&5 | |
18774 | ac_status=$? | |
18775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18776 | (exit $ac_status); }; }; then | |
1409cd0b | 18777 | ac_cv_lib_m_y1f=yes |
e8525382 SK |
18778 | else |
18779 | echo "$as_me: failed program was:" >&5 | |
18780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18781 | ||
1409cd0b | 18782 | ac_cv_lib_m_y1f=no |
e8525382 SK |
18783 | fi |
18784 | rm -f conftest.err conftest.$ac_objext \ | |
18785 | conftest$ac_exeext conftest.$ac_ext | |
18786 | LIBS=$ac_check_lib_save_LIBS | |
18787 | fi | |
1409cd0b FXC |
18788 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1f" >&5 |
18789 | echo "${ECHO_T}$ac_cv_lib_m_y1f" >&6 | |
18790 | if test $ac_cv_lib_m_y1f = yes; then | |
e8525382 SK |
18791 | |
18792 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 18793 | #define HAVE_Y1F 1 |
e8525382 SK |
18794 | _ACEOF |
18795 | ||
18796 | fi | |
18797 | ||
1409cd0b FXC |
18798 | echo "$as_me:$LINENO: checking for y1 in -lm" >&5 |
18799 | echo $ECHO_N "checking for y1 in -lm... $ECHO_C" >&6 | |
18800 | if test "${ac_cv_lib_m_y1+set}" = set; then | |
e8525382 SK |
18801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18802 | else | |
18803 | ac_check_lib_save_LIBS=$LIBS | |
18804 | LIBS="-lm $LIBS" | |
f02d008e JD |
18805 | if test x$gcc_no_link = xyes; then |
18806 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18807 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18808 | { (exit 1); exit 1; }; } | |
18809 | fi | |
e8525382 SK |
18810 | cat >conftest.$ac_ext <<_ACEOF |
18811 | /* confdefs.h. */ | |
18812 | _ACEOF | |
18813 | cat confdefs.h >>conftest.$ac_ext | |
18814 | cat >>conftest.$ac_ext <<_ACEOF | |
18815 | /* end confdefs.h. */ | |
18816 | ||
18817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18818 | #ifdef __cplusplus | |
18819 | extern "C" | |
18820 | #endif | |
18821 | /* We use char because int might match the return type of a gcc2 | |
18822 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 18823 | char y1 (); |
e8525382 SK |
18824 | int |
18825 | main () | |
18826 | { | |
1409cd0b | 18827 | y1 (); |
e8525382 SK |
18828 | ; |
18829 | return 0; | |
18830 | } | |
18831 | _ACEOF | |
18832 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18834 | (eval $ac_link) 2>conftest.er1 | |
18835 | ac_status=$? | |
18836 | grep -v '^ *+' conftest.er1 >conftest.err | |
18837 | rm -f conftest.er1 | |
18838 | cat conftest.err >&5 | |
18839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18840 | (exit $ac_status); } && | |
1409cd0b FXC |
18841 | { ac_try='test -z "$ac_c_werror_flag" |
18842 | || test ! -s conftest.err' | |
e8525382 SK |
18843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18844 | (eval $ac_try) 2>&5 | |
18845 | ac_status=$? | |
18846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18847 | (exit $ac_status); }; } && | |
18848 | { ac_try='test -s conftest$ac_exeext' | |
18849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18850 | (eval $ac_try) 2>&5 | |
18851 | ac_status=$? | |
18852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18853 | (exit $ac_status); }; }; then | |
1409cd0b | 18854 | ac_cv_lib_m_y1=yes |
e8525382 SK |
18855 | else |
18856 | echo "$as_me: failed program was:" >&5 | |
18857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18858 | ||
1409cd0b | 18859 | ac_cv_lib_m_y1=no |
e8525382 SK |
18860 | fi |
18861 | rm -f conftest.err conftest.$ac_objext \ | |
18862 | conftest$ac_exeext conftest.$ac_ext | |
18863 | LIBS=$ac_check_lib_save_LIBS | |
18864 | fi | |
1409cd0b FXC |
18865 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1" >&5 |
18866 | echo "${ECHO_T}$ac_cv_lib_m_y1" >&6 | |
18867 | if test $ac_cv_lib_m_y1 = yes; then | |
e8525382 SK |
18868 | |
18869 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 18870 | #define HAVE_Y1 1 |
e8525382 SK |
18871 | _ACEOF |
18872 | ||
18873 | fi | |
18874 | ||
1409cd0b FXC |
18875 | echo "$as_me:$LINENO: checking for y1l in -lm" >&5 |
18876 | echo $ECHO_N "checking for y1l in -lm... $ECHO_C" >&6 | |
18877 | if test "${ac_cv_lib_m_y1l+set}" = set; then | |
e8525382 SK |
18878 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18879 | else | |
18880 | ac_check_lib_save_LIBS=$LIBS | |
18881 | LIBS="-lm $LIBS" | |
f02d008e JD |
18882 | if test x$gcc_no_link = xyes; then |
18883 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18884 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18885 | { (exit 1); exit 1; }; } | |
18886 | fi | |
e8525382 SK |
18887 | cat >conftest.$ac_ext <<_ACEOF |
18888 | /* confdefs.h. */ | |
18889 | _ACEOF | |
18890 | cat confdefs.h >>conftest.$ac_ext | |
18891 | cat >>conftest.$ac_ext <<_ACEOF | |
18892 | /* end confdefs.h. */ | |
18893 | ||
18894 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18895 | #ifdef __cplusplus | |
18896 | extern "C" | |
18897 | #endif | |
18898 | /* We use char because int might match the return type of a gcc2 | |
18899 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 18900 | char y1l (); |
e8525382 SK |
18901 | int |
18902 | main () | |
18903 | { | |
1409cd0b | 18904 | y1l (); |
e8525382 SK |
18905 | ; |
18906 | return 0; | |
18907 | } | |
18908 | _ACEOF | |
18909 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18911 | (eval $ac_link) 2>conftest.er1 | |
18912 | ac_status=$? | |
18913 | grep -v '^ *+' conftest.er1 >conftest.err | |
18914 | rm -f conftest.er1 | |
18915 | cat conftest.err >&5 | |
18916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18917 | (exit $ac_status); } && | |
1409cd0b FXC |
18918 | { ac_try='test -z "$ac_c_werror_flag" |
18919 | || test ! -s conftest.err' | |
e8525382 SK |
18920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18921 | (eval $ac_try) 2>&5 | |
18922 | ac_status=$? | |
18923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18924 | (exit $ac_status); }; } && | |
18925 | { ac_try='test -s conftest$ac_exeext' | |
18926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18927 | (eval $ac_try) 2>&5 | |
18928 | ac_status=$? | |
18929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18930 | (exit $ac_status); }; }; then | |
1409cd0b | 18931 | ac_cv_lib_m_y1l=yes |
e8525382 SK |
18932 | else |
18933 | echo "$as_me: failed program was:" >&5 | |
18934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18935 | ||
1409cd0b | 18936 | ac_cv_lib_m_y1l=no |
e8525382 SK |
18937 | fi |
18938 | rm -f conftest.err conftest.$ac_objext \ | |
18939 | conftest$ac_exeext conftest.$ac_ext | |
18940 | LIBS=$ac_check_lib_save_LIBS | |
18941 | fi | |
1409cd0b FXC |
18942 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_y1l" >&5 |
18943 | echo "${ECHO_T}$ac_cv_lib_m_y1l" >&6 | |
18944 | if test $ac_cv_lib_m_y1l = yes; then | |
e8525382 SK |
18945 | |
18946 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 18947 | #define HAVE_Y1L 1 |
e8525382 SK |
18948 | _ACEOF |
18949 | ||
18950 | fi | |
18951 | ||
1409cd0b FXC |
18952 | echo "$as_me:$LINENO: checking for ynf in -lm" >&5 |
18953 | echo $ECHO_N "checking for ynf in -lm... $ECHO_C" >&6 | |
18954 | if test "${ac_cv_lib_m_ynf+set}" = set; then | |
e8525382 SK |
18955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18956 | else | |
18957 | ac_check_lib_save_LIBS=$LIBS | |
18958 | LIBS="-lm $LIBS" | |
f02d008e JD |
18959 | if test x$gcc_no_link = xyes; then |
18960 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
18961 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
18962 | { (exit 1); exit 1; }; } | |
18963 | fi | |
e8525382 SK |
18964 | cat >conftest.$ac_ext <<_ACEOF |
18965 | /* confdefs.h. */ | |
18966 | _ACEOF | |
18967 | cat confdefs.h >>conftest.$ac_ext | |
18968 | cat >>conftest.$ac_ext <<_ACEOF | |
18969 | /* end confdefs.h. */ | |
18970 | ||
18971 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18972 | #ifdef __cplusplus | |
18973 | extern "C" | |
18974 | #endif | |
18975 | /* We use char because int might match the return type of a gcc2 | |
18976 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 18977 | char ynf (); |
e8525382 SK |
18978 | int |
18979 | main () | |
18980 | { | |
1409cd0b | 18981 | ynf (); |
e8525382 SK |
18982 | ; |
18983 | return 0; | |
18984 | } | |
18985 | _ACEOF | |
18986 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18988 | (eval $ac_link) 2>conftest.er1 | |
18989 | ac_status=$? | |
18990 | grep -v '^ *+' conftest.er1 >conftest.err | |
18991 | rm -f conftest.er1 | |
18992 | cat conftest.err >&5 | |
18993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18994 | (exit $ac_status); } && | |
1409cd0b FXC |
18995 | { ac_try='test -z "$ac_c_werror_flag" |
18996 | || test ! -s conftest.err' | |
e8525382 SK |
18997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18998 | (eval $ac_try) 2>&5 | |
18999 | ac_status=$? | |
19000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19001 | (exit $ac_status); }; } && | |
19002 | { ac_try='test -s conftest$ac_exeext' | |
19003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19004 | (eval $ac_try) 2>&5 | |
19005 | ac_status=$? | |
19006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19007 | (exit $ac_status); }; }; then | |
1409cd0b | 19008 | ac_cv_lib_m_ynf=yes |
e8525382 SK |
19009 | else |
19010 | echo "$as_me: failed program was:" >&5 | |
19011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19012 | ||
1409cd0b | 19013 | ac_cv_lib_m_ynf=no |
e8525382 SK |
19014 | fi |
19015 | rm -f conftest.err conftest.$ac_objext \ | |
19016 | conftest$ac_exeext conftest.$ac_ext | |
19017 | LIBS=$ac_check_lib_save_LIBS | |
19018 | fi | |
1409cd0b FXC |
19019 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynf" >&5 |
19020 | echo "${ECHO_T}$ac_cv_lib_m_ynf" >&6 | |
19021 | if test $ac_cv_lib_m_ynf = yes; then | |
e8525382 SK |
19022 | |
19023 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 19024 | #define HAVE_YNF 1 |
e8525382 SK |
19025 | _ACEOF |
19026 | ||
19027 | fi | |
19028 | ||
19029 | echo "$as_me:$LINENO: checking for yn in -lm" >&5 | |
19030 | echo $ECHO_N "checking for yn in -lm... $ECHO_C" >&6 | |
19031 | if test "${ac_cv_lib_m_yn+set}" = set; then | |
19032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19033 | else | |
19034 | ac_check_lib_save_LIBS=$LIBS | |
19035 | LIBS="-lm $LIBS" | |
f02d008e JD |
19036 | if test x$gcc_no_link = xyes; then |
19037 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19038 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19039 | { (exit 1); exit 1; }; } | |
19040 | fi | |
e8525382 SK |
19041 | cat >conftest.$ac_ext <<_ACEOF |
19042 | /* confdefs.h. */ | |
19043 | _ACEOF | |
19044 | cat confdefs.h >>conftest.$ac_ext | |
19045 | cat >>conftest.$ac_ext <<_ACEOF | |
19046 | /* end confdefs.h. */ | |
19047 | ||
19048 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19049 | #ifdef __cplusplus | |
19050 | extern "C" | |
19051 | #endif | |
19052 | /* We use char because int might match the return type of a gcc2 | |
19053 | builtin and then its argument prototype would still apply. */ | |
19054 | char yn (); | |
19055 | int | |
19056 | main () | |
19057 | { | |
19058 | yn (); | |
19059 | ; | |
19060 | return 0; | |
19061 | } | |
19062 | _ACEOF | |
19063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19065 | (eval $ac_link) 2>conftest.er1 | |
19066 | ac_status=$? | |
19067 | grep -v '^ *+' conftest.er1 >conftest.err | |
19068 | rm -f conftest.er1 | |
19069 | cat conftest.err >&5 | |
19070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19071 | (exit $ac_status); } && | |
1409cd0b FXC |
19072 | { ac_try='test -z "$ac_c_werror_flag" |
19073 | || test ! -s conftest.err' | |
e8525382 SK |
19074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19075 | (eval $ac_try) 2>&5 | |
19076 | ac_status=$? | |
19077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19078 | (exit $ac_status); }; } && | |
19079 | { ac_try='test -s conftest$ac_exeext' | |
19080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19081 | (eval $ac_try) 2>&5 | |
19082 | ac_status=$? | |
19083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19084 | (exit $ac_status); }; }; then | |
19085 | ac_cv_lib_m_yn=yes | |
19086 | else | |
19087 | echo "$as_me: failed program was:" >&5 | |
19088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19089 | ||
19090 | ac_cv_lib_m_yn=no | |
19091 | fi | |
19092 | rm -f conftest.err conftest.$ac_objext \ | |
19093 | conftest$ac_exeext conftest.$ac_ext | |
19094 | LIBS=$ac_check_lib_save_LIBS | |
19095 | fi | |
19096 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_yn" >&5 | |
19097 | echo "${ECHO_T}$ac_cv_lib_m_yn" >&6 | |
19098 | if test $ac_cv_lib_m_yn = yes; then | |
19099 | ||
19100 | cat >>confdefs.h <<\_ACEOF | |
19101 | #define HAVE_YN 1 | |
19102 | _ACEOF | |
19103 | ||
19104 | fi | |
19105 | ||
1409cd0b FXC |
19106 | echo "$as_me:$LINENO: checking for ynl in -lm" >&5 |
19107 | echo $ECHO_N "checking for ynl in -lm... $ECHO_C" >&6 | |
19108 | if test "${ac_cv_lib_m_ynl+set}" = set; then | |
e8525382 SK |
19109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19110 | else | |
19111 | ac_check_lib_save_LIBS=$LIBS | |
19112 | LIBS="-lm $LIBS" | |
f02d008e JD |
19113 | if test x$gcc_no_link = xyes; then |
19114 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19115 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19116 | { (exit 1); exit 1; }; } | |
19117 | fi | |
e8525382 SK |
19118 | cat >conftest.$ac_ext <<_ACEOF |
19119 | /* confdefs.h. */ | |
19120 | _ACEOF | |
19121 | cat confdefs.h >>conftest.$ac_ext | |
19122 | cat >>conftest.$ac_ext <<_ACEOF | |
19123 | /* end confdefs.h. */ | |
19124 | ||
19125 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19126 | #ifdef __cplusplus | |
19127 | extern "C" | |
19128 | #endif | |
19129 | /* We use char because int might match the return type of a gcc2 | |
19130 | builtin and then its argument prototype would still apply. */ | |
1409cd0b | 19131 | char ynl (); |
e8525382 SK |
19132 | int |
19133 | main () | |
19134 | { | |
1409cd0b | 19135 | ynl (); |
e8525382 SK |
19136 | ; |
19137 | return 0; | |
19138 | } | |
19139 | _ACEOF | |
19140 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19141 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19142 | (eval $ac_link) 2>conftest.er1 | |
19143 | ac_status=$? | |
19144 | grep -v '^ *+' conftest.er1 >conftest.err | |
19145 | rm -f conftest.er1 | |
19146 | cat conftest.err >&5 | |
19147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19148 | (exit $ac_status); } && | |
1409cd0b FXC |
19149 | { ac_try='test -z "$ac_c_werror_flag" |
19150 | || test ! -s conftest.err' | |
e8525382 SK |
19151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19152 | (eval $ac_try) 2>&5 | |
19153 | ac_status=$? | |
19154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19155 | (exit $ac_status); }; } && | |
19156 | { ac_try='test -s conftest$ac_exeext' | |
19157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19158 | (eval $ac_try) 2>&5 | |
19159 | ac_status=$? | |
19160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19161 | (exit $ac_status); }; }; then | |
1409cd0b | 19162 | ac_cv_lib_m_ynl=yes |
e8525382 SK |
19163 | else |
19164 | echo "$as_me: failed program was:" >&5 | |
19165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19166 | ||
1409cd0b | 19167 | ac_cv_lib_m_ynl=no |
e8525382 SK |
19168 | fi |
19169 | rm -f conftest.err conftest.$ac_objext \ | |
19170 | conftest$ac_exeext conftest.$ac_ext | |
19171 | LIBS=$ac_check_lib_save_LIBS | |
19172 | fi | |
1409cd0b FXC |
19173 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_ynl" >&5 |
19174 | echo "${ECHO_T}$ac_cv_lib_m_ynl" >&6 | |
19175 | if test $ac_cv_lib_m_ynl = yes; then | |
e8525382 SK |
19176 | |
19177 | cat >>confdefs.h <<\_ACEOF | |
1409cd0b | 19178 | #define HAVE_YNL 1 |
e8525382 SK |
19179 | _ACEOF |
19180 | ||
19181 | fi | |
19182 | ||
a2a2059f | 19183 | |
118ea208 | 19184 | # On AIX, clog is present in libm as __clog |
e097b4f1 DE |
19185 | echo "$as_me:$LINENO: checking for __clog in -lm" >&5 |
19186 | echo $ECHO_N "checking for __clog in -lm... $ECHO_C" >&6 | |
19187 | if test "${ac_cv_lib_m___clog+set}" = set; then | |
19188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19189 | else | |
19190 | ac_check_lib_save_LIBS=$LIBS | |
19191 | LIBS="-lm $LIBS" | |
19192 | if test x$gcc_no_link = xyes; then | |
19193 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19194 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19195 | { (exit 1); exit 1; }; } | |
19196 | fi | |
19197 | cat >conftest.$ac_ext <<_ACEOF | |
19198 | /* confdefs.h. */ | |
19199 | _ACEOF | |
19200 | cat confdefs.h >>conftest.$ac_ext | |
19201 | cat >>conftest.$ac_ext <<_ACEOF | |
19202 | /* end confdefs.h. */ | |
19203 | ||
19204 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19205 | #ifdef __cplusplus | |
19206 | extern "C" | |
19207 | #endif | |
19208 | /* We use char because int might match the return type of a gcc2 | |
19209 | builtin and then its argument prototype would still apply. */ | |
19210 | char __clog (); | |
19211 | int | |
19212 | main () | |
19213 | { | |
19214 | __clog (); | |
19215 | ; | |
19216 | return 0; | |
19217 | } | |
19218 | _ACEOF | |
19219 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19221 | (eval $ac_link) 2>conftest.er1 | |
19222 | ac_status=$? | |
19223 | grep -v '^ *+' conftest.er1 >conftest.err | |
19224 | rm -f conftest.er1 | |
19225 | cat conftest.err >&5 | |
19226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19227 | (exit $ac_status); } && | |
19228 | { ac_try='test -z "$ac_c_werror_flag" | |
19229 | || test ! -s conftest.err' | |
19230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19231 | (eval $ac_try) 2>&5 | |
19232 | ac_status=$? | |
19233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19234 | (exit $ac_status); }; } && | |
19235 | { ac_try='test -s conftest$ac_exeext' | |
19236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19237 | (eval $ac_try) 2>&5 | |
19238 | ac_status=$? | |
19239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19240 | (exit $ac_status); }; }; then | |
19241 | ac_cv_lib_m___clog=yes | |
19242 | else | |
19243 | echo "$as_me: failed program was:" >&5 | |
19244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19245 | ||
19246 | ac_cv_lib_m___clog=no | |
19247 | fi | |
19248 | rm -f conftest.err conftest.$ac_objext \ | |
19249 | conftest$ac_exeext conftest.$ac_ext | |
19250 | LIBS=$ac_check_lib_save_LIBS | |
19251 | fi | |
19252 | echo "$as_me:$LINENO: result: $ac_cv_lib_m___clog" >&5 | |
19253 | echo "${ECHO_T}$ac_cv_lib_m___clog" >&6 | |
19254 | if test $ac_cv_lib_m___clog = yes; then | |
19255 | ||
19256 | cat >>confdefs.h <<\_ACEOF | |
19257 | #define HAVE_CLOG 1 | |
19258 | _ACEOF | |
19259 | ||
19260 | fi | |
19261 | ||
19262 | ||
118ea208 SE |
19263 | # Check for a isfinite macro that works on long doubles. |
19264 | ||
19265 | echo "$as_me:$LINENO: checking whether isfinite is broken" >&5 | |
19266 | echo $ECHO_N "checking whether isfinite is broken... $ECHO_C" >&6 | |
19267 | if test "${have_broken_isfinite+set}" = set; then | |
19268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19269 | else | |
19270 | ||
19271 | libgfor_check_for_broken_isfinite_save_LIBS=$LIBS | |
19272 | LIBS="$LIBS -lm" | |
19273 | if test "$cross_compiling" = yes; then | |
19274 | ||
19275 | case "${target}" in | |
19276 | hppa*-*-hpux*) have_broken_isfinite=yes ;; | |
19277 | *) have_broken_isfinite=no ;; | |
19278 | esac | |
19279 | else | |
19280 | cat >conftest.$ac_ext <<_ACEOF | |
19281 | /* confdefs.h. */ | |
19282 | _ACEOF | |
19283 | cat confdefs.h >>conftest.$ac_ext | |
19284 | cat >>conftest.$ac_ext <<_ACEOF | |
19285 | /* end confdefs.h. */ | |
19286 | ||
19287 | #ifdef HAVE_MATH_H | |
19288 | #include <math.h> | |
19289 | #endif | |
19290 | #include <float.h> | |
19291 | int main () | |
19292 | { | |
19293 | #ifdef isfinite | |
19294 | #ifdef LDBL_MAX | |
19295 | if (!isfinite(LDBL_MAX)) return 1; | |
19296 | #endif | |
19297 | #ifdef DBL_MAX | |
19298 | if (!isfinite(DBL_MAX)) return 1; | |
19299 | #endif | |
19300 | #endif | |
19301 | return 0; | |
19302 | } | |
19303 | _ACEOF | |
19304 | rm -f conftest$ac_exeext | |
19305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19306 | (eval $ac_link) 2>&5 | |
19307 | ac_status=$? | |
19308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19309 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19311 | (eval $ac_try) 2>&5 | |
19312 | ac_status=$? | |
19313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19314 | (exit $ac_status); }; }; then | |
19315 | have_broken_isfinite=no | |
19316 | else | |
19317 | echo "$as_me: program exited with status $ac_status" >&5 | |
19318 | echo "$as_me: failed program was:" >&5 | |
19319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19320 | ||
19321 | ( exit $ac_status ) | |
19322 | have_broken_isfinite=yes | |
19323 | fi | |
19324 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19325 | fi | |
19326 | LIBS=$libgfor_check_for_broken_isfinite_save_LIBS | |
19327 | fi | |
19328 | echo "$as_me:$LINENO: result: $have_broken_isfinite" >&5 | |
19329 | echo "${ECHO_T}$have_broken_isfinite" >&6 | |
19330 | if test x"$have_broken_isfinite" = xyes; then | |
19331 | ||
19332 | cat >>confdefs.h <<\_ACEOF | |
19333 | #define HAVE_BROKEN_ISFINITE 1 | |
19334 | _ACEOF | |
19335 | ||
19336 | fi | |
19337 | ||
19338 | # Check for a isnan macro that works on long doubles. | |
19339 | ||
19340 | echo "$as_me:$LINENO: checking whether isnan is broken" >&5 | |
19341 | echo $ECHO_N "checking whether isnan is broken... $ECHO_C" >&6 | |
19342 | if test "${have_broken_isnan+set}" = set; then | |
19343 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19344 | else | |
19345 | ||
19346 | libgfor_check_for_broken_isnan_save_LIBS=$LIBS | |
19347 | LIBS="$LIBS -lm" | |
19348 | if test "$cross_compiling" = yes; then | |
19349 | ||
19350 | case "${target}" in | |
19351 | hppa*-*-hpux*) have_broken_isnan=yes ;; | |
19352 | *) have_broken_isnan=no ;; | |
19353 | esac | |
19354 | else | |
19355 | cat >conftest.$ac_ext <<_ACEOF | |
19356 | /* confdefs.h. */ | |
19357 | _ACEOF | |
19358 | cat confdefs.h >>conftest.$ac_ext | |
19359 | cat >>conftest.$ac_ext <<_ACEOF | |
19360 | /* end confdefs.h. */ | |
19361 | ||
19362 | #ifdef HAVE_MATH_H | |
19363 | #include <math.h> | |
19364 | #endif | |
19365 | #include <float.h> | |
19366 | int main () | |
19367 | { | |
19368 | #ifdef isnan | |
19369 | #ifdef LDBL_MAX | |
19370 | { | |
19371 | long double x; | |
19372 | x = __builtin_nanl (""); | |
19373 | if (!isnan(x)) return 1; | |
19374 | if (isnan(LDBL_MAX)) return 1; | |
19375 | #ifdef NAN | |
19376 | x = (long double) NAN; | |
19377 | if (!isnan(x)) return 1; | |
19378 | #endif | |
19379 | } | |
19380 | #endif | |
19381 | #ifdef DBL_MAX | |
19382 | { | |
19383 | double y; | |
19384 | y = __builtin_nan (""); | |
19385 | if (!isnan(y)) return 1; | |
19386 | if (isnan(DBL_MAX)) return 1; | |
19387 | #ifdef NAN | |
19388 | y = (double) NAN; | |
19389 | if (!isnan(y)) return 1; | |
19390 | #endif | |
19391 | } | |
19392 | #endif | |
19393 | #endif | |
19394 | return 0; | |
19395 | } | |
19396 | _ACEOF | |
19397 | rm -f conftest$ac_exeext | |
19398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19399 | (eval $ac_link) 2>&5 | |
19400 | ac_status=$? | |
19401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19402 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19404 | (eval $ac_try) 2>&5 | |
19405 | ac_status=$? | |
19406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19407 | (exit $ac_status); }; }; then | |
19408 | have_broken_isnan=no | |
19409 | else | |
19410 | echo "$as_me: program exited with status $ac_status" >&5 | |
19411 | echo "$as_me: failed program was:" >&5 | |
19412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19413 | ||
19414 | ( exit $ac_status ) | |
19415 | have_broken_isnan=yes | |
19416 | fi | |
19417 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19418 | fi | |
19419 | LIBS=$libgfor_check_for_broken_isnan_save_LIBS | |
19420 | fi | |
19421 | echo "$as_me:$LINENO: result: $have_broken_isnan" >&5 | |
19422 | echo "${ECHO_T}$have_broken_isnan" >&6 | |
19423 | if test x"$have_broken_isnan" = xyes; then | |
19424 | ||
19425 | cat >>confdefs.h <<\_ACEOF | |
19426 | #define HAVE_BROKEN_ISNAN 1 | |
19427 | _ACEOF | |
19428 | ||
19429 | fi | |
19430 | ||
19431 | # Check for a fpclassify macro that works on long doubles. | |
19432 | ||
19433 | echo "$as_me:$LINENO: checking whether fpclassify is broken" >&5 | |
19434 | echo $ECHO_N "checking whether fpclassify is broken... $ECHO_C" >&6 | |
19435 | if test "${have_broken_fpclassify+set}" = set; then | |
19436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19437 | else | |
19438 | ||
19439 | libgfor_check_for_broken_fpclassify_save_LIBS=$LIBS | |
19440 | LIBS="$LIBS -lm" | |
19441 | if test "$cross_compiling" = yes; then | |
19442 | ||
19443 | case "${target}" in | |
19444 | hppa*-*-hpux*) have_broken_fpclassify=yes ;; | |
19445 | *) have_broken_fpclassify=no ;; | |
19446 | esac | |
19447 | else | |
19448 | cat >conftest.$ac_ext <<_ACEOF | |
19449 | /* confdefs.h. */ | |
19450 | _ACEOF | |
19451 | cat confdefs.h >>conftest.$ac_ext | |
19452 | cat >>conftest.$ac_ext <<_ACEOF | |
19453 | /* end confdefs.h. */ | |
19454 | ||
19455 | #ifdef HAVE_MATH_H | |
19456 | #include <math.h> | |
19457 | #endif | |
19458 | #include <float.h> | |
19459 | int main () | |
19460 | { | |
19461 | #ifdef fpclassify | |
19462 | #ifdef LDBL_MAX | |
19463 | if (fpclassify(LDBL_MAX) == FP_NAN | |
19464 | || fpclassify(LDBL_MAX) == FP_INFINITE) return 1; | |
19465 | #endif | |
19466 | #ifdef DBL_MAX | |
19467 | if (fpclassify(DBL_MAX) == FP_NAN | |
19468 | || fpclassify(DBL_MAX) == FP_INFINITE) return 1; | |
19469 | #endif | |
19470 | #endif | |
19471 | return 0; | |
19472 | } | |
19473 | _ACEOF | |
19474 | rm -f conftest$ac_exeext | |
19475 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19476 | (eval $ac_link) 2>&5 | |
19477 | ac_status=$? | |
19478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19479 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19481 | (eval $ac_try) 2>&5 | |
19482 | ac_status=$? | |
19483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19484 | (exit $ac_status); }; }; then | |
19485 | have_broken_fpclassify=no | |
19486 | else | |
19487 | echo "$as_me: program exited with status $ac_status" >&5 | |
19488 | echo "$as_me: failed program was:" >&5 | |
19489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19490 | ||
19491 | ( exit $ac_status ) | |
19492 | have_broken_fpclassify=yes | |
19493 | fi | |
19494 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19495 | fi | |
19496 | LIBS=$libgfor_check_for_broken_fpclassify_save_LIBS | |
19497 | fi | |
19498 | echo "$as_me:$LINENO: result: $have_broken_fpclassify" >&5 | |
19499 | echo "${ECHO_T}$have_broken_fpclassify" >&6 | |
19500 | if test x"$have_broken_fpclassify" = xyes; then | |
19501 | ||
19502 | cat >>confdefs.h <<\_ACEOF | |
19503 | #define HAVE_BROKEN_FPCLASSIFY 1 | |
19504 | _ACEOF | |
19505 | ||
19506 | fi | |
19507 | ||
ad238e4f FXC |
19508 | # Check whether the system has a working stat() |
19509 | ||
19510 | echo "$as_me:$LINENO: checking whether the target stat is reliable" >&5 | |
19511 | echo $ECHO_N "checking whether the target stat is reliable... $ECHO_C" >&6 | |
19512 | if test "${have_working_stat+set}" = set; then | |
19513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19514 | else | |
19515 | ||
19516 | if test "$cross_compiling" = yes; then | |
19517 | ||
19518 | case "${target}" in | |
19519 | *mingw*) have_working_stat=no ;; | |
19520 | *) have_working_stat=yes;; | |
19521 | esac | |
19522 | else | |
19523 | cat >conftest.$ac_ext <<_ACEOF | |
19524 | /* confdefs.h. */ | |
19525 | _ACEOF | |
19526 | cat confdefs.h >>conftest.$ac_ext | |
19527 | cat >>conftest.$ac_ext <<_ACEOF | |
19528 | /* end confdefs.h. */ | |
19529 | ||
19530 | #include <stdio.h> | |
19531 | #include <sys/types.h> | |
19532 | #include <sys/stat.h> | |
19533 | #include <unistd.h> | |
19534 | ||
19535 | int main () | |
19536 | { | |
19537 | FILE *f, *g; | |
19538 | struct stat st1, st2; | |
19539 | ||
19540 | f = fopen ("foo", "w"); | |
19541 | g = fopen ("bar", "w"); | |
19542 | if (stat ("foo", &st1) != 0 || stat ("bar", &st2)) | |
19543 | return 1; | |
19544 | if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino) | |
19545 | return 1; | |
19546 | fclose(f); | |
19547 | fclose(g); | |
19548 | return 0; | |
19549 | } | |
19550 | _ACEOF | |
19551 | rm -f conftest$ac_exeext | |
19552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19553 | (eval $ac_link) 2>&5 | |
19554 | ac_status=$? | |
19555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19556 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19558 | (eval $ac_try) 2>&5 | |
19559 | ac_status=$? | |
19560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19561 | (exit $ac_status); }; }; then | |
19562 | have_working_stat=yes | |
19563 | else | |
19564 | echo "$as_me: program exited with status $ac_status" >&5 | |
19565 | echo "$as_me: failed program was:" >&5 | |
19566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19567 | ||
19568 | ( exit $ac_status ) | |
19569 | have_working_stat=no | |
19570 | fi | |
19571 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
19572 | fi | |
19573 | fi | |
19574 | echo "$as_me:$LINENO: result: $have_working_stat" >&5 | |
19575 | echo "${ECHO_T}$have_working_stat" >&6 | |
19576 | if test x"$have_working_stat" = xyes; then | |
19577 | ||
19578 | cat >>confdefs.h <<\_ACEOF | |
19579 | #define HAVE_WORKING_STAT 1 | |
19580 | _ACEOF | |
19581 | ||
19582 | fi | |
19583 | ||
69d3c9a4 SB |
19584 | # Fallback in case isfinite is not available. |
19585 | echo "$as_me:$LINENO: checking for finite in -lm" >&5 | |
19586 | echo $ECHO_N "checking for finite in -lm... $ECHO_C" >&6 | |
19587 | if test "${ac_cv_lib_m_finite+set}" = set; then | |
19588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19589 | else | |
19590 | ac_check_lib_save_LIBS=$LIBS | |
19591 | LIBS="-lm $LIBS" | |
f02d008e JD |
19592 | if test x$gcc_no_link = xyes; then |
19593 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19594 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19595 | { (exit 1); exit 1; }; } | |
19596 | fi | |
69d3c9a4 SB |
19597 | cat >conftest.$ac_ext <<_ACEOF |
19598 | /* confdefs.h. */ | |
19599 | _ACEOF | |
19600 | cat confdefs.h >>conftest.$ac_ext | |
19601 | cat >>conftest.$ac_ext <<_ACEOF | |
19602 | /* end confdefs.h. */ | |
19603 | ||
19604 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19605 | #ifdef __cplusplus | |
19606 | extern "C" | |
19607 | #endif | |
19608 | /* We use char because int might match the return type of a gcc2 | |
19609 | builtin and then its argument prototype would still apply. */ | |
19610 | char finite (); | |
19611 | int | |
19612 | main () | |
19613 | { | |
19614 | finite (); | |
19615 | ; | |
19616 | return 0; | |
19617 | } | |
19618 | _ACEOF | |
19619 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19621 | (eval $ac_link) 2>conftest.er1 | |
19622 | ac_status=$? | |
19623 | grep -v '^ *+' conftest.er1 >conftest.err | |
19624 | rm -f conftest.er1 | |
19625 | cat conftest.err >&5 | |
19626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19627 | (exit $ac_status); } && | |
1409cd0b FXC |
19628 | { ac_try='test -z "$ac_c_werror_flag" |
19629 | || test ! -s conftest.err' | |
69d3c9a4 SB |
19630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19631 | (eval $ac_try) 2>&5 | |
19632 | ac_status=$? | |
19633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19634 | (exit $ac_status); }; } && | |
19635 | { ac_try='test -s conftest$ac_exeext' | |
19636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19637 | (eval $ac_try) 2>&5 | |
19638 | ac_status=$? | |
19639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19640 | (exit $ac_status); }; }; then | |
19641 | ac_cv_lib_m_finite=yes | |
19642 | else | |
19643 | echo "$as_me: failed program was:" >&5 | |
19644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19645 | ||
19646 | ac_cv_lib_m_finite=no | |
19647 | fi | |
19648 | rm -f conftest.err conftest.$ac_objext \ | |
19649 | conftest$ac_exeext conftest.$ac_ext | |
19650 | LIBS=$ac_check_lib_save_LIBS | |
19651 | fi | |
19652 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_finite" >&5 | |
19653 | echo "${ECHO_T}$ac_cv_lib_m_finite" >&6 | |
19654 | if test $ac_cv_lib_m_finite = yes; then | |
19655 | ||
19656 | cat >>confdefs.h <<\_ACEOF | |
19657 | #define HAVE_FINITE 1 | |
19658 | _ACEOF | |
19659 | ||
19660 | fi | |
19661 | ||
19662 | ||
944b8b35 FXC |
19663 | # Check for GNU libc feenableexcept |
19664 | echo "$as_me:$LINENO: checking for feenableexcept in -lm" >&5 | |
19665 | echo $ECHO_N "checking for feenableexcept in -lm... $ECHO_C" >&6 | |
19666 | if test "${ac_cv_lib_m_feenableexcept+set}" = set; then | |
19667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19668 | else | |
19669 | ac_check_lib_save_LIBS=$LIBS | |
19670 | LIBS="-lm $LIBS" | |
19671 | if test x$gcc_no_link = xyes; then | |
19672 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19673 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19674 | { (exit 1); exit 1; }; } | |
19675 | fi | |
19676 | cat >conftest.$ac_ext <<_ACEOF | |
19677 | /* confdefs.h. */ | |
19678 | _ACEOF | |
19679 | cat confdefs.h >>conftest.$ac_ext | |
19680 | cat >>conftest.$ac_ext <<_ACEOF | |
19681 | /* end confdefs.h. */ | |
19682 | ||
19683 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19684 | #ifdef __cplusplus | |
19685 | extern "C" | |
19686 | #endif | |
19687 | /* We use char because int might match the return type of a gcc2 | |
19688 | builtin and then its argument prototype would still apply. */ | |
19689 | char feenableexcept (); | |
19690 | int | |
19691 | main () | |
19692 | { | |
19693 | feenableexcept (); | |
19694 | ; | |
19695 | return 0; | |
19696 | } | |
19697 | _ACEOF | |
19698 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19699 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19700 | (eval $ac_link) 2>conftest.er1 | |
19701 | ac_status=$? | |
19702 | grep -v '^ *+' conftest.er1 >conftest.err | |
19703 | rm -f conftest.er1 | |
19704 | cat conftest.err >&5 | |
19705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19706 | (exit $ac_status); } && | |
19707 | { ac_try='test -z "$ac_c_werror_flag" | |
19708 | || test ! -s conftest.err' | |
19709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19710 | (eval $ac_try) 2>&5 | |
19711 | ac_status=$? | |
19712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19713 | (exit $ac_status); }; } && | |
19714 | { ac_try='test -s conftest$ac_exeext' | |
19715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19716 | (eval $ac_try) 2>&5 | |
19717 | ac_status=$? | |
19718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19719 | (exit $ac_status); }; }; then | |
19720 | ac_cv_lib_m_feenableexcept=yes | |
19721 | else | |
19722 | echo "$as_me: failed program was:" >&5 | |
19723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19724 | ||
19725 | ac_cv_lib_m_feenableexcept=no | |
19726 | fi | |
19727 | rm -f conftest.err conftest.$ac_objext \ | |
19728 | conftest$ac_exeext conftest.$ac_ext | |
19729 | LIBS=$ac_check_lib_save_LIBS | |
19730 | fi | |
19731 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_feenableexcept" >&5 | |
19732 | echo "${ECHO_T}$ac_cv_lib_m_feenableexcept" >&6 | |
19733 | if test $ac_cv_lib_m_feenableexcept = yes; then | |
19734 | have_feenableexcept=yes | |
19735 | cat >>confdefs.h <<\_ACEOF | |
19736 | #define HAVE_FEENABLEEXCEPT 1 | |
19737 | _ACEOF | |
19738 | ||
19739 | fi | |
19740 | ||
19741 | ||
3b14f664 FXC |
19742 | # Check for SysV fpsetmask |
19743 | ||
19744 | echo "$as_me:$LINENO: checking whether fpsetmask is present" >&5 | |
19745 | echo $ECHO_N "checking whether fpsetmask is present... $ECHO_C" >&6 | |
19746 | if test "${have_fpsetmask+set}" = set; then | |
19747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19748 | else | |
19749 | ||
19750 | if test x$gcc_no_link = xyes; then | |
19751 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19752 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19753 | { (exit 1); exit 1; }; } | |
19754 | fi | |
19755 | cat >conftest.$ac_ext <<_ACEOF | |
19756 | /* confdefs.h. */ | |
19757 | _ACEOF | |
19758 | cat confdefs.h >>conftest.$ac_ext | |
19759 | cat >>conftest.$ac_ext <<_ACEOF | |
19760 | /* end confdefs.h. */ | |
19761 | ||
19762 | #if HAVE_FLOATINGPOINT_H | |
19763 | # include <floatingpoint.h> | |
19764 | #endif /* HAVE_FLOATINGPOINT_H */ | |
19765 | #if HAVE_IEEEFP_H | |
19766 | # include <ieeefp.h> | |
19767 | #endif /* HAVE_IEEEFP_H */ | |
19768 | int | |
19769 | main () | |
19770 | { | |
19771 | fpsetmask(0); | |
19772 | ; | |
19773 | return 0; | |
19774 | } | |
19775 | _ACEOF | |
19776 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19778 | (eval $ac_link) 2>conftest.er1 | |
19779 | ac_status=$? | |
19780 | grep -v '^ *+' conftest.er1 >conftest.err | |
19781 | rm -f conftest.er1 | |
19782 | cat conftest.err >&5 | |
19783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19784 | (exit $ac_status); } && | |
19785 | { ac_try='test -z "$ac_c_werror_flag" | |
19786 | || test ! -s conftest.err' | |
19787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19788 | (eval $ac_try) 2>&5 | |
19789 | ac_status=$? | |
19790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19791 | (exit $ac_status); }; } && | |
19792 | { ac_try='test -s conftest$ac_exeext' | |
19793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19794 | (eval $ac_try) 2>&5 | |
19795 | ac_status=$? | |
19796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19797 | (exit $ac_status); }; }; then | |
19798 | eval "have_fpsetmask=yes" | |
19799 | else | |
19800 | echo "$as_me: failed program was:" >&5 | |
19801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19802 | ||
19803 | eval "have_fpsetmask=no" | |
19804 | fi | |
19805 | rm -f conftest.err conftest.$ac_objext \ | |
19806 | conftest$ac_exeext conftest.$ac_ext | |
19807 | ||
19808 | fi | |
19809 | echo "$as_me:$LINENO: result: $have_fpsetmask" >&5 | |
19810 | echo "${ECHO_T}$have_fpsetmask" >&6 | |
19811 | if test x"$have_fpsetmask" = xyes; then | |
19812 | ||
19813 | cat >>confdefs.h <<\_ACEOF | |
19814 | #define HAVE_FPSETMASK 1 | |
19815 | _ACEOF | |
19816 | ||
19817 | fi | |
19818 | ||
19819 | ||
19820 | # Check for AIX fp_trap and fp_enable | |
19821 | echo "$as_me:$LINENO: checking for fp_trap" >&5 | |
19822 | echo $ECHO_N "checking for fp_trap... $ECHO_C" >&6 | |
19823 | if test "${ac_cv_func_fp_trap+set}" = set; then | |
19824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19825 | else | |
19826 | if test x$gcc_no_link = xyes; then | |
19827 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19828 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19829 | { (exit 1); exit 1; }; } | |
19830 | fi | |
19831 | cat >conftest.$ac_ext <<_ACEOF | |
19832 | /* confdefs.h. */ | |
19833 | _ACEOF | |
19834 | cat confdefs.h >>conftest.$ac_ext | |
19835 | cat >>conftest.$ac_ext <<_ACEOF | |
19836 | /* end confdefs.h. */ | |
19837 | /* Define fp_trap to an innocuous variant, in case <limits.h> declares fp_trap. | |
19838 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19839 | #define fp_trap innocuous_fp_trap | |
19840 | ||
19841 | /* System header to define __stub macros and hopefully few prototypes, | |
19842 | which can conflict with char fp_trap (); below. | |
19843 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19844 | <limits.h> exists even on freestanding compilers. */ | |
19845 | ||
19846 | #ifdef __STDC__ | |
19847 | # include <limits.h> | |
19848 | #else | |
19849 | # include <assert.h> | |
19850 | #endif | |
19851 | ||
19852 | #undef fp_trap | |
19853 | ||
19854 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19855 | #ifdef __cplusplus | |
19856 | extern "C" | |
19857 | { | |
19858 | #endif | |
19859 | /* We use char because int might match the return type of a gcc2 | |
19860 | builtin and then its argument prototype would still apply. */ | |
19861 | char fp_trap (); | |
19862 | /* The GNU C library defines this for functions which it implements | |
19863 | to always fail with ENOSYS. Some functions are actually named | |
19864 | something starting with __ and the normal name is an alias. */ | |
19865 | #if defined (__stub_fp_trap) || defined (__stub___fp_trap) | |
19866 | choke me | |
19867 | #else | |
19868 | char (*f) () = fp_trap; | |
19869 | #endif | |
19870 | #ifdef __cplusplus | |
19871 | } | |
19872 | #endif | |
19873 | ||
19874 | int | |
19875 | main () | |
19876 | { | |
19877 | return f != fp_trap; | |
19878 | ; | |
19879 | return 0; | |
19880 | } | |
19881 | _ACEOF | |
19882 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19883 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19884 | (eval $ac_link) 2>conftest.er1 | |
19885 | ac_status=$? | |
19886 | grep -v '^ *+' conftest.er1 >conftest.err | |
19887 | rm -f conftest.er1 | |
19888 | cat conftest.err >&5 | |
19889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19890 | (exit $ac_status); } && | |
19891 | { ac_try='test -z "$ac_c_werror_flag" | |
19892 | || test ! -s conftest.err' | |
19893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19894 | (eval $ac_try) 2>&5 | |
19895 | ac_status=$? | |
19896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19897 | (exit $ac_status); }; } && | |
19898 | { ac_try='test -s conftest$ac_exeext' | |
19899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19900 | (eval $ac_try) 2>&5 | |
19901 | ac_status=$? | |
19902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19903 | (exit $ac_status); }; }; then | |
19904 | ac_cv_func_fp_trap=yes | |
19905 | else | |
19906 | echo "$as_me: failed program was:" >&5 | |
19907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19908 | ||
19909 | ac_cv_func_fp_trap=no | |
19910 | fi | |
19911 | rm -f conftest.err conftest.$ac_objext \ | |
19912 | conftest$ac_exeext conftest.$ac_ext | |
19913 | fi | |
19914 | echo "$as_me:$LINENO: result: $ac_cv_func_fp_trap" >&5 | |
19915 | echo "${ECHO_T}$ac_cv_func_fp_trap" >&6 | |
19916 | if test $ac_cv_func_fp_trap = yes; then | |
19917 | have_fp_trap=yes | |
19918 | cat >>confdefs.h <<\_ACEOF | |
19919 | #define HAVE_FP_TRAP 1 | |
19920 | _ACEOF | |
19921 | ||
19922 | fi | |
19923 | ||
19924 | echo "$as_me:$LINENO: checking for fp_enable" >&5 | |
19925 | echo $ECHO_N "checking for fp_enable... $ECHO_C" >&6 | |
19926 | if test "${ac_cv_func_fp_enable+set}" = set; then | |
19927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19928 | else | |
19929 | if test x$gcc_no_link = xyes; then | |
19930 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
19931 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
19932 | { (exit 1); exit 1; }; } | |
19933 | fi | |
19934 | cat >conftest.$ac_ext <<_ACEOF | |
19935 | /* confdefs.h. */ | |
19936 | _ACEOF | |
19937 | cat confdefs.h >>conftest.$ac_ext | |
19938 | cat >>conftest.$ac_ext <<_ACEOF | |
19939 | /* end confdefs.h. */ | |
19940 | /* Define fp_enable to an innocuous variant, in case <limits.h> declares fp_enable. | |
19941 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19942 | #define fp_enable innocuous_fp_enable | |
19943 | ||
19944 | /* System header to define __stub macros and hopefully few prototypes, | |
19945 | which can conflict with char fp_enable (); below. | |
19946 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19947 | <limits.h> exists even on freestanding compilers. */ | |
19948 | ||
19949 | #ifdef __STDC__ | |
19950 | # include <limits.h> | |
19951 | #else | |
19952 | # include <assert.h> | |
19953 | #endif | |
19954 | ||
19955 | #undef fp_enable | |
19956 | ||
19957 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19958 | #ifdef __cplusplus | |
19959 | extern "C" | |
19960 | { | |
19961 | #endif | |
19962 | /* We use char because int might match the return type of a gcc2 | |
19963 | builtin and then its argument prototype would still apply. */ | |
19964 | char fp_enable (); | |
19965 | /* The GNU C library defines this for functions which it implements | |
19966 | to always fail with ENOSYS. Some functions are actually named | |
19967 | something starting with __ and the normal name is an alias. */ | |
19968 | #if defined (__stub_fp_enable) || defined (__stub___fp_enable) | |
19969 | choke me | |
19970 | #else | |
19971 | char (*f) () = fp_enable; | |
19972 | #endif | |
19973 | #ifdef __cplusplus | |
19974 | } | |
19975 | #endif | |
19976 | ||
19977 | int | |
19978 | main () | |
19979 | { | |
19980 | return f != fp_enable; | |
19981 | ; | |
19982 | return 0; | |
19983 | } | |
19984 | _ACEOF | |
19985 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19987 | (eval $ac_link) 2>conftest.er1 | |
19988 | ac_status=$? | |
19989 | grep -v '^ *+' conftest.er1 >conftest.err | |
19990 | rm -f conftest.er1 | |
19991 | cat conftest.err >&5 | |
19992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19993 | (exit $ac_status); } && | |
19994 | { ac_try='test -z "$ac_c_werror_flag" | |
19995 | || test ! -s conftest.err' | |
19996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19997 | (eval $ac_try) 2>&5 | |
19998 | ac_status=$? | |
19999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20000 | (exit $ac_status); }; } && | |
20001 | { ac_try='test -s conftest$ac_exeext' | |
20002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20003 | (eval $ac_try) 2>&5 | |
20004 | ac_status=$? | |
20005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20006 | (exit $ac_status); }; }; then | |
20007 | ac_cv_func_fp_enable=yes | |
20008 | else | |
20009 | echo "$as_me: failed program was:" >&5 | |
20010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20011 | ||
20012 | ac_cv_func_fp_enable=no | |
20013 | fi | |
20014 | rm -f conftest.err conftest.$ac_objext \ | |
20015 | conftest$ac_exeext conftest.$ac_ext | |
20016 | fi | |
20017 | echo "$as_me:$LINENO: result: $ac_cv_func_fp_enable" >&5 | |
20018 | echo "${ECHO_T}$ac_cv_func_fp_enable" >&6 | |
20019 | if test $ac_cv_func_fp_enable = yes; then | |
20020 | have_fp_enable=yes | |
20021 | cat >>confdefs.h <<\_ACEOF | |
20022 | #define HAVE_FP_ENABLE 1 | |
20023 | _ACEOF | |
20024 | ||
20025 | fi | |
20026 | ||
20027 | ||
944b8b35 FXC |
20028 | # Runs configure.host to set up necessary host-dependent shell variables. |
20029 | # We then display a message about it, and propagate them through the | |
20030 | # build chain. | |
20031 | . ${srcdir}/configure.host | |
20032 | { echo "$as_me:$LINENO: FPU dependent file will be ${fpu_host}.h" >&5 | |
20033 | echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;} | |
20034 | FPU_HOST_HEADER=config/${fpu_host}.h | |
20035 | ||
20036 | ||
96b8a615 AJ |
20037 | # The standard autoconf HAVE_STRUCT_TIMEZONE doesn't actually check |
20038 | # for struct timezone, as you might think. We also need to check how | |
20039 | # to call gettimeofday if we have it. | |
20040 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
20041 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
20042 | if test "${ac_cv_header_time+set}" = set; then | |
6de9cd9a DN |
20043 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20044 | else | |
96b8a615 AJ |
20045 | cat >conftest.$ac_ext <<_ACEOF |
20046 | /* confdefs.h. */ | |
20047 | _ACEOF | |
20048 | cat confdefs.h >>conftest.$ac_ext | |
20049 | cat >>conftest.$ac_ext <<_ACEOF | |
20050 | /* end confdefs.h. */ | |
20051 | #include <sys/types.h> | |
20052 | #include <sys/time.h> | |
20053 | #include <time.h> | |
20054 | ||
20055 | int | |
20056 | main () | |
20057 | { | |
20058 | if ((struct tm *) 0) | |
20059 | return 0; | |
20060 | ; | |
20061 | return 0; | |
20062 | } | |
20063 | _ACEOF | |
20064 | rm -f conftest.$ac_objext | |
20065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20066 | (eval $ac_compile) 2>conftest.er1 | |
20067 | ac_status=$? | |
20068 | grep -v '^ *+' conftest.er1 >conftest.err | |
20069 | rm -f conftest.er1 | |
20070 | cat conftest.err >&5 | |
20071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20072 | (exit $ac_status); } && | |
1409cd0b FXC |
20073 | { ac_try='test -z "$ac_c_werror_flag" |
20074 | || test ! -s conftest.err' | |
96b8a615 AJ |
20075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20076 | (eval $ac_try) 2>&5 | |
20077 | ac_status=$? | |
20078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20079 | (exit $ac_status); }; } && | |
20080 | { ac_try='test -s conftest.$ac_objext' | |
20081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20082 | (eval $ac_try) 2>&5 | |
20083 | ac_status=$? | |
20084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20085 | (exit $ac_status); }; }; then | |
20086 | ac_cv_header_time=yes | |
20087 | else | |
20088 | echo "$as_me: failed program was:" >&5 | |
20089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 20090 | |
96b8a615 | 20091 | ac_cv_header_time=no |
6de9cd9a | 20092 | fi |
96b8a615 | 20093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6de9cd9a | 20094 | fi |
96b8a615 AJ |
20095 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
20096 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
20097 | if test $ac_cv_header_time = yes; then | |
6de9cd9a | 20098 | |
96b8a615 AJ |
20099 | cat >>confdefs.h <<\_ACEOF |
20100 | #define TIME_WITH_SYS_TIME 1 | |
20101 | _ACEOF | |
6de9cd9a | 20102 | |
6de9cd9a DN |
20103 | fi |
20104 | ||
6de9cd9a | 20105 | |
96b8a615 AJ |
20106 | |
20107 | for ac_func in gettimeofday | |
20108 | do | |
20109 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20110 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20111 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20112 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6de9cd9a DN |
20113 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20114 | else | |
f02d008e JD |
20115 | if test x$gcc_no_link = xyes; then |
20116 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20117 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20118 | { (exit 1); exit 1; }; } | |
20119 | fi | |
20120 | cat >conftest.$ac_ext <<_ACEOF | |
96b8a615 AJ |
20121 | /* confdefs.h. */ |
20122 | _ACEOF | |
20123 | cat confdefs.h >>conftest.$ac_ext | |
20124 | cat >>conftest.$ac_ext <<_ACEOF | |
20125 | /* end confdefs.h. */ | |
20126 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
20127 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20128 | #define $ac_func innocuous_$ac_func | |
20129 | ||
20130 | /* System header to define __stub macros and hopefully few prototypes, | |
20131 | which can conflict with char $ac_func (); below. | |
20132 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20133 | <limits.h> exists even on freestanding compilers. */ | |
20134 | ||
20135 | #ifdef __STDC__ | |
20136 | # include <limits.h> | |
20137 | #else | |
20138 | # include <assert.h> | |
20139 | #endif | |
20140 | ||
20141 | #undef $ac_func | |
20142 | ||
20143 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20144 | #ifdef __cplusplus | |
20145 | extern "C" | |
20146 | { | |
20147 | #endif | |
20148 | /* We use char because int might match the return type of a gcc2 | |
20149 | builtin and then its argument prototype would still apply. */ | |
20150 | char $ac_func (); | |
20151 | /* The GNU C library defines this for functions which it implements | |
20152 | to always fail with ENOSYS. Some functions are actually named | |
20153 | something starting with __ and the normal name is an alias. */ | |
20154 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20155 | choke me | |
20156 | #else | |
20157 | char (*f) () = $ac_func; | |
20158 | #endif | |
20159 | #ifdef __cplusplus | |
20160 | } | |
20161 | #endif | |
20162 | ||
20163 | int | |
20164 | main () | |
20165 | { | |
20166 | return f != $ac_func; | |
20167 | ; | |
20168 | return 0; | |
20169 | } | |
20170 | _ACEOF | |
20171 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20173 | (eval $ac_link) 2>conftest.er1 | |
20174 | ac_status=$? | |
20175 | grep -v '^ *+' conftest.er1 >conftest.err | |
20176 | rm -f conftest.er1 | |
20177 | cat conftest.err >&5 | |
20178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20179 | (exit $ac_status); } && | |
1409cd0b FXC |
20180 | { ac_try='test -z "$ac_c_werror_flag" |
20181 | || test ! -s conftest.err' | |
96b8a615 AJ |
20182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20183 | (eval $ac_try) 2>&5 | |
20184 | ac_status=$? | |
20185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20186 | (exit $ac_status); }; } && | |
20187 | { ac_try='test -s conftest$ac_exeext' | |
20188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20189 | (eval $ac_try) 2>&5 | |
20190 | ac_status=$? | |
20191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20192 | (exit $ac_status); }; }; then | |
20193 | eval "$as_ac_var=yes" | |
6de9cd9a | 20194 | else |
96b8a615 AJ |
20195 | echo "$as_me: failed program was:" >&5 |
20196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 20197 | |
96b8a615 | 20198 | eval "$as_ac_var=no" |
6de9cd9a | 20199 | fi |
96b8a615 AJ |
20200 | rm -f conftest.err conftest.$ac_objext \ |
20201 | conftest$ac_exeext conftest.$ac_ext | |
6de9cd9a | 20202 | fi |
96b8a615 AJ |
20203 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
20204 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20205 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20206 | cat >>confdefs.h <<_ACEOF | |
20207 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20208 | _ACEOF | |
6de9cd9a DN |
20209 | |
20210 | fi | |
6de9cd9a DN |
20211 | done |
20212 | ||
96b8a615 AJ |
20213 | if test "$ac_cv_func_gettimeofday" = yes; then |
20214 | echo "$as_me:$LINENO: checking for struct timezone" >&5 | |
20215 | echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6 | |
20216 | if test "${gfor_cv_struct_timezone+set}" = set; then | |
20217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20218 | else | |
20219 | cat >conftest.$ac_ext <<_ACEOF | |
20220 | /* confdefs.h. */ | |
20221 | _ACEOF | |
20222 | cat confdefs.h >>conftest.$ac_ext | |
20223 | cat >>conftest.$ac_ext <<_ACEOF | |
20224 | /* end confdefs.h. */ | |
20225 | #include <sys/time.h> | |
20226 | int | |
20227 | main () | |
20228 | { | |
20229 | struct timezone tz; | |
20230 | ; | |
20231 | return 0; | |
20232 | } | |
20233 | _ACEOF | |
20234 | rm -f conftest.$ac_objext | |
20235 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20236 | (eval $ac_compile) 2>conftest.er1 | |
20237 | ac_status=$? | |
20238 | grep -v '^ *+' conftest.er1 >conftest.err | |
20239 | rm -f conftest.er1 | |
20240 | cat conftest.err >&5 | |
20241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20242 | (exit $ac_status); } && | |
1409cd0b FXC |
20243 | { ac_try='test -z "$ac_c_werror_flag" |
20244 | || test ! -s conftest.err' | |
96b8a615 AJ |
20245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20246 | (eval $ac_try) 2>&5 | |
20247 | ac_status=$? | |
20248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20249 | (exit $ac_status); }; } && | |
20250 | { ac_try='test -s conftest.$ac_objext' | |
20251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20252 | (eval $ac_try) 2>&5 | |
20253 | ac_status=$? | |
20254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20255 | (exit $ac_status); }; }; then | |
20256 | gfor_cv_struct_timezone=yes | |
6de9cd9a | 20257 | else |
96b8a615 AJ |
20258 | echo "$as_me: failed program was:" >&5 |
20259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 20260 | |
96b8a615 | 20261 | gfor_cv_struct_timezone=no |
6de9cd9a | 20262 | fi |
96b8a615 AJ |
20263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
20264 | fi | |
20265 | echo "$as_me:$LINENO: result: $gfor_cv_struct_timezone" >&5 | |
20266 | echo "${ECHO_T}$gfor_cv_struct_timezone" >&6 | |
20267 | if test $gfor_cv_struct_timezone = yes; then | |
20268 | if test "$cross_compiling" = yes; then | |
20269 | gfor_have_struct_timezone=yes | |
6de9cd9a | 20270 | else |
96b8a615 AJ |
20271 | cat >conftest.$ac_ext <<_ACEOF |
20272 | /* confdefs.h. */ | |
20273 | _ACEOF | |
20274 | cat confdefs.h >>conftest.$ac_ext | |
20275 | cat >>conftest.$ac_ext <<_ACEOF | |
20276 | /* end confdefs.h. */ | |
6de9cd9a | 20277 | |
96b8a615 AJ |
20278 | #ifdef TIME_WITH_SYS_TIME |
20279 | #include <sys/time.h> | |
20280 | #include <time.h> | |
20281 | #else | |
20282 | #ifdef HAVE_SYS_TIME_H | |
20283 | #include <sys/time.h> | |
20284 | #else | |
20285 | #include <time.h> | |
20286 | #endif | |
20287 | #endif | |
20288 | main () | |
20289 | { | |
20290 | struct timeval time; | |
20291 | struct timezone dummy; | |
20292 | if (gettimeofday (&time, &dummy)) | |
20293 | exit (1); | |
20294 | else | |
20295 | exit (0); | |
20296 | } | |
20297 | _ACEOF | |
20298 | rm -f conftest$ac_exeext | |
20299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20300 | (eval $ac_link) 2>&5 | |
6de9cd9a DN |
20301 | ac_status=$? |
20302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
20303 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
20304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20305 | (eval $ac_try) 2>&5 | |
6de9cd9a DN |
20306 | ac_status=$? |
20307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
96b8a615 AJ |
20308 | (exit $ac_status); }; }; then |
20309 | gfor_have_struct_timezone=yes | |
6de9cd9a | 20310 | else |
96b8a615 AJ |
20311 | echo "$as_me: program exited with status $ac_status" >&5 |
20312 | echo "$as_me: failed program was:" >&5 | |
20313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6de9cd9a | 20314 | |
96b8a615 AJ |
20315 | ( exit $ac_status ) |
20316 | gfor_have_struct_timezone=no | |
20317 | fi | |
20318 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20319 | fi | |
20320 | if test $gfor_have_struct_timezone = yes; then | |
6de9cd9a | 20321 | |
96b8a615 AJ |
20322 | cat >>confdefs.h <<\_ACEOF |
20323 | #define HAVE_TIMEZONE 1 | |
20324 | _ACEOF | |
6de9cd9a | 20325 | |
96b8a615 AJ |
20326 | fi |
20327 | fi | |
20328 | ||
20329 | echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5 | |
20330 | echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6 | |
20331 | if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then | |
20332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20333 | else | |
f02d008e JD |
20334 | if test x$gcc_no_link = xyes; then |
20335 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20336 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20337 | { (exit 1); exit 1; }; } | |
20338 | fi | |
20339 | cat >conftest.$ac_ext <<_ACEOF | |
6de9cd9a DN |
20340 | /* confdefs.h. */ |
20341 | _ACEOF | |
20342 | cat confdefs.h >>conftest.$ac_ext | |
20343 | cat >>conftest.$ac_ext <<_ACEOF | |
20344 | /* end confdefs.h. */ | |
20345 | ||
96b8a615 AJ |
20346 | #ifdef TIME_WITH_SYS_TIME |
20347 | #include <sys/time.h> | |
20348 | #include <time.h> | |
20349 | #else | |
20350 | #ifdef HAVE_SYS_TIME_H | |
20351 | #include <sys/time.h> | |
20352 | #else | |
20353 | #include <time.h> | |
20354 | #endif | |
20355 | #endif | |
20356 | ||
6de9cd9a DN |
20357 | int |
20358 | main () | |
20359 | { | |
20360 | ||
96b8a615 AJ |
20361 | struct timeval time; |
20362 | #ifdef HAVE_TIMEZONE | |
20363 | struct timezone dummy; | |
20364 | #define DUMMY &dummy | |
20365 | #else | |
20366 | #define DUMMY NULL | |
20367 | #endif | |
20368 | gettimeofday (&time, DUMMY); | |
6de9cd9a DN |
20369 | ; |
20370 | return 0; | |
20371 | } | |
20372 | _ACEOF | |
20373 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20375 | (eval $ac_link) 2>conftest.er1 | |
20376 | ac_status=$? | |
20377 | grep -v '^ *+' conftest.er1 >conftest.err | |
20378 | rm -f conftest.er1 | |
20379 | cat conftest.err >&5 | |
20380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20381 | (exit $ac_status); } && | |
1409cd0b FXC |
20382 | { ac_try='test -z "$ac_c_werror_flag" |
20383 | || test ! -s conftest.err' | |
6de9cd9a DN |
20384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20385 | (eval $ac_try) 2>&5 | |
20386 | ac_status=$? | |
20387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20388 | (exit $ac_status); }; } && | |
20389 | { ac_try='test -s conftest$ac_exeext' | |
20390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20391 | (eval $ac_try) 2>&5 | |
20392 | ac_status=$? | |
20393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20394 | (exit $ac_status); }; }; then | |
96b8a615 | 20395 | emacs_cv_gettimeofday_two_arguments=yes |
6de9cd9a DN |
20396 | else |
20397 | echo "$as_me: failed program was:" >&5 | |
20398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20399 | ||
96b8a615 | 20400 | emacs_cv_gettimeofday_two_arguments=no |
6de9cd9a DN |
20401 | fi |
20402 | rm -f conftest.err conftest.$ac_objext \ | |
20403 | conftest$ac_exeext conftest.$ac_ext | |
6de9cd9a | 20404 | fi |
96b8a615 AJ |
20405 | echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 |
20406 | echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6 | |
20407 | if test $emacs_cv_gettimeofday_two_arguments = no; then | |
6de9cd9a | 20408 | |
96b8a615 AJ |
20409 | cat >>confdefs.h <<\_ACEOF |
20410 | #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
20411 | _ACEOF | |
6de9cd9a | 20412 | |
96b8a615 AJ |
20413 | fi |
20414 | fi | |
6de9cd9a | 20415 | |
3969c39f EB |
20416 | # Attempt to assert that the target is of common type in case we don't |
20417 | # have C99 integer types at all. | |
20418 | ||
20419 | echo "$as_me:$LINENO: checking whether the target is ILP32" >&5 | |
20420 | echo $ECHO_N "checking whether the target is ILP32... $ECHO_C" >&6 | |
20421 | if test "${target_ilp32+set}" = set; then | |
20422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20423 | else | |
20424 | ||
20425 | save_CFLAGS="$CFLAGS" | |
20426 | CFLAGS="-O2" | |
f02d008e JD |
20427 | if test x$gcc_no_link = xyes; then |
20428 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20429 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20430 | { (exit 1); exit 1; }; } | |
20431 | fi | |
20432 | cat >conftest.$ac_ext <<_ACEOF | |
3969c39f EB |
20433 | /* confdefs.h. */ |
20434 | _ACEOF | |
20435 | cat confdefs.h >>conftest.$ac_ext | |
20436 | cat >>conftest.$ac_ext <<_ACEOF | |
20437 | /* end confdefs.h. */ | |
20438 | ||
20439 | int | |
20440 | main () | |
20441 | { | |
20442 | ||
20443 | if (sizeof(int) == 4 && sizeof(long) == 4 && sizeof(void *) == 4) | |
20444 | ; | |
20445 | else | |
20446 | undefined_function (); | |
20447 | ||
20448 | ; | |
20449 | return 0; | |
20450 | } | |
20451 | _ACEOF | |
20452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20454 | (eval $ac_link) 2>conftest.er1 | |
20455 | ac_status=$? | |
20456 | grep -v '^ *+' conftest.er1 >conftest.err | |
20457 | rm -f conftest.er1 | |
20458 | cat conftest.err >&5 | |
20459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20460 | (exit $ac_status); } && | |
1409cd0b FXC |
20461 | { ac_try='test -z "$ac_c_werror_flag" |
20462 | || test ! -s conftest.err' | |
3969c39f EB |
20463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20464 | (eval $ac_try) 2>&5 | |
20465 | ac_status=$? | |
20466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20467 | (exit $ac_status); }; } && | |
20468 | { ac_try='test -s conftest$ac_exeext' | |
20469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20470 | (eval $ac_try) 2>&5 | |
20471 | ac_status=$? | |
20472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20473 | (exit $ac_status); }; }; then | |
20474 | target_ilp32=yes | |
20475 | else | |
20476 | echo "$as_me: failed program was:" >&5 | |
20477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20478 | ||
20479 | target_ilp32=no | |
20480 | fi | |
20481 | rm -f conftest.err conftest.$ac_objext \ | |
20482 | conftest$ac_exeext conftest.$ac_ext | |
20483 | CFLAGS="$save_CFLAGS" | |
20484 | fi | |
20485 | echo "$as_me:$LINENO: result: $target_ilp32" >&5 | |
20486 | echo "${ECHO_T}$target_ilp32" >&6 | |
20487 | if test $target_ilp32 = yes; then | |
20488 | ||
20489 | cat >>confdefs.h <<\_ACEOF | |
20490 | #define TARGET_ILP32 1 | |
20491 | _ACEOF | |
20492 | ||
20493 | fi | |
20494 | ||
20495 | ||
7d7b8bfe RH |
20496 | # Check out attribute support. |
20497 | ||
20498 | echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5 | |
20499 | echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6 | |
20500 | if test "${have_attribute_visibility+set}" = set; then | |
20501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20502 | else | |
20503 | ||
20504 | save_CFLAGS="$CFLAGS" | |
20505 | CFLAGS="$CFLAGS -Werror" | |
20506 | cat >conftest.$ac_ext <<_ACEOF | |
20507 | /* confdefs.h. */ | |
20508 | _ACEOF | |
20509 | cat confdefs.h >>conftest.$ac_ext | |
20510 | cat >>conftest.$ac_ext <<_ACEOF | |
20511 | /* end confdefs.h. */ | |
20512 | void __attribute__((visibility("hidden"))) foo(void) { } | |
20513 | int | |
20514 | main () | |
20515 | { | |
20516 | ||
20517 | ; | |
20518 | return 0; | |
20519 | } | |
20520 | _ACEOF | |
20521 | rm -f conftest.$ac_objext | |
20522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20523 | (eval $ac_compile) 2>conftest.er1 | |
20524 | ac_status=$? | |
20525 | grep -v '^ *+' conftest.er1 >conftest.err | |
20526 | rm -f conftest.er1 | |
20527 | cat conftest.err >&5 | |
20528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20529 | (exit $ac_status); } && | |
1409cd0b FXC |
20530 | { ac_try='test -z "$ac_c_werror_flag" |
20531 | || test ! -s conftest.err' | |
7d7b8bfe RH |
20532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20533 | (eval $ac_try) 2>&5 | |
20534 | ac_status=$? | |
20535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20536 | (exit $ac_status); }; } && | |
20537 | { ac_try='test -s conftest.$ac_objext' | |
20538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20539 | (eval $ac_try) 2>&5 | |
20540 | ac_status=$? | |
20541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20542 | (exit $ac_status); }; }; then | |
20543 | have_attribute_visibility=yes | |
20544 | else | |
20545 | echo "$as_me: failed program was:" >&5 | |
20546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20547 | ||
20548 | have_attribute_visibility=no | |
20549 | fi | |
20550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20551 | CFLAGS="$save_CFLAGS" | |
20552 | fi | |
20553 | echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5 | |
20554 | echo "${ECHO_T}$have_attribute_visibility" >&6 | |
20555 | if test $have_attribute_visibility = yes; then | |
20556 | ||
20557 | cat >>confdefs.h <<\_ACEOF | |
20558 | #define HAVE_ATTRIBUTE_VISIBILITY 1 | |
20559 | _ACEOF | |
20560 | ||
20561 | fi | |
20562 | ||
20563 | echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5 | |
20564 | echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6 | |
20565 | if test "${have_attribute_dllexport+set}" = set; then | |
20566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20567 | else | |
20568 | ||
20569 | save_CFLAGS="$CFLAGS" | |
20570 | CFLAGS="$CFLAGS -Werror" | |
20571 | cat >conftest.$ac_ext <<_ACEOF | |
20572 | /* confdefs.h. */ | |
20573 | _ACEOF | |
20574 | cat confdefs.h >>conftest.$ac_ext | |
20575 | cat >>conftest.$ac_ext <<_ACEOF | |
20576 | /* end confdefs.h. */ | |
20577 | void __attribute__((dllexport)) foo(void) { } | |
20578 | int | |
20579 | main () | |
20580 | { | |
20581 | ||
20582 | ; | |
20583 | return 0; | |
20584 | } | |
20585 | _ACEOF | |
20586 | rm -f conftest.$ac_objext | |
20587 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20588 | (eval $ac_compile) 2>conftest.er1 | |
20589 | ac_status=$? | |
20590 | grep -v '^ *+' conftest.er1 >conftest.err | |
20591 | rm -f conftest.er1 | |
20592 | cat conftest.err >&5 | |
20593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20594 | (exit $ac_status); } && | |
1409cd0b FXC |
20595 | { ac_try='test -z "$ac_c_werror_flag" |
20596 | || test ! -s conftest.err' | |
7d7b8bfe RH |
20597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20598 | (eval $ac_try) 2>&5 | |
20599 | ac_status=$? | |
20600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20601 | (exit $ac_status); }; } && | |
20602 | { ac_try='test -s conftest.$ac_objext' | |
20603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20604 | (eval $ac_try) 2>&5 | |
20605 | ac_status=$? | |
20606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20607 | (exit $ac_status); }; }; then | |
20608 | have_attribute_dllexport=yes | |
20609 | else | |
20610 | echo "$as_me: failed program was:" >&5 | |
20611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20612 | ||
20613 | have_attribute_dllexport=no | |
20614 | fi | |
20615 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20616 | CFLAGS="$save_CFLAGS" | |
20617 | fi | |
20618 | echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5 | |
20619 | echo "${ECHO_T}$have_attribute_dllexport" >&6 | |
20620 | if test $have_attribute_dllexport = yes; then | |
20621 | ||
20622 | cat >>confdefs.h <<\_ACEOF | |
20623 | #define HAVE_ATTRIBUTE_DLLEXPORT 1 | |
20624 | _ACEOF | |
20625 | ||
20626 | fi | |
20627 | ||
20628 | echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5 | |
20629 | echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6 | |
20630 | if test "${have_attribute_alias+set}" = set; then | |
20631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20632 | else | |
20633 | ||
f02d008e JD |
20634 | if test x$gcc_no_link = xyes; then |
20635 | { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5 | |
20636 | echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;} | |
20637 | { (exit 1); exit 1; }; } | |
20638 | fi | |
20639 | cat >conftest.$ac_ext <<_ACEOF | |
7d7b8bfe RH |
20640 | /* confdefs.h. */ |
20641 | _ACEOF | |
20642 | cat confdefs.h >>conftest.$ac_ext | |
20643 | cat >>conftest.$ac_ext <<_ACEOF | |
20644 | /* end confdefs.h. */ | |
20645 | ||
20646 | #define ULP STR1(__USER_LABEL_PREFIX__) | |
20647 | #define STR1(x) STR2(x) | |
20648 | #define STR2(x) #x | |
20649 | void foo(void) { } | |
20650 | extern void bar(void) __attribute__((alias(ULP "foo"))); | |
20651 | int | |
20652 | main () | |
20653 | { | |
20654 | bar(); | |
20655 | ; | |
20656 | return 0; | |
20657 | } | |
20658 | _ACEOF | |
20659 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20661 | (eval $ac_link) 2>conftest.er1 | |
20662 | ac_status=$? | |
20663 | grep -v '^ *+' conftest.er1 >conftest.err | |
20664 | rm -f conftest.er1 | |
20665 | cat conftest.err >&5 | |
20666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20667 | (exit $ac_status); } && | |
1409cd0b FXC |
20668 | { ac_try='test -z "$ac_c_werror_flag" |
20669 | || test ! -s conftest.err' | |
7d7b8bfe RH |
20670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20671 | (eval $ac_try) 2>&5 | |
20672 | ac_status=$? | |
20673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20674 | (exit $ac_status); }; } && | |
20675 | { ac_try='test -s conftest$ac_exeext' | |
20676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20677 | (eval $ac_try) 2>&5 | |
20678 | ac_status=$? | |
20679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20680 | (exit $ac_status); }; }; then | |
20681 | have_attribute_alias=yes | |
20682 | else | |
20683 | echo "$as_me: failed program was:" >&5 | |
20684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20685 | ||
20686 | have_attribute_alias=no | |
20687 | fi | |
20688 | rm -f conftest.err conftest.$ac_objext \ | |
20689 | conftest$ac_exeext conftest.$ac_ext | |
20690 | fi | |
20691 | echo "$as_me:$LINENO: result: $have_attribute_alias" >&5 | |
20692 | echo "${ECHO_T}$have_attribute_alias" >&6 | |
20693 | if test $have_attribute_alias = yes; then | |
20694 | ||
20695 | cat >>confdefs.h <<\_ACEOF | |
20696 | #define HAVE_ATTRIBUTE_ALIAS 1 | |
20697 | _ACEOF | |
20698 | ||
20699 | fi | |
20700 | ||
10c682a0 FXC |
20701 | # Various other checks on target |
20702 | ||
20703 | echo "$as_me:$LINENO: checking whether the target can unlink an open file" >&5 | |
20704 | echo $ECHO_N "checking whether the target can unlink an open file... $ECHO_C" >&6 | |
20705 | if test "${have_unlink_open_file+set}" = set; then | |
20706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20707 | else | |
20708 | ||
20709 | if test "$cross_compiling" = yes; then | |
20710 | ||
20711 | case "${target}" in | |
20712 | *mingw*) have_unlink_open_file=no ;; | |
20713 | *) have_unlink_open_file=yes;; | |
20714 | esac | |
20715 | else | |
20716 | cat >conftest.$ac_ext <<_ACEOF | |
20717 | /* confdefs.h. */ | |
20718 | _ACEOF | |
20719 | cat confdefs.h >>conftest.$ac_ext | |
20720 | cat >>conftest.$ac_ext <<_ACEOF | |
20721 | /* end confdefs.h. */ | |
20722 | ||
20723 | #include <errno.h> | |
20724 | #include <fcntl.h> | |
20725 | #include <unistd.h> | |
20726 | #include <sys/stat.h> | |
20727 | ||
20728 | int main () | |
20729 | { | |
20730 | int fd; | |
20731 | ||
20732 | fd = open ("testfile", O_RDWR | O_CREAT, S_IWRITE | S_IREAD); | |
20733 | if (fd <= 0) | |
20734 | return 0; | |
20735 | if (unlink ("testfile") == -1) | |
20736 | return 1; | |
20737 | write (fd, "This is a test\n", 15); | |
20738 | close (fd); | |
20739 | ||
20740 | if (open ("testfile", O_RDONLY, S_IWRITE | S_IREAD) == -1 && errno == ENOENT) | |
20741 | return 0; | |
20742 | else | |
20743 | return 1; | |
20744 | } | |
20745 | _ACEOF | |
20746 | rm -f conftest$ac_exeext | |
20747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20748 | (eval $ac_link) 2>&5 | |
20749 | ac_status=$? | |
20750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20751 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20753 | (eval $ac_try) 2>&5 | |
20754 | ac_status=$? | |
20755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20756 | (exit $ac_status); }; }; then | |
20757 | have_unlink_open_file=yes | |
20758 | else | |
20759 | echo "$as_me: program exited with status $ac_status" >&5 | |
20760 | echo "$as_me: failed program was:" >&5 | |
20761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20762 | ||
20763 | ( exit $ac_status ) | |
20764 | have_unlink_open_file=no | |
20765 | fi | |
20766 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20767 | fi | |
20768 | fi | |
20769 | echo "$as_me:$LINENO: result: $have_unlink_open_file" >&5 | |
20770 | echo "${ECHO_T}$have_unlink_open_file" >&6 | |
20771 | if test x"$have_unlink_open_file" = xyes; then | |
20772 | ||
20773 | cat >>confdefs.h <<\_ACEOF | |
20774 | #define HAVE_UNLINK_OPEN_FILE 1 | |
20775 | _ACEOF | |
20776 | ||
20777 | fi | |
20778 | ||
3c127520 FXC |
20779 | # Check whether line terminator is LF or CRLF |
20780 | ||
20781 | echo "$as_me:$LINENO: checking whether the target has CRLF as line terminator" >&5 | |
20782 | echo $ECHO_N "checking whether the target has CRLF as line terminator... $ECHO_C" >&6 | |
20783 | if test "${have_crlf+set}" = set; then | |
20784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20785 | else | |
20786 | ||
20787 | if test "$cross_compiling" = yes; then | |
20788 | ||
20789 | case "${target}" in | |
20790 | *mingw*) have_crlf=yes ;; | |
20791 | *) have_crlf=no;; | |
20792 | esac | |
20793 | else | |
20794 | cat >conftest.$ac_ext <<_ACEOF | |
20795 | /* confdefs.h. */ | |
20796 | _ACEOF | |
20797 | cat confdefs.h >>conftest.$ac_ext | |
20798 | cat >>conftest.$ac_ext <<_ACEOF | |
20799 | /* end confdefs.h. */ | |
20800 | ||
20801 | /* This test program should exit with status 0 if system uses a CRLF as | |
20802 | line terminator, and status 1 otherwise. | |
20803 | Since it is used to check for mingw systems, and should return 0 in any | |
20804 | other case, in case of a failure we will not use CRLF. */ | |
20805 | #include <sys/stat.h> | |
20806 | #include <stdlib.h> | |
20807 | #include <fcntl.h> | |
20808 | #include <stdio.h> | |
20809 | ||
20810 | int main () | |
20811 | { | |
20812 | #ifndef O_BINARY | |
20813 | exit(1); | |
20814 | #else | |
20815 | int fd, bytes; | |
20816 | char buff[5]; | |
20817 | ||
20818 | fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); | |
20819 | if (fd < 0) | |
20820 | exit(1); | |
20821 | if (write (fd, "\n", 1) < 0) | |
20822 | perror ("write"); | |
20823 | ||
20824 | close (fd); | |
20825 | ||
20826 | if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0) | |
20827 | exit(1); | |
20828 | bytes = read (fd, buff, 5); | |
20829 | if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n') | |
20830 | exit(0); | |
20831 | else | |
20832 | exit(1); | |
20833 | #endif | |
20834 | } | |
20835 | _ACEOF | |
20836 | rm -f conftest$ac_exeext | |
20837 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20838 | (eval $ac_link) 2>&5 | |
20839 | ac_status=$? | |
20840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20841 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20843 | (eval $ac_try) 2>&5 | |
20844 | ac_status=$? | |
20845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20846 | (exit $ac_status); }; }; then | |
20847 | have_crlf=yes | |
20848 | else | |
20849 | echo "$as_me: program exited with status $ac_status" >&5 | |
20850 | echo "$as_me: failed program was:" >&5 | |
20851 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20852 | ||
20853 | ( exit $ac_status ) | |
20854 | have_crlf=no | |
20855 | fi | |
20856 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20857 | fi | |
20858 | fi | |
20859 | echo "$as_me:$LINENO: result: $have_crlf" >&5 | |
20860 | echo "${ECHO_T}$have_crlf" >&6 | |
20861 | if test x"$have_crlf" = xyes; then | |
20862 | ||
20863 | cat >>confdefs.h <<\_ACEOF | |
20864 | #define HAVE_CRLF 1 | |
20865 | _ACEOF | |
20866 | ||
20867 | fi | |
20868 | ||
6de9cd9a DN |
20869 | cat >confcache <<\_ACEOF |
20870 | # This file is a shell script that caches the results of configure | |
20871 | # tests run on this system so they can be shared between configure | |
20872 | # scripts and configure runs, see configure's option --config-cache. | |
20873 | # It is not useful on other systems. If it contains results you don't | |
20874 | # want to keep, you may remove or edit it. | |
20875 | # | |
20876 | # config.status only pays attention to the cache file if you give it | |
20877 | # the --recheck option to rerun configure. | |
20878 | # | |
20879 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20880 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20881 | # following values. | |
20882 | ||
20883 | _ACEOF | |
20884 | ||
20885 | # The following way of writing the cache mishandles newlines in values, | |
20886 | # but we know of no workaround that is simple, portable, and efficient. | |
20887 | # So, don't put newlines in cache variables' values. | |
20888 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20889 | # and sets the high bit in the cache file unless we assign to the vars. | |
20890 | { | |
20891 | (set) 2>&1 | | |
20892 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20893 | *ac_space=\ *) | |
20894 | # `set' does not quote correctly, so add quotes (double-quote | |
20895 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20896 | sed -n \ | |
20897 | "s/'/'\\\\''/g; | |
20898 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
20899 | ;; | |
20900 | *) | |
20901 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20902 | sed -n \ | |
20903 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
20904 | ;; | |
20905 | esac; | |
20906 | } | | |
20907 | sed ' | |
20908 | t clear | |
20909 | : clear | |
20910 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20911 | t end | |
20912 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20913 | : end' >>confcache | |
20914 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20915 | if test -w $cache_file; then | |
20916 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20917 | cat confcache >$cache_file | |
20918 | else | |
20919 | echo "not updating unwritable cache $cache_file" | |
20920 | fi | |
20921 | fi | |
20922 | rm -f confcache | |
20923 | ||
96b8a615 AJ |
20924 | if test ${multilib} = yes; then |
20925 | multilib_arg="--enable-multilib" | |
6de9cd9a | 20926 | else |
96b8a615 | 20927 | multilib_arg= |
6de9cd9a | 20928 | fi |
6de9cd9a | 20929 | |
96b8a615 | 20930 | # Write our Makefile. |
6de9cd9a | 20931 | ac_config_files="$ac_config_files Makefile" |
96b8a615 | 20932 | |
6de9cd9a DN |
20933 | cat >confcache <<\_ACEOF |
20934 | # This file is a shell script that caches the results of configure | |
20935 | # tests run on this system so they can be shared between configure | |
20936 | # scripts and configure runs, see configure's option --config-cache. | |
20937 | # It is not useful on other systems. If it contains results you don't | |
20938 | # want to keep, you may remove or edit it. | |
20939 | # | |
20940 | # config.status only pays attention to the cache file if you give it | |
20941 | # the --recheck option to rerun configure. | |
20942 | # | |
20943 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20944 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20945 | # following values. | |
20946 | ||
20947 | _ACEOF | |
20948 | ||
20949 | # The following way of writing the cache mishandles newlines in values, | |
20950 | # but we know of no workaround that is simple, portable, and efficient. | |
20951 | # So, don't put newlines in cache variables' values. | |
20952 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20953 | # and sets the high bit in the cache file unless we assign to the vars. | |
20954 | { | |
20955 | (set) 2>&1 | | |
20956 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20957 | *ac_space=\ *) | |
20958 | # `set' does not quote correctly, so add quotes (double-quote | |
20959 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20960 | sed -n \ | |
20961 | "s/'/'\\\\''/g; | |
20962 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
20963 | ;; | |
20964 | *) | |
20965 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20966 | sed -n \ | |
20967 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
20968 | ;; | |
20969 | esac; | |
20970 | } | | |
20971 | sed ' | |
20972 | t clear | |
20973 | : clear | |
20974 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20975 | t end | |
20976 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20977 | : end' >>confcache | |
20978 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20979 | if test -w $cache_file; then | |
20980 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20981 | cat confcache >$cache_file | |
20982 | else | |
20983 | echo "not updating unwritable cache $cache_file" | |
20984 | fi | |
20985 | fi | |
20986 | rm -f confcache | |
20987 | ||
20988 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
20989 | # Let make expand exec_prefix. | |
20990 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20991 | ||
20992 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
20993 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
20994 | # trailing colons and then remove the whole line if VPATH becomes empty | |
20995 | # (actually we leave an empty line to preserve line numbers). | |
20996 | if test "x$srcdir" = x.; then | |
20997 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
20998 | s/:*\$(srcdir):*/:/; | |
20999 | s/:*\${srcdir}:*/:/; | |
21000 | s/:*@srcdir@:*/:/; | |
21001 | s/^\([^=]*=[ ]*\):*/\1/; | |
21002 | s/:*$//; | |
21003 | s/^[^=]*=[ ]*$//; | |
21004 | }' | |
21005 | fi | |
21006 | ||
21007 | DEFS=-DHAVE_CONFIG_H | |
21008 | ||
21009 | ac_libobjs= | |
21010 | ac_ltlibobjs= | |
21011 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21012 | # 1. Remove the extension, and $U if already installed. | |
21013 | ac_i=`echo "$ac_i" | | |
21014 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
21015 | # 2. Add them. | |
21016 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
21017 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
21018 | done | |
21019 | LIBOBJS=$ac_libobjs | |
21020 | ||
21021 | LTLIBOBJS=$ac_ltlibobjs | |
21022 | ||
21023 | ||
21024 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
21025 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
21026 | Usually this means the macro was only invoked conditionally." >&5 | |
21027 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
21028 | Usually this means the macro was only invoked conditionally." >&2;} | |
21029 | { (exit 1); exit 1; }; } | |
21030 | fi | |
6de9cd9a DN |
21031 | |
21032 | : ${CONFIG_STATUS=./config.status} | |
21033 | ac_clean_files_save=$ac_clean_files | |
21034 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
21035 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
21036 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
21037 | cat >$CONFIG_STATUS <<_ACEOF | |
21038 | #! $SHELL | |
21039 | # Generated by $as_me. | |
21040 | # Run this file to recreate the current configuration. | |
21041 | # Compiler output produced by configure, useful for debugging | |
21042 | # configure, is in config.log if it exists. | |
21043 | ||
21044 | debug=false | |
21045 | ac_cs_recheck=false | |
21046 | ac_cs_silent=false | |
21047 | SHELL=\${CONFIG_SHELL-$SHELL} | |
21048 | _ACEOF | |
21049 | ||
21050 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21051 | ## --------------------- ## | |
21052 | ## M4sh Initialization. ## | |
21053 | ## --------------------- ## | |
21054 | ||
21055 | # Be Bourne compatible | |
21056 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
21057 | emulate sh | |
21058 | NULLCMD=: | |
21059 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21060 | # is contrary to our usage. Disable this feature. | |
21061 | alias -g '${1+"$@"}'='"$@"' | |
21062 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
21063 | set -o posix | |
21064 | fi | |
21065 | DUALCASE=1; export DUALCASE # for MKS sh | |
21066 | ||
21067 | # Support unset when possible. | |
21068 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
21069 | as_unset=unset | |
21070 | else | |
21071 | as_unset=false | |
21072 | fi | |
21073 | ||
21074 | ||
21075 | # Work around bugs in pre-3.0 UWIN ksh. | |
21076 | $as_unset ENV MAIL MAILPATH | |
21077 | PS1='$ ' | |
21078 | PS2='> ' | |
21079 | PS4='+ ' | |
21080 | ||
21081 | # NLS nuisances. | |
21082 | for as_var in \ | |
21083 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
21084 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
21085 | LC_TELEPHONE LC_TIME | |
21086 | do | |
21087 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
21088 | eval $as_var=C; export $as_var | |
21089 | else | |
21090 | $as_unset $as_var | |
21091 | fi | |
21092 | done | |
21093 | ||
21094 | # Required to use basename. | |
21095 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21096 | as_expr=expr | |
21097 | else | |
21098 | as_expr=false | |
21099 | fi | |
21100 | ||
21101 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
21102 | as_basename=basename | |
21103 | else | |
21104 | as_basename=false | |
21105 | fi | |
21106 | ||
21107 | ||
21108 | # Name of the executable. | |
21109 | as_me=`$as_basename "$0" || | |
21110 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
21111 | X"$0" : 'X\(//\)$' \| \ | |
21112 | X"$0" : 'X\(/\)$' \| \ | |
21113 | . : '\(.\)' 2>/dev/null || | |
21114 | echo X/"$0" | | |
21115 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
21116 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
21117 | /^X\/\(\/\).*/{ s//\1/; q; } | |
21118 | s/.*/./; q'` | |
21119 | ||
21120 | ||
21121 | # PATH needs CR, and LINENO needs CR and PATH. | |
21122 | # Avoid depending upon Character Ranges. | |
21123 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21124 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21125 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21126 | as_cr_digits='0123456789' | |
21127 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21128 | ||
21129 | # The user is always right. | |
21130 | if test "${PATH_SEPARATOR+set}" != set; then | |
21131 | echo "#! /bin/sh" >conf$$.sh | |
21132 | echo "exit 0" >>conf$$.sh | |
21133 | chmod +x conf$$.sh | |
21134 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
21135 | PATH_SEPARATOR=';' | |
21136 | else | |
21137 | PATH_SEPARATOR=: | |
21138 | fi | |
21139 | rm -f conf$$.sh | |
21140 | fi | |
21141 | ||
21142 | ||
21143 | as_lineno_1=$LINENO | |
21144 | as_lineno_2=$LINENO | |
21145 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21146 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21147 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
21148 | # Find who we are. Look in the path if we contain no path at all | |
21149 | # relative or not. | |
21150 | case $0 in | |
21151 | *[\\/]* ) as_myself=$0 ;; | |
21152 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21153 | for as_dir in $PATH | |
21154 | do | |
21155 | IFS=$as_save_IFS | |
21156 | test -z "$as_dir" && as_dir=. | |
21157 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21158 | done | |
21159 | ||
21160 | ;; | |
21161 | esac | |
21162 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21163 | # in which case we are not to be found in the path. | |
21164 | if test "x$as_myself" = x; then | |
21165 | as_myself=$0 | |
21166 | fi | |
21167 | if test ! -f "$as_myself"; then | |
21168 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
21169 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
21170 | { (exit 1); exit 1; }; } | |
21171 | fi | |
21172 | case $CONFIG_SHELL in | |
21173 | '') | |
21174 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21175 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
21176 | do | |
21177 | IFS=$as_save_IFS | |
21178 | test -z "$as_dir" && as_dir=. | |
21179 | for as_base in sh bash ksh sh5; do | |
21180 | case $as_dir in | |
21181 | /*) | |
21182 | if ("$as_dir/$as_base" -c ' | |
21183 | as_lineno_1=$LINENO | |
21184 | as_lineno_2=$LINENO | |
21185 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21186 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21187 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
21188 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
21189 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
21190 | CONFIG_SHELL=$as_dir/$as_base | |
21191 | export CONFIG_SHELL | |
21192 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
21193 | fi;; | |
21194 | esac | |
21195 | done | |
21196 | done | |
21197 | ;; | |
21198 | esac | |
21199 | ||
21200 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
21201 | # uniformly replaced by the line number. The first 'sed' inserts a | |
21202 | # line-number line before each line; the second 'sed' does the real | |
21203 | # work. The second script uses 'N' to pair each line-number line | |
21204 | # with the numbered line, and appends trailing '-' during | |
21205 | # substitution so that $LINENO is not a special case at line end. | |
21206 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
21207 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
21208 | sed '=' <$as_myself | | |
21209 | sed ' | |
21210 | N | |
21211 | s,$,-, | |
21212 | : loop | |
21213 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
21214 | t loop | |
21215 | s,-$,, | |
21216 | s,^['$as_cr_digits']*\n,, | |
21217 | ' >$as_me.lineno && | |
21218 | chmod +x $as_me.lineno || | |
21219 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
21220 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
21221 | { (exit 1); exit 1; }; } | |
21222 | ||
21223 | # Don't try to exec as it changes $[0], causing all sort of problems | |
21224 | # (the dirname of $[0] is not the place where we might find the | |
21225 | # original and so on. Autoconf is especially sensible to this). | |
21226 | . ./$as_me.lineno | |
21227 | # Exit status is that of the last command. | |
21228 | exit | |
21229 | } | |
21230 | ||
21231 | ||
21232 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
21233 | *c*,-n*) ECHO_N= ECHO_C=' | |
21234 | ' ECHO_T=' ' ;; | |
21235 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
21236 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
21237 | esac | |
21238 | ||
21239 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21240 | as_expr=expr | |
21241 | else | |
21242 | as_expr=false | |
21243 | fi | |
21244 | ||
21245 | rm -f conf$$ conf$$.exe conf$$.file | |
21246 | echo >conf$$.file | |
21247 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
21248 | # We could just check for DJGPP; but this test a) works b) is more generic | |
21249 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
21250 | if test -f conf$$.exe; then | |
21251 | # Don't use ln at all; we don't have any links | |
21252 | as_ln_s='cp -p' | |
21253 | else | |
21254 | as_ln_s='ln -s' | |
21255 | fi | |
21256 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
21257 | as_ln_s=ln | |
21258 | else | |
21259 | as_ln_s='cp -p' | |
21260 | fi | |
21261 | rm -f conf$$ conf$$.exe conf$$.file | |
21262 | ||
21263 | if mkdir -p . 2>/dev/null; then | |
21264 | as_mkdir_p=: | |
21265 | else | |
21266 | test -d ./-p && rmdir ./-p | |
21267 | as_mkdir_p=false | |
21268 | fi | |
21269 | ||
21270 | as_executable_p="test -f" | |
21271 | ||
21272 | # Sed expression to map a string onto a valid CPP name. | |
21273 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
21274 | ||
21275 | # Sed expression to map a string onto a valid variable name. | |
21276 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
21277 | ||
21278 | ||
21279 | # IFS | |
21280 | # We need space, tab and new line, in precisely that order. | |
21281 | as_nl=' | |
21282 | ' | |
21283 | IFS=" $as_nl" | |
21284 | ||
21285 | # CDPATH. | |
21286 | $as_unset CDPATH | |
21287 | ||
21288 | exec 6>&1 | |
21289 | ||
21290 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
21291 | # report actual input values of CONFIG_FILES etc. instead of their | |
21292 | # values after options handling. Logging --version etc. is OK. | |
21293 | exec 5>>config.log | |
21294 | { | |
21295 | echo | |
21296 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
21297 | ## Running $as_me. ## | |
21298 | _ASBOX | |
21299 | } >&5 | |
21300 | cat >&5 <<_CSEOF | |
21301 | ||
21302 | This file was extended by GNU Fortran Runtime Library $as_me 0.2, which was | |
21303 | generated by GNU Autoconf 2.59. Invocation command line was | |
21304 | ||
21305 | CONFIG_FILES = $CONFIG_FILES | |
21306 | CONFIG_HEADERS = $CONFIG_HEADERS | |
21307 | CONFIG_LINKS = $CONFIG_LINKS | |
21308 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
21309 | $ $0 $@ | |
21310 | ||
21311 | _CSEOF | |
21312 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
21313 | echo >&5 | |
21314 | _ACEOF | |
21315 | ||
21316 | # Files that config.status was made for. | |
21317 | if test -n "$ac_config_files"; then | |
21318 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
21319 | fi | |
21320 | ||
21321 | if test -n "$ac_config_headers"; then | |
21322 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
21323 | fi | |
21324 | ||
21325 | if test -n "$ac_config_links"; then | |
21326 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
21327 | fi | |
21328 | ||
21329 | if test -n "$ac_config_commands"; then | |
21330 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
21331 | fi | |
21332 | ||
21333 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21334 | ||
21335 | ac_cs_usage="\ | |
21336 | \`$as_me' instantiates files from templates according to the | |
21337 | current configuration. | |
21338 | ||
21339 | Usage: $0 [OPTIONS] [FILE]... | |
21340 | ||
21341 | -h, --help print this help, then exit | |
21342 | -V, --version print version number, then exit | |
21343 | -q, --quiet do not print progress messages | |
21344 | -d, --debug don't remove temporary files | |
21345 | --recheck update $as_me by reconfiguring in the same conditions | |
21346 | --file=FILE[:TEMPLATE] | |
21347 | instantiate the configuration file FILE | |
21348 | --header=FILE[:TEMPLATE] | |
21349 | instantiate the configuration header FILE | |
21350 | ||
21351 | Configuration files: | |
21352 | $config_files | |
21353 | ||
21354 | Configuration headers: | |
21355 | $config_headers | |
21356 | ||
21357 | Configuration commands: | |
21358 | $config_commands | |
21359 | ||
21360 | Report bugs to <bug-autoconf@gnu.org>." | |
21361 | _ACEOF | |
21362 | ||
21363 | cat >>$CONFIG_STATUS <<_ACEOF | |
21364 | ac_cs_version="\\ | |
21365 | GNU Fortran Runtime Library config.status 0.2 | |
21366 | configured by $0, generated by GNU Autoconf 2.59, | |
21367 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
21368 | ||
21369 | Copyright (C) 2003 Free Software Foundation, Inc. | |
21370 | This config.status script is free software; the Free Software Foundation | |
21371 | gives unlimited permission to copy, distribute and modify it." | |
21372 | srcdir=$srcdir | |
21373 | INSTALL="$INSTALL" | |
21374 | _ACEOF | |
21375 | ||
21376 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21377 | # If no file are specified by the user, then we need to provide default | |
21378 | # value. By we need to know if files were specified by the user. | |
21379 | ac_need_defaults=: | |
21380 | while test $# != 0 | |
21381 | do | |
21382 | case $1 in | |
21383 | --*=*) | |
21384 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
21385 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
21386 | ac_shift=: | |
21387 | ;; | |
21388 | -*) | |
21389 | ac_option=$1 | |
21390 | ac_optarg=$2 | |
21391 | ac_shift=shift | |
21392 | ;; | |
21393 | *) # This is not an option, so the user has probably given explicit | |
21394 | # arguments. | |
21395 | ac_option=$1 | |
21396 | ac_need_defaults=false;; | |
21397 | esac | |
21398 | ||
21399 | case $ac_option in | |
21400 | # Handling of the options. | |
21401 | _ACEOF | |
21402 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21403 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21404 | ac_cs_recheck=: ;; | |
21405 | --version | --vers* | -V ) | |
21406 | echo "$ac_cs_version"; exit 0 ;; | |
21407 | --he | --h) | |
21408 | # Conflict between --help and --header | |
21409 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
21410 | Try \`$0 --help' for more information." >&5 | |
21411 | echo "$as_me: error: ambiguous option: $1 | |
21412 | Try \`$0 --help' for more information." >&2;} | |
21413 | { (exit 1); exit 1; }; };; | |
21414 | --help | --hel | -h ) | |
21415 | echo "$ac_cs_usage"; exit 0 ;; | |
21416 | --debug | --d* | -d ) | |
21417 | debug=: ;; | |
21418 | --file | --fil | --fi | --f ) | |
21419 | $ac_shift | |
21420 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
21421 | ac_need_defaults=false;; | |
21422 | --header | --heade | --head | --hea ) | |
21423 | $ac_shift | |
21424 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
21425 | ac_need_defaults=false;; | |
21426 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
21427 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21428 | ac_cs_silent=: ;; | |
21429 | ||
21430 | # This is an error. | |
21431 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
21432 | Try \`$0 --help' for more information." >&5 | |
21433 | echo "$as_me: error: unrecognized option: $1 | |
21434 | Try \`$0 --help' for more information." >&2;} | |
21435 | { (exit 1); exit 1; }; } ;; | |
21436 | ||
21437 | *) ac_config_targets="$ac_config_targets $1" ;; | |
21438 | ||
21439 | esac | |
21440 | shift | |
21441 | done | |
21442 | ||
21443 | ac_configure_extra_args= | |
21444 | ||
21445 | if $ac_cs_silent; then | |
21446 | exec 6>/dev/null | |
21447 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21448 | fi | |
21449 | ||
21450 | _ACEOF | |
21451 | cat >>$CONFIG_STATUS <<_ACEOF | |
21452 | if \$ac_cs_recheck; then | |
21453 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
21454 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
21455 | fi | |
21456 | ||
21457 | _ACEOF | |
21458 | ||
21459 | cat >>$CONFIG_STATUS <<_ACEOF | |
21460 | # | |
21461 | # INIT-COMMANDS section. | |
21462 | # | |
21463 | ||
96b8a615 AJ |
21464 | |
21465 | srcdir="$srcdir" | |
21466 | host="$host" | |
21467 | target="$target" | |
21468 | with_multisubdir="$with_multisubdir" | |
21469 | with_multisrctop="$with_multisrctop" | |
21470 | with_target_subdir="$with_target_subdir" | |
21471 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
21472 | multi_basedir="$multi_basedir" | |
21473 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
21474 | CC="$CC" | |
6de9cd9a DN |
21475 | |
21476 | _ACEOF | |
21477 | ||
21478 | ||
21479 | ||
21480 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21481 | for ac_config_target in $ac_config_targets | |
21482 | do | |
21483 | case "$ac_config_target" in | |
21484 | # Handling of arguments. | |
21485 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
96b8a615 | 21486 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
6de9cd9a DN |
21487 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
21488 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
21489 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
21490 | { (exit 1); exit 1; }; };; | |
21491 | esac | |
21492 | done | |
21493 | ||
21494 | # If the user did not use the arguments to specify the items to instantiate, | |
21495 | # then the envvar interface is used. Set only those that are not. | |
21496 | # We use the long form for the default assignment because of an extremely | |
21497 | # bizarre bug on SunOS 4.1.3. | |
21498 | if $ac_need_defaults; then | |
21499 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
21500 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
21501 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
21502 | fi | |
21503 | ||
21504 | # Have a temporary directory for convenience. Make it in the build tree | |
21505 | # simply because there is no reason to put it here, and in addition, | |
21506 | # creating and moving files from /tmp can sometimes cause problems. | |
21507 | # Create a temporary directory, and hook for its removal unless debugging. | |
21508 | $debug || | |
21509 | { | |
21510 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
21511 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
21512 | } | |
21513 | ||
21514 | # Create a (secure) tmp directory for tmp files. | |
21515 | ||
21516 | { | |
21517 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
21518 | test -n "$tmp" && test -d "$tmp" | |
21519 | } || | |
21520 | { | |
21521 | tmp=./confstat$$-$RANDOM | |
21522 | (umask 077 && mkdir $tmp) | |
21523 | } || | |
21524 | { | |
21525 | echo "$me: cannot create a temporary directory in ." >&2 | |
21526 | { (exit 1); exit 1; } | |
21527 | } | |
21528 | ||
21529 | _ACEOF | |
21530 | ||
21531 | cat >>$CONFIG_STATUS <<_ACEOF | |
21532 | ||
21533 | # | |
21534 | # CONFIG_FILES section. | |
21535 | # | |
21536 | ||
21537 | # No need to generate the scripts if there are no CONFIG_FILES. | |
21538 | # This happens for instance when ./config.status config.h | |
21539 | if test -n "\$CONFIG_FILES"; then | |
21540 | # Protect against being on the right side of a sed subst in config.status. | |
21541 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
21542 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
21543 | s,@SHELL@,$SHELL,;t t | |
21544 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
21545 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
21546 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
21547 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
21548 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
21549 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
21550 | s,@exec_prefix@,$exec_prefix,;t t | |
21551 | s,@prefix@,$prefix,;t t | |
21552 | s,@program_transform_name@,$program_transform_name,;t t | |
21553 | s,@bindir@,$bindir,;t t | |
21554 | s,@sbindir@,$sbindir,;t t | |
21555 | s,@libexecdir@,$libexecdir,;t t | |
21556 | s,@datadir@,$datadir,;t t | |
21557 | s,@sysconfdir@,$sysconfdir,;t t | |
21558 | s,@sharedstatedir@,$sharedstatedir,;t t | |
21559 | s,@localstatedir@,$localstatedir,;t t | |
21560 | s,@libdir@,$libdir,;t t | |
21561 | s,@includedir@,$includedir,;t t | |
21562 | s,@oldincludedir@,$oldincludedir,;t t | |
21563 | s,@infodir@,$infodir,;t t | |
21564 | s,@mandir@,$mandir,;t t | |
21565 | s,@build_alias@,$build_alias,;t t | |
21566 | s,@host_alias@,$host_alias,;t t | |
21567 | s,@target_alias@,$target_alias,;t t | |
21568 | s,@DEFS@,$DEFS,;t t | |
21569 | s,@ECHO_C@,$ECHO_C,;t t | |
21570 | s,@ECHO_N@,$ECHO_N,;t t | |
21571 | s,@ECHO_T@,$ECHO_T,;t t | |
21572 | s,@LIBS@,$LIBS,;t t | |
96b8a615 AJ |
21573 | s,@build@,$build,;t t |
21574 | s,@build_cpu@,$build_cpu,;t t | |
21575 | s,@build_vendor@,$build_vendor,;t t | |
21576 | s,@build_os@,$build_os,;t t | |
21577 | s,@host@,$host,;t t | |
21578 | s,@host_cpu@,$host_cpu,;t t | |
21579 | s,@host_vendor@,$host_vendor,;t t | |
21580 | s,@host_os@,$host_os,;t t | |
21581 | s,@target@,$target,;t t | |
21582 | s,@target_cpu@,$target_cpu,;t t | |
21583 | s,@target_vendor@,$target_vendor,;t t | |
21584 | s,@target_os@,$target_os,;t t | |
6de9cd9a DN |
21585 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
21586 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
21587 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
21588 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
21589 | s,@PACKAGE@,$PACKAGE,;t t | |
21590 | s,@VERSION@,$VERSION,;t t | |
21591 | s,@ACLOCAL@,$ACLOCAL,;t t | |
21592 | s,@AUTOCONF@,$AUTOCONF,;t t | |
21593 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
21594 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
21595 | s,@MAKEINFO@,$MAKEINFO,;t t | |
6de9cd9a DN |
21596 | s,@install_sh@,$install_sh,;t t |
21597 | s,@STRIP@,$STRIP,;t t | |
21598 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
21599 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
21600 | s,@mkdir_p@,$mkdir_p,;t t | |
21601 | s,@AWK@,$AWK,;t t | |
21602 | s,@SET_MAKE@,$SET_MAKE,;t t | |
21603 | s,@am__leading_dot@,$am__leading_dot,;t t | |
d49ec2d1 KC |
21604 | s,@AMTAR@,$AMTAR,;t t |
21605 | s,@am__tar@,$am__tar,;t t | |
21606 | s,@am__untar@,$am__untar,;t t | |
6de9cd9a DN |
21607 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
21608 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
21609 | s,@MAINT@,$MAINT,;t t | |
96b8a615 | 21610 | s,@multi_basedir@,$multi_basedir,;t t |
96b8a615 AJ |
21611 | s,@toolexecdir@,$toolexecdir,;t t |
21612 | s,@toolexeclibdir@,$toolexeclibdir,;t t | |
6de9cd9a | 21613 | s,@CC@,$CC,;t t |
6de9cd9a DN |
21614 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
21615 | s,@EXEEXT@,$EXEEXT,;t t | |
21616 | s,@OBJEXT@,$OBJEXT,;t t | |
e606fb39 AJ |
21617 | s,@AM_FCFLAGS@,$AM_FCFLAGS,;t t |
21618 | s,@AM_CFLAGS@,$AM_CFLAGS,;t t | |
96b8a615 AJ |
21619 | s,@AS@,$AS,;t t |
21620 | s,@ac_ct_AS@,$ac_ct_AS,;t t | |
21621 | s,@AR@,$AR,;t t | |
21622 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
21623 | s,@RANLIB@,$RANLIB,;t t | |
21624 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
21625 | s,@LN_S@,$LN_S,;t t | |
21626 | s,@LIBTOOL@,$LIBTOOL,;t t | |
21627 | s,@enable_shared@,$enable_shared,;t t | |
21628 | s,@enable_static@,$enable_static,;t t | |
c7a35fe9 AS |
21629 | s,@FC@,$FC,;t t |
21630 | s,@FCFLAGS@,$FCFLAGS,;t t | |
96b8a615 | 21631 | s,@LDFLAGS@,$LDFLAGS,;t t |
c7a35fe9 | 21632 | s,@ac_ct_FC@,$ac_ct_FC,;t t |
e87045f3 | 21633 | s,@extra_ldflags_libgfortran@,$extra_ldflags_libgfortran,;t t |
6de9cd9a | 21634 | s,@CPP@,$CPP,;t t |
96b8a615 | 21635 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
6de9cd9a | 21636 | s,@EGREP@,$EGREP,;t t |
944b8b35 | 21637 | s,@FPU_HOST_HEADER@,$FPU_HOST_HEADER,;t t |
6de9cd9a DN |
21638 | s,@LIBOBJS@,$LIBOBJS,;t t |
21639 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
21640 | CEOF | |
21641 | ||
21642 | _ACEOF | |
21643 | ||
21644 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21645 | # Split the substitutions into bite-sized pieces for seds with | |
21646 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21647 | ac_max_sed_lines=48 | |
21648 | ac_sed_frag=1 # Number of current file. | |
21649 | ac_beg=1 # First line for current file. | |
21650 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
21651 | ac_more_lines=: | |
21652 | ac_sed_cmds= | |
21653 | while $ac_more_lines; do | |
21654 | if test $ac_beg -gt 1; then | |
21655 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
21656 | else | |
21657 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
21658 | fi | |
21659 | if test ! -s $tmp/subs.frag; then | |
21660 | ac_more_lines=false | |
21661 | else | |
21662 | # The purpose of the label and of the branching condition is to | |
21663 | # speed up the sed processing (if there are no `@' at all, there | |
21664 | # is no need to browse any of the substitutions). | |
21665 | # These are the two extra sed commands mentioned above. | |
21666 | (echo ':t | |
21667 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
21668 | if test -z "$ac_sed_cmds"; then | |
21669 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
21670 | else | |
21671 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
21672 | fi | |
21673 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
21674 | ac_beg=$ac_end | |
21675 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
21676 | fi | |
21677 | done | |
21678 | if test -z "$ac_sed_cmds"; then | |
21679 | ac_sed_cmds=cat | |
21680 | fi | |
21681 | fi # test -n "$CONFIG_FILES" | |
21682 | ||
21683 | _ACEOF | |
21684 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21685 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
21686 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
21687 | case $ac_file in | |
21688 | - | *:- | *:-:* ) # input from stdin | |
21689 | cat >$tmp/stdin | |
21690 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21691 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21692 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21693 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21694 | * ) ac_file_in=$ac_file.in ;; | |
21695 | esac | |
21696 | ||
21697 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
21698 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
21699 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21700 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21701 | X"$ac_file" : 'X\(//\)$' \| \ | |
21702 | X"$ac_file" : 'X\(/\)' \| \ | |
21703 | . : '\(.\)' 2>/dev/null || | |
21704 | echo X"$ac_file" | | |
21705 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21706 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21707 | /^X\(\/\/\)$/{ s//\1/; q; } | |
21708 | /^X\(\/\).*/{ s//\1/; q; } | |
21709 | s/.*/./; q'` | |
21710 | { if $as_mkdir_p; then | |
21711 | mkdir -p "$ac_dir" | |
21712 | else | |
21713 | as_dir="$ac_dir" | |
21714 | as_dirs= | |
21715 | while test ! -d "$as_dir"; do | |
21716 | as_dirs="$as_dir $as_dirs" | |
21717 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
21718 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21719 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
21720 | X"$as_dir" : 'X\(//\)$' \| \ | |
21721 | X"$as_dir" : 'X\(/\)' \| \ | |
21722 | . : '\(.\)' 2>/dev/null || | |
21723 | echo X"$as_dir" | | |
21724 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21725 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21726 | /^X\(\/\/\)$/{ s//\1/; q; } | |
21727 | /^X\(\/\).*/{ s//\1/; q; } | |
21728 | s/.*/./; q'` | |
21729 | done | |
21730 | test ! -n "$as_dirs" || mkdir $as_dirs | |
21731 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
21732 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
21733 | { (exit 1); exit 1; }; }; } | |
21734 | ||
21735 | ac_builddir=. | |
21736 | ||
21737 | if test "$ac_dir" != .; then | |
21738 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
21739 | # A "../" for each directory in $ac_dir_suffix. | |
21740 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
21741 | else | |
21742 | ac_dir_suffix= ac_top_builddir= | |
21743 | fi | |
21744 | ||
21745 | case $srcdir in | |
21746 | .) # No --srcdir option. We are building in place. | |
21747 | ac_srcdir=. | |
21748 | if test -z "$ac_top_builddir"; then | |
21749 | ac_top_srcdir=. | |
21750 | else | |
21751 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
21752 | fi ;; | |
21753 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
21754 | ac_srcdir=$srcdir$ac_dir_suffix; | |
21755 | ac_top_srcdir=$srcdir ;; | |
21756 | *) # Relative path. | |
21757 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
21758 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
21759 | esac | |
21760 | ||
21761 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
21762 | # the directories may not exist. | |
21763 | case `pwd` in | |
21764 | .) ac_abs_builddir="$ac_dir";; | |
21765 | *) | |
21766 | case "$ac_dir" in | |
21767 | .) ac_abs_builddir=`pwd`;; | |
21768 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
21769 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
21770 | esac;; | |
21771 | esac | |
21772 | case $ac_abs_builddir in | |
21773 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
21774 | *) | |
21775 | case ${ac_top_builddir}. in | |
21776 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
21777 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
21778 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
21779 | esac;; | |
21780 | esac | |
21781 | case $ac_abs_builddir in | |
21782 | .) ac_abs_srcdir=$ac_srcdir;; | |
21783 | *) | |
21784 | case $ac_srcdir in | |
21785 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
21786 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
21787 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
21788 | esac;; | |
21789 | esac | |
21790 | case $ac_abs_builddir in | |
21791 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
21792 | *) | |
21793 | case $ac_top_srcdir in | |
21794 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
21795 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
21796 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
21797 | esac;; | |
21798 | esac | |
21799 | ||
21800 | ||
21801 | case $INSTALL in | |
21802 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
21803 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
21804 | esac | |
21805 | ||
1409cd0b FXC |
21806 | if test x"$ac_file" != x-; then |
21807 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
21808 | echo "$as_me: creating $ac_file" >&6;} | |
21809 | rm -f "$ac_file" | |
21810 | fi | |
6de9cd9a DN |
21811 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
21812 | # use $as_me), people would be surprised to read: | |
21813 | # /* config.h. Generated by config.status. */ | |
21814 | if test x"$ac_file" = x-; then | |
21815 | configure_input= | |
21816 | else | |
21817 | configure_input="$ac_file. " | |
21818 | fi | |
21819 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
21820 | sed 's,.*/,,'` by configure." | |
21821 | ||
21822 | # First look for the input files in the build tree, otherwise in the | |
21823 | # src tree. | |
21824 | ac_file_inputs=`IFS=: | |
21825 | for f in $ac_file_in; do | |
21826 | case $f in | |
21827 | -) echo $tmp/stdin ;; | |
21828 | [\\/$]*) | |
21829 | # Absolute (can't be DOS-style, as IFS=:) | |
21830 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21831 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21832 | { (exit 1); exit 1; }; } | |
21833 | echo "$f";; | |
21834 | *) # Relative | |
21835 | if test -f "$f"; then | |
21836 | # Build tree | |
21837 | echo "$f" | |
21838 | elif test -f "$srcdir/$f"; then | |
21839 | # Source tree | |
21840 | echo "$srcdir/$f" | |
21841 | else | |
21842 | # /dev/null tree | |
21843 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21844 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21845 | { (exit 1); exit 1; }; } | |
21846 | fi;; | |
21847 | esac | |
21848 | done` || { (exit 1); exit 1; } | |
6de9cd9a DN |
21849 | _ACEOF |
21850 | cat >>$CONFIG_STATUS <<_ACEOF | |
21851 | sed "$ac_vpsub | |
21852 | $extrasub | |
21853 | _ACEOF | |
21854 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21855 | :t | |
21856 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
21857 | s,@configure_input@,$configure_input,;t t | |
21858 | s,@srcdir@,$ac_srcdir,;t t | |
21859 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
21860 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
21861 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
21862 | s,@builddir@,$ac_builddir,;t t | |
21863 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
21864 | s,@top_builddir@,$ac_top_builddir,;t t | |
21865 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
21866 | s,@INSTALL@,$ac_INSTALL,;t t | |
21867 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
21868 | rm -f $tmp/stdin | |
21869 | if test x"$ac_file" != x-; then | |
21870 | mv $tmp/out $ac_file | |
21871 | else | |
21872 | cat $tmp/out | |
21873 | rm -f $tmp/out | |
21874 | fi | |
21875 | ||
21876 | done | |
21877 | _ACEOF | |
21878 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21879 | ||
21880 | # | |
21881 | # CONFIG_HEADER section. | |
21882 | # | |
21883 | ||
21884 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21885 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21886 | # | |
21887 | # ac_d sets the value in "#define NAME VALUE" lines. | |
21888 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
21889 | ac_dB='[ ].*$,\1#\2' | |
21890 | ac_dC=' ' | |
21891 | ac_dD=',;t' | |
21892 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21893 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21894 | ac_uB='$,\1#\2define\3' | |
21895 | ac_uC=' ' | |
21896 | ac_uD=',;t' | |
21897 | ||
21898 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
21899 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
21900 | case $ac_file in | |
21901 | - | *:- | *:-:* ) # input from stdin | |
21902 | cat >$tmp/stdin | |
21903 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21904 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21905 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21906 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21907 | * ) ac_file_in=$ac_file.in ;; | |
21908 | esac | |
21909 | ||
21910 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
21911 | echo "$as_me: creating $ac_file" >&6;} | |
21912 | ||
21913 | # First look for the input files in the build tree, otherwise in the | |
21914 | # src tree. | |
21915 | ac_file_inputs=`IFS=: | |
21916 | for f in $ac_file_in; do | |
21917 | case $f in | |
21918 | -) echo $tmp/stdin ;; | |
21919 | [\\/$]*) | |
21920 | # Absolute (can't be DOS-style, as IFS=:) | |
21921 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21922 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21923 | { (exit 1); exit 1; }; } | |
21924 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
21925 | echo "$f";; | |
21926 | *) # Relative | |
21927 | if test -f "$f"; then | |
21928 | # Build tree | |
21929 | echo "$f" | |
21930 | elif test -f "$srcdir/$f"; then | |
21931 | # Source tree | |
21932 | echo "$srcdir/$f" | |
21933 | else | |
21934 | # /dev/null tree | |
21935 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21936 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21937 | { (exit 1); exit 1; }; } | |
21938 | fi;; | |
21939 | esac | |
21940 | done` || { (exit 1); exit 1; } | |
21941 | # Remove the trailing spaces. | |
21942 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
21943 | ||
21944 | _ACEOF | |
21945 | ||
21946 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
21947 | # `conftest.undefs', that substitutes the proper values into | |
21948 | # config.h.in to produce config.h. The first handles `#define' | |
21949 | # templates, and the second `#undef' templates. | |
21950 | # And first: Protect against being on the right side of a sed subst in | |
21951 | # config.status. Protect against being in an unquoted here document | |
21952 | # in config.status. | |
21953 | rm -f conftest.defines conftest.undefs | |
21954 | # Using a here document instead of a string reduces the quoting nightmare. | |
21955 | # Putting comments in sed scripts is not portable. | |
21956 | # | |
21957 | # `end' is used to avoid that the second main sed command (meant for | |
21958 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
21959 | # See the Autoconf documentation for `clear'. | |
21960 | cat >confdef2sed.sed <<\_ACEOF | |
21961 | s/[\\&,]/\\&/g | |
21962 | s,[\\$`],\\&,g | |
21963 | t clear | |
21964 | : clear | |
21965 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
21966 | t end | |
21967 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
21968 | : end | |
21969 | _ACEOF | |
21970 | # If some macros were called several times there might be several times | |
21971 | # the same #defines, which is useless. Nevertheless, we may not want to | |
21972 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
21973 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
21974 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
21975 | rm -f confdef2sed.sed | |
21976 | ||
21977 | # This sed command replaces #undef with comments. This is necessary, for | |
21978 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21979 | # on some systems where configure will not decide to define it. | |
21980 | cat >>conftest.undefs <<\_ACEOF | |
21981 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
21982 | _ACEOF | |
21983 | ||
21984 | # Break up conftest.defines because some shells have a limit on the size | |
21985 | # of here documents, and old seds have small limits too (100 cmds). | |
21986 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
21987 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
21988 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
21989 | echo ' :' >>$CONFIG_STATUS | |
21990 | rm -f conftest.tail | |
21991 | while grep . conftest.defines >/dev/null | |
21992 | do | |
21993 | # Write a limited-size here document to $tmp/defines.sed. | |
21994 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
21995 | # Speed up: don't consider the non `#define' lines. | |
21996 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
21997 | # Work around the forget-to-reset-the-flag bug. | |
21998 | echo 't clr' >>$CONFIG_STATUS | |
21999 | echo ': clr' >>$CONFIG_STATUS | |
22000 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
22001 | echo 'CEOF | |
22002 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
22003 | rm -f $tmp/in | |
22004 | mv $tmp/out $tmp/in | |
22005 | ' >>$CONFIG_STATUS | |
22006 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
22007 | rm -f conftest.defines | |
22008 | mv conftest.tail conftest.defines | |
22009 | done | |
22010 | rm -f conftest.defines | |
22011 | echo ' fi # grep' >>$CONFIG_STATUS | |
22012 | echo >>$CONFIG_STATUS | |
22013 | ||
22014 | # Break up conftest.undefs because some shells have a limit on the size | |
22015 | # of here documents, and old seds have small limits too (100 cmds). | |
22016 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
22017 | rm -f conftest.tail | |
22018 | while grep . conftest.undefs >/dev/null | |
22019 | do | |
22020 | # Write a limited-size here document to $tmp/undefs.sed. | |
22021 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
22022 | # Speed up: don't consider the non `#undef' | |
22023 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
22024 | # Work around the forget-to-reset-the-flag bug. | |
22025 | echo 't clr' >>$CONFIG_STATUS | |
22026 | echo ': clr' >>$CONFIG_STATUS | |
22027 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
22028 | echo 'CEOF | |
22029 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
22030 | rm -f $tmp/in | |
22031 | mv $tmp/out $tmp/in | |
22032 | ' >>$CONFIG_STATUS | |
22033 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
22034 | rm -f conftest.undefs | |
22035 | mv conftest.tail conftest.undefs | |
22036 | done | |
22037 | rm -f conftest.undefs | |
22038 | ||
22039 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22040 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22041 | # use $as_me), people would be surprised to read: | |
22042 | # /* config.h. Generated by config.status. */ | |
22043 | if test x"$ac_file" = x-; then | |
22044 | echo "/* Generated by configure. */" >$tmp/config.h | |
22045 | else | |
22046 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
22047 | fi | |
22048 | cat $tmp/in >>$tmp/config.h | |
22049 | rm -f $tmp/in | |
22050 | if test x"$ac_file" != x-; then | |
22051 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
22052 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
22053 | echo "$as_me: $ac_file is unchanged" >&6;} | |
22054 | else | |
22055 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
22056 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22057 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22058 | X"$ac_file" : 'X\(//\)$' \| \ | |
22059 | X"$ac_file" : 'X\(/\)' \| \ | |
22060 | . : '\(.\)' 2>/dev/null || | |
22061 | echo X"$ac_file" | | |
22062 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22063 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22064 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22065 | /^X\(\/\).*/{ s//\1/; q; } | |
22066 | s/.*/./; q'` | |
22067 | { if $as_mkdir_p; then | |
22068 | mkdir -p "$ac_dir" | |
22069 | else | |
22070 | as_dir="$ac_dir" | |
22071 | as_dirs= | |
22072 | while test ! -d "$as_dir"; do | |
22073 | as_dirs="$as_dir $as_dirs" | |
22074 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22075 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22076 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22077 | X"$as_dir" : 'X\(//\)$' \| \ | |
22078 | X"$as_dir" : 'X\(/\)' \| \ | |
22079 | . : '\(.\)' 2>/dev/null || | |
22080 | echo X"$as_dir" | | |
22081 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22082 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22083 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22084 | /^X\(\/\).*/{ s//\1/; q; } | |
22085 | s/.*/./; q'` | |
22086 | done | |
22087 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22088 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22089 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22090 | { (exit 1); exit 1; }; }; } | |
22091 | ||
22092 | rm -f $ac_file | |
22093 | mv $tmp/config.h $ac_file | |
22094 | fi | |
22095 | else | |
22096 | cat $tmp/config.h | |
22097 | rm -f $tmp/config.h | |
22098 | fi | |
22099 | # Compute $ac_file's index in $config_headers. | |
22100 | _am_stamp_count=1 | |
22101 | for _am_header in $config_headers :; do | |
22102 | case $_am_header in | |
22103 | $ac_file | $ac_file:* ) | |
22104 | break ;; | |
22105 | * ) | |
22106 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
22107 | esac | |
22108 | done | |
22109 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
22110 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22111 | X$ac_file : 'X\(//\)[^/]' \| \ | |
22112 | X$ac_file : 'X\(//\)$' \| \ | |
22113 | X$ac_file : 'X\(/\)' \| \ | |
22114 | . : '\(.\)' 2>/dev/null || | |
22115 | echo X$ac_file | | |
22116 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22117 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22118 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22119 | /^X\(\/\).*/{ s//\1/; q; } | |
22120 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
22121 | done | |
22122 | _ACEOF | |
22123 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22124 | ||
22125 | # | |
22126 | # CONFIG_COMMANDS section. | |
22127 | # | |
22128 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
22129 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
22130 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22131 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
22132 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22133 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
22134 | X"$ac_dest" : 'X\(//\)$' \| \ | |
22135 | X"$ac_dest" : 'X\(/\)' \| \ | |
22136 | . : '\(.\)' 2>/dev/null || | |
22137 | echo X"$ac_dest" | | |
22138 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22139 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22140 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22141 | /^X\(\/\).*/{ s//\1/; q; } | |
22142 | s/.*/./; q'` | |
22143 | { if $as_mkdir_p; then | |
22144 | mkdir -p "$ac_dir" | |
22145 | else | |
22146 | as_dir="$ac_dir" | |
22147 | as_dirs= | |
22148 | while test ! -d "$as_dir"; do | |
22149 | as_dirs="$as_dir $as_dirs" | |
22150 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22151 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22152 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22153 | X"$as_dir" : 'X\(//\)$' \| \ | |
22154 | X"$as_dir" : 'X\(/\)' \| \ | |
22155 | . : '\(.\)' 2>/dev/null || | |
22156 | echo X"$as_dir" | | |
22157 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22158 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22159 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22160 | /^X\(\/\).*/{ s//\1/; q; } | |
22161 | s/.*/./; q'` | |
22162 | done | |
22163 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22164 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22165 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22166 | { (exit 1); exit 1; }; }; } | |
22167 | ||
22168 | ac_builddir=. | |
22169 | ||
22170 | if test "$ac_dir" != .; then | |
22171 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22172 | # A "../" for each directory in $ac_dir_suffix. | |
22173 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22174 | else | |
22175 | ac_dir_suffix= ac_top_builddir= | |
22176 | fi | |
22177 | ||
22178 | case $srcdir in | |
22179 | .) # No --srcdir option. We are building in place. | |
22180 | ac_srcdir=. | |
22181 | if test -z "$ac_top_builddir"; then | |
22182 | ac_top_srcdir=. | |
22183 | else | |
22184 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22185 | fi ;; | |
22186 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22187 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22188 | ac_top_srcdir=$srcdir ;; | |
22189 | *) # Relative path. | |
22190 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22191 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22192 | esac | |
22193 | ||
22194 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22195 | # the directories may not exist. | |
22196 | case `pwd` in | |
22197 | .) ac_abs_builddir="$ac_dir";; | |
22198 | *) | |
22199 | case "$ac_dir" in | |
22200 | .) ac_abs_builddir=`pwd`;; | |
22201 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22202 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22203 | esac;; | |
22204 | esac | |
22205 | case $ac_abs_builddir in | |
22206 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22207 | *) | |
22208 | case ${ac_top_builddir}. in | |
22209 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22210 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22211 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22212 | esac;; | |
22213 | esac | |
22214 | case $ac_abs_builddir in | |
22215 | .) ac_abs_srcdir=$ac_srcdir;; | |
22216 | *) | |
22217 | case $ac_srcdir in | |
22218 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22219 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22220 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22221 | esac;; | |
22222 | esac | |
22223 | case $ac_abs_builddir in | |
22224 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22225 | *) | |
22226 | case $ac_top_srcdir in | |
22227 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22228 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22229 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22230 | esac;; | |
22231 | esac | |
22232 | ||
22233 | ||
22234 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
22235 | echo "$as_me: executing $ac_dest commands" >&6;} | |
22236 | case $ac_dest in | |
96b8a615 AJ |
22237 | default-1 ) |
22238 | # Only add multilib support code if we just rebuilt the top-level | |
22239 | # Makefile. | |
22240 | case " $CONFIG_FILES " in | |
22241 | *" Makefile "*) | |
22242 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
22243 | ;; | |
22244 | esac ;; | |
6de9cd9a DN |
22245 | esac |
22246 | done | |
22247 | _ACEOF | |
22248 | ||
22249 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22250 | ||
22251 | { (exit 0); exit 0; } | |
22252 | _ACEOF | |
22253 | chmod +x $CONFIG_STATUS | |
22254 | ac_clean_files=$ac_clean_files_save | |
22255 | ||
22256 | ||
22257 | # configure is writing to config.log, and then calls config.status. | |
22258 | # config.status does its own redirection, appending to config.log. | |
22259 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
22260 | # by configure, so config.status won't be able to write to it; its | |
22261 | # output is simply discarded. So we exec the FD to /dev/null, | |
22262 | # effectively closing config.log, so it can be properly (re)opened and | |
22263 | # appended to by config.status. When coming back to configure, we | |
22264 | # need to make the FD available again. | |
22265 | if test "$no_create" != yes; then | |
22266 | ac_cs_success=: | |
22267 | ac_config_status_args= | |
22268 | test "$silent" = yes && | |
22269 | ac_config_status_args="$ac_config_status_args --quiet" | |
22270 | exec 5>/dev/null | |
22271 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
22272 | exec 5>>config.log | |
22273 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
22274 | # would make configure fail if this is the last instruction. | |
22275 | $ac_cs_success || { (exit 1); exit 1; } | |
22276 | fi | |
22277 |